@import url("/css/style.css") layer(legacy);
/* =========================================================
   Reddy Construction — public site design system
   "Drafting table": warm paper, ink linework, one vivid accent.
   Uses: cascade layers, CSS nesting, oklch + color-mix, light-dark(),
   container queries, :has(), scroll-driven animations, cross-document
   view transitions, @starting-style, Popover API, text-wrap: balance.
   Loaded after style.css; only affects <body class="site">.
   ========================================================= */

@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

@view-transition { navigation: auto; }

@layer legacy, site-base, site-components, site-motion;

:root {
  color-scheme: light dark;
  --paper:   light-dark(oklch(96.5% 0.012 85), oklch(19% 0.012 60));
  --paper-2: light-dark(oklch(93.5% 0.016 85), oklch(23% 0.014 60));
  --card:    light-dark(oklch(98.8% 0.006 85), oklch(25% 0.014 60));
  --ink:     light-dark(oklch(22% 0.015 60),   oklch(93% 0.012 85));
  --ink-2:   light-dark(oklch(42% 0.015 60),   oklch(76% 0.014 85));
  --line:    light-dark(oklch(22% 0.015 60 / 0.14), oklch(93% 0.012 85 / 0.14));
  --grid:    light-dark(oklch(22% 0.015 60 / 0.05), oklch(93% 0.012 85 / 0.05));
  --accent:  oklch(66% 0.19 42);             /* oiled-oak orange */
  --accent-ink: oklch(99% 0 0);
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --blue:    light-dark(oklch(45% 0.12 250), oklch(75% 0.11 250));  /* blueprint pencil */
  --ok:      oklch(60% 0.13 155);
  --radius: 18px;
  --shadow: 0 1px 0 var(--line), 0 18px 40px -24px light-dark(oklch(30% 0.03 60 / 0.35), oklch(0% 0 0 / 0.6));
  --font: "Manrope", system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1220px;
}

