/* =========================================================
   DigiGovah — Concept 05 «پرونده / The Dossier»
   Cool desk, white paper, kraft folders, ink blue, stamp red.
   ========================================================= */

:root {
  --desk: #DDE3EA;
  --desk-2: #CFD7E1;
  --desk-3: #BCC6D2;
  --paper: #FBFBF8;
  --paper-2: #F2F2EC;
  --kraft: #C89F6B;
  --kraft-d: #A97F4C;
  --kraft-dd: #8A6538;
  --kraft-l: #D8B88E;
  --ink: #1D3D8F;
  --ink-2: #2A4CA6;
  --ink-soft: rgba(29, 61, 143, .14);
  --stamp: #C0392B;
  --carbon: #3A3A3A;
  --text: #22262C;
  --muted: #535B67;
  --line: rgba(58, 58, 58, .16);
  --note: #F7E58D;
  --note-d: #E9D26A;
  --steel: #39434F;
  --steel-2: #2C343E;

  --f-doc: "Noto Naskh Arabic", "Vazirmatn", serif;
  --f-ui: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --sh-paper: 0 1px 0 rgba(20, 35, 60, .05), 0 2px 3px rgba(20, 35, 60, .07), 0 14px 30px -12px rgba(20, 35, 60, .28);
  --sh-lift: 0 2px 4px rgba(20, 35, 60, .08), 0 22px 40px -14px rgba(20, 35, 60, .38);
  --r: 3px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --noise-kraft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-desk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .27 0 0 0 0 .36 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text);
  background: var(--desk) var(--noise-desk);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: .3em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--f-doc); color: #141A26; margin: 0; line-height: 1.55; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
bdi { unicode-bidi: isolate; direction: ltr; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 36px; } }

section { position: relative; }
.sheet { background: var(--paper); box-shadow: var(--sh-paper); border-radius: var(--r); }

/* hand-drawn tick (shared) */
.tick, .box svg, .dz-row svg, .dz-index svg, .rm-tick svg {
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.tick { width: 1.3em; height: 1.1em; flex: none; }
.tick path { stroke-dasharray: 34; stroke-dashoffset: 0; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .55em 1.35em;
  font-family: var(--f-ui); font-weight: 700; font-size: 1rem; line-height: 1.4;
  border-radius: var(--r); border: 1.5px solid var(--b);
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s, background-color .18s;
}
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 #0f2460, 0 6px 14px -6px rgba(29, 61, 143, .6), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-ink:hover { color: #fff; background: #193583; transform: translateY(-1px); }
.btn-ink:active { transform: translateY(1px); box-shadow: 0 0 0 #0f2460, 0 2px 6px -3px rgba(29, 61, 143, .6); }
.btn-paper { background: var(--paper); color: var(--ink); box-shadow: var(--sh-paper); border-color: transparent; }
.btn-paper:hover { transform: translateY(-1px) rotate(-.4deg); color: var(--ink); }
.btn-sm { min-height: 40px; padding: .35em 1em; font-size: .92rem; }

/* ---------- header with index-tab nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(221, 227, 234, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 3px solid var(--kraft);
}
.head-row { display: flex; align-items: flex-end; gap: 16px; min-height: 72px; padding-top: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding-bottom: 10px; margin-inline-end: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-family: var(--f-doc); font-size: 1.4rem; color: #141A26; }
.brand-text small { font-size: .74rem; color: var(--muted); }

.tabnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 2px; }
.tabnav a {
  position: relative; display: block; padding: 10px 18px 9px; z-index: 0;
  color: var(--carbon); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.tabnav a::before {
  content: ""; position: absolute; inset: 0 0 -3px; z-index: -1;
  background: var(--desk-2); border-radius: 9px 9px 0 0;
  transform: perspective(40px) rotateX(5deg); transform-origin: bottom;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  transition: background-color .2s, transform .2s;
}
.tabnav a:hover::before { background: #E8ECF1; }
.tabnav a[aria-current="page"] { color: #3B2810; font-weight: 700; }
.tabnav a[aria-current="page"]::before { background: var(--kraft) var(--noise-kraft); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.tabnav .tabnav-cta { display: none; }
.head-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; }
.head-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--carbon); font-size: .95rem; }
.head-phone svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

@media (max-width: 1180px) { .head-phone { display: none; } }
@media (max-width: 980px) {
  .head-row { align-items: center; min-height: 64px; padding-block: 8px; }
  .brand, .head-actions { padding-bottom: 0; }
  .head-cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 0; border-radius: 8px 8px 0 0; background: var(--kraft) var(--noise-kraft); color: #3B2810; font-weight: 700; cursor: pointer;
  }
  .menu-btn-icon { display: grid; gap: 4px; }
  .menu-btn-icon i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
  .site-head.is-open .menu-btn-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-head.is-open .menu-btn-icon i:nth-child(2) { opacity: 0; }
  .site-head.is-open .menu-btn-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .tabnav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--kraft) var(--noise-kraft);
    padding: 18px var(--gutter) 22px;
    box-shadow: 0 24px 40px -18px rgba(20, 35, 60, .5);
    transform-origin: top; transform: scaleY(.96) translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .22s var(--ease-out), opacity .2s, visibility 0s .22s;
  }
  .site-head.is-open .tabnav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .tabnav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .tabnav a { padding: 12px 18px; font-size: 1.05rem; background: var(--paper); border-radius: 0 8px 8px 0; box-shadow: var(--sh-paper); }
  .tabnav li:nth-child(2n) a { margin-inline-end: 18px; }
  .tabnav li:nth-child(3n) a { margin-inline-end: 34px; }
  .tabnav a::before { display: none; }
  .tabnav a[aria-current="page"] { background: #F3E3C8; box-shadow: inset -4px 0 0 var(--stamp), var(--sh-paper); }
  .tabnav .tabnav-cta { display: block; margin-top: 8px; }
  .tabnav .tabnav-cta a { background: var(--ink); color: #fff; text-align: center; border-radius: var(--r); font-weight: 700; margin: 0; }
}

/* ---------- section heads ---------- */
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.45rem); margin-bottom: .35em; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.ink-under { position: relative; white-space: nowrap; }
.ink-under::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: -.05em; height: .42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c40-7 90-9 128-6 22 2 40 3 66-1' fill='none' stroke='%23C0392B' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* =========================================================
   HERO — the dossier
   ========================================================= */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 90px); }
