/* fitur-kontrol-dokumen.html · Document Control.
   Signature: the official copy comes into focus (.oc). Page-local on top of kit/kit.css. */

/* ------------------------------------------------ hero */
.crumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.crumb a:hover { color: var(--ink); }
.sub-h1 { max-width: 15em; font-size: calc(clamp(44px, 5.6vw, 104px) * var(--ts, 1)); }
.page-hero__foot .hero-note { grid-column: 1 / 7; margin-top: 22px; }
.page-hero__foot .ctas { grid-column: 8 / 13; }
.page-hero__foot .ctas .link { white-space: nowrap; }
/* the stage scale under the start rule: the line draws across its ticks */
.scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin: calc(-1 * clamp(40px, 5vh, 60px) + 1px) 0 clamp(48px, 6vh, 72px); }
.scale li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 18px; }
.scale li::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 10px; background: var(--ink); }
.scale b { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.scale__s { width: 100%; font: 400 12px/1.4 var(--f-mono); color: var(--muted); padding-left: 0; }

/* ------------------------------------------------ (01) the doubt */
.doubt__text .h2 { margin-bottom: clamp(32px, 3.4vw, 56px); }
.doubt__box { min-height: clamp(380px, 30vw, 500px); }

/* ------------------------------------------------ (02) stages */
.sub-lede { margin-top: calc(-1 * clamp(24px, 3vw, 56px)); margin-bottom: clamp(56px, 6vw, 96px); }
.stage { display: grid; grid-template-columns: subgrid; align-items: start; padding: 0 0 clamp(56px, 6vw, 96px); }
.stage__h { grid-column: 2 / 5; display: flex; align-items: baseline; gap: 14px; font-weight: 500; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.1; letter-spacing: -.03em; padding-top: 22px; }
.stage__h .num { font-size: 12px; }
.stage__rows { grid-column: 5 / 13; }
.stage .row__t { font-size: clamp(19px, 1.5vw, 25px); }
.rows--1 .row { grid-template-columns: 1fr; row-gap: 12px; }
.publish { grid-column: 5 / 13; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(32px, 4vw, 72px); align-items: start; }
.publish .stage__rows { grid-column: auto; }

/* ------------------------------------------------ the signature: official copy */
.oc { margin: 0; padding-top: 8px; }
.oc__stage { position: relative; height: clamp(300px, 24vw, 360px); }
.oc__card {
  position: absolute; left: 50%; top: 46%; width: min(300px, 78%); margin-left: calc(min(300px, 78%) / -2); transform: translateY(-50%);
  background: var(--paper-2); border: 1px solid var(--hair-2);
}
.oc__in { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 15px; }
.oc__k { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.oc__card b { font-weight: 500; font-size: 15px; line-height: 1.25; letter-spacing: -.012em; }
.oc__m { font: 400 11px/1.4 var(--f-mono); color: var(--muted); }
.oc__top { display: flex; justify-content: space-between; align-items: center; }
.oc__pill { padding: 4px 8px; font-size: 11px; }
.oc__ver { margin-top: 4px; }
.oc__ver .pill { padding: 4px 9px; font-size: 11px; }
.oc__official { z-index: 3; border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(20, 20, 19, .35); }
.oc__official .oc__ghost { position: absolute; inset: 0; pointer-events: none; }  /* blur by text-shadow, no filter layer */
.oc__ghost, .oc__ghost * { color: transparent; text-shadow: 0 0 10px var(--ink); }
.oc__ghost .pill { border-color: transparent; background: transparent; box-shadow: 0 0 8px rgba(20, 20, 19, .35); }
/* the copies: final state is a soft stack behind the official card, out of focus */
.oc__copy { z-index: 1; opacity: .55; border-color: transparent; box-shadow: 0 0 3.4px 1px #CFC9BE; }  /* out of focus without a filter on the moving card */
.oc__copy .oc__in, .oc__copy .oc__in * { color: transparent; text-shadow: 0 0 3.4px #4A4741; }
.oc__copy .pill { border-color: transparent; box-shadow: 0 0 3px #4A4741; }
.oc__copy--a { transform: translate(14px, calc(-50% + 12px)); }
.oc__copy--b { transform: translate(28px, calc(-50% + 24px)); }
.oc__copy--c { transform: translate(-14px, calc(-50% - 12px)); }
/* the spotlight ring around the official card */
.oc__ring { position: absolute; left: 50%; top: 46%; width: 336px; height: 336px; margin: -168px 0 0 -168px; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 73, 46, .13), rgba(194, 73, 46, 0) 66%); }
.oc__ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.oc__ring circle { fill: none; stroke: var(--accent); stroke-opacity: .7; stroke-width: .5; stroke-dasharray: 1.02 1.02; stroke-dashoffset: 0; }
.oc__list { position: relative; z-index: 2; width: min(300px, 78%); margin: 20px auto 0; border-top: 1px solid var(--ink); }
.oc__list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0 10px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.oc__list li + li { color: var(--muted); }
.oc__d { font: 400 11px/1.3 var(--f-mono); color: var(--muted); }
.oc__tag { display: flex; justify-content: center; margin-top: 18px; }

/* animated start state (only while JS runs and motion is allowed) */
.js:not(.reduce) .oc__copy { transition: transform 1.2s var(--ease), opacity .9s var(--ease) .5s; }
.js:not(.reduce) .oc:not(.is-on) .oc__copy { opacity: 1; }
.js:not(.reduce) .oc:not(.is-on) .oc__copy--a { transform: translate(-46%, calc(-50% - 92px)) rotate(-7deg); }
.js:not(.reduce) .oc:not(.is-on) .oc__copy--b { transform: translate(24%, calc(-50% - 4px)) rotate(5deg); }
.js:not(.reduce) .oc:not(.is-on) .oc__copy--c { transform: translate(-30%, calc(-50% + 92px)) rotate(-3deg); }
.js:not(.reduce) .oc__official { transition: opacity .7s var(--ease) .75s, transform 1.1s var(--ease) .75s; }
.js:not(.reduce) .oc:not(.is-on) .oc__official { opacity: 0; transform: translateY(-46%) scale(.96); }
.js:not(.reduce) .oc__official .oc__sharp { transition: opacity .9s var(--ease) 1.35s; }
.js:not(.reduce) .oc__official .oc__ghost { transition: opacity 1s var(--ease) 1.45s; }
.js:not(.reduce) .oc:not(.is-on) .oc__official .oc__sharp { opacity: 0; }
.js:not(.reduce) .oc.is-on .oc__official .oc__ghost { opacity: 0; }
.js:not(.reduce) .oc__ring { transition: opacity .9s var(--ease) 1.6s, transform 1.2s var(--ease) 1.6s; }
.js:not(.reduce) .oc:not(.is-on) .oc__ring { opacity: 0; transform: scale(.8); }
.js:not(.reduce) .oc__ring circle { transition: stroke-dashoffset 1.6s var(--ease) 1.7s; }
.js:not(.reduce) .oc:not(.is-on) .oc__ring circle { stroke-dashoffset: 1.02; }
.js:not(.reduce) .oc__list li { transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js:not(.reduce) .oc__list li:nth-child(1) { transition-delay: 2s; }
.js:not(.reduce) .oc__list li:nth-child(2) { transition-delay: 2.15s; }
.js:not(.reduce) .oc:not(.is-on) .oc__list li { opacity: 0; transform: translateY(10px); }
.reduce .oc__ghost, .no-js .oc__ghost { display: none; }

/* ------------------------------------------------ (03) one record */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 48px); margin-top: clamp(56px, 6vw, 88px); }
.frame__cap b { font-weight: 500; color: var(--ink); font-family: var(--f-sans); font-size: 14px; letter-spacing: -.01em; margin-right: 4px; }
a.frame__media { display: block; cursor: zoom-in; }
a.frame__media:focus-visible { outline-offset: 16px; }
.rec__link { margin-top: 48px; }

/* ------------------------------------------------ CTA */
.cta-h { font-size: clamp(44px, 6vw, 112px); max-width: 12em; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; margin-top: clamp(56px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--hair); }
.also .label { margin-right: 8px; }
.also .link { font-size: 15px; }

/* ------------------------------------------------ lightbox */
.lb { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 20, 19, .9); display: none; }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: min(94vw, 1600px); max-height: 88vh; width: auto; height: auto; background: #fff; }
.lb__close { position: absolute; right: 20px; top: 16px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(245, 244, 240, .4); background: transparent; color: var(--paper); font: 500 14px/1 var(--f-sans); cursor: pointer; }

/* ------------------------------------------------ mid widths */
@media (max-width: 1100px) {
  .stage__h { grid-column: 2 / 13; padding-top: 0; margin-bottom: 24px; }
  .stage__rows, .publish { grid-column: 2 / 13; }
  .publish { grid-template-columns: 1fr; }
  .oc { margin-top: 40px; }
}

/* ------------------------------------------------ phones */
@media (max-width: 760px) {
  .sub-h1 { font-size: calc(clamp(36px, 10.4vw, 52px) * var(--ts, 1)); }
  .scale { grid-template-columns: 1fr; row-gap: 14px; margin: -14px 0 34px; padding-left: 32px; }
  .scale li { padding-top: 0; padding-left: 14px; }
  .scale li::before { top: 4px; height: 10px; }
  .doubt__box { display: none; }
  .sub-lede { margin-top: -16px; margin-bottom: 44px; }
  .stage { display: block; padding-bottom: 48px; }
  .stage__h { font-size: 26px; }
  .oc__stage { height: 300px; }
  .oc__card, .oc__list { width: 250px; margin-left: -125px; }
  .oc__list { margin-left: auto; }
  .oc__ring { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .js:not(.reduce) .oc:not(.is-on) .oc__copy--a { transform: translate(-22%, calc(-50% - 84px)) rotate(-6deg); }
  .js:not(.reduce) .oc:not(.is-on) .oc__copy--b { transform: translate(18%, calc(-50% + 2px)) rotate(4deg); }
  .js:not(.reduce) .oc:not(.is-on) .oc__copy--c { transform: translate(-12%, calc(-50% + 84px)) rotate(-3deg); }
  .pair { grid-template-columns: 1fr; gap: 40px; }
  .cta-h { font-size: clamp(36px, 10vw, 48px); }
  .also { flex-direction: column; align-items: flex-start; }
}

/* contextual link to the watermarking page, under the "Control and trace" rows */
.stage__more { grid-column: 5 / 13; margin-top: 24px; }
@media (max-width: 1100px) { .stage__more { grid-column: 2 / 13; } }