@layer site-base {
  body.site {
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font: 400 clamp(16px, 0.35vw + 15px, 18px)/1.6 var(--font);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    /* faint drafting grid */
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
    background-attachment: fixed;

    & h1, & h2, & h3 { font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
    & h1 { font: 400 clamp(2.6rem, 6.5vw, 5.6rem)/0.98 var(--serif); letter-spacing: -0.02em; }
    & h2 { font: 400 clamp(2rem, 4vw, 3.2rem)/1.04 var(--serif); }
    & h3 { font: 650 1.15rem/1.3 var(--font); letter-spacing: -0.01em; }
    & em, & .it { font-family: var(--serif); font-style: italic; font-weight: 400; }
    & p { text-wrap: pretty; }
    & a { color: inherit; text-decoration-color: color-mix(in oklch, var(--accent) 60%, transparent); text-underline-offset: 3px; }
    & ::selection { background: var(--accent); color: var(--accent-ink); }
    & :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
    & .wrap { max-width: var(--max); padding-inline: var(--gutter); }
    & .narrow { max-width: 860px; }
    & .muted { color: var(--ink-2); }
    & main { view-transition-name: main; }
  }
}

@layer site-components {
  /* ---------- header ---------- */
  .site .top {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklch, var(--paper) 72%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    color: var(--ink);
    view-transition-name: header;
    & .bar { height: 72px; }
    & .logo { color: var(--ink); gap: 12px; letter-spacing: 0.02em; font-size: 0.98rem; }
    & .logo img { width: 38px; height: 38px; border-radius: 10px; }
    & .logo b { font-weight: 800; }
    & .logo small { color: var(--ink-2); font: 500 0.68rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
    & nav { gap: 2px; }
    & nav a { color: var(--ink-2); font-weight: 600; font-size: 0.93rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
    & nav a:hover, & nav a.on { color: var(--ink); background: var(--paper-2); }
    & nav a.btn { background: var(--ink); color: var(--paper); margin-left: 10px; padding: 10px 18px; }
    & nav a.btn:hover { background: var(--accent); color: var(--accent-ink); }
  }
  .site .menu-btn { color: var(--ink); display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 1.2rem; }

  /* Mobile menu = native popover (no JS), animated with @starting-style */
  @media (max-width: 900px) {
    .site .menu-btn { display: inline-grid; place-items: center; }
    .site #nav[popover] {
      position: fixed; inset: 80px 12px auto 12px; width: auto; margin: 0; padding: 12px;
      border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink);
      box-shadow: var(--shadow); display: none; flex-direction: column; align-items: stretch;
      opacity: 0; translate: 0 -8px;
      transition: opacity .22s, translate .22s, display .22s allow-discrete, overlay .22s allow-discrete;
      &:popover-open { display: flex; opacity: 1; translate: 0 0; @starting-style { opacity: 0; translate: 0 -8px; } }
      & a { padding: 14px 16px; font-size: 1.05rem; }
      & a.btn { margin: 8px 0 0; text-align: center; }
      &::backdrop { background: oklch(20% 0.02 60 / 0.25); backdrop-filter: blur(3px); }
    }
  }
  @media (min-width: 901px) {
    .site #nav[popover] { display: flex; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; width: auto; height: auto; color: inherit; }
  }

  /* ---------- buttons & chips ---------- */
  .site .btn {
    --b: var(--ink);
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--b); color: var(--paper); border: 1.5px solid var(--b);
    padding: 14px 22px; border-radius: 999px; font: 700 0.95rem/1 var(--font); letter-spacing: 0.01em;
    transition: background .2s, color .2s, translate .2s, box-shadow .2s;
    &:hover { --b: var(--accent); color: var(--accent-ink); translate: 0 -2px; box-shadow: 0 10px 24px -12px var(--accent); }
    &.ghost { background: transparent; color: var(--ink); }
    &.ghost:hover { background: var(--ink); color: var(--paper); --b: var(--ink); }
    &.sm { padding: 9px 14px; font-size: 0.85rem; }
    & .arrow { transition: translate .2s; }
    &:hover .arrow { translate: 4px 0; }
  }
  .site .chip { display: inline-flex; align-items: center; gap: 8px; font: 500 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); }
  .site .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.4s infinite; }
  .site .eyebrow { font: 500 0.76rem/1 var(--mono); letter-spacing: 0.12em; color: var(--accent); margin-bottom: 18px; }

  /* ---------- hero ---------- */
  .site .hero2 {
    padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px);
    & .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
    & h1 em { color: var(--accent); }
    & .lead { font-size: clamp(1.05rem, 1vw + 0.8rem, 1.3rem); color: var(--ink-2); max-width: 34ch; margin: 22px 0 30px; }
    & .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
    & .meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font: 500 0.8rem/1.3 var(--mono); color: var(--ink-2); }
    & .meta b { display: block; font: 400 1.9rem/1 var(--serif); color: var(--ink); margin-bottom: 4px; }
    @media (max-width: 900px) { & .grid { grid-template-columns: minmax(0, 1fr); } }
  }
  .site .drawing {
    position: relative; aspect-ratio: 600 / 470; border-radius: 28px; padding: 18px; margin: 0; min-width: 0;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
    & svg { width: 100%; height: 100%; display: block; overflow: visible; }
    & .ink { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
    & .thin { stroke-width: 0.8; opacity: 0.55; }
    & .pencil { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 4; }
    & .fill-acc { fill: var(--accent-soft); stroke: none; }
    & text { font: 500 10px var(--mono); fill: var(--blue); letter-spacing: 0.06em; }
    & .stamp { position: absolute; max-width: calc(100% - 36px); right: 18px; bottom: 16px; font: 500 0.7rem/1.4 var(--mono); color: var(--ink-2); text-align: right; border-top: 1px solid var(--line); padding-top: 8px; }
  }

  /* ---------- marquee ---------- */
  .site .marquee {
    border-block: 1px solid var(--line); background: var(--ink); color: var(--paper); overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    & .track { display: flex; width: max-content; gap: 48px; padding: 18px 0; animation: marquee 38s linear infinite; }
    & span { font: 400 clamp(1.4rem, 2.4vw, 2.1rem)/1 var(--serif); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
    & span::after { content: "✦"; font-size: 0.6em; color: var(--accent); }
    &:hover .track { animation-play-state: paused; }
  }

  /* ---------- sections ---------- */
  .site .section { padding-block: clamp(56px, 9vw, 120px); }
  .site .section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
    & p { max-width: 42ch; color: var(--ink-2); margin: 0; } }

  /* Bento grid of services; cards adapt to their own width via container queries */
  .site .bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
    & > * { grid-column: span 2; }
    & > .wide { grid-column: span 4; }
    @media (max-width: 900px) { & > *, & > .wide { grid-column: span 6; } }
  }
  .site .tile2 {
    container-type: inline-size;
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between;
    transition: border-color .25s, translate .25s, box-shadow .25s;
    & .num { font: 500 0.75rem var(--mono); color: var(--ink-2); }
    & h3 { font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.05 var(--serif); margin: 18px 0 10px; }
    & p { color: var(--ink-2); margin: 0; }
    & ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
    & li { font: 500 0.72rem/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
    & svg.icon { position: absolute; right: -10px; top: -10px; width: 150px; height: 150px; z-index: -1; opacity: 0.16; transition: opacity .3s, rotate .6s; }
    &:hover { border-color: color-mix(in oklch, var(--accent) 50%, var(--line)); translate: 0 -4px; box-shadow: var(--shadow); }
    &:hover svg.icon { opacity: 0.4; rotate: -6deg; }
    &.dark { background: var(--ink); color: var(--paper); & p, & .num { color: color-mix(in oklch, var(--paper) 70%, transparent); } & li { background: color-mix(in oklch, var(--paper) 12%, transparent); color: var(--paper); } }
    &.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; & p, & .num { color: oklch(99% 0 0 / 0.85); } & li { background: oklch(100% 0 0 / 0.18); color: #fff; } }
    @container (min-width: 520px) { & h3 { font-size: 2.6rem; } & p { max-width: 46ch; } }
  }

  /* Process with a scroll-linked progress rail */
  .site .process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: step;
    @media (max-width: 900px) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    @media (max-width: 560px) { grid-template-columns: minmax(0, 1fr); }
    & .step { counter-increment: step; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
    & .step::before { content: "0" counter(step); display: block; font: 400 3rem/1 var(--serif); color: var(--accent); margin-bottom: 18px; }
    & .step p { color: var(--ink-2); margin: 6px 0 0; font-size: 0.95rem; }
  }
  .site .rail { height: 2px; background: var(--line); border-radius: 2px; margin: 0 0 24px; overflow: hidden;
    & i { display: block; height: 100%; background: var(--accent); transform-origin: left; scale: 1 1; } }

  /* Project spotlight */
  .site .spotlight {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
    @media (max-width: 900px) { grid-template-columns: 1fr; }
    & .l { padding: clamp(28px, 4vw, 56px); }
    & .r2 { padding: clamp(28px, 4vw, 56px); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
    & .r2 .row-i { display: flex; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid color-mix(in oklch, var(--paper) 14%, transparent); }
    & .r2 .row-i:last-child { border: 0; }
    & .r2 b { font: 400 1.6rem/1 var(--serif); color: var(--accent); min-width: 2ch; }
    & .r2 p { margin: 0; color: color-mix(in oklch, var(--paper) 80%, transparent); }
  }

  /* Stats */
  .site .stats2 { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line);
    @media (max-width: 700px) { grid-template-columns: 1fr; & > div { border-right: 0; border-bottom: 1px solid var(--line); } }
    & > div { padding: 34px 8px; border-right: 1px solid var(--line); }
    & > div:last-child { border: 0; }
    & b { display: block; font: 400 clamp(3rem, 6vw, 5rem)/1 var(--serif); }
    & span { color: var(--ink-2); font: 500 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
  }

  /* Big CTA */
  .site .bigcta { text-align: center; padding-block: clamp(70px, 10vw, 140px);
    & h2 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.95; margin: 0 auto 30px; max-width: 14ch; }
    & h2 em { color: var(--accent); }
  }

  /* Inner page hero */
  .site .page-hero { padding-block: clamp(48px, 8vw, 110px) clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--line);
    & h1 { max-width: 16ch; }
    & .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 52ch; margin-top: 20px; }
  }

  /* ---------- re-skin shared components on public pages ---------- */
  .site .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; color: var(--ink);
    & h3 { color: var(--ink); } }
  .site .callout { background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent); border-left-width: 1px; border-radius: var(--radius); color: var(--ink); padding: 22px; }
  .site .grid2 { gap: 16px; }
  .site .rules { padding: 0; list-style: none; counter-reset: r;
    & li { counter-increment: r; position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--line); margin: 0; }
    & li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 400 2rem/1 var(--serif); color: var(--accent); }
  }
  .site .steps .n { background: var(--accent); color: var(--accent-ink); }
  .site .choice { border-top: 0; min-height: 220px; display: flex; flex-direction: column; justify-content: end; position: relative;
    & h3 { font: 400 2rem/1.05 var(--serif); }
    &::after { content: "→"; position: absolute; top: 22px; right: 24px; font-size: 1.4rem; transition: translate .2s; }
    &:hover { border-color: var(--accent); translate: 0 -3px; }
    &:hover::after { translate: 4px 0; color: var(--accent); }
  }
  .site .code { color: var(--ink); background: var(--card); border: 1.5px dashed var(--accent); border-radius: 16px; font-family: var(--mono); }

  /* Forms: section cards, roomy inputs, live field state via :has() */
  .site .form {
    & fieldset { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 10px; margin-bottom: 18px; transition: border-color .2s, box-shadow .2s; }
    & fieldset:focus-within { border-color: color-mix(in oklch, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft); }
    & fieldset:has(:user-invalid) { border-color: oklch(60% 0.2 25); }
    & legend { font: 400 1.5rem/1 var(--serif); color: var(--ink); padding: 0 8px; }
    & label { color: var(--ink); font-weight: 600; font-size: 0.9rem; }
    & input:not([type=checkbox]), & select, & textarea {
      background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s;
      &:hover { border-color: color-mix(in oklch, var(--ink) 30%, transparent); }
      &:focus { outline: none; border-color: var(--accent); background: var(--card); }
      &:user-invalid { border-color: oklch(60% 0.2 25); }
    }
    & input[type=checkbox] { accent-color: var(--accent); }
    & input[type=file] { padding: 10px; border-style: dashed; }
    & input[type=file]::file-selector-button { font: 600 0.85rem var(--font); border: 0; border-radius: 999px; padding: 8px 14px; margin-right: 12px; background: var(--ink); color: var(--paper); cursor: pointer; }
    & .check:has(input:checked) { color: var(--ink); }
    & .consent { background: var(--paper); border-color: var(--line); color: var(--ink-2); border-radius: 12px; }
    & > .btn, & fieldset + .btn { margin-top: 6px; }
  }
  .site .charge { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)) !important; background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--card) !important; }
  .site .alert { border-radius: 14px; }
  .site table th { color: var(--ink-2); }
  .site table td, .site table th { border-color: var(--line); }

  /* footer */
  .site .foot { background: var(--ink); color: color-mix(in oklch, var(--paper) 75%, transparent); margin-top: 0; padding: 64px 0 28px; view-transition-name: footer;
    & a { color: var(--paper); }
    & b { color: var(--paper); }
    & .word { font: 400 clamp(3.5rem, 15vw, 13rem)/0.85 var(--serif); color: var(--paper); letter-spacing: -0.03em; margin: 40px 0 10px; opacity: 0.95; }
    & .word em { color: var(--accent); }
    & .fine { color: color-mix(in oklch, var(--paper) 50%, transparent); font-family: var(--mono); font-size: 0.75rem; }
  }
}