.hero-grid { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }
.docline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px;
  font-family: var(--f-doc); font-size: .95rem; color: var(--carbon);
}
.docline span + span { padding-inline-start: 18px; border-inline-start: 1px solid var(--desk-3); }
.hero h1 { font-size: clamp(1.9rem, 1.1rem + 3.1vw, 3.45rem); line-height: 1.5; letter-spacing: -.005em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--ink); }
.lede { font-size: clamp(1.02rem, .95rem + .3vw, 1.17rem); color: #3A414C; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--carbon); font-weight: 500; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }

.hero-visual { position: relative; }
.dossier {
  position: relative; width: 100%; aspect-ratio: 10 / 8.2;
  container-type: inline-size; perspective: 2000px; perspective-origin: 50% 30%;
}
.dz-rig { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s var(--ease-out); }
.dz-back, .dz-cover, .dz-pocket {
  position: absolute; left: 50%; width: 46%; top: 17%; bottom: 5%;
}
.dz-back {
  background: var(--kraft-d) var(--noise-kraft);
  border-radius: 0 1.2cqw 1.2cqw 0;
  box-shadow: 0 2cqw 4cqw -1.5cqw rgba(20, 35, 60, .55), 0 .3cqw .6cqw rgba(20,35,60,.2);
}
.dz-tab {
  position: absolute; bottom: 100%; inset-inline-start: 6%;
  padding: .7cqw 2.2cqw .4cqw; border-radius: 1.2cqw 1.2cqw 0 0;
  background: var(--kraft-d) var(--noise-kraft);
  font-family: var(--f-doc); font-weight: 700; font-size: 1.85cqw; color: #2E1D08; white-space: nowrap;
}
.dz-tab::after { content: ""; position: absolute; inset: 22% 6% 18%; border: 1px solid rgba(46, 29, 8, .25); border-radius: .4cqw; pointer-events: none; }

.dz-sheet, .dz-cert {
  position: absolute; background: var(--paper); border-radius: .4cqw;
  box-shadow: 0 .2cqw .4cqw rgba(20,35,60,.12), 0 1.5cqw 3cqw -1.6cqw rgba(20,35,60,.4);
  padding: 2.4cqw 2.4cqw; display: flex; flex-direction: column; gap: 1.1cqw;
  font-size: 1.55cqw; line-height: 1.6; color: var(--carbon);
  transform-origin: 50% 100%;
  transition: transform .8s var(--ease-out), opacity .5s;
}
.dz-sheet b { font-family: var(--f-doc); font-size: 1.9cqw; color: #141A26; }
.dz-sheet .ln, .dz-cert .ln { display: block; height: .32cqw; background: rgba(29, 61, 143, .16); border-radius: 1px; }
.dz-sheet .ln.s, .dz-cert .ln.s { width: 62%; }
.dz-mini { color: var(--ink); font-weight: 700; }
.dz-row { display: flex; align-items: center; gap: .8cqw; }
.dz-row svg { width: 2.4cqw; height: 2cqw; }
.dz-s1 { left: 53%; width: 40%; top: 9%; height: 66%; transform: translate(0, 0) rotate(-1deg); }
.dz-s2 { left: 53.5%; width: 39.5%; top: 10%; height: 64%; transform: rotate(.8deg); }
.dz-s3 { left: 54%; width: 39%; top: 11%; height: 62%; transform: rotate(-.4deg); }
.dz-clip { position: absolute; top: -2.6cqw; inset-inline-end: 3cqw; width: 2.6cqw; height: 7cqw; }

.dz-cert {
  left: 55%; width: 37%; top: 21%; height: 50%;
  align-items: center; text-align: center; gap: .6cqw;
  border: .5cqw double rgba(29, 61, 143, .35); outline: .25cqw solid var(--paper); outline-offset: -1.2cqw;
  opacity: 0; transform: translateY(26%);
}
.dz-cert-k { font-family: var(--f-doc); font-size: 2.6cqw; font-weight: 700; color: #141A26; }
.dz-cert-t { font-weight: 800; font-size: 2.5cqw; color: var(--ink); letter-spacing: .02em; }
.dz-cert-s { font-size: 1.55cqw; }
.dz-cert .ln.c { width: 70%; }
.dz-cert .ln.c.s { width: 46%; }
.dz-cert-f { display: flex; justify-content: space-between; width: 100%; margin-top: auto; font-size: 1.35cqw; color: var(--muted); }
.dz-seal { position: absolute; bottom: 4.5cqw; left: 50%; width: 5cqw; margin-left: -2.5cqw; }

.dz-pocket {
  top: 60%; border-radius: 0 0 1.2cqw 0;
  background: var(--kraft) var(--noise-kraft);
  clip-path: polygon(0 14%, 62% 0, 100% 10%, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3cqw;
}
.dz-pocket span { font-family: var(--f-doc); font-weight: 700; font-size: 2.1cqw; color: rgba(60, 38, 12, .38); text-shadow: 0 1px 0 rgba(255,255,255,.25); }

.dz-stamp { position: absolute; left: 70%; top: 27%; width: 16cqw; color: var(--stamp); opacity: 0; transform: scale(2.3) rotate(-30deg); pointer-events: none; }
.stamp-svg text { font-family: var(--f-doc); }

.dz-cover {
  transform-origin: 0 50%; transform-style: preserve-3d;
  transform: translateZ(2px) rotateY(0deg);
  transition: transform 1.25s cubic-bezier(.55, .06, .2, 1);
}
.dz-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 1.2cqw 1.2cqw 0; }
.dz-front {
  background: var(--kraft) var(--noise-kraft);
  box-shadow: inset 1.2cqw 0 1.4cqw -1.2cqw rgba(60, 38, 12, .5), 0 1.2cqw 2.4cqw -1cqw rgba(20,35,60,.45);
  display: flex; align-items: center; justify-content: center;
}
.dz-label {
  width: 70%; background: var(--paper); padding: 2cqw 2.4cqw; border-radius: .5cqw;
  display: flex; flex-direction: column; gap: .8cqw; font-size: 1.55cqw; color: var(--carbon);
  box-shadow: 0 .2cqw .5cqw rgba(60, 38, 12, .3);
  transform: rotate(-1.2deg);
}
.dz-label b { font-family: var(--f-doc); font-size: 2.4cqw; color: #141A26; border-bottom: .25cqw solid var(--stamp); padding-bottom: .6cqw; }
.dz-label u { text-decoration: none; border-bottom: 1px dotted var(--carbon); color: var(--ink); font-weight: 700; padding-inline: .4cqw; }
.dz-string { position: absolute; left: 4%; top: 50%; width: 3cqw; height: 3cqw; margin-top: -1.5cqw; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #E9DCC5, #A0896A); box-shadow: 0 .2cqw .4cqw rgba(0,0,0,.3); }
.dz-inside {
  transform: rotateY(180deg);
  background: #B98F5B var(--noise-kraft);
  border-radius: 1.2cqw 0 0 1.2cqw;
  box-shadow: inset -1.2cqw 0 1.4cqw -1.2cqw rgba(60, 38, 12, .45);
  padding: 4cqw 3.4cqw;
}
.dz-index {
  background: var(--paper); border-radius: .4cqw; padding: 2cqw 2.4cqw; display: flex; flex-direction: column; gap: .7cqw;
  font-size: 1.55cqw; color: var(--carbon); box-shadow: 0 .2cqw .6cqw rgba(60,38,12,.3);
}
.dz-index b { font-family: var(--f-doc); font-size: 2.1cqw; color: #141A26; margin-bottom: .4cqw; }
.dz-index span { display: flex; align-items: center; gap: .8cqw; border-bottom: 1px solid rgba(29,61,143,.12); padding-bottom: .4cqw; }
.dz-index svg { width: 2.4cqw; height: 2cqw; }
.dz-index path, .dz-row path { stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset .45s ease-out; }
.dz-note {
  position: absolute; bottom: 5cqw; inset-inline-start: 4cqw; width: 18cqw; padding: 1.8cqw;
  background: var(--note); font-family: var(--f-doc); font-size: 1.6cqw; line-height: 1.55; color: #3A3214;
  transform: rotate(4deg); box-shadow: 0 1cqw 1.6cqw -1cqw rgba(60, 50, 10, .6);
}
.dz-note::before { content: ""; position: absolute; top: -1.2cqw; left: 30%; width: 8cqw; height: 2.4cqw; background: rgba(255,255,255,.55); transform: rotate(-3deg); }

/* closed state (before JS opens) */
.js .dossier:not(.is-open) .dz-rig { transform: translateX(-24%); }
.js .dossier:not(.is-open) .dz-cover { transition-duration: .7s; }
.js .dossier:not(.is-open) .dz-sheet, .js .dossier:not(.is-open) .dz-cert { transition-duration: .4s; transition-delay: 0s; }

/* open state */
.dossier.is-open .dz-cover, html:not(.js) .dz-cover { transform: translateZ(2px) rotateY(-174deg); }
.dossier.is-open .dz-s1, html:not(.js) .dz-s1 { transform: translate(-7%, -3%) rotate(-9deg); transition-delay: .85s; }
.dossier.is-open .dz-s2, html:not(.js) .dz-s2 { transform: translate(-1%, -5%) rotate(-3deg); transition-delay: .98s; }
.dossier.is-open .dz-s3, html:not(.js) .dz-s3 { transform: translate(6%, -2%) rotate(6deg); transition-delay: 1.1s; }
.dossier.is-open .dz-cert, html:not(.js) .dz-cert { opacity: 1; transform: translateY(-22%) rotate(-1.5deg); transition: transform .9s var(--ease-out) 1.45s, opacity .3s 1.45s; }
.dossier.is-open .dz-stamp { animation: stamp-land .55s cubic-bezier(.5, 0, .75, .1) 2.45s both, stamp-settle .4s var(--ease-out) 3s forwards; }
html:not(.js) .dz-stamp { opacity: .9; transform: scale(1) rotate(-12deg); }
.dossier.is-open .dz-cert { animation: cert-press .3s ease-out 2.95s forwards; }
.dossier.is-open .dz-index path, html:not(.js) .dz-index path { stroke-dashoffset: 0; }
.dossier.is-open .dz-index span:nth-of-type(1) path { transition-delay: 1.3s; }
.dossier.is-open .dz-index span:nth-of-type(2) path { transition-delay: 1.5s; }
.dossier.is-open .dz-index span:nth-of-type(3) path { transition-delay: 1.7s; }
.dossier.is-open .dz-index span:nth-of-type(4) path { transition-delay: 1.9s; }
.dossier.is-open .dz-index span:nth-of-type(5) path { transition-delay: 2.1s; }
.dossier.is-open .dz-row path, html:not(.js) .dz-row path { stroke-dashoffset: 0; transition-delay: 1.4s; }

@keyframes stamp-land {
  0% { opacity: 0; transform: scale(2.3) rotate(-30deg); }
  70% { opacity: .5; }
  100% { opacity: .92; transform: scale(.94) rotate(-12deg); }
}
@keyframes stamp-settle { from { transform: scale(.94) rotate(-12deg); opacity: .92; } to { transform: scale(1) rotate(-12deg); opacity: .9; } }
@keyframes cert-press {
  0% { transform: translateY(-22%) rotate(-1.5deg) scale(1); }
  40% { transform: translateY(-21.4%) rotate(-1.5deg) scale(.985); }
  100% { transform: translateY(-22%) rotate(-1.5deg) scale(1); }
}

.replay {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px auto 0; padding: 6px 12px; min-height: 40px;
  border: 0; background: none; color: var(--muted); font-size: .88rem; cursor: pointer; border-radius: var(--r);
}
.replay:hover { color: var(--ink); background: rgba(255,255,255,.45); }
.replay svg { width: 18px; height: 18px; }
.hero-visual { display: flex; flex-direction: column; }
@media (max-width: 600px) { .hero-visual { margin-inline: calc(var(--gutter) * -1 + 4px); } }
.replay { align-self: center; }
html:not(.js) .replay { display: none; }

/* =========================================================
   FINDER — memo + index card
   ========================================================= */
.finder { padding: clamp(40px, 6vw, 80px) 0; }
.finder-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .finder-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; } }
.memo {
  position: relative; padding: clamp(22px, 3.4vw, 44px);
  background-image: linear-gradient(to bottom, transparent 0 calc(2.4rem - 1px), var(--ink-soft) calc(2.4rem - 1px) 2.4rem);
  background-size: 100% 2.4rem; background-position: 0 1.2rem;
}
.memo::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: clamp(12px, 2vw, 22px); width: 1.5px; background: rgba(192, 57, 43, .35); }
.memo-head { background: var(--paper); margin: -6px -6px 18px; padding: 6px; }
.memo-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); }
.memo-head p { color: var(--muted); margin: 0; }
.checks { border: 0; margin: 0; padding: 0; display: grid; gap: 2px 18px; }
@media (min-width: 560px) { .checks { grid-template-columns: 1fr 1fr; } }

/* ink checkbox / radio (shared with wizard) */
.check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 2.4rem; cursor: pointer; font-weight: 500; line-height: 1.5; padding-block: 4px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  position: relative; flex: none; width: 24px; height: 24px; border: 1.6px solid var(--carbon); border-radius: 2px; background: var(--paper);
}
.box svg { position: absolute; width: 32px; height: 28px; inset-inline-start: -2px; top: -9px; overflow: visible; }
.box path { stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset .35s ease-out; }
.check input:checked + .box path { stroke-dashoffset: 0; }
.check input:focus-visible + .box { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.check:hover .box { border-color: var(--ink); }
.check input:checked ~ span:last-child { color: var(--ink); }

.finder-out { position: relative; }
@media (min-width: 960px) { .finder-out { margin-top: 60px; margin-inline-start: -28px; z-index: 2; } }
.indexcard {
  position: relative; background: #FFFFFC; border-radius: 2px; padding: 26px 24px 24px;
  box-shadow: var(--sh-lift);
  background-image: linear-gradient(var(--stamp), var(--stamp)), repeating-linear-gradient(to bottom, transparent 0 calc(1.9rem - 1px), rgba(29,61,143,.16) calc(1.9rem - 1px) 1.9rem);
  background-size: 100% 2px, 100% 100%; background-repeat: no-repeat, repeat; background-position: 0 4.1rem, 0 4.1rem;
  transform: rotate(1.4deg);
  transition: transform .4s var(--ease-spring);
}
.indexcard.is-flash { animation: card-in .45s var(--ease-out); }
@keyframes card-in { from { transform: rotate(4deg) translateY(10px); opacity: .4; } to { transform: rotate(1.4deg); opacity: 1; } }
.indexcard-hole { position: absolute; top: 12px; inset-inline-end: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--desk); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.indexcard h3 { font-size: 1.35rem; margin-bottom: 16px; }
.indexcard-wait { color: var(--muted); line-height: 1.9rem; }
.indexcard .stds { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.indexcard .stds li { border: 1.5px solid var(--ink); color: var(--ink); padding: 0 10px; border-radius: 2px; font-weight: 700; font-size: .92rem; line-height: 1.85; }
.indexcard .why { line-height: 1.9rem; margin: 6px 0; }
.indexcard .time { font-family: var(--f-doc); font-weight: 700; color: var(--stamp); margin: 4px 0 14px; }

/* =========================================================
   CATEGORIES — folder index tabs
   ========================================================= */
.cats { padding: clamp(48px, 7vw, 100px) 0; }
.ftabs-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; position: relative; z-index: 1; margin-bottom: -1px; }
.ftabs-list::-webkit-scrollbar { display: none; }
.ftab {
  position: relative; flex: none; border: 0; cursor: pointer;
  padding: 12px 20px 12px; min-height: 48px;
  background: var(--kraft-l) var(--noise-kraft);
  color: #4A3416; font-weight: 700; font-size: .95rem;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -6px 8px -6px rgba(60, 38, 12, .35);
  transform: translateY(6px);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.ftab:nth-child(3n+2) { background-color: #D2AF82; }
.ftab:nth-child(3n) { background-color: #CDA778; }
.ftab:hover { transform: translateY(2px); }
.ftab[aria-selected="true"] { background-color: var(--kraft); transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); z-index: 2; color: #2E1D08; }
.ftab[aria-selected="true"]::after { content: ""; position: absolute; top: 9px; inset-inline-start: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--stamp); }
.ftabs-body {
  position: relative; background: var(--kraft) var(--noise-kraft); border-radius: 0 0 6px 6px;
  padding: clamp(14px, 2.4vw, 30px);
  box-shadow: 0 30px 50px -28px rgba(20, 35, 60, .55), 0 2px 4px rgba(20,35,60,.12);
}
@media (min-width: 700px) { .ftabs-body { border-radius: 0 6px 6px 6px; } }
.fpanel {
  background: var(--paper); border-radius: var(--r); box-shadow: 0 2px 6px rgba(60, 38, 12, .3);
  display: grid; gap: 24px; padding: clamp(20px, 3.2vw, 40px);
}
.fpanel:not([hidden]) { animation: panel-in .35s var(--ease-out); }
@keyframes panel-in { from { transform: translateY(8px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (min-width: 860px) { .fpanel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
.fpanel h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); margin-bottom: 10px; }
.fpanel-intro p { color: #3E4550; }
.fpanel-meta { font-family: var(--f-doc); font-weight: 700; color: var(--stamp) !important; }
.leaders { list-style: none; margin: 0; padding: 0; align-self: center; }
.leaders a { display: flex; align-items: baseline; gap: 10px; padding: 11px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(29,61,143,.1); transition: background-color .15s; }
.leaders a:hover { background: rgba(29, 61, 143, .05); color: var(--ink); }
.leaders a > span:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.leaders i { flex: 1; min-width: 20px; border-bottom: 2px dotted rgba(58,58,58,.35); transform: translateY(-4px); }
.leaders a > span:last-child { text-align: end; color: #3E4550; }
@media (max-width: 480px) {
  .leaders a { flex-wrap: wrap; gap: 0 10px; }
  .leaders i { display: none; }
  .leaders a > span:last-child { flex-basis: 100%; text-align: start; font-size: .93rem; }
}

/* =========================================================
   TENDER — stapled packet
   ========================================================= */
.tender { padding: clamp(48px, 7vw, 100px) 0; background: linear-gradient(var(--desk-2), var(--desk-2)) ; }
.tender-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .tender-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }
.tender-copy h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.45rem); margin-bottom: .5em; }
.tender-copy p { color: #3A414C; }
.tender-copy .btn { margin-top: 8px; }
.packet { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
@media (min-width: 640px) {
  .packet { grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 10px; }
}
.pk {
  position: relative; background: var(--paper); padding: 22px 22px 20px; border-radius: 2px; box-shadow: var(--sh-paper);
  border-top: 4px solid var(--kraft);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.pk:hover { transform: translateY(-4px) rotate(0deg) !important; box-shadow: var(--sh-lift); }
.pk1 { transform: rotate(-1.4deg); }
.pk2 { transform: rotate(1deg) translateY(8px); }
.pk3 { transform: rotate(.6deg); }
.pk4 { transform: rotate(-.8deg) translateY(8px); border-top-color: var(--ink); }
.pk-n { position: absolute; top: 10px; inset-inline-end: 16px; font-family: var(--f-doc); font-weight: 700; font-size: 2.2rem; line-height: 1; color: rgba(192, 57, 43, .85); }
.pk h3 { font-size: 1.25rem; margin-bottom: 6px; }
.pk h3[dir="ltr"] { text-align: right; font-family: var(--f-ui); font-weight: 800; color: var(--ink); }
.pk p { margin: 0; color: #3E4550; font-size: .95rem; line-height: 1.85; }
.pk-staple { position: absolute; top: 4px; inset-inline-start: 50%; width: 56px; height: 10px; margin-inline-start: -28px; border: 2.5px solid #8B95A3; border-bottom: 0; border-radius: 2px 2px 0 0; z-index: 3; display: none; }
@media (min-width: 640px) { .pk-staple { display: block; } }

/* =========================================================
   PROCESS — routing slip
   ========================================================= */
.process { padding: clamp(48px, 7vw, 100px) 0; }
.slip { position: relative; padding: clamp(22px, 3.6vw, 48px); overflow: hidden; }
.slip::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(-45deg, var(--stamp) 0 14px, var(--paper) 14px 22px, var(--ink) 22px 36px, var(--paper) 36px 44px); opacity: .85; }
.slip-head { max-width: 720px; margin-bottom: 26px; }
.slip-head h2 { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.2rem); margin-bottom: .35em; }
.slip-head p { color: var(--muted); }
.slip-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.slip-table th, .slip-table td { padding: 12px 10px; text-align: start; border-bottom: 1px solid rgba(29, 61, 143, .18); vertical-align: middle; }
.slip-table thead th { font-family: var(--f-doc); font-size: .95rem; color: var(--muted); border-bottom: 2px solid var(--carbon); font-weight: 700; }
.slip-table tbody th { font-family: var(--f-doc); font-size: 1.08rem; font-weight: 700; color: #141A26; }
.slip-table td:first-child { font-family: var(--f-doc); font-weight: 700; color: var(--stamp); width: 3.2em; font-size: 1.1rem; }
.slip-table td:nth-child(4) { white-space: nowrap; color: var(--ink); font-weight: 700; }
.paraf { width: 90px; }
.paraf svg { width: 64px; height: 28px; }
.paraf path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset .7s ease-out; }
.slip.is-inview .paraf path { stroke-dashoffset: 0; }
.slip.is-inview tr:nth-child(1) .paraf path { transition-delay: .1s; }
.slip.is-inview tr:nth-child(2) .paraf path { transition-delay: .35s; }
.slip.is-inview tr:nth-child(3) .paraf path { transition-delay: .6s; }
.slip.is-inview tr:nth-child(4) .paraf path { transition-delay: .85s; }
.slip.is-inview tr:nth-child(5) .paraf path { transition-delay: 1.1s; }
.slip.is-inview tr:nth-child(6) .paraf path { transition-delay: 1.35s; }
.slip.is-inview tr:nth-child(7) .paraf path { transition-delay: 1.6s; }
.slip.is-inview tr:nth-child(8) .paraf path { transition-delay: 1.85s; }
.slip-foot { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.slip-foot p { margin: 0; color: var(--muted); font-size: .95rem; }
.slip-stamp { flex: none; width: 130px; color: var(--stamp); opacity: 0; transform: scale(1.9) rotate(-18deg); }
.slip.is-inview .slip-stamp { animation: stamp-small .45s cubic-bezier(.5, 0, .75, .1) 2.3s both; }
@keyframes stamp-small { 0% { opacity: 0; transform: scale(1.9) rotate(-18deg); } 100% { opacity: .9; transform: scale(1) rotate(-7deg); } }
@media (max-width: 760px) {
  .slip-table thead { display: none; }
  .slip-table, .slip-table tbody, .slip-table tr { display: block; }
  .slip-table tr { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 0 10px; padding: 14px 0; border-bottom: 1px solid rgba(29,61,143,.18); }
  .slip-table th, .slip-table td { border: 0; padding: 0; }
  .slip-table td:first-child { grid-row: span 3; }
  .slip-table tbody th { grid-column: 2; }
  .slip-table td:nth-child(3) { grid-column: 2; color: #3E4550; font-size: .93rem; }
  .slip-table td:nth-child(4) { grid-column: 2; font-size: .9rem; }
  .slip-table .paraf { grid-column: 3; grid-row: 1 / span 3; width: auto; align-self: center; }
  .paraf svg { width: 52px; }
  .slip-foot { flex-direction: column; align-items: flex-start; }
  .slip-stamp { width: 110px; }
}

/* =========================================================
   TRUST
   ========================================================= */
.trust { padding: clamp(48px, 7vw, 100px) 0; }
.trust-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .trust-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.trust-copy h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.45rem); margin-bottom: .5em; }
.trust-copy > p { color: #3A414C; }
.ledger { margin: 28px 0 8px; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--carbon); }
.ledger div { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.ledger div:nth-child(odd) { border-inline-end: 1px solid var(--line); padding-inline-end: 14px; }
.ledger div:nth-child(even) { padding-inline-start: 16px; }
.ledger dt { color: var(--muted); font-size: .9rem; }
.ledger dd { margin: 0; font-family: var(--f-doc); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--ink); line-height: 1.5; }
.footnote { font-size: .82rem; color: var(--muted); }
.carbon {
  position: relative; padding: clamp(22px, 3vw, 38px);
  background-color: #F7F8FB;
}
.carbon::after { content: ""; position: absolute; inset: 8px -8px -8px 8px; background: #E8ECF3; z-index: -1; border-radius: var(--r); box-shadow: var(--sh-paper); }
.carbon h3 { font-size: 1.3rem; margin-bottom: 14px; color: var(--ink); }
.chain { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: c; }
.chain li { position: relative; display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 12px 0 12px; border-bottom: 1px dashed rgba(29, 61, 143, .3); color: #2B3F73; }
.chain b { font-weight: 800; color: var(--ink); }
.chain li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 1.2em; bottom: -9px; width: 10px; height: 10px; border-inline-end: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); background: #F7F8FB; }
.chain span { font-size: .95rem; line-height: 1.85; }
@media (max-width: 460px) { .chain li { grid-template-columns: 1fr; gap: 0; } }
.verify label { display: block; font-weight: 700; margin-bottom: 8px; }
.verify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.verify input { flex: 1 1 220px; min-height: 44px; border: 0; border-bottom: 1.5px solid var(--carbon); background: transparent; padding: 6px 4px; }
.verify input:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.verify-msg { margin: 8px 0 0; font-size: .9rem; color: var(--stamp); min-height: 1.5em; }

/* =========================================================
   INDUSTRIES — hanging files
   ========================================================= */
.industries { padding: clamp(48px, 7vw, 100px) 0; }
.rail {
  list-style: none; margin: 0; padding: 26px 10px 0; position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 10px;
}
@media (min-width: 700px) { .rail { grid-template-columns: repeat(5, 1fr); } }
.hang a { position: relative; display: block; text-decoration: none; color: var(--text); padding-top: 26px; }
.hang a::before { content: ""; position: absolute; top: 18px; inset-inline: -6px; height: 3px; background: #8E99A7; border-radius: 2px; }
.hang-tab {
  position: absolute; top: 0; inset-inline-start: 12px; z-index: 2;
  padding: 1px 10px; background: rgba(255,255,255,.75); border: 1.5px solid #7E8A99; border-bottom: 0; border-radius: 4px 4px 0 0;
  font-size: .86rem; font-weight: 700; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis;
}
.hang:nth-child(5n+1) .hang-tab { border-color: var(--stamp); }
.hang:nth-child(5n+2) .hang-tab { border-color: var(--ink); }
.hang:nth-child(5n+3) .hang-tab { border-color: #2E7D5B; }
.hang:nth-child(5n+4) .hang-tab { border-color: #B7791F; }
.hang-body {
  position: relative; display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
  min-height: 150px; padding: 16px 14px 14px;
  background: #4E6D62; color: #F4F7F5;
  border-radius: 2px 2px 4px 4px; box-shadow: var(--sh-paper);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.hang:nth-child(even) .hang-body { background: #4A6580; }
.hang:nth-child(3n) .hang-body { background: var(--kraft-dd); }
.hang-body svg { width: 38px; height: 38px; }
.hang-body span { font-size: .84rem; font-weight: 700; line-height: 1.6; }
.hang-body::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: rgba(0,0,0,.08); border-top: 1px solid rgba(255,255,255,.2); border-radius: 0 0 4px 4px; }
.hang a:hover .hang-body, .hang a:focus-visible .hang-body { transform: translateY(-10px); box-shadow: var(--sh-lift); }
.hang a:focus-visible { outline: none; }
.hang a:focus-visible .hang-body { outline: 2.5px solid var(--ink); outline-offset: 3px; }

/* =========================================================
   GUIDES — clippings
   ========================================================= */
.guides { padding: clamp(48px, 7vw, 100px) 0; background: var(--desk-2); }
.clips { display: grid; gap: 26px; }
@media (min-width: 700px) { .clips { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .clips { grid-template-columns: 1.25fr 1fr 1fr 1.1fr; align-items: start; } }
.clipping { position: relative; background: var(--paper); padding: 26px 22px 20px; box-shadow: var(--sh-paper); border-radius: 1px; transition: transform .3s var(--ease-out); }
.clipping:hover { transform: rotate(0deg) translateY(-3px) !important; }
.c1 { transform: rotate(-1deg); }
.c2 { transform: rotate(.8deg); margin-top: 24px; }
.c3 { transform: rotate(-.5deg); }
.c4 { transform: rotate(1.1deg); margin-top: 12px; }
@media (max-width: 699px) { .c2, .c4 { margin-top: 0; } }
.clipping-clip { position: absolute; top: -14px; inset-inline-start: 24px; width: 18px; height: 48px; }
.clipping-meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.clipping h3 { font-size: 1.16rem; line-height: 1.7; margin-bottom: 10px; }
.clipping h3 a { color: #141A26; text-decoration: none; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .3s; }
.clipping h3 a:hover { background-size: 100% 1.5px; color: var(--ink); }
.clipping h3 a::after { content: ""; position: absolute; inset: 0; }
.clipping p:last-child { margin: 0; color: #3E4550; font-size: .94rem; }

/* =========================================================
   FAQ — carbon forms
   ========================================================= */
.faq { padding: clamp(48px, 7vw, 100px) 0; }
.faq-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; } }
.faq-list { display: grid; gap: 10px; }
.qa { background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-paper); border-inline-start: 4px solid var(--kraft); }
.qa summary {
  list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; gap: 14px; align-items: center;
  font-family: var(--f-doc); font-weight: 700; font-size: 1.08rem; color: #141A26; min-height: 52px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.qa[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.qa[open] { border-inline-start-color: var(--ink); }
.qa p { margin: 0; padding: 0 20px 18px; color: #2B3F73; line-height: 1.95; }

/* =========================================================
   FORMS — paper form with typed underlines
   ========================================================= */
.contact { padding: clamp(48px, 7vw, 100px) 0 clamp(64px, 8vw, 120px); }
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; } }
.form-sheet { position: relative; padding: clamp(22px, 3.6vw, 46px); display: grid; gap: 18px; overflow: hidden; }
.form-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); margin-bottom: .3em; }
.form-head p { color: var(--muted); margin: 0; }
.field { display: grid; gap: 2px; }
.field label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 0; border-bottom: 1.5px solid var(--carbon); background: transparent;
  padding: 6px 2px; font-family: var(--f-doc); font-size: 1.12rem; color: var(--ink); border-radius: 0;
}
.field textarea { resize: vertical; line-height: 2.1; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2.1em - 1px), rgba(58,58,58,.25) calc(2.1em - 1px) 2.1em); border-bottom: 0; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D3D8F' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px 8px; background-position: left 6px center; padding-inline-end: 4px; padding-inline-start: 26px; cursor: pointer; }
.field input[dir="ltr"] { text-align: right; font-family: var(--f-ui); letter-spacing: .04em; }
.field input::placeholder { color: rgba(58,58,58,.4); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.field.has-err input { border-bottom-color: var(--stamp); }
.field-err { font-size: .85rem; color: var(--stamp); min-height: 1.3em; }
.form-ok { margin: 0; font-weight: 700; color: var(--ink); min-height: 1.5em; }
.form-stamp { position: absolute; top: 18px; inset-inline-start: 20px; width: 140px; color: var(--stamp); opacity: 0; transform: scale(2) rotate(-20deg); pointer-events: none; }
.form-sheet.is-sent .form-stamp { animation: stamp-small .5s cubic-bezier(.5, 0, .75, .1) both; }
.bizcard {
  position: relative; background: var(--paper); padding: 30px 26px 24px; border-radius: 4px; box-shadow: var(--sh-lift);
  transform: rotate(-1.6deg); max-width: 420px;
}
.bizcard-clip { position: absolute; top: -16px; inset-inline-start: 30px; width: 18px; height: 50px; }
.bizcard-name { font-family: var(--f-doc); font-size: 1.6rem; font-weight: 700; margin: 0; color: #141A26; }
.bizcard-sub { color: var(--muted); font-size: .9rem; border-bottom: 2px solid var(--stamp); padding-bottom: 10px; }
.bizcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bizcard li { display: grid; grid-template-columns: 5em 1fr; gap: 8px; font-size: .95rem; }
.bizcard li > span:first-child { color: var(--muted); }
.bizcard a { font-weight: 700; text-decoration: none; }

/* =========================================================
   FOOTER — filing cabinet
   ========================================================= */
.site-foot { background: var(--steel); color: #D5DBE3; padding-bottom: 90px; }
@media (min-width: 981px) { .site-foot { padding-bottom: 24px; } }
.cabinet { position: relative; height: 64px; background: linear-gradient(#4A5562, var(--steel)); border-top: 1px solid #5E6A78; display: flex; align-items: center; justify-content: center; gap: 22px; }
.cabinet-label { background: #F1EEE6; color: var(--carbon); font-family: var(--f-doc); font-weight: 700; font-size: .9rem; padding: 2px 16px; border: 3px solid #8E99A7; border-radius: 2px; box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.cabinet-handle { width: 90px; height: 14px; border-radius: 0 0 8px 8px; background: linear-gradient(#AEB7C2, #75808E); box-shadow: 0 3px 4px rgba(0,0,0,.35); }
.foot-grid { display: grid; gap: 32px; padding-block: 44px 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-logo { font-family: var(--f-doc); font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.foot-brand p { font-size: .93rem; }
.site-foot a { color: #E9EDF2; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-h { font-family: var(--f-ui); font-size: .95rem; color: var(--kraft-l); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .93rem; }
.foot-hours { margin-top: 12px; font-size: .88rem; color: #AFB8C4; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #4E5967; padding-top: 18px; font-size: .85rem; color: #AFB8C4; }
.foot-base p { margin: 0; }

/* ---------- floating dock ---------- */
.dock { position: fixed; z-index: 60; bottom: 14px; inset-inline-end: 14px; display: flex; gap: 8px; }
.dock-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 50px; padding: 0 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(20, 35, 60, .55);
  transition: transform .2s var(--ease-out);
}
.dock-btn:hover { transform: translateY(-2px); }
.dock-btn svg { width: 22px; height: 22px; }
.dock-wa { background: #1F8A5B; color: #fff; }
.dock-wa:hover { color: #fff; }
.dock-call { background: var(--paper); color: var(--ink); }
@media (min-width: 981px) { .dock-call { display: none; } .dock-wa span { display: none; } .dock-wa { width: 56px; height: 56px; padding: 0; justify-content: center; } .dock-wa svg { width: 26px; height: 26px; } }
@media (max-width: 980px) {
  .dock { inset-inline: 12px; bottom: 10px; }
  .dock-btn { flex: 1; justify-content: center; }
}

/* =========================================================
   SERVICES PAGE — filing cabinet
   ========================================================= */
.crumbs { padding-top: 22px; font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--desk-3); }
.crumbs a { color: var(--muted); }
.page-hero { padding-block: 18px 30px; }
.page-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); margin-bottom: 10px; }
.page-hero p { max-width: 44em; color: #3A414C; font-size: 1.06rem; }

.finderbar { display: grid; gap: 14px; align-items: end; margin: 8px 0 26px; }
@media (min-width: 860px) { .finderbar { grid-template-columns: minmax(0, 1fr) auto; } }
.labeltape { position: relative; display: flex; align-items: center; gap: 10px; background: #20262E; color: #F2F2F2; padding: 6px 16px; border-radius: 3px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); transform: rotate(-.4deg); max-width: 640px; }
.labeltape svg { width: 20px; height: 20px; flex: none; opacity: .75; }
.labeltape input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: #fff; font-weight: 700; letter-spacing: .03em; font-size: 1.05rem; text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.12); }
.labeltape input::placeholder { color: #9AA3AE; font-weight: 500; }
.labeltape input:focus-visible { outline: none; }
.labeltape:focus-within { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.result-count { margin: 0; font-family: var(--f-doc); font-weight: 700; color: var(--carbon); }
.result-count b { color: var(--stamp); }

.cabinet-wrap { display: grid; gap: 22px; align-items: start; padding-bottom: 80px; }
@media (min-width: 1000px) { .cabinet-wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 34px; } }
.drawers-nav { position: relative; }
@media (min-width: 1000px) { .drawers-nav { position: sticky; top: 100px; } }
.ctabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.ctabs::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
  .ctabs { flex-direction: column; overflow: visible; margin: 0; padding: 14px; gap: 8px; background: var(--steel); border-radius: 6px; box-shadow: var(--sh-lift); }
}
.ctab {
  flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 44px; padding: 6px 14px; border: 0; border-radius: 8px 8px 0 0; cursor: pointer; text-align: start;
  background: var(--kraft-l) var(--noise-kraft); color: #4A3416; font-weight: 700; font-size: .9rem;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.ctab b { font-family: var(--f-doc); font-weight: 700; font-size: .85rem; color: rgba(74,52,22,.7); }
.ctab:hover { background-color: #E2C69F; }
.ctab[aria-pressed="true"] { background-color: var(--ink); background-image: none; color: #fff; }
.ctab[aria-pressed="true"] b { color: #C7D3F3; }
@media (min-width: 1000px) {
  .ctab {
    border-radius: 3px; background: linear-gradient(#56616F, #48525F); color: #E9EDF2; padding: 8px 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 #262D36;
  }
  .ctab span { background: #F1EEE6; color: var(--carbon); padding: 0 8px; border-radius: 2px; box-shadow: inset 0 0 0 2px #8E99A7; font-size: .84rem; line-height: 1.9; }
  .ctab b { color: #C3CAD3; }
  .ctab:hover { background: linear-gradient(#5F6B7A, #505B69); transform: translateX(-3px); }
  .ctab[aria-pressed="true"] { background: linear-gradient(#6A5435, #5A4528); transform: translateX(-8px); }
  .ctab[aria-pressed="true"] span { box-shadow: inset 0 0 0 2px var(--stamp); }
  .ctab[aria-pressed="true"] b { color: #F3E3C8; }
}

.drawer { margin-bottom: 40px; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--carbon); }
.drawer-label { display: flex; align-items: center; gap: 12px; }
.drawer-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.6px solid var(--stamp); color: var(--stamp); font-family: var(--f-doc); font-weight: 700; flex: none; }
.drawer h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); }
.drawer-count { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.icard {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: #FFFFFC; padding: 16px 18px 14px; border-radius: 2px; box-shadow: var(--sh-paper);
  background-image: linear-gradient(var(--stamp), var(--stamp)), repeating-linear-gradient(to bottom, transparent 0 calc(1.75rem - 1px), rgba(29,61,143,.12) calc(1.75rem - 1px) 1.75rem);
  background-size: 100% 1.5px, 100% 100%; background-repeat: no-repeat, repeat; background-position: 0 3.1rem, 0 3.1rem;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.icard:nth-child(4n+2) { transform: rotate(.5deg); }
.icard:nth-child(4n+3) { transform: rotate(-.4deg); }
.icard:hover { transform: translateY(-3px) rotate(0); box-shadow: var(--sh-lift); }
.icard[hidden] { display: none; }
.icard-code { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.6rem; min-height: 1.75rem; text-align: right; }
.icard h3 { font-size: 1.05rem; line-height: 1.75rem; margin-top: 4px; }
.icard p { font-size: .9rem; line-height: 1.75rem; color: #3E4550; margin: 0 0 6px; flex: 1; }
.icard a { align-self: flex-start; font-size: .88rem; font-weight: 700; text-decoration: none; padding: 4px 0; }
.icard a::after { content: ""; position: absolute; inset: 0; }
.icard a:hover { text-decoration: underline; }
.icard:focus-within { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.icard a:focus-visible { outline: none; }
.icard--core { background-color: #FBF3E6; }
.icard--core::before { content: ""; position: absolute; top: -8px; inset-inline-start: 40%; width: 36px; height: 14px; background: rgba(200,159,107,.75); transform: rotate(-4deg); }
.icard-flag { position: absolute; top: 14px; inset-inline-end: 14px; font-size: .72rem; font-weight: 700; color: var(--stamp); border: 1.5px solid var(--stamp); padding: 0 6px; border-radius: 2px; transform: rotate(-4deg); line-height: 1.7; opacity: .9; }
.empty-note { display: none; max-width: 420px; margin: 20px auto; padding: 24px; background: var(--note); transform: rotate(-1.5deg); box-shadow: 0 14px 24px -14px rgba(60,50,10,.6); font-family: var(--f-doc); color: #3A3214; }
.empty-note.is-shown { display: block; }
.empty-note p { margin: 0 0 8px; }
mark { background: rgba(247, 229, 141, .8); color: inherit; padding: 0 2px; }

/* =========================================================
   ISO 9001 PAGE
   ========================================================= */
.std-hero { padding: 16px 0 clamp(40px, 6vw, 80px); }
.std-grid { display: grid; gap: 34px; align-items: start; }
@media (min-width: 1000px) { .std-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
.std-hero h1 { font-size: clamp(1.8rem, 1.15rem + 2.6vw, 3.1rem); margin: 10px 0 14px; }
.std-hero .lede { margin-bottom: 22px; }
.spec { position: relative; padding: clamp(20px, 3vw, 34px); }
.spec h2 { font-size: 1.25rem; margin-bottom: 10px; }
.spec dl { margin: 0; display: grid; }
.spec dl div { display: grid; grid-template-columns: 8em 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(29,61,143,.14); }
.spec dt { color: var(--muted); font-size: .92rem; }
.spec dd { margin: 0; font-weight: 700; color: var(--ink); }
.spec-clip { position: absolute; top: -16px; inset-inline-end: 34px; width: 20px; height: 54px; }
.sticky {
  position: relative; background: var(--note); color: #3A3214; padding: 18px 18px 16px; box-shadow: 0 14px 22px -14px rgba(60,50,10,.6);
  font-family: var(--f-doc); line-height: 1.85;
}
.sticky::before { content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: rgba(255,255,255,.5); transform: rotate(-2deg); }
.spec + .sticky { margin: -14px 20px 0 auto; max-width: 330px; transform: rotate(2.5deg); }
.sticky b { display: block; color: #2A240C; }

.block { padding: clamp(44px, 6vw, 90px) 0; }
.block--alt { background: var(--desk-2); }
.two { display: grid; gap: 30px; }
@media (min-width: 960px) { .two { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } }

/* clause dividers */
.dividers { display: grid; align-items: start; }
@media (min-width: 820px) { .dividers { grid-template-columns: minmax(0, 1fr) 132px; } }
.dividers .dv-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.dividers .dv-list::-webkit-scrollbar { display: none; }
@media (min-width: 820px) { .dividers .dv-list { order: 2; flex-direction: column; overflow: visible; margin: 18px 0 0; gap: 6px; } }
.dv {
  flex: none; border: 0; cursor: pointer; min-height: 44px; padding: 8px 14px; text-align: start;
  background: var(--paper-2); color: var(--carbon); font-weight: 700; font-size: .88rem; line-height: 1.4;
  border-radius: 8px 8px 0 0; box-shadow: inset 0 -5px 6px -5px rgba(0,0,0,.25);
  transition: transform .2s var(--ease-out);
}
.dv b { display: block; font-family: var(--f-doc); font-size: 1.1rem; color: var(--stamp); }
@media (min-width: 820px) {
  .dv { border-radius: 0 10px 10px 0; box-shadow: inset 6px 0 6px -6px rgba(0,0,0,.25); transform: translateX(-10px); }
  .dv:hover { transform: translateX(-4px); }
}
.dv:nth-child(odd) { background: #EAF0F7; }
.dv[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: none; transform: none; position: relative; z-index: 2; }
.dv-sheet { background: var(--paper); box-shadow: var(--sh-paper); border-radius: var(--r); padding: clamp(20px, 3vw, 40px); min-height: 280px; position: relative; z-index: 1; }
.dv-panel h3 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); margin-bottom: 8px; }
.dv-panel h3 span { color: var(--stamp); margin-inline-end: 6px; }
.dv-panel ul { margin: 10px 0 0; padding-inline-start: 1.2em; }
.dv-panel li { margin-bottom: 6px; }
.dv-panel li::marker { color: var(--kraft-d); }
.dv-panel .dv-out { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(29,61,143,.3); color: var(--ink); font-weight: 500; }
.dv-panel:not([hidden]) { animation: panel-in .3s var(--ease-out); }

.principles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.principles li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 700; box-shadow: 0 2px 0 rgba(29,61,143,.25); }
.principles li:nth-child(3n+2) { transform: rotate(-1.2deg); }
.principles li:nth-child(3n) { transform: rotate(1deg); }
.principles svg { width: 22px; height: 22px; fill: none; stroke: var(--stamp); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* roadmap checklist */
.checklist { position: relative; padding: clamp(22px, 3.4vw, 48px); padding-inline-start: clamp(40px, 6vw, 84px); }
.checklist::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: clamp(26px, 4vw, 58px); width: 1.5px; background: rgba(192,57,43,.4); }
.checklist-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: flex-end; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--carbon); }
.checklist-head h2 { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.2rem); }
.progress-note { font-family: var(--f-doc); font-weight: 700; color: var(--stamp); margin: 0; }
.rm { list-style: none; margin: 0; padding: 0; }
.rm-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid rgba(29,61,143,.14); }
.rm-tick { grid-row: span 2; width: 34px; height: 34px; border: 1.6px solid var(--carbon); border-radius: 2px; background: var(--paper); padding: 0; cursor: pointer; position: relative; margin-top: 4px; }
.rm-tick svg { position: absolute; width: 46px; height: 40px; top: -12px; inset-inline-start: -4px; overflow: visible; }
.rm-tick path { stroke-width: 3.2; stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset .4s ease-out; }
.rm-item.is-done .rm-tick path { stroke-dashoffset: 0; }
.rm-tick:hover { border-color: var(--ink); }
.rm-item h3 { font-size: 1.15rem; line-height: 1.7; }
.rm-item h3 small { font-family: var(--f-ui); font-size: .8rem; color: var(--stamp); font-weight: 700; margin-inline-start: 6px; }
.rm-item p { margin: 0; color: #3E4550; font-size: .96rem; }
.rm-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px !important; font-size: .86rem !important; color: var(--ink) !important; font-weight: 500; }
.rm-item.is-done h3 { color: var(--ink); }

.memo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.memo-list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(29,61,143,.14); }
.memo-list li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid var(--stamp); transform: translateY(-2px); }
.memo-list b { color: #141A26; }
.paper-pad { padding: clamp(20px, 3vw, 38px); position: relative; }

.timebars { display: grid; gap: 22px; margin-top: 8px; }
.tb-label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; gap: 10px; }
.tb-label span:last-child { color: var(--ink); font-family: var(--f-doc); }
.tb-track { position: relative; height: 26px; background-image: repeating-linear-gradient(to left, rgba(29,61,143,.2) 0 1px, transparent 1px calc(100% / 6)); border-bottom: 1.5px solid var(--carbon); }
.tb-fill { position: absolute; top: 5px; bottom: 5px; inset-inline-start: 0; background: var(--kraft) var(--noise-kraft); border-radius: 2px; transform-origin: right; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.timebars.is-inview .tb-fill { transform: scaleX(1); }
.tb-fill.a { width: 33.33%; inset-inline-start: 16.66%; }
.tb-fill.b { width: 50%; inset-inline-start: 50%; background-color: var(--ink); transition-delay: .25s; }
.tb-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 4px; }

.factors { list-style: none; margin: 0; padding: 0; }
.factors li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid rgba(29,61,143,.14); align-items: center; }
.factors b { color: #141A26; }
.factors small { grid-column: 1; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.dots { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); }
.dots i.on { background: var(--ink); }

.notes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: start; padding-top: 14px; }
.note-q { background: var(--note); color: #3A3214; box-shadow: 0 16px 24px -16px rgba(60,50,10,.65); position: relative; transition: transform .3s var(--ease-out); }
.note-q:nth-child(3n+1) { transform: rotate(-1.6deg); }
.note-q:nth-child(3n+2) { transform: rotate(1.2deg); background: #F9D9A8; }
.note-q:nth-child(3n) { transform: rotate(-.5deg); background: #DCEBC6; }
.note-q[open] { transform: rotate(0) scale(1.01); z-index: 2; }
.note-q::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(255,255,255,.5); transform: rotate(-3deg); }
.note-q summary { list-style: none; cursor: pointer; padding: 22px 20px 14px; font-family: var(--f-doc); font-weight: 700; font-size: 1.1rem; line-height: 1.7; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.note-q summary::-webkit-details-marker { display: none; }
.note-q summary::after { content: "برگردانید و جواب را بخوانید"; font-family: var(--f-ui); font-size: .78rem; font-weight: 500; color: rgba(58,50,20,.7); }
.note-q[open] summary::after { content: "پاسخ"; color: var(--stamp); font-weight: 700; }
.note-q p { margin: 0; padding: 0 20px 20px; line-height: 1.95; font-size: .97rem; }

/* =========================================================
   START — application form wizard
   ========================================================= */
.wiz-page { padding: 18px 0 100px; }
.wiz-hero { margin-bottom: 18px; }
.wiz-hero h1 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem); margin-bottom: 4px; }
.wiz-hero p { color: var(--muted); margin: 0; max-width: 42em; }
.wiz { position: relative; display: grid; gap: 0; align-items: start; }
@media (min-width: 900px) { .wiz { grid-template-columns: minmax(0, 1fr) 150px; } }
.wiz-tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; position: relative; z-index: 0; }
.wiz-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .wiz-tabs { order: 2; flex-direction: column; margin: 34px 0 0; overflow: visible; gap: 6px; } }
.wiz-tab {
  position: relative; flex: none; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 12px; border: 0;
  background: var(--paper-2); color: var(--muted); font-size: .84rem; font-weight: 700; border-radius: 8px 8px 0 0; cursor: default;
  box-shadow: inset 0 -5px 6px -5px rgba(0,0,0,.22);
}
.wiz-tab .n { font-family: var(--f-doc); font-size: 1rem; color: var(--carbon); }
@media (min-width: 900px) {
  .wiz-tab { width: 100%; border-radius: 0 10px 10px 0; transform: translateX(-12px); box-shadow: inset 6px 0 6px -6px rgba(0,0,0,.22); }
}
.wiz-tab.is-current { background: var(--paper); color: var(--ink); box-shadow: none; transform: none; z-index: 2; }
.wiz-tab.is-done { color: var(--carbon); cursor: pointer; }
.wiz-tab.is-done:hover { color: var(--ink); }
.wiz-tab .mini-stamp { position: absolute; top: 3px; inset-inline-end: 4px; width: 22px; height: 22px; border: 1.6px solid var(--stamp); border-radius: 50%; color: var(--stamp); opacity: 0; transform: scale(1.8) rotate(-20deg); display: grid; place-items: center; }
.wiz-tab .mini-stamp svg { width: 14px; height: 12px; fill: none; stroke: var(--stamp); stroke-width: 3; stroke-linecap: round; }
.wiz-tab.is-done .mini-stamp { opacity: .9; transform: scale(1) rotate(-12deg); transition: transform .3s cubic-bezier(.5,0,.75,.1), opacity .2s; }
.wiz-tab.is-done { padding-inline-end: 34px; }

.wiz-stack { position: relative; perspective: 2200px; z-index: 1; }
.wiz-paper {
  position: relative; background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-paper);
  padding: clamp(20px, 3.4vw, 48px); padding-top: clamp(26px, 3.6vw, 44px); min-height: 520px; z-index: 1;
}
.wiz-stack::after { content: ""; position: absolute; inset: 6px -6px -6px 6px; background: #EFEFEA; border-radius: var(--r); z-index: 0; box-shadow: var(--sh-paper); }
.wiz-stack::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; background: #E6E6E0; border-radius: var(--r); z-index: 0; box-shadow: var(--sh-paper); }
.form-masthead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-bottom: 12px; margin-bottom: 22px; border-bottom: 2px solid var(--carbon); font-size: .85rem; color: var(--muted); }
.form-masthead b { font-family: var(--f-doc); color: #141A26; font-size: 1.05rem; }
.step { transform-origin: 50% 0; }
.step[hidden] { display: none; }
.step.turn-out { animation: page-up .42s cubic-bezier(.55,.06,.68,.19) both; }
.step.turn-in { animation: page-in .45s var(--ease-out) both; }
.step.turn-back { animation: page-down .45s var(--ease-out) both; }
@keyframes page-up { to { transform: rotateX(70deg) translateY(-30px); opacity: 0; } }
@keyframes page-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes page-down { from { transform: rotateX(70deg) translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.step-q { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); margin-bottom: 4px; }
.step-q span { color: var(--stamp); margin-inline-end: 6px; }
.step-hint { color: var(--muted); margin-bottom: 18px; }
.step fieldset { border: 0; margin: 0; padding: 0; }
.opts { display: grid; gap: 0 26px; }
@media (min-width: 640px) { .opts { grid-template-columns: 1fr 1fr; } }
.opts .check { border-bottom: 1px solid rgba(29,61,143,.14); min-height: 54px; }
.opts .check small { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.opts .check .rec { display: inline-block; margin-inline-start: 6px; font-size: .72rem; font-weight: 700; color: var(--stamp); border: 1.3px solid var(--stamp); padding: 0 5px; border-radius: 2px; transform: rotate(-3deg); vertical-align: middle; line-height: 1.6; }
.sub-q { margin-top: 26px; }
.sub-q legend { font-family: var(--f-doc); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--carbon); border-radius: 2px; font-weight: 700; background: var(--paper); transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(58,58,58,.3); }
.wiz-nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-text { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; min-height: 44px; padding: 0 6px; }
.btn-text:hover { color: var(--ink); }
.wiz-err { color: var(--stamp); font-size: .9rem; margin: 10px 0 0; min-height: 1.4em; }

/* result */
.result-head { position: relative; padding-inline-end: 140px; }
.result-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.result-stamp { position: absolute; top: -10px; inset-inline-end: 0; width: 130px; color: var(--stamp); opacity: 0; }
.step.is-final .result-stamp { animation: stamp-small .5s cubic-bezier(.5,0,.75,.1) .5s both; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1.5px solid var(--carbon); margin: 18px 0 24px; }
.summary div { padding: 10px 12px; border-inline-start: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary dt { font-size: .78rem; color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; color: var(--ink); }
.r-stds { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.r-stds li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 14px; background: #FBF3E6; border-inline-start: 4px solid var(--kraft); }
.r-stds b { color: var(--ink); white-space: nowrap; }
.r-stds span { color: #3E4550; font-size: .93rem; }
@media (max-width: 520px) { .r-stds li { grid-template-columns: 1fr; } }
.r-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0 10px; }
.r-total strong { font-family: var(--f-doc); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--stamp); }
.r-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--carbon); }
.r-steps li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid rgba(29,61,143,.14); align-items: baseline; }
.r-steps .k { font-family: var(--f-doc); font-weight: 700; color: var(--stamp); }
.r-steps .w { color: var(--ink); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.r-steps .bar { grid-column: 2 / -1; height: 6px; position: relative; background: rgba(29,61,143,.08); }
.r-steps .bar i { position: absolute; top: 0; bottom: 0; background: var(--kraft); border-radius: 1px; }
.lead { margin-top: 30px; padding: clamp(18px, 3vw, 30px); border: 1.5px dashed var(--carbon); position: relative; }
.lead h3 { font-size: 1.3rem; margin-bottom: 4px; }
.lead > p { color: var(--muted); }
.lead-grid { display: grid; gap: 10px 22px; }
@media (min-width: 640px) { .lead-grid { grid-template-columns: 1fr 1fr; } }
.lead .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.lead .form-stamp { top: auto; bottom: 14px; inset-inline-start: auto; inset-inline-end: 18px; width: 120px; }
.lead.is-sent .form-stamp { animation: stamp-small .5s cubic-bezier(.5,0,.75,.1) both; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- print (wizard result) ---------- */
@media print {
  body { background: #fff; }
  .site-head, .site-foot, .dock, .wiz-tabs, .wiz-nav, .lead, .wiz-hero, .crumbs { display: none !important; }
  .wiz-paper { box-shadow: none; }
  .wiz-stack::before, .wiz-stack::after { display: none; }
}

/* shared sub-headings */
.sec-h { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: .5em; }
.sec-h3 { font-size: 1.15rem; margin: 26px 0 12px; }

/* let grid children shrink below their scrollable content */
.cabinet-wrap > *, .wiz > *, .hero-grid > *, .finder-grid > *, .two > *, .std-grid > *, .dividers > *, .trust-grid > *, .contact-grid > *, .tender-grid > *, .faq-grid > * { min-width: 0; }
