@layer reset, tokens, base, components, sections, responsive, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img, svg, canvas { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
  button { border: 0; }
  a { color: inherit; }
  table { border-collapse: collapse; border-spacing: 0; }
}

@layer tokens {
  :root {
    color-scheme: light;
    --ink: #1d130f;
    --ink-2: #2b1a13;
    --ink-3: #3c2519;
    --clay: #6b3421;
    --clay-deep: #4e281d;
    /* Accent sampled from the final "a" in the official AUDIA wordmark. */
    --rust: #b6642e;
    --action: #b6642e;
    --copper: #b6642e;
    --copper-bright: #b6642e;
    --amber: #b6642e;
    --sand: #d8bd93;
    --dune: #e9d7bb;
    --paper: #f5eddf;
    --bone: #fffaf1;
    --white: #ffffff;
    --palm: #536453;
    --palm-light: #a8b59c;
    --gold: #b6642e;
    --line-dark: rgba(29, 19, 15, .14);
    --line-mid: rgba(29, 19, 15, .24);
    --line-light: rgba(255, 250, 241, .16);
    --shadow-1: 0 22px 60px rgba(29, 19, 15, .12);
    --shadow-2: 0 42px 100px rgba(29, 19, 15, .22);
    --shadow-ui: 0 18px 46px rgba(29, 19, 15, .18);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 42px;
    --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-smooth: cubic-bezier(.65, 0, .35, 1);
    --container: min(1280px, calc(100vw - 64px));
  }
}

@layer base {
  html { background: var(--paper); scroll-padding-top: 94px; }
  body {
    min-width: 320px;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { background: var(--action); color: var(--bone); }
  a { text-decoration: none; }
  button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  input, textarea, select { border-radius: 0; }
  :focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
  h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: .98; letter-spacing: -.047em; }
  h1 em { color: var(--copper-bright); font-weight: 400; }
  h2 em { color: var(--rust); font-weight: 400; }
  h2 { font-size: clamp(3.3rem, 6vw, 6.8rem); }
  h3 { font-size: clamp(2rem, 3vw, 3.4rem); }
  p { text-wrap: pretty; }
  .section-shell { width: var(--container); margin-inline: auto; }
  .section-index {
    color: var(--clay);
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
  }
  .eyebrow, .eyebrow-small {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
  }
  .eyebrow > span, .eyebrow-small > span { width: 26px; height: 1px; background: currentColor; }
  .eyebrow-small { font-size: .64rem; letter-spacing: .12em; }
  .number { text-align: right; font-variant-numeric: tabular-nums; }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    padding: .7rem 1rem;
    transform: translateY(-170%);
    border-radius: 8px;
    background: var(--bone);
    color: var(--ink);
    font-weight: 750;
  }
  .skip-link:focus { transform: translateY(0); }
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .scroll-progress { position: fixed; z-index: 1600; inset: 0 0 auto; height: 3px; pointer-events: none; }
  .scroll-progress span { display: block; width: 0; height: 100%; background: var(--copper-bright); transform-origin: left; }

  .site-header {
    position: fixed;
    z-index: 1500;
    inset: 18px 0 auto;
    pointer-events: none;
    transition: transform .42s var(--ease-out);
  }
  .site-header.is-hidden { transform: translateY(-135%); }
  .header-shell {
    width: min(1360px, calc(100vw - 36px));
    min-height: 66px;
    margin-inline: auto;
    padding: 9px 10px 9px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(29, 19, 15, .1);
    border-radius: 16px;
    background: rgba(255, 250, 241, .93);
    box-shadow: 0 12px 40px rgba(29, 19, 15, .12);
    backdrop-filter: blur(18px) saturate(1.08);
    pointer-events: auto;
  }
  .brand { width: 122px; display: inline-flex; align-items: center; }
  .brand img { width: 100%; height: auto; }
  .primary-nav { display: flex; align-items: center; gap: 1.55rem; font-size: .82rem; font-weight: 700; }
  .primary-nav > a:not(.nav-cta) { position: relative; padding-block: .75rem; color: rgba(29, 19, 15, .77); }
  .primary-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: .52rem;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right;
    background: var(--action);
    transition: transform .35s var(--ease-out);
  }
  .primary-nav > a:not(.nav-cta):hover::after,
  .primary-nav > a:not(.nav-cta).is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .88rem 1.1rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bone);
  }
  .nav-cta span { color: var(--copper-bright); transition: transform .3s var(--ease-out); }
  .nav-cta:hover span { transform: translate(2px, -2px); }
  .menu-toggle { display: none; width: 44px; height: 44px; place-content: center; gap: 6px; border-radius: 9px; background: var(--ink); }
  .menu-toggle > span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: var(--bone); transition: transform .3s var(--ease-out), opacity .3s; }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-3.75px) rotate(-45deg); }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 50px;
    padding: .84rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .82rem;
    font-weight: 780;
    letter-spacing: -.01em;
    transition: transform .3s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  }
  .button:hover { transform: translateY(-2px); }
  .button-primary { background: var(--action); color: var(--bone); box-shadow: 0 10px 30px rgba(168, 84, 37, .27); }
  .button-primary:hover { background: var(--rust); box-shadow: 0 16px 34px rgba(154, 66, 48, .32); }
  .button-ghost { border-color: rgba(255, 250, 241, .28); color: var(--bone); background: rgba(255, 250, 241, .04); }
  .button-ghost:hover { border-color: rgba(255, 250, 241, .56); background: rgba(255, 250, 241, .08); }
  .button-light { background: var(--bone); color: var(--ink); }
  .button-light:hover { background: var(--amber); }
  .button-small { min-height: 42px; padding: .68rem 1rem; font-size: .74rem; }

  .status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .27rem .48rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .56rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .status-ready { background: rgba(83, 100, 83, .14); color: #405040; }
  .status-open { background: rgba(154, 66, 48, .14); color: #783225; }
  .status-review { background: rgba(185, 138, 66, .17); color: #705326; }

  .window-dots { display: flex; gap: 5px; }
  .window-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(29, 19, 15, .28); }
  .app-toolbar, .ui-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    letter-spacing: .02em;
  }
  .app-toolbar {
    height: 45px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(255, 250, 241, .9);
    color: rgba(29, 19, 15, .68);
    font-size: .59rem;
  }
  .app-toolbar p { font-weight: 750; }
  .icon-button { padding: .35rem .52rem; border: 1px solid var(--line-dark); border-radius: 6px; background: transparent; color: var(--ink); font-family: var(--mono); font-size: .58rem; }

  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
  .js [data-reveal].is-revealed { opacity: 1; transform: none; }
}

