/* DigiGovah — concept 01 «مُهر» · Guilloche / security paper
   Palette: banknote green, ochre, cool paper, ink, stamp red. */

:root {
  --green: #0E4D45;
  --green-2: #16695E;
  --green-3: #2C8576;
  --green-ink: #0A3631;
  --ochre: #B8862B;
  --ochre-ink: #7E5B16;      /* AA on paper */
  --ochre-soft: #E7D3A8;
  --paper: #EEF1EC;
  --paper-2: #E3E9E3;
  --paper-3: #F7F9F5;
  --ink: #1B2A2F;
  --ink-2: #44555A;
  --red: #B3261E;
  --red-ink: #8E1D17;
  --rule: rgba(14, 77, 69, .22);
  --rule-2: rgba(14, 77, 69, .12);
  --f-display: 'Markazi Text', 'Vazirmatn', serif;
  --f-body: 'Vazirmatn', system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background-color: var(--paper);
  /* faint security underprint: engraved wave lines */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='14'%3E%3Cpath d='M0 7 Q12 1 24 7 T48 7 T72 7 T96 7' fill='none' stroke='%230E4D45' stroke-opacity='.045' stroke-width='.7'/%3E%3C/svg%3E");
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .3em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); }
bdi[dir="ltr"] { font-family: var(--f-body); font-feature-settings: 'tnum'; letter-spacing: .01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--paper); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; transition: transform .2s; }
.skip:focus { transform: translateY(72px); color: var(--paper); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Microtext: the concept's divider, never an eyebrow label ---------- */
.microline {
  display: block; overflow: hidden; white-space: nowrap;
  font-size: 6.5px; line-height: 1.6; letter-spacing: .04em;
  color: var(--green); opacity: .7;
  border-block: 1px solid var(--rule);
  padding-block: 1px;
  user-select: none;
}
.thread { background: var(--green); height: 13px; overflow: hidden; }
.thread .microline { color: var(--ochre-soft); border: 0; opacity: .85; font-size: 7px; line-height: 13px; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .65em 1.4em;
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  color: var(--fg); background: var(--bg);
  border: 1px solid currentColor; border-radius: 3px;
  cursor: pointer; position: relative; isolation: isolate;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  --bg: var(--green); --fg: #F4F7F2;
  border-color: var(--green);
  /* engraved double frame, like a note's inner border */
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(231, 211, 168, .7);
}
.btn-primary:hover { --bg: var(--green-ink); color: #fff; box-shadow: inset 0 0 0 3px var(--green-ink), inset 0 0 0 4px var(--ochre); }
.btn-ghost:hover { --bg: rgba(14, 77, 69, .07); color: var(--green); }
.btn-red { --bg: var(--red); --fg: #fff; border-color: var(--red); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255, 255, 255, .4); }
.btn-red:hover { --bg: var(--red-ink); color: #fff; }
.btn-sm { min-height: 40px; padding: .4em 1em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: .8em 1.7em; font-size: 1.06rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 241, 236, .97);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s;
}
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px rgba(14, 50, 45, .45); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 46px; height: 46px; }
.brand-mark .bm path { fill: none; stroke: var(--green); stroke-width: .45; }
.brand-mark .bm .bm-knot { stroke: var(--ochre); stroke-width: .6; }
.brand-mark circle { fill: none; stroke: var(--green); stroke-width: .8; }
@media (prefers-reduced-motion: no-preference) {
  .brand-mark .bm { transform-origin: 24px 24px; transition: transform 1.4s var(--ease); }
  .brand:hover .brand-mark .bm { transform: rotate(40deg); }
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--green); }
.brand-txt small { font-size: .74rem; color: var(--ink-2); margin-top: 3px; }

.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem;
  background: linear-gradient(var(--ochre), var(--ochre)) no-repeat center bottom / 0 1.5px;
  transition: background-size .3s var(--ease), color .2s;
}
.nav a:hover { color: var(--green); background-size: calc(100% - 24px) 1.5px; }
.nav a[aria-current="page"] { color: var(--green); background-size: calc(100% - 24px) 1.5px; }
.head-cta { display: flex; align-items: center; gap: 14px; }
.head-tel { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.head-tel svg { width: 18px; height: 18px; color: var(--green); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--rule); background: transparent; border-radius: 3px; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(27, 42, 47, .35);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.drawer-panel {
  background: var(--paper); height: 100%; overflow-y: auto; padding: calc(var(--head-h) + 26px) var(--gut) 120px;
  transform: translateY(-14px); transition: transform .35s var(--ease);
  border-top: 1px solid var(--rule);
}
.menu-open .drawer { opacity: 1; visibility: visible; transition: opacity .3s; }
.menu-open .drawer-panel { transform: none; }
.menu-open { overflow: hidden; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-2); font-family: var(--f-display); font-size: 1.6rem; text-decoration: none; color: var(--ink); }
.drawer nav a small { font-family: var(--f-body); font-size: .78rem; color: var(--ink-2); }
.drawer-contact { margin-top: 24px; display: grid; gap: 10px; }

@media (max-width: 1100px) { .head-tel { display: none; } }
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: block; }
  .head-cta { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  :root { --head-h: 64px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-txt b { font-size: 1.55rem; }
  .brand-txt small { display: none; }
  .head-cta .btn { display: none; }
}

/* ---------- Generic section rhythm ---------- */
.sec { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--ink-2); font-size: 1.07rem; max-width: 62ch; }
.sec-head .microline { margin-bottom: 22px; max-width: 220px; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); }

/* ---------- Guilloche path defaults ---------- */
.g-green path { fill: none; stroke: var(--green); stroke-width: .5; }
.g-ochre path { fill: none; stroke: var(--ochre); stroke-width: .5; }
.g-red path { fill: none; stroke: var(--red); stroke-width: .5; }
.g-paper path { fill: none; stroke: rgba(231, 211, 168, .55); stroke-width: .6; }
.draw path, .draw-io path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.no-js .draw path, .no-js .draw-io path { stroke-dashoffset: 0; }
.draw-io.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease); }
.draw-io.is-drawn path:nth-child(2n) { transition-delay: .15s; }
.draw-io.is-drawn path:nth-child(3n) { transition-delay: .3s; }