/* ---------- motion ---------- */
@layer site-motion {
  @keyframes marquee { to { translate: -50% 0; } }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fadein { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; translate: 0 28px; } }
  @keyframes grow { from { scale: 0 1; } }
  @keyframes header-solid { to { border-bottom-color: var(--line); background: color-mix(in oklch, var(--paper) 90%, transparent); } }

  /* Line drawing: each stroke uses pathLength="1" and a --d delay */
  .site .drawing .ink, .site .drawing .pencil { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) forwards; animation-delay: calc(var(--d, 0) * 0.12s); }
  .site .drawing .pencil { stroke-dasharray: 1; }
  .site .drawing .fill-acc, .site .drawing text { opacity: 0; animation: fadein 0.8s ease forwards; animation-delay: calc(var(--d, 14) * 0.12s); }

  .site .hero2 .copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .site .hero2 .copy > :nth-child(2) { animation-delay: .08s; } .site .hero2 .copy > :nth-child(3) { animation-delay: .16s; }
  .site .hero2 .copy > :nth-child(4) { animation-delay: .24s; } .site .hero2 .copy > :nth-child(5) { animation-delay: .32s; }

  /* Scroll-driven: header solidifies, sections reveal, process rail fills */
  @supports (animation-timeline: scroll()) {
    .site .top { animation: header-solid linear both; animation-timeline: scroll(); animation-range: 0 120px; }
    .site .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .site .rail i { animation: grow linear both; animation-timeline: view(); animation-range: cover 10% cover 55%; }
  }

  ::view-transition-old(main) { animation: 180ms ease both fadeout; }
  ::view-transition-new(main) { animation: 320ms cubic-bezier(.2,.7,.2,1) both rise; }
  @keyframes fadeout { to { opacity: 0; } }

  @media (prefers-reduced-motion: reduce) {
    .site *, .site *::before, .site *::after, ::view-transition-group(*) { animation: none !important; transition: none !important; }
    .site .drawing .ink, .site .drawing .pencil { stroke-dashoffset: 0; }
    .site .drawing .fill-acc, .site .drawing text { opacity: 1; }
  }
}