@layer sections {
  /* Opening statement */
  .intro-splash {
    position: relative;
    z-index: 1;
    height: 100svh;
    overflow: hidden;
    background: transparent;
    color: var(--bone);
  }
  .intro-splash::before { display: none; }
  .intro-splash-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: var(--container);
    min-height: 100svh;
    margin: auto;
    padding: 150px 0 96px;
    transform-origin: center center;
    will-change: opacity, filter, transform;
  }
  @keyframes intro-copy-fade {
    0%, 12% { opacity: 1; filter: blur(0); transform: translateY(0); }
    46% { opacity: .5; filter: blur(1px); transform: translateY(-28px); }
    76% { opacity: .1; filter: blur(3px); transform: translateY(-72px); }
    100% { opacity: 0; filter: blur(5px); transform: translateY(-110px); }
  }
  @supports (animation-timeline: scroll()) {
    .intro-splash-shell {
      animation: intro-copy-fade linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
  }
  .intro-splash h1 {
    max-width: 1640px;
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(3rem, 5.25vw, 6.15rem);
    font-weight: 550;
    line-height: 1.08;
    letter-spacing: -.05em;
  }
  .intro-splash h1 em { color: var(--copper-bright); font-style: normal; font-weight: inherit; }
  .intro-scroll {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-top: 3.5rem;
    color: var(--amber);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  /* Hero */
  .hero {
    position: relative;
    min-height: 200svh;
    /* clip keeps the canvas contained without becoming the sticky scroll container */
    overflow: clip;
    isolation: isolate;
    background-color: var(--ink);
    background-image:
      linear-gradient(90deg, rgba(8, 6, 5, .99) 0%, rgba(8, 6, 5, .95) 55%, rgba(8, 6, 5, .42) 75%, rgba(8, 6, 5, .08) 100%),
      linear-gradient(0deg, rgba(8, 5, 3, .42), rgba(20, 10, 5, .04)),
      linear-gradient(rgba(136, 67, 23, .38), rgba(136, 67, 23, .38)),
      url("assets/dubai-skyline-reference.jpg");
    background-position: center, center, center, right -11vw center;
    background-repeat: no-repeat;
    background-size: cover, cover, cover, auto 92%;
    background-attachment: fixed, fixed, fixed, fixed;
    background-blend-mode: normal, normal, color, normal;
    color: var(--bone);
  }
  .strata-canvas { display: none; }
  .hero-reveal-target { position: absolute; top: 100svh; left: 0; width: 1px; height: 1px; }
  .hero-grain { display: none; }
  .hero-shell {
    position: relative;
    z-index: 2;
    width: min(1370px, calc(100vw - 72px));
    min-height: 100svh;
    margin-inline: auto;
    padding: 115px 0 88px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 4.5rem;
    background: transparent;
  }
  .hero-copy { max-width: none; text-align: center; }
  .hero .eyebrow { color: var(--amber); margin-bottom: 1.65rem; }
  .hero .eyebrow, .hero h2, .hero-claim, .hero-lede, .hero-actions, .hero-principles { margin-inline: auto; }
  .hero h2 { max-width: none; color: var(--bone); font-size: clamp(3.35rem, 4.55vw, 5.3rem); line-height: .93; white-space: nowrap; }
  .hero h2 em { color: var(--copper-bright); font-weight: 400; }
  .hero-claim { margin-top: 1rem; color: rgba(255, 250, 241, .82); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.03em; }
  .hero-claim em { color: var(--copper-bright); font-style: normal; }
  .hero-lede { max-width: 590px; margin-top: 2.2rem; color: rgba(255, 250, 241, .72); font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.72; }
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.25rem; }
  .hero-principles { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 590px; margin-top: 3.8rem; border-top: 1px solid var(--line-light); }
  .hero-principles div { padding: 1rem 1rem 0 0; display: flex; gap: .65rem; align-items: baseline; }
  .hero-principles dt { color: var(--copper-bright); font-family: var(--mono); font-size: .62rem; }
  .hero-principles dd { color: rgba(255, 250, 241, .64); font-size: .7rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }

  .evidence-stack-wrap { position: relative; width: min(760px, 76%); min-height: 640px; margin-inline: auto; perspective: 1200px; }
  .evidence-caption { display: flex; justify-content: space-between; margin: 0 12px 1rem; color: rgba(255, 250, 241, .48); font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .evidence-stack { position: relative; height: 590px; transform: rotate(-1.4deg); transform-style: preserve-3d; }
  .depth-line { position: absolute; z-index: 20; top: 72px; left: 50%; width: 1px; height: 405px; background: linear-gradient(var(--copper-bright), rgba(220, 135, 68, .08)); transform: translateX(-50%); }
  .depth-line::before { content: ""; position: absolute; top: -6px; left: -5px; width: 11px; height: 11px; border: 2px solid var(--copper-bright); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 7px rgba(220, 135, 68, .1); }
  .depth-line i { position: absolute; bottom: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--copper-bright); }
  .evidence-layer {
    --offset: calc(var(--layer) * 74px);
    position: absolute;
    z-index: calc(10 - var(--layer));
    top: var(--offset);
    left: calc(var(--layer) * 11px);
    width: calc(100% - (var(--layer) * 22px));
    min-height: 132px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 250, 241, .5);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 250, 241, .98), rgba(245, 237, 223, .94));
    color: var(--ink);
    box-shadow: 0 28px 58px rgba(0, 0, 0, .27);
    transform: translateZ(calc(var(--layer) * -20px)) scale(calc(1 - var(--layer) * .008));
    transition: transform .65s var(--ease-out), box-shadow .65s var(--ease-out);
  }
  .evidence-layer:hover { transform: translateZ(18px) translateY(-6px); box-shadow: 0 38px 76px rgba(0, 0, 0, .34); }
  .evidence-layer-final { min-height: 150px; background: var(--bone); }
  .evidence-layer-review { background: linear-gradient(135deg, #ead7bd, #d8bd93); }
  .layer-top, .layer-row, .layer-meta, .layer-figure { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .layer-kicker, .layer-code { font-family: var(--mono); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .layer-code { color: rgba(29, 19, 15, .48); }
  .layer-figure { margin-top: 1.2rem; }
  .layer-figure span { font-family: var(--display); font-size: 2rem; }
  .layer-figure strong { font-family: var(--mono); font-size: 1.02rem; }
  .layer-row { margin-top: 1.15rem; }
  .layer-row span { color: rgba(29, 19, 15, .64); font-size: .72rem; }
  .layer-row strong { font-size: .76rem; }
  .layer-meta { margin-top: 1rem; padding-top: .65rem; border-top: 1px solid var(--line-dark); color: rgba(29, 19, 15, .58); font-size: .58rem; font-weight: 700; }
  .micro-bar { height: 4px; margin-top: 1rem; border-radius: 10px; background: rgba(29, 19, 15, .1); overflow: hidden; }
  .micro-bar span { display: block; height: 100%; border-radius: inherit; background: var(--palm); }
  .layer-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
  .layer-chips span { padding: .28rem .46rem; border-radius: 999px; background: rgba(29, 19, 15, .07); font-size: .52rem; font-weight: 700; }
  .document-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .9rem; }
  .document-mini i { height: 14px; border-radius: 3px; background: rgba(29, 19, 15, .1); }
  .document-mini i:nth-child(2) { background: rgba(168, 84, 37, .2); }
  .hero-foot { position: absolute; z-index: 3; right: 36px; bottom: 28px; left: 36px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; color: rgba(255, 250, 241, .42); font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
  .hero-foot i { height: 1px; background: rgba(255, 250, 241, .14); }
  .hero-foot b { color: var(--copper-bright); font-weight: 750; }

  /* Premise */
  .premise-section { position: relative; padding: 135px 0; background: var(--paper); overflow: hidden; }
  .premise-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; }
  .premise-content { max-width: 660px; }
  .premise-grid h2 { max-width: 650px; margin-top: 1.75rem; font-size: clamp(3.6rem, 5.3vw, 6.7rem); }
  .premise-copy { max-width: 570px; margin-top: 2rem; color: rgba(29, 19, 15, .64); font-size: .92rem; line-height: 1.75; }
  .premise-copy p + p { margin-top: 1.4rem; }
  .premise-evidence { width: 100%; min-height: 590px; margin: 0; }
  .premise-evidence .evidence-caption { color: rgba(29, 19, 15, .48); }
  .fragment-field { position: relative; height: 270px; margin-top: 65px; border-top: 1px solid var(--line-dark); overflow: hidden; }
  .fragment-field::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(216, 189, 147, .25), transparent 52%); }
  .fragment-field span { position: absolute; left: var(--x); top: var(--y); padding: .55rem .8rem; border: 1px solid rgba(29, 19, 15, .12); border-radius: 5px; background: var(--bone); box-shadow: 0 12px 28px rgba(29, 19, 15, .09); color: rgba(29, 19, 15, .62); font-family: var(--mono); font-size: .56rem; transform: rotate(var(--r)); }
  .fragment-field i { position: absolute; left: 8%; right: 8%; bottom: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--copper), transparent); }
  .fragment-field i::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--copper); transform: translateX(-50%); }

  /* Trace explorer */
  .trace-section { padding: 135px 0 150px; background: var(--bone); }
  .trace-layout { display: grid; grid-template-columns: minmax(260px, .36fr) minmax(0, .94fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .trace-intro { position: sticky; top: 125px; }
  .trace-intro h2 { margin-top: 1.6rem; font-size: clamp(4rem, 5.2vw, 6.4rem); }
  .trace-intro > p:not(.section-index) { max-width: 390px; margin-top: 1.8rem; color: rgba(29, 19, 15, .62); line-height: 1.75; }
  .trace-legend { display: grid; gap: .65rem; margin-top: 2.4rem; font-size: .67rem; font-weight: 700; }
  .trace-legend span { display: flex; align-items: center; gap: .55rem; }
  .trace-legend i { width: 7px; height: 7px; border-radius: 50%; }
  .legend-source { background: var(--rust); }
  .legend-control { background: var(--palm); }
  .legend-judgment { background: var(--gold); }
  .trace-explorer { overflow: hidden; border: 1px solid rgba(29, 19, 15, .14); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-2); }
  .trace-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); min-height: 675px; }
  .trace-steps { display: flex; flex-direction: column; padding: 14px 0; background: #342720; color: var(--bone); }
  .trace-step { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: .1rem .65rem; width: 100%; padding: .95rem 1rem; text-align: left; background: transparent; color: rgba(255, 250, 241, .62); }
  .trace-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; transform: scaleY(0); background: var(--copper-bright); transition: transform .35s var(--ease-out); }
  .trace-step span { grid-row: 1 / span 2; color: rgba(255, 250, 241, .32); font-family: var(--mono); font-size: .58rem; }
  .trace-step b { font-size: .7rem; }
  .trace-step small { font-size: .55rem; color: rgba(255, 250, 241, .4); }
  .trace-step.is-active { background: rgba(255, 250, 241, .08); color: var(--bone); }
  .trace-step.is-active::before { transform: scaleY(1); }
  .trace-step.is-active span { color: var(--copper-bright); }
  .trace-panel { min-width: 0; padding: 24px 27px 18px; background: var(--paper); }
  .trace-panel.is-changing { animation: panel-shift .45s var(--ease-out); }
  @keyframes panel-shift { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .trace-breadcrumb { color: rgba(29, 19, 15, .46); font-family: var(--mono); font-size: .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trace-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: 1.7rem; }
  .trace-panel-head p { color: var(--clay); font-family: var(--mono); font-size: .57rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .trace-panel-head h3 { margin-top: .3rem; font-size: clamp(2.4rem, 4vw, 4.7rem); }
  .trace-state { padding: .32rem .55rem; border-radius: 999px; background: rgba(83, 100, 83, .13); color: #405040; font-family: var(--mono); font-size: .54rem; font-weight: 800; text-transform: uppercase; }
  .trace-primary { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(255, 250, 241, .72); }
  .trace-primary div { padding: 1.1rem 1.2rem; }
  .trace-primary div + div { border-left: 1px solid var(--line-dark); }
  .trace-primary span { display: block; color: rgba(29, 19, 15, .5); font-size: .58rem; }
  .trace-primary strong { display: block; margin-top: .25rem; font-family: var(--mono); font-size: clamp(.85rem, 1.2vw, 1.08rem); }
  .trace-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 215px; gap: 1rem; margin-top: 1rem; }
  .trace-table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: 11px; background: rgba(255, 250, 241, .72); }
  .trace-table { width: 100%; font-size: .62rem; }
  .trace-table th { padding: .7rem .75rem; border-bottom: 1px solid var(--line-dark); color: rgba(29, 19, 15, .48); text-align: left; font-family: var(--mono); font-size: .52rem; font-weight: 700; text-transform: uppercase; }
  .trace-table td { padding: .8rem .75rem; border-bottom: 1px solid rgba(29, 19, 15, .08); }
  .trace-table tr:last-child td { border-bottom: 0; }
  .trace-table .total td { background: rgba(216, 189, 147, .18); font-weight: 800; }
  .trace-aside { display: grid; gap: 1rem; }
  .trace-card { padding: 1rem; border: 1px solid var(--line-dark); border-radius: 11px; background: rgba(255, 250, 241, .72); }
  .trace-card > p { color: rgba(29, 19, 15, .5); font-family: var(--mono); font-size: .53rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .trace-card ul { display: grid; gap: .6rem; margin-top: .8rem; list-style: none; }
  .trace-card li { position: relative; padding-left: .75rem; color: rgba(29, 19, 15, .68); font-size: .58rem; line-height: 1.45; }
  .trace-card li::before { content: ""; position: absolute; top: .45em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--palm); }
  .trace-card-accent { background: var(--ink); color: var(--bone); }
  .trace-card-accent > p { color: var(--copper-bright); }
  .trace-card-accent strong { display: block; margin-top: .75rem; font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.05; }
  .trace-card-accent button { width: 100%; margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--line-light); background: transparent; color: var(--bone); text-align: left; font-size: .57rem; font-weight: 700; }
  .trace-card-accent button span { float: right; color: var(--copper-bright); }
  .trace-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line-dark); color: rgba(29, 19, 15, .45); font-family: var(--mono); font-size: .52rem; }

  /* Workspace */
  .workspace-section { padding: 145px 0 155px; background: var(--paper); }
  .workspace-heading { display: grid; grid-template-columns: .55fr 2fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
  .workspace-heading h2 { font-size: clamp(4rem, 6vw, 7rem); }
  .workspace-heading > p:last-child { color: rgba(29, 19, 15, .62); font-size: .9rem; line-height: 1.75; }
  .workspace-deck { display: grid; gap: 34px; margin-top: 80px; }
  .workspace-card {
    position: sticky;
    top: calc(104px + var(--stack, 0) * 16px);
    min-height: 610px;
    padding: clamp(2rem, 4vw, 4.4rem);
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(430px, 1.22fr);
    gap: clamp(2rem, 6vw, 6.5rem);
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(29, 19, 15, .12);
    border-radius: 28px;
    box-shadow: var(--shadow-1);
  }
  .workspace-card:nth-child(1) { --stack: 0; }
  .workspace-card:nth-child(2) { --stack: 1; }
  .workspace-card:nth-child(3) { --stack: 2; }
  .workspace-card:nth-child(4) { --stack: 3; }
  .workspace-intake { background: linear-gradient(130deg, #ead8ba, #e5cfa8); }
  .workspace-risk { background: linear-gradient(135deg, #6e3827, #4e281d); color: var(--bone); }
  .workspace-evidence { background: linear-gradient(135deg, #d77b3a, #bd5f2b); color: var(--bone); }
  .workspace-final { background: linear-gradient(135deg, #2d211c, #19110e); color: var(--bone); }
  .card-number { display: block; color: rgba(29, 19, 15, .1); font-family: var(--display); font-size: 5rem; line-height: .8; }
  .workspace-risk .card-number, .workspace-evidence .card-number, .workspace-final .card-number { color: rgba(255, 250, 241, .1); }
  .card-kicker { margin-top: 1.8rem; font-family: var(--mono); font-size: .63rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  .workspace-intake .card-kicker { color: var(--clay); }
  .workspace-risk .card-kicker, .workspace-evidence .card-kicker, .workspace-final .card-kicker { color: var(--amber); }
  .workspace-copy h3 { margin-top: .8rem; max-width: 440px; font-size: clamp(3rem, 4.2vw, 5rem); }
  .workspace-copy > p:not(.card-kicker) { max-width: 430px; margin-top: 1.4rem; color: rgba(29, 19, 15, .64); font-size: .88rem; line-height: 1.7; }
  .workspace-risk .workspace-copy > p, .workspace-evidence .workspace-copy > p, .workspace-final .workspace-copy > p { color: rgba(255, 250, 241, .68); }
  .workspace-copy ul { display: grid; gap: .65rem; margin-top: 1.7rem; list-style: none; }
  .workspace-copy li { position: relative; padding-left: .9rem; font-size: .69rem; font-weight: 700; }
  .workspace-copy li::before { content: ""; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
  .workspace-ui { min-width: 0; overflow: hidden; border: 1px solid rgba(29, 19, 15, .13); border-radius: 17px; background: var(--bone); color: var(--ink); box-shadow: var(--shadow-ui); }
  .ui-bar { min-height: 45px; padding: 0 16px; border-bottom: 1px solid var(--line-dark); color: rgba(29, 19, 15, .58); font-size: .56rem; }
  .ui-bar b { padding: .28rem .45rem; border-radius: 999px; background: rgba(83, 100, 83, .13); color: #405040; font-size: .48rem; }
  .drop-zone { margin: 18px; padding: 26px 15px; display: grid; place-items: center; border: 1px dashed rgba(29, 19, 15, .25); border-radius: 11px; background: var(--paper); }
  .drop-zone i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bone); font-style: normal; }
  .drop-zone strong { margin-top: .75rem; font-size: .72rem; }
  .drop-zone span { margin-top: .3rem; color: rgba(29, 19, 15, .5); font-size: .54rem; }
  .file-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: .7rem; margin: 0 18px; padding: .8rem 0; border-top: 1px solid rgba(29, 19, 15, .08); }
  .file-row > i { display: grid; place-items: center; width: 31px; height: 27px; border-radius: 5px; background: rgba(83, 100, 83, .12); color: #405040; font-family: var(--mono); font-size: .45rem; font-style: normal; font-weight: 800; }
  .file-row span { min-width: 0; }
  .file-row b, .file-row small { display: block; }
  .file-row b { font-size: .63rem; }
  .file-row small { margin-top: .2rem; color: rgba(29, 19, 15, .46); font-size: .49rem; }
  .file-row em { color: #405040; font-family: var(--mono); font-size: .52rem; font-style: normal; font-weight: 800; }
  .file-row.warning > i { background: rgba(154, 66, 48, .13); color: #783225; }
  .file-row.warning em { color: #783225; }
  .risk-metrics { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1px; background: var(--line-dark); border-bottom: 1px solid var(--line-dark); }
  .risk-metrics div { padding: 1.2rem; background: var(--bone); }
  .risk-metrics small, .risk-metrics strong { display: block; }
  .risk-metrics small { color: rgba(29, 19, 15, .47); font-size: .53rem; }
  .risk-metrics strong { margin-top: .3rem; font-family: var(--mono); font-size: 1rem; }
  .histogram { height: 160px; margin: 22px 22px 14px; padding: 18px 10px 0; display: flex; align-items: end; gap: 8px; border-bottom: 1px solid var(--line-dark); background: repeating-linear-gradient(to top, transparent 0 39px, rgba(29, 19, 15, .06) 40px); }
  .histogram i { flex: 1; height: var(--h); min-width: 8px; border-radius: 3px 3px 0 0; background: linear-gradient(var(--copper-bright), var(--action)); opacity: .82; }
  .histogram i.hot { background: var(--rust); opacity: 1; }
  .risk-table { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; padding: 0 22px 22px; }
  .risk-table span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: .5rem; color: rgba(29, 19, 15, .62); font-size: .53rem; }
  .risk-table i { width: 6px; height: 6px; border-radius: 50%; background: var(--palm); }
  .risk-table span:nth-child(2) i { background: var(--rust); }
  .risk-table span:nth-child(3) i { background: var(--gold); }
  .risk-table span:nth-child(4) i { background: var(--copper); }
  .risk-table b { color: var(--ink); font-family: var(--mono); }
  .evidence-ui { display: grid; grid-template-columns: .9fr 1.1fr; }
  .evidence-ui .ui-bar { grid-column: 1 / -1; }
  .document-preview { min-height: 330px; margin: 18px 0 18px 18px; padding: 21px; display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: 8px; background: #fffdf8; box-shadow: 0 12px 24px rgba(29, 19, 15, .08); }
  .document-preview span, .document-preview b { font-family: var(--mono); font-size: .48rem; letter-spacing: .08em; }
  .document-preview b { margin-left: auto; }
  .document-preview i { display: block; width: 82%; height: 5px; margin-top: 24px; border-radius: 5px; background: rgba(29, 19, 15, .08); }
  .document-preview i + i { width: 64%; margin-top: 8px; }
  .document-preview i + i + i { width: 92%; }
  .document-preview strong { margin-top: auto; font-family: var(--mono); font-size: 1.05rem; }
  .document-preview em { margin-top: .3rem; color: rgba(29, 19, 15, .45); font-size: .5rem; font-style: normal; }
  .evidence-checks { padding: 18px; display: grid; align-content: center; gap: .65rem; }
  .evidence-checks p { display: grid; grid-template-columns: 29px 1fr; gap: .65rem; align-items: center; padding: .72rem; border: 1px solid rgba(29, 19, 15, .09); border-radius: 9px; }
  .evidence-checks p > i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(83, 100, 83, .13); color: #405040; font-style: normal; font-weight: 900; }
  .evidence-checks p.query > i { background: rgba(154, 66, 48, .13); color: #783225; }
  .evidence-checks b, .evidence-checks small { display: block; }
  .evidence-checks b { font-size: .58rem; }
  .evidence-checks small { margin-top: .18rem; color: rgba(29, 19, 15, .48); font-size: .48rem; }
  .completion-score { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; }
  .score-ring { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--copper) 0 86%, rgba(29, 19, 15, .09) 86%); }
  .score-ring::before { content: ""; grid-area: 1 / 1; width: 72px; height: 72px; border-radius: 50%; background: var(--bone); }
  .score-ring span { z-index: 1; grid-area: 1 / 1; font-family: var(--mono); font-size: 1rem; font-weight: 900; }
  .completion-score > div:last-child strong, .completion-score > div:last-child small { display: block; }
  .completion-score > div:last-child strong { font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
  .completion-score > div:last-child small { margin-top: .3rem; color: rgba(29, 19, 15, .5); font-size: .53rem; }
  .completion-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 18px; border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; }
  .completion-grid div { padding: .9rem; background: var(--paper); }
  .completion-grid div:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .completion-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .completion-grid small, .completion-grid strong { display: block; }
  .completion-grid small { color: rgba(29, 19, 15, .47); font-size: .49rem; }
  .completion-grid strong { margin-top: .25rem; font-family: var(--mono); font-size: .7rem; }
  .completion-alert { display: grid; grid-template-columns: 28px 1fr auto; gap: .7rem; align-items: center; margin: 18px; padding: .75rem; border-radius: 9px; background: rgba(154, 66, 48, .11); }
  .completion-alert > i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--rust); color: var(--bone); font-style: normal; }
  .completion-alert b, .completion-alert small { display: block; }
  .completion-alert b { font-size: .56rem; }
  .completion-alert small { margin-top: .15rem; color: rgba(29, 19, 15, .5); font-size: .46rem; }
  .completion-alert button { padding: .4rem .65rem; border-radius: 6px; background: var(--ink); color: var(--bone); font-size: .5rem; }

  /* Review */
  .review-section { padding: 145px 0 160px; background: var(--ink); color: var(--bone); }
  .review-section h2 em { color: var(--copper-bright); }
  .review-heading { display: grid; grid-template-columns: .55fr 2fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
  .review-heading .section-index { color: var(--amber); }
  .review-heading h2 { font-size: clamp(4rem, 6vw, 7rem); }
  .review-heading > p:last-child { color: rgba(255, 250, 241, .62); font-size: .9rem; line-height: 1.75; }
  .review-board { margin-top: 80px; overflow: hidden; border: 1px solid rgba(255, 250, 241, .18); border-radius: 21px; background: var(--paper); color: var(--ink); box-shadow: 0 48px 110px rgba(0, 0, 0, .34); }
  .review-topbar { height: 48px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line-dark); background: var(--bone); font-family: var(--mono); font-size: .56rem; }
  .review-topbar p { font-weight: 750; }
  .sync-state { justify-self: end; display: flex; align-items: center; gap: .45rem; color: #405040; }
  .sync-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--palm); box-shadow: 0 0 0 4px rgba(83, 100, 83, .11); }
  .review-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-dark); }
  .review-metrics div { padding: 1.2rem 1.3rem; background: var(--paper); }
  .review-metrics div + div { border-left: 1px solid var(--line-dark); }
  .review-metrics small, .review-metrics strong, .review-metrics span { display: block; }
  .review-metrics small { color: rgba(29, 19, 15, .48); font-size: .52rem; }
  .review-metrics strong { margin-top: .35rem; font-family: var(--mono); font-size: 1.05rem; }
  .review-metrics span { margin-top: .2rem; color: rgba(29, 19, 15, .52); font-size: .49rem; }
  .review-filters { display: flex; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line-dark); background: var(--bone); overflow-x: auto; }
  .review-filters button { flex: 0 0 auto; padding: .48rem .7rem; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: rgba(29, 19, 15, .68); font-size: .55rem; font-weight: 750; }
  .review-filters button span { margin-left: .35rem; color: rgba(29, 19, 15, .42); font-family: var(--mono); }
  .review-filters button.is-active { border-color: var(--ink); background: var(--ink); color: var(--bone); }
  .review-filters button.is-active span { color: var(--copper-bright); }
  .review-content { display: grid; grid-template-columns: 1.45fr .75fr; min-height: 500px; }
  .review-list { border-right: 1px solid var(--line-dark); }
  .review-item { display: grid; grid-template-columns: 30px 1fr auto 20px; gap: .8rem; align-items: center; width: 100%; min-height: 76px; padding: .85rem 1rem; border-bottom: 1px solid rgba(29, 19, 15, .09); background: transparent; color: var(--ink); text-align: left; }
  .review-item:hover, .review-item.is-selected { background: rgba(216, 189, 147, .19); }
  .review-item.is-selected { box-shadow: inset 3px 0 var(--action); }
  .review-severity { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-family: var(--mono); font-size: .57rem; font-weight: 900; }
  .severity-high { background: rgba(154, 66, 48, .14); color: #783225; }
  .severity-medium { background: rgba(185, 138, 66, .17); color: #705326; }
  .severity-clear { background: rgba(83, 100, 83, .14); color: #405040; }
  .review-item > span:nth-child(2) { min-width: 0; }
  .review-item strong, .review-item small { display: block; }
  .review-item strong { font-size: .65rem; }
  .review-item small { margin-top: .22rem; color: rgba(29, 19, 15, .48); font-size: .5rem; }
  .review-flags { display: flex; gap: .35rem; }
  .review-flags i, .review-flags b, .review-flags em { padding: .28rem .4rem; border-radius: 999px; font-size: .46rem; font-style: normal; font-weight: 800; }
  .review-flags i { background: rgba(154, 66, 48, .11); color: #783225; }
  .review-flags b { background: rgba(29, 19, 15, .08); color: var(--ink); }
  .review-flags em { background: rgba(83, 100, 83, .13); color: #405040; }
  .review-detail { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--dune); }
  .review-detail .eyebrow-small { color: var(--clay); }
  .review-detail h3 { margin-top: 1.15rem; font-size: clamp(2rem, 3.1vw, 3.7rem); }
  .review-detail > span { display: block; margin-top: .8rem; color: var(--clay); font-family: var(--mono); font-size: .6rem; font-weight: 800; }
  .review-detail > p:not(.eyebrow-small) { margin-top: 1.3rem; color: rgba(29, 19, 15, .65); font-size: .74rem; line-height: 1.65; }
  .version-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; margin: 1.5rem 0; }
  .version-compare > div { padding: .75rem; border: 1px solid var(--line-dark); border-radius: 8px; background: rgba(255, 250, 241, .55); }
  .version-compare small { display: block; margin-bottom: .55rem; color: rgba(29, 19, 15, .46); font-size: .46rem; }
  .version-compare i { display: block; width: 88%; height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(29, 19, 15, .12); }
  .version-compare i.removed { background: rgba(154, 66, 48, .35); }
  .version-compare i.added { background: rgba(83, 100, 83, .35); }
  .version-compare > span { color: var(--clay); }
  .review-detail .button { width: 100%; }
  .detail-note { display: block; margin-top: .8rem; color: rgba(29, 19, 15, .46); font-size: .49rem; text-align: center; }

  /* Control model */
  .controls-section { padding: 150px 0; background: var(--dune); }
  .controls-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
  .controls-intro { position: sticky; top: 125px; }
  .controls-intro h2 { margin-top: 1.5rem; font-size: clamp(4rem, 5.5vw, 6.6rem); }
  .controls-intro > p:last-child { max-width: 480px; margin-top: 1.8rem; color: rgba(29, 19, 15, .63); line-height: 1.75; }
  .control-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .control-columns article { min-height: 610px; padding: clamp(1.7rem, 3vw, 2.7rem); border-radius: 18px; }
  .control-core { background: var(--ink); color: var(--bone); box-shadow: var(--shadow-2); transform: translateY(52px); }
  .control-judgment { border: 1px solid rgba(29, 19, 15, .13); background: var(--paper); box-shadow: var(--shadow-1); }
  .control-label { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .57rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .control-label span { width: 18px; height: 1px; background: currentColor; }
  .control-core .control-label { color: var(--copper-bright); }
  .control-judgment .control-label { color: var(--clay); }
  .control-columns h3 { margin-top: 1.3rem; font-size: clamp(2.5rem, 3.5vw, 4rem); }
  .control-columns ol { margin-top: 2.5rem; list-style: none; }
  .control-columns li { display: grid; grid-template-columns: 30px 1fr; gap: .9rem; padding: 1.15rem 0; border-top: 1px solid currentColor; border-color: rgba(255, 250, 241, .14); }
  .control-judgment li { border-color: rgba(29, 19, 15, .12); }
  .control-columns li > span { color: var(--copper-bright); font-family: var(--mono); font-size: .55rem; }
  .control-judgment li > span { color: var(--rust); }
  .control-columns li b, .control-columns li small { display: block; }
  .control-columns li b { font-size: .68rem; }
  .control-columns li small { margin-top: .4rem; color: rgba(255, 250, 241, .56); font-size: .55rem; line-height: 1.55; }
  .control-judgment li small { color: rgba(29, 19, 15, .55); }

  /* UAE */
  .uae-section { position: relative; padding: 150px 0; overflow: hidden; background: var(--paper); }
  .uae-contours { position: absolute; inset: 0; opacity: .28; pointer-events: none; background: repeating-radial-gradient(ellipse at 16% 68%, transparent 0 42px, rgba(168, 84, 37, .14) 43px 44px, transparent 45px 78px); }
  .uae-layout { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
  .uae-intro h2 { margin-top: 1.5rem; font-size: clamp(4rem, 6vw, 7rem); }
  .uae-intro > p:last-child { max-width: 470px; margin-top: 1.8rem; color: rgba(29, 19, 15, .62); line-height: 1.75; }
  .uae-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .uae-grid article { min-height: 235px; padding: 1.6rem; border: 1px solid rgba(29, 19, 15, .11); border-radius: 15px; background: rgba(255, 250, 241, .78); box-shadow: 0 18px 44px rgba(29, 19, 15, .07); backdrop-filter: blur(5px); }
  .uae-grid span { color: var(--rust); font-family: var(--mono); font-size: .58rem; font-weight: 800; }
  .uae-grid h3 { margin-top: 2.5rem; font-size: clamp(1.9rem, 2.7vw, 3rem); }
  .uae-grid p { margin-top: 1rem; color: rgba(29, 19, 15, .57); font-size: .67rem; line-height: 1.6; }

  /* Hours */
  .hours-section { padding: 145px 0; background: #763923; color: var(--bone); }
  .hours-section h2 em { color: var(--amber); }
  .hours-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
  .hours-copy .section-index { color: var(--amber); }
  .hours-copy h2 { margin-top: 1.5rem; font-size: clamp(3.8rem, 5.5vw, 6.5rem); }
  .hours-copy > p { max-width: 560px; margin-top: 1.8rem; color: rgba(255, 250, 241, .68); line-height: 1.75; }
  .hours-copy > small { display: block; max-width: 560px; margin-top: 1.4rem; color: rgba(255, 250, 241, .46); font-size: .58rem; line-height: 1.55; }
  .hours-visual { padding: clamp(1.5rem, 3vw, 2.8rem); border: 1px solid rgba(255, 250, 241, .14); border-radius: 20px; background: rgba(29, 19, 15, .18); box-shadow: 0 34px 80px rgba(29, 19, 15, .22); }
  .hours-total { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
  .hours-total > div { min-height: 180px; padding: 1.3rem; border: 1px solid rgba(255, 250, 241, .11); border-radius: 12px; }
  .hours-total > div.target { background: var(--bone); color: var(--ink); }
  .hours-total span, .hours-total small { display: block; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
  .hours-total strong { display: block; margin-top: .8rem; font-family: var(--display); font-size: 5.5rem; font-weight: 500; line-height: .75; }
  .hours-total small { margin-top: 1rem; color: inherit; opacity: .55; }
  .hours-arrow { color: var(--amber); font-size: 1.3rem; }
  .hours-bars { display: grid; gap: .75rem; margin-top: 2rem; }
  .hours-bars > div { display: grid; grid-template-columns: 125px 1fr 52px; gap: .8rem; align-items: center; font-size: .55rem; }
  .hours-bars > div > span { color: rgba(255, 250, 241, .65); }
  .hours-bars > div > i { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 250, 241, .13); overflow: hidden; }
  .hours-bars > div > i::before { content: ""; position: absolute; inset: 0; width: 88%; border-radius: inherit; background: rgba(227, 167, 93, .42); }
  .hours-bars > div > i > b { position: absolute; inset: 0; width: var(--after); border-radius: inherit; background: var(--amber); }
  .hours-bars em { font-family: var(--mono); font-style: normal; text-align: right; }
  .hours-legend { display: flex; gap: 1.2rem; margin-top: 1.4rem; color: rgba(255, 250, 241, .55); font-size: .5rem; }
  .hours-legend span { display: flex; align-items: center; gap: .4rem; }
  .hours-legend i { width: 16px; height: 4px; border-radius: 5px; background: rgba(227, 167, 93, .42); }
  .hours-legend span:last-child i { background: var(--amber); }

  /* Demo */
  .demo-section { position: relative; padding: 150px 0; overflow: hidden; background: #19110e; color: var(--bone); }
  .demo-section h2 em { color: var(--copper-bright); }
  .demo-contours { position: absolute; inset: 0; opacity: .18; background: repeating-radial-gradient(ellipse at 82% 52%, transparent 0 56px, rgba(220, 135, 68, .22) 57px 58px, transparent 59px 102px); }
  .demo-layout { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
  .demo-copy .eyebrow { color: var(--amber); }
  .demo-copy h2 { margin-top: 1.6rem; font-size: clamp(4rem, 6vw, 7rem); }
  .demo-copy > p { max-width: 520px; margin-top: 1.7rem; color: rgba(255, 250, 241, .64); line-height: 1.75; }
  .demo-proof { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
  .demo-proof span { padding: .45rem .65rem; border: 1px solid rgba(255, 250, 241, .16); border-radius: 999px; color: rgba(255, 250, 241, .65); font-size: .55rem; font-weight: 700; }
  .demo-form { padding: clamp(1.5rem, 3vw, 2.8rem); border: 1px solid rgba(255, 250, 241, .14); border-radius: 20px; background: rgba(255, 250, 241, .06); box-shadow: 0 38px 90px rgba(0, 0, 0, .3); backdrop-filter: blur(10px); }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .demo-form label { display: block; margin-bottom: 1rem; }
  .demo-form label > span { display: block; margin-bottom: .45rem; color: rgba(255, 250, 241, .69); font-size: .58rem; font-weight: 700; }
  .demo-form input, .demo-form select, .demo-form textarea { width: 100%; border: 1px solid rgba(255, 250, 241, .14); border-radius: 8px; outline: none; background: rgba(255, 250, 241, .08); color: var(--bone); font-size: .73rem; transition: border-color .25s, background-color .25s; }
  .demo-form input, .demo-form select { height: 48px; padding: 0 .85rem; }
  .demo-form textarea { padding: .8rem; resize: vertical; }
  .demo-form select option { color: var(--ink); }
  .demo-form input::placeholder, .demo-form textarea::placeholder { color: rgba(255, 250, 241, .32); }
  .demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { border-color: var(--amber); background: rgba(255, 250, 241, .11); }
  .demo-form [aria-invalid="true"] { border-color: #f49a7e; }
  .form-footer { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
  .form-footer p { max-width: 270px; color: rgba(255, 250, 241, .4); font-size: .52rem; line-height: 1.5; }
  .form-status { min-height: 1.3rem; margin-top: .8rem; color: var(--amber); font-size: .62rem; font-weight: 700; }
  .form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
  .demo-form button[disabled] { cursor: wait; opacity: .72; transform: none; }

  /* Footer */
  .site-footer { padding: 0 0 40px; border-top: 1px solid var(--line-dark); background: linear-gradient(180deg, var(--bone) 0%, var(--paper) 100%); color: var(--ink); }
  .footer-statement { padding: 68px 0 46px; border-bottom: 1px solid var(--line-dark); }
  .footer-statement p { color: var(--ink); font-family: var(--sans); font-size: clamp(1.35rem, 2.35vw, 2.5rem); font-weight: 550; line-height: 1.1; letter-spacing: -.045em; }
  .footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .9fr 1.2fr; gap: 3rem; padding-top: 48px; }
  .footer-brand img { display: block; width: 122px; height: auto; max-width: 100%; filter: none; opacity: 1; }
  .footer-brand p { max-width: 290px; margin-top: 1.2rem; color: var(--ink-2); font-size: .7rem; }
  .footer-grid > div:not(.footer-brand) > p { margin-bottom: 1rem; color: var(--clay); font-family: var(--mono); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .footer-grid a { display: block; width: fit-content; margin-top: .65rem; color: var(--ink-2); font-size: .66rem; transition: color .25s; }
  .footer-grid a:hover { color: var(--copper); }
  .footer-note > span { display: block; color: var(--ink); font-family: var(--display); font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.05; white-space: nowrap; }
  .footer-note > span em { color: var(--copper); font-style: normal; }
  .footer-note small { display: block; margin-top: 2.8rem; color: rgba(29, 19, 15, .56); font-size: .52rem; }
}

@layer responsive {
  @media (max-width: 1180px) {
    :root { --container: min(1120px, calc(100vw - 48px)); }
    .hero-shell { width: calc(100vw - 48px); grid-template-columns: 1fr; gap: 4rem; }
    .hero h2 { font-size: clamp(3rem, 5vw, 4.7rem); }
    .evidence-stack-wrap { min-height: 590px; }
    .workspace-card { grid-template-columns: .75fr 1.25fr; gap: 3rem; }
    .trace-content-grid { grid-template-columns: 1fr; }
    .trace-aside { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 980px) {
    :root { --container: min(900px, calc(100vw - 40px)); }
    .primary-nav { position: fixed; top: 96px; right: 18px; left: 18px; padding: .85rem; display: grid; gap: .2rem; border: 1px solid rgba(29, 19, 15, .1); border-radius: 14px; background: var(--bone); box-shadow: var(--shadow-1); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, visibility .3s, transform .3s var(--ease-out); }
    .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .primary-nav > a { padding: .8rem .9rem !important; }
    .primary-nav > a:not(.nav-cta)::after { display: none; }
    .nav-cta { margin-top: .25rem; justify-content: space-between; }
    .menu-toggle { display: grid; }
    .hero { min-height: 200svh; }
    .hero-shell { width: var(--container); min-height: 100svh; padding: 105px 0 80px; grid-template-columns: 1fr; gap: 4.5rem; }
    .hero-copy { max-width: none; }
    .hero h2 { font-size: clamp(2.9rem, 5.5vw, 4.3rem); }
    .evidence-stack-wrap { width: min(720px, 100%); margin-inline: auto; }
    .premise-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
    .workspace-heading, .review-heading { grid-template-columns: .45fr 1.8fr; }
    .workspace-heading > p:last-child, .review-heading > p:last-child { grid-column: 2; }
    .trace-layout { grid-template-columns: 1fr; }
    .trace-intro, .controls-intro { position: relative; top: auto; }
    .trace-intro > p:not(.section-index) { max-width: 600px; }
    .workspace-card { position: relative; top: auto; min-height: 0; grid-template-columns: 1fr; }
    .workspace-copy { max-width: 680px; }
    .review-content { grid-template-columns: 1.2fr .8fr; }
    .controls-layout { grid-template-columns: 1fr; }
    .controls-intro > p:last-child { max-width: 650px; }
    .control-core { transform: none; }
    .uae-layout, .hours-layout, .demo-layout { grid-template-columns: 1fr; }
    .uae-intro > p:last-child, .hours-copy > p, .demo-copy > p { max-width: 680px; }
    .hours-visual, .demo-form { max-width: 760px; }
    .footer-grid { grid-template-columns: 1.3fr .7fr .9fr; }
    .footer-note { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; }
    .footer-note small { margin-top: 0; }
  }

  @media (max-width: 720px) {
    :root { --container: calc(100vw - 28px); }
    body { font-size: 15px; }
    h2 { font-size: clamp(3.1rem, 14vw, 5rem); }
    .site-header { inset: 10px 0 auto; }
    .header-shell { width: calc(100vw - 20px); min-height: 58px; padding: 7px 7px 7px 13px; border-radius: 13px; }
    .brand { width: 92px; }
    .menu-toggle { width: 42px; height: 42px; }
    .primary-nav { top: 78px; right: 10px; left: 10px; }
    .hero-shell { padding: 82px 0 62px; gap: 3.3rem; }
    .intro-splash-shell { padding: 115px 0 70px; }
    .intro-splash h1 { margin: 0; font-size: clamp(2rem, 9vw, 3.4rem); }
    .intro-scroll { margin-top: 2.6rem; }
    .hero h2 { font-size: clamp(3.2rem, 14vw, 5.2rem); line-height: .91; white-space: normal; }
    .hero-claim { font-size: 1.05rem; }
    .hero-lede { font-size: .94rem; }
    .hero-actions { display: grid; }
    .hero-actions .button { width: 100%; }
    .hero-principles { margin-top: 2.6rem; }
    .hero-principles div { display: block; }
    .hero-principles dd { margin-top: .25rem; font-size: .58rem; }
    .evidence-stack-wrap { min-height: 570px; }
    .evidence-caption { margin-inline: 0; }
    .evidence-stack { height: 540px; }
    .evidence-layer { --offset: calc(var(--layer) * 67px); left: calc(var(--layer) * 4px); width: calc(100% - (var(--layer) * 8px)); padding: 15px 16px; min-height: 120px; }
    .layer-figure span { font-size: 1.65rem; }
    .layer-figure strong { font-size: .78rem; }
    .depth-line { height: 360px; }
    .hero-foot { right: 14px; bottom: 16px; left: 14px; }
    .hero-foot span { display: none; }
    .hero-foot { grid-template-columns: 1fr auto; }
    .premise-section, .trace-section, .workspace-section, .review-section, .controls-section, .uae-section, .hours-section, .demo-section { padding-top: 105px; padding-bottom: 105px; }
    .premise-grid, .workspace-heading, .review-heading { display: block; }
    .premise-grid h2, .workspace-heading h2, .review-heading h2 { margin-top: 1.4rem; font-size: clamp(3.2rem, 14vw, 5.3rem); }
    .premise-copy, .workspace-heading > p:last-child, .review-heading > p:last-child { margin-top: 1.6rem; }
    .premise-evidence { width: min(720px, 100%); min-height: 570px; margin: 3.5rem auto 0; }
    .fragment-field { height: 230px; }
    .fragment-field span { font-size: .46rem; }
    .fragment-field span:nth-child(2), .fragment-field span:nth-child(4) { display: none; }
    .trace-intro h2, .controls-intro h2, .uae-intro h2, .hours-copy h2, .demo-copy h2 { font-size: clamp(3.2rem, 14vw, 5.3rem); }
    .trace-explorer { border-radius: 15px; }
    .trace-body { grid-template-columns: 1fr; min-height: 0; }
    .trace-steps { flex-direction: row; overflow-x: auto; padding: 0; }
    .trace-step { min-width: 118px; grid-template-columns: 20px 1fr; padding: .8rem; }
    .trace-step::before { inset: auto 0 0; width: auto; height: 3px; transform: scaleX(0); }
    .trace-step.is-active::before { transform: scaleX(1); }
    .trace-panel { padding: 20px 15px 15px; }
    .trace-panel-head { display: block; }
    .trace-state { display: inline-flex; margin-top: .7rem; }
    .trace-primary { grid-template-columns: 1fr; }
    .trace-primary div + div { border-top: 1px solid var(--line-dark); border-left: 0; }
    .trace-content-grid { grid-template-columns: 1fr; }
    .trace-aside { grid-template-columns: 1fr; }
    .trace-footer { display: grid; }
    .workspace-deck { margin-top: 55px; gap: 18px; }
    .workspace-card { padding: 28px 18px; border-radius: 18px; gap: 2.5rem; }
    .card-number { font-size: 4rem; }
    .workspace-copy h3 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
    .workspace-ui { border-radius: 13px; }
    .risk-metrics { grid-template-columns: 1fr 1fr; }
    .risk-metrics div:first-child { grid-column: 1 / -1; }
    .histogram { gap: 4px; margin-inline: 14px; }
    .risk-table { grid-template-columns: 1fr; padding-inline: 14px; }
    .evidence-ui { grid-template-columns: 1fr; }
    .evidence-ui .ui-bar { grid-column: 1; }
    .document-preview { min-height: 280px; margin: 14px; }
    .evidence-checks { padding-top: 0; }
    .review-board { margin-top: 55px; border-radius: 15px; }
    .review-topbar { grid-template-columns: auto 1fr; gap: .8rem; }
    .review-topbar p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .sync-state { display: none; }
    .review-metrics { grid-template-columns: 1fr 1fr; }
    .review-metrics div:nth-child(3), .review-metrics div:nth-child(4) { border-top: 1px solid var(--line-dark); }
    .review-metrics div:nth-child(3) { border-left: 0; }
    .review-content { grid-template-columns: 1fr; }
    .review-list { border-right: 0; }
    .review-item { grid-template-columns: 28px 1fr 18px; }
    .review-flags { display: none; }
    .review-detail { border-top: 1px solid var(--line-dark); }
    .control-columns, .uae-grid { grid-template-columns: 1fr; }
    .control-columns article { min-height: 0; }
    .uae-grid article { min-height: 210px; }
    .hours-total { grid-template-columns: 1fr; }
    .hours-arrow { transform: rotate(90deg); justify-self: center; }
    .hours-bars > div { grid-template-columns: 105px 1fr 45px; gap: .55rem; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-footer { align-items: stretch; flex-direction: column; }
    .form-footer .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-note { grid-column: 1 / -1; display: block; }
    .footer-note small { margin-top: 2rem; }
    .footer-statement { padding: 52px 0 36px; }
    .footer-statement p { font-size: clamp(1.5rem, 7vw, 2.4rem); }
  }

  @media (max-width: 430px) {
    .hero h2 { font-size: clamp(3.05rem, 14vw, 4.55rem); }
    .hero-principles { gap: .25rem; }
    .evidence-caption span:last-child { display: none; }
    .layer-chips span:nth-child(3) { display: none; }
    .trace-table { min-width: 430px; }
    .completion-grid { grid-template-columns: 1fr; }
    .completion-grid div:nth-child(odd) { border-right: 0; }
    .completion-grid div { border-bottom: 1px solid var(--line-dark); }
    .completion-grid div:last-child { border-bottom: 0; }
    .hours-bars > div { grid-template-columns: 1fr; }
    .hours-bars em { text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .strata-canvas { display: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .evidence-layer:hover, .button:hover { transform: none; }
  }

  @media (forced-colors: active) {
    .strata-canvas, .hero-grain, .uae-contours, .demo-contours { display: none; }
    .button, .nav-cta, .trace-explorer, .workspace-card, .review-board, .control-columns article, .uae-grid article, .demo-form { border: 1px solid CanvasText; }
    .status, .review-severity, .review-flags i, .review-flags b, .review-flags em { border: 1px solid currentColor; }
  }
}

@layer utilities {
  [hidden] { display: none !important; }
}