/* ================================================================
   HOME — hero
   ================================================================ */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { /* giant faint rosette behind */
  content: ""; position: absolute; inset-inline-end: -220px; top: -160px; width: 720px; height: 720px;
  background: radial-gradient(circle, transparent 54%, rgba(14, 77, 69, .05) 55%, transparent 56%, transparent 60%, rgba(14, 77, 69, .05) 61%, transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-serial { display: inline-flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--ink-2); margin-bottom: 18px; }
.hero-serial b { font-family: var(--f-display); font-size: 1.15rem; color: var(--red); font-weight: 600; letter-spacing: .04em; }
.hero-serial::before { content: ""; width: 34px; height: 1px; background: var(--ochre); }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.18; margin-bottom: .45em; font-weight: 700; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 em::after { /* engraved underline */
  content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .14em;
  background: repeating-linear-gradient(90deg, var(--ochre) 0 1px, transparent 1px 3px);
  opacity: .8;
}
.hero .lede { max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 28px; justify-content: start; }
.hero-proof li { font-size: .88rem; color: var(--ink-2); padding-inline-start: 14px; border-inline-start: 1px solid var(--ochre); line-height: 1.5; }
.hero-proof b { display: block; color: var(--ink); font-size: .98rem; }

.hero-cert { margin: 0; }
.cert-stage { position: relative; filter: drop-shadow(0 26px 34px rgba(14, 50, 45, .18)) drop-shadow(0 2px 3px rgba(14, 50, 45, .12)); transform: rotate(-1.2deg); }
.cert-svg { width: 100%; height: auto; }
.cert-svg .paper { fill: var(--paper-3); }
.cert-svg .under path { fill: none; stroke: var(--green); stroke-width: .25; opacity: .22; }
.cert-svg .c-title { font-family: var(--f-display); font-size: 46px; font-weight: 700; fill: var(--green); }
.cert-svg .c-sub { font-family: var(--f-body); font-size: 11px; fill: var(--ink-2); letter-spacing: .02em; }
.cert-svg .c-body { font-family: var(--f-display); font-size: 19px; fill: var(--ink); }
.cert-svg .c-name { font-family: var(--f-display); font-size: 38px; font-weight: 700; fill: var(--ink); }
.cert-svg .c-rule { stroke: var(--ochre); stroke-width: .8; stroke-dasharray: 2 2; }
.cert-svg .c-std { font-family: var(--f-body); font-size: 12.5px; font-weight: 600; fill: var(--green); letter-spacing: .06em; }
.cert-svg .c-serial { font-family: var(--f-display); font-size: 17px; fill: var(--red); letter-spacing: .06em; }
.cert-svg .c-label { font-family: var(--f-body); font-size: 8.5px; fill: var(--ink-2); }
.cert-svg .c-sign { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.cert-svg .mt { font-family: var(--f-body); font-size: 4.3px; fill: var(--green); opacity: .8; }
.cert-svg .corner path { fill: none; stroke: var(--ochre); stroke-width: .45; }
.cert-svg .water path { fill: none; stroke: var(--green); stroke-width: .35; stroke-opacity: .32; }
.cert-svg .inner-rule { fill: none; stroke: var(--ochre); stroke-width: .7; }
.cert-svg .gb1 path { fill: none; stroke: var(--green); stroke-width: .55; }
.cert-svg .gb2 path { fill: none; stroke: var(--ochre); stroke-width: .5; }

/* ceremony: hidden states only when JS will play it */
.js .hero-cert .gb1 path, .js .hero-cert .gb2 path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero-cert .corner, .js .hero-cert .water, .js .hero-cert .c-txt, .js .hero-cert .mt { opacity: 0; }
.js .hero-cert .corner { transform: rotate(-30deg) scale(.6); transform-box: fill-box; transform-origin: center; }
.js .hero-cert .seal { opacity: 0; }
.hero-cert.go .gb1 path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(.65, .05, .25, 1); }
.hero-cert.go .gb1 path:nth-child(2) { transition-delay: .08s; } .hero-cert.go .gb1 path:nth-child(3) { transition-delay: .16s; }
.hero-cert.go .gb1 path:nth-child(4) { transition-delay: .24s; } .hero-cert.go .gb1 path:nth-child(5) { transition-delay: .32s; }
.hero-cert.go .gb1 path:nth-child(6) { transition-delay: .4s; }
.hero-cert.go .gb2 path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.65, .05, .25, 1) .5s; }
.hero-cert.go .corner { opacity: 1; transform: none; transition: opacity .8s ease 1.1s, transform 1.2s var(--ease) 1.1s; }
.hero-cert.go .water { opacity: 1; transition: opacity 1.4s ease 1.3s; }
.hero-cert.go .mt { opacity: .8; transition: opacity 1s ease 1.4s; }
.hero-cert.go .c-txt { opacity: 1; transition: opacity .7s ease calc(1.2s + var(--d, 0s)); }
.hero-cert.go .seal { animation: stamp .62s cubic-bezier(.3, .0, .3, 1) 2.45s both; }
.hero-cert.go .seal-ink { animation: ink 1.1s ease-out 2.78s both; }
.hero-cert.go .cert-stage { animation: thud .32s ease-out 2.82s; }
.hero-cert.instant *, .hero-cert.instant { transition: none !important; animation: none !important; }
.hero-cert.instant .seal, .hero-cert.instant .corner, .hero-cert.instant .water, .hero-cert.instant .c-txt, .hero-cert.instant .mt { opacity: 1; transform: none; }
.hero-cert.instant .seal { transform: rotate(-9deg); }
.hero-cert.instant .seal-ink { opacity: .16; }
@keyframes stamp {
  0% { opacity: 0; transform: translateY(-40px) scale(1.7) rotate(-22deg); }
  55% { opacity: 1; transform: translateY(0) scale(.9, .82) rotate(-8deg); }
  72% { transform: scale(1.05, 1.03) rotate(-9.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-9deg); }
}
@keyframes ink { 0% { opacity: 0; transform: scale(.55); } 35% { opacity: .38; } 100% { opacity: .16; transform: scale(1.14); } }
@keyframes thud { 0%, 100% { transform: rotate(-1.2deg); } 40% { transform: rotate(-1.2deg) translateY(3px) scale(.995); } }