/* ---------- registration wizard + ID scan ---------- */
@layer site-components {
  .site .wiz-steps { display: none; }
  .site .wiz-on .wiz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 8px 0 22px; counter-reset: w;
    & li { counter-increment: w; font: 600 0.8rem/1.2 var(--font); color: var(--ink-2); padding-top: 12px; border-top: 3px solid var(--line); transition: border-color .3s, color .3s; }
    & li::before { content: counter(w) " · "; font-family: var(--mono); }
    & li.done { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); }
    & li.now { border-color: var(--accent); color: var(--ink); }
    @media (max-width: 560px) { & li { font-size: 0; } & li::before { font-size: 0.8rem; content: counter(w); } & li.now { font-size: 0.8rem; } & li.now::before { content: counter(w) " · "; } }
  }
  .site .wiz-panel { view-transition-name: wiz-panel; scroll-margin-top: 96px; }
  .site .wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; & [data-next], & button:not([data-back]) { margin-left: auto; } }
  .site .wiz-all .wiz-nav { display: none; }

  .site .id-drop { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; @media (max-width: 600px) { grid-template-columns: 1fr; } }
  .site .id-shot { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--paper); font-weight: 700; transition: border-color .2s, background .2s;
    & .hint { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); }
    &.back { border-color: color-mix(in oklch, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
    &:has(input:valid) { border-style: solid; border-color: var(--ok); }
    &:has(input:valid)::after { content: "✓"; position: absolute; top: 14px; right: 16px; color: var(--ok); font-size: 1.2rem; }
  }
  .site .scan-status { margin: 14px 0 6px; padding: 0; border-radius: 12px; font-size: 0.95rem;
    &:empty { display: none; }
    &.busy, &.ok, &.warn { padding: 12px 14px; }
    &.busy { background: var(--paper-2); }
    &.ok { background: color-mix(in oklch, var(--ok) 16%, transparent); border: 1px solid color-mix(in oklch, var(--ok) 45%, transparent); }
    &.warn { background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 40%, transparent); }
  }
  .site .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; vertical-align: -2px; margin-right: 6px; animation: spin .8s linear infinite; }
  @keyframes spin { to { rotate: 360deg; } }
  .site .from-id-note { display: none; }
  .site form:has(.from-id) .from-id-note { display: block; }
  .site .from-id-chip, .site .from-id::after { font: 600 0.62rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ok); border: 1px solid color-mix(in oklch, var(--ok) 50%, transparent); border-radius: 99px; padding: 3px 7px; }
  .site label.from-id { position: relative; }
  .site label.from-id::after { content: "from ID"; position: absolute; top: 0; right: 0; }
  .site label.from-id :is(input, select) { border-color: color-mix(in oklch, var(--ok) 55%, var(--line)); background: color-mix(in oklch, var(--ok) 6%, var(--card)); }
  .site .form details { margin: 4px 0 14px; }
}

@layer site-components {
  .site .ob-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; padding: 0; margin: 8px 0 22px;
    & li { padding-top: 12px; border-top: 3px solid var(--line); font: 600 0.85rem/1.2 var(--font); }
    & li a { color: var(--ink-2); text-decoration: none; }
    & li.done { border-color: color-mix(in oklch, var(--ok) 60%, var(--line)); }
    & li.done a { color: var(--ok); }
    & li.now { border-color: var(--accent); }
    & li.now a { color: var(--ink); }
  }
}

/* ---------- jobs board ---------- */
@layer site-components {
  .site .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; & .chip { text-decoration: none; padding: 10px 14px; } & .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
  .site .jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
  .site .tile2.job { text-decoration: none; color: inherit; gap: 14px; min-height: 260px;
    & .job-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
    & h3 { margin-top: 4px; }
    & .job-cta { font-weight: 700; font-size: 0.92rem; color: var(--accent); }
    &:hover .arrow { translate: 4px 0; }
  }
  .site .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
}

@layer site-components {
  .site address { font-style: normal; }
  .site .offices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; @media (max-width: 600px) { grid-template-columns: 1fr; } }
  .site .foot .cols { grid-template-columns: repeat(4, 1fr); @media (max-width: 900px) { grid-template-columns: 1fr 1fr; } @media (max-width: 560px) { grid-template-columns: 1fr; } }
}