/* The seal — the only element allowed a foil shimmer */
.seal { position: absolute; left: 6.5%; top: 64%; width: 19%; aspect-ratio: 1; transform: rotate(-9deg); }
.seal svg { width: 100%; height: 100%; position: relative; z-index: 1; overflow: visible; }
.seal-ink { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(179, 38, 30, .55) 0 38%, rgba(179, 38, 30, .18) 55%, transparent 70%); opacity: 0; filter: blur(2px); }
.seal-foil { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; z-index: 2; mix-blend-mode: soft-light; pointer-events: none; }
.seal-foil::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 12%, rgba(255, 255, 255, .7) 18%, transparent 26%, rgba(255, 214, 140, .65) 46%, transparent 54%, rgba(160, 230, 255, .5) 72%, transparent 80%);
}
@media (prefers-reduced-motion: no-preference) {
  .seal-foil::before { animation: foil 7s linear infinite; }
}
@keyframes foil { to { transform: rotate(360deg); } }
.seal .s-ring path, .seal .s-rose path { fill: none; stroke: #F6D9D4; stroke-width: .5; }
.seal .s-body { fill: var(--red); }
.seal .s-edge { fill: var(--red); }
.seal .s-txt { font-family: var(--f-body); font-size: 7.4px; font-weight: 700; fill: #FBE9E6; letter-spacing: .5px; }
.seal .s-core { font-family: var(--f-display); font-size: 25px; font-weight: 700; fill: #FFF3F1; }
.seal .s-line { stroke: #F6D9D4; stroke-width: .8; fill: none; }

.cert-name { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.cert-name label { font-size: .88rem; color: var(--ink-2); }
.cert-name input {
  width: min(280px, 100%); border: 0; border-bottom: 1px dashed var(--ochre); background: transparent;
  padding: 6px 4px; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink);
}
.cert-name input:focus { outline: none; border-bottom: 1.5px solid var(--green); }
.cert-name input:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cert { order: 2; max-width: 680px; margin-inline: auto; width: 100%; }
  .hero-proof { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .hero-proof { grid-template-columns: 1fr; } .hero-actions .btn { width: 100%; } }

/* ================================================================
   HOME — finder
   ================================================================ */
.finder { background: var(--paper-3); border-block: 1px solid var(--rule); }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.finder fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.finder legend, .field-label { font-weight: 600; margin-bottom: 10px; font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 7px 16px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-size: .95rem; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span b { font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.chip:hover span { border-color: var(--green); }
.chip input:checked + span { background: var(--green); color: #F4F7F2; border-color: var(--green); }
.chip input:checked + span b { color: var(--ochre-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 2px; }
.select {
  appearance: none; width: 100%; max-width: 360px; min-height: 48px; padding: 8px 14px; padding-inline-end: 40px;
  border: 1px solid var(--rule); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E4D45' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 14px center;
  border-radius: 3px;
}
.finder-out {
  display: block; position: relative; min-height: 340px; padding: 30px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--green);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--ochre);
}
.finder-out .fo-empty { color: var(--ink-2); display: grid; place-items: center; text-align: center; min-height: 280px; gap: 14px; }
.finder-out .fo-empty svg { width: 120px; height: 120px; opacity: .8; }
.finder-out .fo-empty { display: grid; }
.fo-head { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 14px; color: var(--green); }
.fo-list { list-style: none; padding: 0; margin: 0 0 16px; }
.fo-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--rule); align-items: baseline; }
.fo-code { font-weight: 700; color: var(--green); }
.fo-why { font-size: .93rem; color: var(--ink-2); }
.fo-time { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: .93rem; margin-bottom: 20px; }
.fo-time b { font-family: var(--f-display); font-size: 1.5rem; color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .finder-out.flash .fo-list li { animation: inkIn .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
}
@keyframes inkIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
#finderDest[hidden] { display: none; }
@media (max-width: 860px) { .finder-grid { grid-template-columns: 1fr; } .fo-list li { grid-template-columns: 1fr; gap: 0; } }

/* ================================================================
   HOME — tender package (deep intaglio band)
   ================================================================ */
.intaglio {
  background-color: var(--green-ink);
  background-image:
    repeating-linear-gradient(135deg, rgba(231, 211, 168, .035) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 80% 0%, rgba(44, 133, 118, .45), transparent 60%);
  color: #DCE6E0;
}
.intaglio h2, .intaglio h3 { color: #F4F1E6; }
.intaglio .sec-head p { color: #B9CCC4; }
.intaglio .microline { color: var(--ochre-soft); border-color: rgba(231, 211, 168, .25); }
.intaglio a:not(.btn) { color: var(--ochre-soft); }
.tender-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tender-note {
  position: relative; padding: 30px; border: 1px solid rgba(231, 211, 168, .45);
  box-shadow: inset 0 0 0 6px var(--green-ink), inset 0 0 0 7px rgba(231, 211, 168, .25);
}
.tender-note .denom-big { font-family: var(--f-display); font-size: clamp(6rem, 12vw, 9.5rem); line-height: .8; color: var(--ochre); font-weight: 700; display: block; }
.tender-note .denom-cap { display: block; margin: 10px 0 20px; color: #F4F1E6; font-family: var(--f-display); font-size: 1.5rem; }
.tender-note svg { position: absolute; inset-inline-end: 18px; top: 18px; width: 150px; height: 150px; opacity: .9; }
.tender-note p { color: #B9CCC4; font-size: .95rem; }
.chain { list-style: none; margin: 0; padding: 0; counter-reset: c; position: relative; }
.chain::before { content: ""; position: absolute; inset-inline-start: 25px; top: 28px; bottom: 28px; width: 1px; background: repeating-linear-gradient(to bottom, var(--ochre) 0 4px, transparent 4px 8px); }
.chain li { counter-increment: c; position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(231, 211, 168, .14); align-items: start; }
.chain li::before {
  content: counter(c, persian); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-ink); border: 1px solid var(--ochre); color: var(--ochre-soft); font-family: var(--f-display); font-size: 1.6rem; position: relative; z-index: 1;
}
.chain h3 { font-size: 1.4rem; margin-bottom: 4px; }
.chain p { margin: 0; color: #B9CCC4; font-size: .93rem; }
.chain .t { font-size: .82rem; color: var(--ochre-soft); white-space: nowrap; padding-top: 6px; }
.tender-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.intaglio .btn-ghost { color: #F4F1E6; }
.intaglio .btn-ghost:hover { --bg: rgba(231, 211, 168, .1); color: #fff; }
.intaglio .btn-primary { --bg: var(--ochre); --fg: var(--green-ink); border-color: var(--ochre); box-shadow: inset 0 0 0 3px var(--ochre), inset 0 0 0 4px rgba(10, 54, 49, .5); }
.intaglio .btn-primary:hover { --bg: #CC9A3C; color: var(--green-ink); }
@media (max-width: 900px) { .tender-grid { grid-template-columns: 1fr; } .chain li { grid-template-columns: 52px 1fr; } .chain .t { grid-column: 2; padding-top: 0; } }

/* ================================================================
   HOME — denominations (service categories)
   ================================================================ */
.notes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.note {
  --tone: var(--green);
  grid-column: span 6; position: relative; display: grid; grid-template-columns: 1fr 128px; gap: 18px;
  min-height: 210px; padding: 24px 26px; text-decoration: none; color: var(--ink);
  background: var(--paper-3); border: 1px solid var(--tone);
  box-shadow: inset 0 0 0 5px var(--paper-3), inset 0 0 0 6px color-mix(in srgb, var(--tone) 45%, transparent);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.note:nth-child(4n+1), .note:nth-child(4n+4) { grid-column: span 7; }
.note:nth-child(4n+2), .note:nth-child(4n+3) { grid-column: span 5; }
.note:nth-child(even) { grid-template-columns: 128px 1fr; }
.note:nth-child(even) .note-rose { order: -1; }
.note::after { /* corner value watermark */
  content: attr(data-value); position: absolute; inset-inline-end: 18px; bottom: -.18em;
  font-family: var(--f-display); font-weight: 700; font-size: 6.5rem; line-height: 1; color: var(--tone); opacity: .07; pointer-events: none;
}
.note:nth-child(even)::after { inset-inline-end: auto; inset-inline-start: 18px; }
.note:hover { transform: translateY(-3px); color: var(--ink); }
.note h3 { margin-bottom: 6px; color: var(--tone); }
.note p { font-size: .93rem; color: var(--ink-2); margin-bottom: 12px; }
.note .codes { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.note .val { display: inline-flex; align-items: baseline; gap: 6px; font-size: .8rem; color: var(--ink-2); margin-bottom: 8px; }
.note .val b { font-family: var(--f-display); font-size: 1.9rem; color: var(--tone); line-height: 1; }
.note-rose { width: 128px; height: 128px; align-self: center; }
.note-rose .ro-ring { fill: none; stroke: var(--tone); stroke-width: .4; stroke-dasharray: .6 1.2; }
.note-rose .ro-a path { fill: none; stroke: var(--tone); stroke-width: .28; }
.note-rose .ro-b path { fill: none; stroke: var(--ochre); stroke-width: .28; }
.note-rose .ro-c { fill: none; stroke: var(--tone); stroke-width: .3; }
@media (prefers-reduced-motion: no-preference) {
  .note-rose { transition: transform 1.6s var(--ease); }
  .note:hover .note-rose { transform: rotate(36deg); }
}
.note.t-ochre { --tone: var(--ochre-ink); }
.note.t-ink { --tone: #22465A; }
.note.t-red { --tone: var(--red-ink); }
.note.t-olive { --tone: #4E5D23; }
.note.t-teal { --tone: #1D6470; }
.notes-more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.notes-more p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .note, .note:nth-child(n) { grid-column: 1 / -1; grid-template-columns: 1fr 96px; }
  .note:nth-child(even) { grid-template-columns: 96px 1fr; }
  .note-rose { width: 96px; height: 96px; }
}
@media (max-width: 440px) {
  .note, .note:nth-child(n) { grid-template-columns: 1fr; padding: 22px 20px; }
  .note-rose, .note:nth-child(even) .note-rose { order: -1; width: 72px; height: 72px; }
}

/* ================================================================
   HOME — process along a guilloche thread
   ================================================================ */
.process { position: relative; }
.process-band { width: 100%; height: 60px; margin-bottom: -30px; position: relative; z-index: 0; }
.process-band path { fill: none; stroke-width: .7; }
.process-band .g-green path { stroke-width: .7; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; position: relative; z-index: 1; }
.steps li { position: relative; padding-top: 4px; }
.steps .knot {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--paper); border: 1px solid var(--green); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--rule);
  font-family: var(--f-display); font-size: 1.7rem; color: var(--green); font-weight: 700;
}
.steps li:last-child .knot { background: var(--red); color: #fff; border-color: var(--red); }
.steps h3 { font-size: 1.22rem; margin-bottom: 4px; }
.steps p { font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.75; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); row-gap: 34px; } .process-band { display: none; } }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 58px 1fr; gap: 0 16px; padding-bottom: 22px; }
  .steps li::before { content: ""; position: absolute; inset-inline-start: 28px; top: 62px; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, var(--green) 0 3px, transparent 3px 6px); }
  .steps li:last-child::before { display: none; }
  .steps .knot { grid-row: span 2; margin: 0; }
}

/* ================================================================
   HOME — verification (security features + loupe)
   ================================================================ */
.verify-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.loupe-stage { position: relative; cursor: crosshair; touch-action: pan-y; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-3); }
.loupe-stage > svg { width: 100%; height: auto; }
.loupe {
  position: absolute; left: 0; top: 0; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; pointer-events: none;
  border: 2px solid var(--ink); box-shadow: 0 0 0 5px rgba(238, 241, 236, .9), 0 0 0 6px var(--ink), 0 16px 30px rgba(0, 0, 0, .25);
  background: var(--paper-3); will-change: transform; transition: transform .45s var(--ease);
}
.loupe-stage:hover .loupe { transition: transform .08s linear; }
.loupe-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; transition: inherit; }
.loupe-inner svg { max-width: none; }
.vc .vc-mt { font-family: var(--f-body); font-size: 3px; fill: var(--green); }
.vc .vc-t { font-family: var(--f-display); fill: var(--ink); }
.vc .vc-s { font-family: var(--f-body); fill: var(--ink-2); }
.vc .hot { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: 0; transition: opacity .3s; }
.loupe-stage[data-active="issuer"] .hot-issuer, .loupe-stage[data-active="acc"] .hot-acc, .loupe-stage[data-active="no"] .hot-no,
.loupe-stage[data-active="scope"] .hot-scope, .loupe-stage[data-active="date"] .hot-date { opacity: 1; }
.feat-list { list-style: none; margin: 0 0 28px; padding: 0; }
.feat-btn {
  width: 100%; text-align: start; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 14px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.feat-btn .ic { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--green); display: grid; place-items: center; color: var(--green); transition: background-color .2s, color .2s; }
.feat-btn .ic svg { width: 18px; height: 18px; }
.feat-btn b { display: block; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.feat-btn span span { font-size: .9rem; color: var(--ink-2); line-height: 1.75; display: block; }
.feat-btn[aria-pressed="true"] .ic { background: var(--red); border-color: var(--red); color: #fff; }
.feat-btn[aria-pressed="true"] b { color: var(--red-ink); }
.feat-btn:hover b { color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-block: 1px solid var(--ink); }
.stats div { padding: 22px 18px; border-inline-start: 1px solid var(--rule); }
.stats div:first-child { border-inline-start: 0; }
.stats dt { font-size: .86rem; color: var(--ink-2); order: 2; }
.stats dd { margin: 0; font-family: var(--f-display); font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 700; color: var(--green); line-height: 1.1; }
.stats div { display: flex; flex-direction: column-reverse; }
.acc-note { margin-top: 18px; font-size: .88rem; color: var(--ink-2); max-width: 90ch; }
@media (max-width: 900px) { .verify-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-inline-start: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (hover: none) { .loupe { width: 120px; height: 120px; } }

/* ================================================================
   HOME — industries ledger
   ================================================================ */
.ledger-ind { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger-ind li { display: grid; grid-template-columns: 52px minmax(10em, 1.1fr) 1.4fr 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ledger-ind .ic { width: 44px; height: 44px; color: var(--green); }
.ledger-ind .ic .hatch { fill: url(#hatch); stroke: none; }
.ledger-ind h3 { margin: 0; font-size: 1.35rem; }
.ledger-ind .std { font-size: .88rem; font-weight: 600; color: var(--green); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.ledger-ind .why { font-size: .88rem; color: var(--ink-2); }
.flip-x { transform: scaleX(-1); }
@media (max-width: 760px) {
  .ledger-ind li { grid-template-columns: 44px 1fr; gap: 4px 14px; }
  .ledger-ind .ic { grid-row: span 3; align-self: start; }
}

/* ================================================================
   HOME — bulletins (articles)
   ================================================================ */
.bulletins { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.bulletin { padding: 24px 24px 28px; border-inline-start: 1px solid var(--rule); display: flex; flex-direction: column; }
.bulletin:first-child { border-inline-start: 0; padding-inline-start: 0; }
.bulletin .meta { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--ink-2); margin-bottom: 14px; }
.bulletin .meta .no { color: var(--red); font-weight: 600; }
.bulletin h3 { font-size: 1.5rem; }
.bulletin:first-child h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.bulletin h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--ochre), var(--ochre)) no-repeat right bottom / 0 1px; transition: background-size .4s var(--ease); }
.bulletin h3 a:hover { background-size: 100% 1px; color: var(--green); }
.bulletin p { font-size: .93rem; color: var(--ink-2); }
.bulletin .read { margin-top: auto; font-size: .88rem; font-weight: 600; }
.bulletin svg.b-art { width: 100%; height: 120px; margin-bottom: 16px; }
@media (max-width: 900px) { .bulletins { grid-template-columns: 1fr; } .bulletin { border-inline-start: 0; padding-inline: 0; border-bottom: 1px solid var(--rule); } }

/* ================================================================
   FAQ
   ================================================================ */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center;
  padding: 18px 0; font-family: var(--f-display); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--green);
  background: linear-gradient(var(--green), var(--green)) center / 10px 1.5px no-repeat, linear-gradient(var(--green), var(--green)) center / 1.5px 10px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--paper-2); }
.faq summary:hover { color: var(--green); }
.faq .ans { padding: 0 0 20px; color: var(--ink-2); max-width: 72ch; }
.faq .ans p:last-child { margin: 0; }

/* ================================================================
   Contact / forms
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dotted var(--rule); }
.contact-list svg { width: 22px; height: 22px; color: var(--green); margin-top: 4px; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--green); }
.contact-list small { display: block; color: var(--ink-2); font-size: .82rem; }
.form-card {
  position: relative; background: var(--paper-3); padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--green); box-shadow: inset 0 0 0 6px var(--paper-3), inset 0 0 0 7px var(--ochre);
}
.form-card .form-serial { position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--f-display); color: var(--red); font-size: 1rem; letter-spacing: .05em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0;
  background: transparent; font-size: 1rem; transition: border-color .2s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E4D45' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 4px center; padding-inline-end: 24px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--green); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }
.field input[type="tel"] { direction: ltr; text-align: right; }
.field input[aria-invalid="true"] { border-bottom-color: var(--red); }
.field .err { display: block; min-height: 1.3em; font-size: .8rem; color: var(--red); margin-top: 4px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 22px; }
.form-foot small { color: var(--ink-2); font-size: .82rem; max-width: 40ch; }
.form-msg {
  margin-top: 22px; padding: 16px 18px 16px 18px; border: 1.5px solid var(--red); color: var(--red-ink); background: rgba(179, 38, 30, .05);
  font-weight: 600; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
}
.form-msg svg { width: 44px; height: 44px; }
@media (prefers-reduced-motion: no-preference) { .form-msg:not([hidden]) svg { animation: stamp .55s cubic-bezier(.3, 0, .3, 1) both; } }
.is-sent .field input, .is-sent .field select, .is-sent .field textarea { opacity: .55; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ================================================================
   Footer
   ================================================================ */
.site-foot { background: var(--ink); color: #BFCBCB; margin-top: 0; position: relative; }
.foot-band { width: 100%; height: 46px; display: block; background: var(--paper); }
.foot-band path { fill: none; stroke: var(--green); stroke-width: .6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 32px; padding-block: 56px 36px; }
.site-foot h2 { font-size: 1.25rem; color: #F1F3EE; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 7px; font-size: .9rem; }
.site-foot a { color: #D9E2DF; text-decoration: none; }
.site-foot a:hover { color: var(--ochre-soft); text-decoration: underline; }
.site-foot .brand-txt b { color: #F1F3EE; }
.site-foot .brand-txt small { color: #A8B5B4; }
.site-foot .brand-mark .bm path { stroke: var(--ochre-soft); }
.site-foot .brand-mark circle { stroke: var(--ochre-soft); }
.foot-about { font-size: .9rem; margin-top: 16px; max-width: 34ch; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: #93A3A3; }
.site-foot .microline { color: var(--ochre-soft); border-color: rgba(231, 211, 168, .2); opacity: .5; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .foot-bottom { padding-bottom: 24px; } }

/* ---------- Floating contact ---------- */
.fab { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -8px 20px -12px rgba(0, 0, 0, .25); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
.fab a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; font-weight: 700; border-radius: 3px; }
.fab svg { width: 22px; height: 22px; }
.fab .fab-wa { background: var(--green); color: #fff; }
.fab .fab-call { border: 1px solid var(--green); color: var(--green); }
@media (min-width: 900px) {
  .fab { inset-inline: auto; inset-inline-start: 24px; bottom: 24px; display: block; background: none; border: 0; box-shadow: none; padding: 0; }
  .fab .fab-call { display: none; }
  .fab .fab-wa {
    width: 64px; height: 64px; border-radius: 50%; padding: 0; position: relative;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--green), 0 12px 24px rgba(14, 50, 45, .35);
  }
  .fab .fab-wa span { position: absolute; inset-inline-start: calc(100% + 14px); white-space: nowrap; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 3px; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
  .fab .fab-wa:hover span, .fab .fab-wa:focus-visible span { opacity: 1; transform: none; }
  .fab .fab-wa svg { width: 28px; height: 28px; }
}

/* ================================================================
   Page heads (inner pages)
   ================================================================ */
.crumbs { font-size: .85rem; color: var(--ink-2); padding-top: 24px; }
.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(--ochre-ink); }
.crumbs a { color: var(--ink-2); }
.page-head { padding-block: clamp(20px, 3vw, 40px) clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); line-height: 1.2; margin-bottom: .4em; }

/* ================================================================
   SERVICES — ledger of denominations
   ================================================================ */
.svc-head-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.svc-tally { justify-self: end; text-align: center; padding: 18px 28px; border: 1px solid var(--green); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--ochre); }
.svc-tally b { display: block; font-family: var(--f-display); font-size: 4.2rem; line-height: 1; color: var(--green); }
.svc-tally span { font-size: .85rem; color: var(--ink-2); }
.toolbar { position: sticky; top: var(--head-h); z-index: 20; background: rgba(238, 241, 236, .97); border-block: 1px solid var(--rule); padding-block: 14px; }
.search { position: relative; max-width: 560px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--green); pointer-events: none; }
.search input { width: 100%; min-height: 50px; border: 1px solid var(--green); border-radius: 3px; background: var(--paper-3); padding: 8px 46px 8px 14px; padding-inline-start: 46px; font-size: 1rem; }
.search input:focus { outline: 3px solid var(--ochre); outline-offset: 1px; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.toolbar .count { font-size: .9rem; color: var(--ink-2); }
.toolbar .count b { color: var(--green); font-size: 1.05rem; }
.cat-chips { min-width: 0; max-width: 100%; border: 0; padding: 0; margin-inline: 0; margin-bottom: 0; margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.cat-chips .chip { flex: none; scroll-snap-align: start; }
.cat-chips .chip span { min-height: 38px; padding: 5px 14px; font-size: .88rem; white-space: nowrap; }
.ledger-group { padding-top: 48px; }
.ledger-group[hidden] { display: none; }
.ledger-head { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: end; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.ledger-head .denom { font-family: var(--f-display); font-weight: 700; font-size: 4.6rem; line-height: .85; color: var(--green); text-align: center; border-inline-end: 1px solid var(--rule); padding-inline-end: 18px; }
.ledger-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin: 0; }
.ledger-head p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.note-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--rule); position: relative;
  transition: background-color .25s;
}
.note-row[hidden] { display: none; }
.note-row:hover { background: linear-gradient(90deg, transparent, rgba(14, 77, 69, .05) 30%, rgba(14, 77, 69, .05) 70%, transparent); }
.row-rosette { width: 64px; height: 64px; }
.row-rosette .ro-ring { fill: none; stroke: var(--green); stroke-width: .5; stroke-dasharray: .8 1.4; }
.row-rosette .ro-a path { fill: none; stroke: var(--green); stroke-width: .3; }
.row-rosette .ro-b path { fill: none; stroke: var(--ochre); stroke-width: .3; }
.row-rosette .ro-c { fill: none; stroke: var(--green); stroke-width: .35; }
.is-core .row-rosette .ro-a path, .is-core .row-rosette .ro-c { stroke: var(--red); }
@media (prefers-reduced-motion: no-preference) { .row-rosette { transition: transform 1.2s var(--ease); } .note-row:hover .row-rosette { transform: rotate(30deg); } }
.row-main h3 { font-size: 1.3rem; margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; }
.row-code { font-family: var(--f-body); font-size: .92rem; font-weight: 700; color: var(--green); }
.is-core .row-code { color: var(--red-ink); }
.row-main p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.8; }
.row-side { display: flex; align-items: center; gap: 16px; }
.row-serial { font-family: var(--f-display); color: var(--ochre-ink); font-size: .95rem; letter-spacing: .06em; min-width: 3.6em; }
.core-mark { font-size: .74rem; font-weight: 700; color: var(--red); border: 1px solid var(--red); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.row-link { font-size: .88rem; font-weight: 600; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; }
.row-link:hover { background: var(--green); color: #fff; border-color: var(--green); }
.svc-empty { padding: 48px 0; text-align: center; color: var(--ink-2); }
.svc-empty[hidden] { display: none; }
.svc-empty h2 { font-size: 1.8rem; color: var(--ink); }
.svc-empty .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
@media (max-width: 760px) {
  .svc-head-grid { grid-template-columns: 1fr; }
  .svc-tally { justify-self: start; display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
  .svc-tally b { font-size: 2.4rem; }
  .note-row { grid-template-columns: 48px 1fr; gap: 6px 14px; }
  .row-rosette { width: 48px; height: 48px; grid-row: span 2; align-self: start; }
  .row-side { grid-column: 2; flex-wrap: wrap; gap: 10px; }
  .row-serial { display: none; }
  .ledger-head { grid-template-columns: 64px 1fr; }
  .ledger-head .denom { font-size: 3.2rem; padding-inline-end: 12px; }
}

/* ================================================================
   ISO 9001 page
   ================================================================ */
.iso-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.iso-emblem { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.iso-emblem svg { width: 100%; height: 100%; }
.iso-emblem .em-num { font-family: var(--f-body); font-size: 44px; font-weight: 800; fill: var(--green); letter-spacing: 1px; }
.iso-emblem .em-sub { font-family: var(--f-display); font-size: 17px; fill: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); margin-top: 32px; }
.facts div { padding: 16px 14px; border-inline-start: 1px solid var(--rule); }
.facts div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts dt { font-size: .8rem; color: var(--ink-2); }
.facts dd { margin: 0; font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; line-height: 1.3; color: var(--green); }
@media (max-width: 900px) { .iso-hero { grid-template-columns: 1fr; } .iso-emblem { max-width: 300px; order: -1; } .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

.rev-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 22px 26px; border: 1px dashed var(--red); background: rgba(179, 38, 30, .035); }
.rev-note .stamp-s { width: 70px; height: 70px; color: var(--red); transform: rotate(-8deg); }
.rev-note h2 { font-size: 1.6rem; margin-bottom: 6px; }
.rev-note p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.principles { position: relative; }
.principles ol { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dotted var(--rule); }
.principles li::before { content: counter(p, persian); font-family: var(--f-display); font-size: 1.6rem; color: var(--ochre-ink); line-height: 1.2; }
.principles b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; display: block; line-height: 1.3; }
.principles span { font-size: .9rem; color: var(--ink-2); }

/* clause explorer */
.clauses { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.clause-side { position: sticky; top: calc(var(--head-h) + 24px); }
.clause-dial { --turn: 0deg; width: 100%; max-width: 300px; aspect-ratio: 1; position: relative; margin-bottom: 18px; }
.clause-dial svg { width: 100%; height: 100%; }
.clause-dial .dial-rot { transform-origin: 150px 150px; transition: transform .9s var(--ease); transform: rotate(var(--turn)); }
.clause-dial .dial-rot path { fill: none; stroke: var(--green); stroke-width: .4; }
.clause-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.clause-tabs [role="tab"] {
  aspect-ratio: 1; min-width: 0; padding: 0; display: grid; place-items: center; border: 1px solid var(--green); background: var(--paper);
  font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); font-weight: 700; color: var(--green); border-radius: 50%; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.clause-tabs [role="tab"]:hover { background: var(--paper-2); }
.clause-tabs [role="tab"][aria-selected="true"] { background: var(--green); color: #F4F7F2; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ochre); }
.clause-panel { border: 1px solid var(--green); padding: clamp(22px, 3vw, 40px); background: var(--paper-3); box-shadow: inset 0 0 0 6px var(--paper-3), inset 0 0 0 7px var(--ochre); position: relative; min-height: 420px; }
.clause-panel .cl-no { position: absolute; inset-inline-end: 24px; top: 6px; font-family: var(--f-display); font-size: 7rem; font-weight: 700; line-height: 1; color: var(--green); opacity: .09; }
.clause-panel h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.clause-panel h4 { font-family: var(--f-body); font-size: .9rem; font-weight: 700; color: var(--ochre-ink); margin: 20px 0 8px; }
.clause-panel ul { margin: 0; padding-inline-start: 1.2em; }
.clause-panel li { margin-bottom: 4px; font-size: .95rem; }
.clause-panel li::marker { color: var(--ochre); }
@media (prefers-reduced-motion: no-preference) { .clause-panel:not([hidden]) { animation: inkIn .45s var(--ease); } }
@media (max-width: 900px) { .clauses { grid-template-columns: 1fr; } .clause-side { position: static; } .clause-dial { display: none; } }

/* roadmap */
.road { position: relative; }
.road-list { list-style: none; margin: 0; padding: 0; position: relative; }
.stage-h { margin: 0; font: inherit; }
.spine { position: absolute; inset-inline-start: 34px; top: 0; bottom: 0; width: 40px; overflow: hidden; transform: translateX(50%); }
[dir="rtl"] .spine { transform: translateX(50%); }
.spine svg { width: 40px; height: 100%; }
.spine path { fill: none; stroke: var(--green); stroke-width: .8; vector-effect: non-scaling-stroke; }
.spine path:nth-child(even) { stroke: var(--ochre); }
.spine-cover { position: absolute; inset: 0; background: var(--paper); transform: translateY(0); will-change: transform; }
.road.static .spine-cover { display: none; }
.stage { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 22px; padding-bottom: 26px; }
.stage .stage-no {
  width: 68px; height: 68px; border-radius: 50%; position: relative; z-index: 1; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--green); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--rule);
  font-family: var(--f-display); font-size: 2rem; font-weight: 700; color: var(--green);
  transition: background-color .4s, color .4s;
}
.stage.stamped .stage-no { background: var(--green); color: #F4F7F2; }
.stage:last-child .stage-no { border-color: var(--red); color: var(--red); }
.stage.stamped:last-child .stage-no { background: var(--red); color: #fff; }
.stage-card { border: 1px solid var(--rule); background: var(--paper-3); }
.js .stage .stage-card { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .stage.in .stage-card { opacity: 1; transform: none; }
.stage-head { width: 100%; display: grid; grid-template-columns: 1fr auto 26px; gap: 14px; align-items: center; text-align: start; padding: 18px 22px; background: transparent; border: 0; cursor: pointer; }
.stage-title { font-family: var(--f-display); font-weight: 600; line-height: 1.3; color: var(--ink); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
.stage-head .dur { font-size: .82rem; color: var(--ochre-ink); font-weight: 600; white-space: nowrap; }
.stage-head .tog { width: 24px; height: 24px; border: 1px solid var(--green); border-radius: 50%; position: relative; transition: transform .3s var(--ease); }
.stage-head .tog::before, .stage-head .tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--green); transform: translate(-50%, -50%); }
.stage-head .tog::after { transform: translate(-50%, -50%) rotate(90deg); }
.stage-head[aria-expanded="true"] .tog { transform: rotate(45deg); }
.stage-head:hover .stage-title { color: var(--green); }
.stage-body { padding: 0 22px 20px; color: var(--ink-2); font-size: .95rem; }
.stage-body .deliv { display: block; margin-top: 8px; font-size: .86rem; color: var(--ink); }
.stage-body .deliv b { color: var(--green); }
@media (max-width: 560px) {
  .stage { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .stage .stage-no { width: 48px; height: 48px; font-size: 1.5rem; }
  .spine { inset-inline-start: 24px; width: 24px; }
  .spine svg { width: 24px; }
  .stage-head { grid-template-columns: 1fr 24px; padding: 14px 16px; }
  .stage-head .dur { grid-column: 1; grid-row: 2; }
  .stage-head .tog { grid-row: 1 / span 2; grid-column: 2; }
}

.split-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.split-list li { break-inside: avoid; padding: 12px 0 12px; border-bottom: 1px dotted var(--rule); display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.split-list li svg { width: 20px; height: 20px; color: var(--green); margin-top: 5px; }
.split-list b { display: block; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.split-list span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 700px) { .split-list { columns: 1; } }

.time-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.time-table caption { text-align: start; font-size: .85rem; color: var(--ink-2); padding-bottom: 10px; caption-side: bottom; padding-top: 10px; }
.time-table th, .time-table td { text-align: start; padding: 14px 10px; border-bottom: 1px solid var(--rule); }
.time-table thead th { border-bottom: 2px solid var(--ink); font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.time-table td b { font-family: var(--f-display); font-size: 1.35rem; color: var(--green); }
.time-table tbody th { font-weight: 600; }

.factors { list-style: none; margin: 0; padding: 0; }
.factors li { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.factors b { display: block; font-weight: 600; }
.factors span { font-size: .88rem; color: var(--ink-2); }
.weight { display: flex; gap: 3px; direction: ltr; justify-content: flex-end; }
.weight i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--green); }
.weight i.on { background: var(--green); }
.weight-key { font-size: .82rem; color: var(--ink-2); margin-top: 10px; }

/* ================================================================
   START — wizard + evolving certificate
   ================================================================ */
.wz-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 96px; }
.feat-track { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.feat-track li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .72rem; color: var(--ink-2); line-height: 1.4; }
.feat-track .slot { width: 42px; height: 42px; border-radius: 50%; border: 1px dashed var(--rule); display: grid; place-items: center; color: transparent; transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease); }
.feat-track .slot svg { width: 22px; height: 22px; }
.feat-track li.current .slot { border: 1.5px solid var(--green); color: var(--green); }
.feat-track li.current { color: var(--ink); font-weight: 600; }
.feat-track li.done .slot { background: var(--green); border: 1px solid var(--green); color: #F4F7F2; transform: rotate(-8deg); }
.feat-track li:last-child.done .slot { background: var(--red); border-color: var(--red); }
.wz-card { background: var(--paper-3); border: 1px solid var(--green); box-shadow: inset 0 0 0 6px var(--paper-3), inset 0 0 0 7px var(--ochre); padding: clamp(22px, 3.4vw, 40px); }
.wz-status { font-size: .85rem; color: var(--ochre-ink); font-weight: 600; margin-bottom: 4px; }
.wz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-step legend, .wz-step .q { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 600; line-height: 1.3; padding: 0; margin-bottom: 6px; }
.wz-step legend:focus, .wz-result h2:focus { outline: none; }
.wz-step .hint { color: var(--ink-2); font-size: .93rem; margin-bottom: 18px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt .face {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-height: 64px; padding: 10px 14px;
  border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; cursor: pointer; height: 100%;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.opt .face svg { width: 32px; height: 32px; color: var(--green); }
.opt .face b { display: block; font-weight: 600; font-size: .98rem; line-height: 1.4; }
.opt .face small { display: block; color: var(--ink-2); font-size: .8rem; line-height: 1.5; }
.opt:hover .face { border-color: var(--green); }
.opt input:checked + .face { border-color: var(--green); background: #E4EEE9; box-shadow: inset 0 0 0 1px var(--green); }
.opt input:focus-visible + .face { outline: 3px solid var(--ochre); outline-offset: 2px; }
.opts.plain .face { grid-template-columns: 1fr; }
.sub-q { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.sub-q[hidden] { display: none; }
.sub-q .q2 { font-weight: 700; margin-bottom: 10px; display: block; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--green); border-radius: 3px; overflow: hidden; }
.stepper button { width: 48px; min-height: 48px; border: 0; background: var(--paper); color: var(--green); font-size: 1.4rem; cursor: pointer; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 64px; text-align: center; border: 0; border-inline: 1px solid var(--rule); background: var(--paper-3); font-weight: 700; font-size: 1.1rem; }
.std-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.std-opt { position: relative; }
.std-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.std-face { display: grid; gap: 0; padding: 10px 14px; border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; cursor: pointer; position: relative; min-height: 62px; height: 100%; padding-inline-end: 40px; }
.std-face::after { content: ""; position: absolute; inset-inline-end: 12px; top: 14px; width: 18px; height: 18px; border: 1px solid var(--green); border-radius: 3px; background: var(--paper-3); }
.std-opt input:checked + .std-face { border-color: var(--green); background: #E4EEE9; }
.std-opt input:checked + .std-face::after { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.std-opt input:focus-visible + .std-face { outline: 3px solid var(--ochre); outline-offset: 2px; }
.std-code { font-weight: 700; color: var(--green); font-size: .95rem; }
.std-name { font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.std-rec { font-size: .7rem; font-weight: 700; color: var(--red); margin-top: 2px; }
.wz-why { margin: 18px 0 0; padding: 14px 18px; background: rgba(184, 134, 43, .09); border-inline-start: 3px solid var(--ochre); font-size: .9rem; list-style: none; }
.wz-why li + li { margin-top: 6px; }
.wz-nav { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.wz-nav .grow { flex: 1; }
.wz-err { color: var(--red); font-size: .88rem; font-weight: 600; min-height: 1.4em; margin: 12px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .wz-step.shake { animation: shake .4s; }
  .wz-step:not([hidden]) { animation: inkIn .45s var(--ease); }
}
@keyframes shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-5px); } 75% { transform: translateX(3px); } }

.wz-preview { position: sticky; top: calc(var(--head-h) + 20px); }
.wz-preview figcaption { font-size: .82rem; color: var(--ink-2); text-align: center; margin-top: 12px; }
.wz-cert { width: 100%; height: auto; filter: drop-shadow(0 18px 26px rgba(14, 50, 45, .16)); }
.wz-cert .paper { fill: var(--paper-3); stroke: var(--rule); }
.wz-cert .wc-title { font-family: var(--f-display); font-size: 34px; font-weight: 700; fill: var(--green); }
.wz-cert .wc-k { font-family: var(--f-body); font-size: 9.5px; fill: var(--ink-2); }
.wz-cert .wc-v { font-family: var(--f-display); font-size: 19px; fill: var(--ink); font-weight: 600; }
.wz-cert .wc-std { font-family: var(--f-body); font-size: 13px; font-weight: 700; fill: var(--green); letter-spacing: .05em; }
.wz-cert .wc-name { font-family: var(--f-display); font-size: 26px; fill: var(--ink); font-weight: 700; }
.wz-cert .wc-serial { font-family: var(--f-display); font-size: 17px; fill: var(--red); letter-spacing: .05em; }
.wz-cert .wc-date { font-family: var(--f-body); font-size: 9.5px; fill: var(--ink-2); }
.wz-cert .wc-rule { stroke: var(--rule); stroke-width: 1; }
.wz-cert .ph { fill: var(--paper-2); }
.wz-cert .layer { opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); transform-box: fill-box; transform-origin: center; }
.wz-cert .l-border path { fill: none; stroke: var(--green); stroke-width: .5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.wz-cert .l-rose path { fill: none; stroke: var(--ochre); stroke-width: .4; }
.wz-cert .l-rose { transform: scale(.5) rotate(-40deg); }
.wz-cert .l-micro text { font-family: var(--f-body); font-size: 4px; fill: var(--green); }
.wz-cert .l-water path { fill: none; stroke: var(--green); stroke-width: .3; }
.wz-cert .l-serial { transform: translateY(6px); }
.wz-cert.f1 .l-border { opacity: 1; } .wz-cert.f1 .l-border path { stroke-dashoffset: 0; }
.wz-cert.f2 .l-rose { opacity: 1; transform: none; }
.wz-cert.f3 .l-micro { opacity: 1; }
.wz-cert.f4 .l-water { opacity: .5; }
.wz-cert.f5 .l-std { opacity: 1; }
.wz-cert.f6 .l-serial { opacity: 1; transform: none; }
.wz-cert .wz-seal { opacity: 0; transform-box: fill-box; transform-origin: center; }
.wz-cert.sealed .wz-seal { opacity: 1; animation: stamp .62s cubic-bezier(.3, 0, .3, 1) both; transform: rotate(-9deg); }
.wz-cert .wz-seal path, .wz-cert .wz-seal circle.r { fill: none; stroke: #F6D9D4; stroke-width: .5; }
.wz-cert .wz-seal .s-body { fill: var(--red); stroke: none; }
.wz-cert .wz-seal text { font-family: var(--f-display); font-size: 17px; font-weight: 700; fill: #FFF3F1; }
.wz-cert .val-on { transition: opacity .4s; }
@media (prefers-reduced-motion: reduce) { .wz-cert .layer, .wz-cert .l-border path { transition: none; } .wz-cert.sealed .wz-seal { animation: none; } }

.wz-result[hidden] { display: none; }
.wz-result h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.rs-top { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: baseline; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.rs-top div { font-size: .85rem; color: var(--ink-2); }
.rs-top b { display: block; font-family: var(--f-display); font-size: 2.1rem; color: var(--red); line-height: 1.2; }
.rs-top .rs-ser { font-size: 1.3rem; letter-spacing: .05em; }
.rs-std { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-std li { border: 1px solid var(--green); padding: 4px 12px; border-radius: 99px; font-size: .85rem; }
.rs-stages { list-style: none; padding: 0; margin: 0 0 18px; }
.rs-stages li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.rs-stages .rs-n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--green); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.2rem; color: var(--green); }
.rs-stages li:last-child .rs-n { background: var(--red); border-color: var(--red); color: #fff; }
.rs-stages b { display: block; font-weight: 600; font-size: .98rem; }
.rs-stages span { font-size: .82rem; color: var(--ochre-ink); }
@media (prefers-reduced-motion: no-preference) { .wz-result:not([hidden]) .rs-stages li { animation: inkIn .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms + .3s); } }
.rs-sub { font-weight: 700; margin: 0 0 6px; font-size: .92rem; }
#rsTracks ul { margin: 0 0 18px; padding-inline-start: 1.2em; font-size: .92rem; }
#rsNote p { font-size: .9rem; padding: 10px 14px; border-inline-start: 3px solid var(--red); background: rgba(179, 38, 30, .04); }
.rs-form { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--ochre); }
.rs-form h3 { font-size: 1.6rem; }
@media (max-width: 960px) {
  .wz-shell { grid-template-columns: 1fr; }
  .wz-preview { position: static; order: 2; max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .feat-track li span.lbl { display: none; }
  .feat-track .slot { width: 36px; height: 36px; }
  .opts { grid-template-columns: 1fr 1fr; }
  .opt .face { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 12px 8px; }
  .std-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .opts { grid-template-columns: 1fr; } }

/* ---------- Reduced motion: kill everything decorative ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .draw-io path { stroke-dashoffset: 0 !important; }
  .js .stage .stage-card { opacity: 1; transform: none; }
}

/* ---------- Print: a certificate should print well ---------- */
@media print {
  .site-head, .fab, .thread, .site-foot, .drawer, .wz-nav, .toolbar { display: none !important; }
  body { background: #fff; }
}
