@layer reset, tokens, base, layout, components, motion, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, dl, dd, ul { margin: 0; }
  ul { padding: 0; list-style: none; }
  button, input, textarea, select { font: inherit; }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  summary { list-style: none; }
  summary::-webkit-details-marker { display: none; }
}

@layer tokens {
  :root {
    --ink: #0E1B2E;
    --ink-2: #172840;
    --ink-3: #2A3A50;
    --brass: #B8892F;
    --brass-soft: #D4B36E;
    --paper: #F2EEE4;
    --paper-2: #F8F5EE;
    --paper-3: #E8E1D2;
    --sea: #4C6B63;
    --slate: #5B6472;
    --line: rgba(14, 27, 46, .18);
    --line-dark: rgba(242, 238, 228, .18);
    --shadow: 0 30px 80px rgba(9, 18, 31, .18);
    --shell: min(1440px, calc(100vw - 112px));
    --header-h: 78px;
    --radius-l: 44px;
    --radius-m: 24px;
    --space-1: .5rem;
    --space-2: .75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --space-8: 6rem;
    --space-9: 8rem;
    --ease: cubic-bezier(.22, 1, .36, 1);
  }
}

@layer base {
  @font-face {
    font-family: Inter;
    src: url('../fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: Inter;
    src: url('../fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: Inter;
    src: url('../fonts/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter Display';
    src: url('../fonts/inter-display-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter Display';
    src: url('../fonts/inter-display-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Liberation Mono';
    src: url('../fonts/liberation-mono.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  html { background: var(--paper); }
  body {
    min-width: 320px;
    color: var(--ink);
    background:
      radial-gradient(circle at 20% 20%, rgba(184,137,47,.025), transparent 32rem),
      linear-gradient(90deg, rgba(14,27,46,.018) 1px, transparent 1px),
      var(--paper);
    background-size: auto, 36px 36px, auto;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  body.menu-open { overflow: hidden; }
  ::selection { background: var(--brass); color: var(--ink); }
  h1, h2, h3 {
    font-family: 'Inter Display', Inter, sans-serif;
    font-weight: 500;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  h1 { font-size: clamp(4.2rem, 8.4vw, 8.75rem); line-height: .86; }
  h2 { font-size: clamp(3.1rem, 5.6vw, 6.6rem); line-height: .95; }
  h3 { font-size: clamp(2rem, 3.2vw, 4rem); line-height: 1; }
  p { text-wrap: pretty; }
  .mono {
    font-family: 'Liberation Mono', monospace;
    font-size: .72rem;
    line-height: 1.4;
    letter-spacing: .11em;
    text-transform: uppercase;
  }
  :focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
}

@layer layout {
  .section { position: relative; padding: clamp(7rem, 10vw, 10rem) 0; }
  .section-dark { position: relative; background: var(--ink); color: var(--paper); }
  .section-shell { width: var(--shell); margin: 0 auto; }
  .section-label { color: var(--brass); }
  .skip-link {
    position: fixed; left: 1rem; top: 1rem; z-index: 9999;
    transform: translateY(-160%);
    padding: .75rem 1rem; border-radius: 999px;
    background: var(--brass); color: var(--ink); font-weight: 600;
  }
  .skip-link:focus { transform: translateY(0); }
}

@layer components {
  .site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .site-header.is-scrolled {
    background: rgba(242, 238, 228, .92);
    backdrop-filter: blur(18px);
    border-color: rgba(14,27,46,.12);
    box-shadow: 0 8px 30px rgba(14,27,46,.05);
  }
  .header-shell {
    width: var(--shell); height: 100%; margin: 0 auto;
    display: grid; grid-template-columns: minmax(190px, 260px) 1fr auto;
    align-items: center; gap: clamp(1.5rem, 3vw, 4rem);
  }
  .brand { width: clamp(210px, 16vw, 258px); line-height: 0; }
  .brand img { width: 100%; height: auto; }
  .desktop-nav { justify-self: center; display: flex; gap: clamp(1.5rem, 2.7vw, 3.25rem); }
  .desktop-nav a {
    position: relative; font-size: .78rem; font-weight: 500; letter-spacing: .035em;
    color: rgba(14,27,46,.75); padding: .5rem 0;
  }
  .desktop-nav a::after, .footer-links a::after, .text-link::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: .15rem; height: 1px; background: currentColor;
    transition: right .3s var(--ease);
  }
  .desktop-nav a:hover::after, .footer-links a:hover::after, .text-link:hover::after { right: 0; }
  .header-cta {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .03em;
    padding: .75rem 0; border-bottom: 1px solid var(--ink);
  }
  .header-cta span:last-child { color: var(--brass); }
  .menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
  .menu-toggle span { display: block; width: 100%; height: 1px; background: var(--ink); margin: 7px 0; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { display: none; }

  .hero {
    min-height: 100svh; padding: calc(var(--header-h) + 4rem) 0 5.5rem;
    display: grid; align-items: center; overflow: clip;
  }
  .hero::before {
    content: ''; position: absolute; inset: var(--header-h) 0 auto;
    height: 1px; background: linear-gradient(90deg, transparent, rgba(14,27,46,.18) 12%, rgba(14,27,46,.18) 88%, transparent);
  }
  .hero::after {
    content: ''; position: absolute; width: clamp(520px, 46vw, 900px); aspect-ratio: 1;
    right: -24vw; top: 2vh; border: 1px solid rgba(14,27,46,.08); border-radius: 50%;
    box-shadow: 0 0 0 120px rgba(14,27,46,.014), 0 0 0 250px rgba(14,27,46,.012);
    pointer-events: none;
  }
  .hero-shell {
    position: relative; z-index: 2; width: var(--shell); margin: 0 auto;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2rem;
    align-items: end;
  }
  .hero-kicker { grid-column: 2 / 12; display: flex; justify-content: space-between; color: var(--slate); border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
  .hero-copy { grid-column: 2 / 9; padding-top: clamp(1.5rem, 4vw, 4rem); }
  .hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
  .hero-title .line > span { display: block; transform: translateY(110%); animation: title-in 1.1s var(--ease) forwards; }
  .hero-title .line:nth-child(2) > span { animation-delay: .1s; color: var(--ink-2); }
  .hero-lede { max-width: 38rem; margin-top: 2.25rem; font-size: clamp(1.06rem, 1.3vw, 1.32rem); color: var(--ink-3); }
  .hero-actions { margin-top: 2.4rem; display: flex; align-items: center; gap: 2rem; }
  .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
    min-height: 54px; padding: .9rem 1.45rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .035em;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  }
  .button:hover { transform: translateY(-2px); }
  .button-primary { background: var(--ink); color: var(--paper); }
  .button-primary:hover { background: var(--ink-2); }
  .text-link { position: relative; font-size: .78rem; font-weight: 600; padding: .75rem 0; }
  .transaction-brief { grid-column: 9 / 13; align-self: end; margin-bottom: .2rem; }
  .brief-heading, .transaction-brief dl > div, .brief-signature {
    display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline;
    border-bottom: 1px solid var(--line); padding: .9rem 0;
  }
  .brief-heading { border-top: 3px solid var(--ink); padding-top: .8rem; }
  .transaction-brief dt { font-size: .85rem; font-weight: 600; }
  .transaction-brief dd { font-size: .82rem; color: var(--slate); text-align: right; }
  .brief-signature { border-bottom: 0; grid-template-columns: auto 1fr; color: var(--brass); }
  .brief-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
  .hero-folio { position: absolute; z-index: 3; left: max(24px, calc((100vw - var(--shell)) / 2)); top: 44%; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--brass); }
  .hero-rail { position: absolute; z-index: 3; right: max(20px, calc((100vw - var(--shell)) / 2)); top: 34%; writing-mode: vertical-rl; color: rgba(14,27,46,.42); }
  .hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); color: rgba(14,27,46,.52); border-top: 1px solid var(--line); }
  .hero-bottom span { padding: 1rem max(1rem, calc((100vw - var(--shell)) / 8)); text-align: center; border-right: 1px solid var(--line); }
  .hero-bottom span:last-child { border-right: 0; }

  .statement {
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    overflow: clip;
    padding: clamp(7.75rem, 9vw, 10.5rem) 0 clamp(7.5rem, 9vw, 10rem);
  }
  .statement::before {
    content: ''; position: absolute; width: 50vw; height: 50vw; min-width: 500px; min-height: 500px;
    right: -25vw; top: -25vw; border-radius: 50%; border: 1px solid rgba(242,238,228,.08);
    box-shadow: 0 0 0 110px rgba(242,238,228,.02), 0 0 0 220px rgba(242,238,228,.018);
  }
  .statement-shell { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .statement-index { grid-column: 1 / 3; color: var(--brass); padding-top: .5rem; }
  .statement-copy { grid-column: 3 / 11; }
  .statement-copy h2 { max-width: 12ch; }
  .statement-copy p { max-width: 48rem; margin-top: 2.25rem; font-size: clamp(1.1rem, 1.55vw, 1.5rem); color: rgba(242,238,228,.72); }
  .statement-note { grid-column: 3 / 11; margin-top: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 1.25rem 0; color: var(--brass-soft); }

  .dimensions-shell { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .dimensions-intro { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 3rem); }
  .dimensions-intro h2 { margin-top: 1.25rem; max-width: 10ch; font-size: clamp(3rem, 4.2vw, 5.2rem); }
  .dimensions-intro > p:not(.section-label) { margin-top: 1.5rem; max-width: 28rem; color: var(--slate); font-size: 1.05rem; }
  .dimensions-nav { margin-top: 3rem; border-top: 1px solid var(--line); }
  .dimensions-nav button {
    position: relative; width: 100%; text-align: left; padding: 1rem 0 1rem 1.4rem;
    border: 0; border-bottom: 1px solid var(--line); background: transparent;
    color: var(--slate); font-size: .86rem; cursor: pointer; transition: color .3s var(--ease), padding .3s var(--ease);
  }
  .dimensions-nav button::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3); transform: translateY(-50%); transition: background .3s var(--ease), scale .3s var(--ease); }
  .dimensions-nav button.is-active { color: var(--ink); padding-left: 1.8rem; }
  .dimensions-nav button.is-active::before { background: var(--brass); scale: 1.3; }
  .dimensions-content { grid-column: 6 / 13; }
  .dimension-panel { min-height: 78vh; display: grid; grid-template-columns: minmax(80px, 140px) 1fr; gap: clamp(2rem, 4vw, 5rem); padding: 5rem 0; border-top: 1px solid var(--line); align-items: start; }
  .dimension-panel:last-child { border-bottom: 1px solid var(--line); }
  .dimension-number { font-family: 'Inter Display'; font-size: clamp(4.5rem, 8vw, 8.5rem); line-height: .8; letter-spacing: -.07em; color: rgba(14,27,46,.08); }
  .dimension-body > .mono { color: var(--brass); }
  .dimension-body h3 { margin-top: 1rem; }
  .dimension-body > p:not(.mono) { max-width: 37rem; margin-top: 1.6rem; font-size: clamp(1.05rem, 1.35vw, 1.28rem); color: var(--slate); }
  .admin-list { margin-top: 3rem; border-top: 1px solid var(--line); }
  .admin-list > div { display: grid; grid-template-columns: minmax(120px, .7fr) 1.3fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .admin-list dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
  .admin-list dd { font-size: .92rem; font-weight: 500; }

  .capabilities {
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    overflow: hidden;
    padding: clamp(8.25rem, 9.5vw, 11rem) 0 clamp(7.25rem, 8.5vw, 9.5rem);
  }
  .capabilities-heading { display: grid; grid-template-columns: 1fr 7fr 3fr; gap: 24px; align-items: end; padding-bottom: 4.5rem; }
  .capabilities-heading h2 { max-width: 11ch; }
  .capabilities-heading > p:last-child { color: rgba(242,238,228,.62); font-size: 1.05rem; max-width: 22rem; padding-bottom: .5rem; }
  .capability-list { border-top: 1px solid var(--line-dark); }
  .capability { container-type: inline-size; display: grid; grid-template-columns: 1fr 6fr 3fr; gap: 24px; padding: 3rem 0; border-bottom: 1px solid var(--line-dark); align-items: start; transition: padding .35s var(--ease), background .35s var(--ease); }
  .capability:hover { padding-left: 1.25rem; padding-right: 1.25rem; background: rgba(242,238,228,.035); }
  .capability-number { color: var(--brass); padding-top: .4rem; }
  .capability-main h3 { font-size: clamp(2rem, 3vw, 3.8rem); max-width: 18ch; }
  .capability-main p { margin-top: 1.4rem; max-width: 38rem; color: rgba(242,238,228,.68); font-size: 1.03rem; }
  .capability-detail { padding-top: .4rem; }
  .capability-detail span { color: var(--brass-soft); }
  .capability-detail p { margin-top: .8rem; color: rgba(242,238,228,.72); font-size: .9rem; }

  .counterparties { background: var(--paper-2); }
  .counterparties-heading { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: 24px; align-items: start; }
  .counterparties-heading h2 { grid-column: 2 / 3; max-width: 12ch; }
  .counterparty-flow { margin-top: 6rem; display: grid; grid-template-columns: 1fr 120px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
  .counterparty-side { padding: 2rem 0 1rem; }
  .counterparty-side > .mono { color: var(--brass); }
  .counterparty-side h3 { margin-top: 1.4rem; font-size: clamp(2.7rem, 4.2vw, 5rem); max-width: 9ch; }
  .counterparty-side > p { margin-top: 1.7rem; max-width: 32rem; color: var(--slate); font-size: 1.05rem; }
  .counterparty-side ul { margin-top: 2.5rem; border-top: 1px solid var(--line); }
  .counterparty-side li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
  .counterparty-axis { position: relative; display: grid; place-items: center; min-height: 540px; }
  .axis-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(var(--line), var(--brass), var(--line)); }
  .axis-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brass); color: var(--ink); font-family: 'Liberation Mono'; font-size: .72rem; letter-spacing: .08em; box-shadow: 0 0 0 16px var(--paper-2); }
  .seller-side { text-align: right; }
  .seller-side h3, .seller-side > p { margin-left: auto; }

  .method { overflow: clip; padding-top: clamp(5.5rem, 8vw, 8rem); padding-bottom: clamp(6rem, 8vw, 8.5rem); }
  .method::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(184,137,47,.08), transparent 30rem); pointer-events: none; }
  .method-shell { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .method-intro { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 3rem); padding-top: clamp(1rem, 2vw, 1.5rem); }
  .method-intro h2 { margin-top: 1.3rem; max-width: 10ch; font-size: clamp(3rem, 4.2vw, 5.2rem); }
  .method-intro > p:not(.section-label) { margin-top: 1.6rem; max-width: 26rem; color: rgba(242,238,228,.64); }
  .method-progress { margin-top: 3rem; height: 2px; background: var(--line-dark); overflow: hidden; }
  .method-progress span { display: block; width: 100%; height: 100%; transform-origin: left; transform: scaleX(.2); background: var(--brass); transition: transform .45s var(--ease); }
  .method-pages { grid-column: 6 / 13; padding-bottom: 12vh; }
  .method-page {
    position: sticky; top: calc(var(--header-h) + 2.5rem); min-height: min(620px, 72vh);
    margin-bottom: 18vh; padding: clamp(2rem, 4vw, 4rem);
    border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
    display: flex; flex-direction: column; justify-content: space-between;
    transform: rotate(var(--tilt, 0deg));
  }
  .method-page:nth-child(2n) { --tilt: .45deg; }
  .method-page:nth-child(2n+1) { --tilt: -.35deg; }
  .method-page:last-child { margin-bottom: 0; }
  .page-folio { display: flex; justify-content: space-between; color: var(--brass); border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .method-page h3 { margin-top: 4rem; max-width: 9ch; }
  .method-page > p { margin-top: 1.5rem; max-width: 38rem; color: var(--slate); font-size: 1.04rem; }
  .method-page dl { margin-top: 4rem; border-top: 1px solid var(--line); }
  .method-page dl > div { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .method-page dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
  .method-page dd { font-weight: 500; }

  .definition-shell { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .definition-shell > .section-label { grid-column: 1 / 3; }
  .definition-shell > h2 { grid-column: 3 / 11; max-width: 10ch; }
  .definition-lines { grid-column: 3 / 13; margin-top: 5rem; }
  .definition-lines p { font-family: 'Inter Display'; font-size: clamp(2.7rem, 6vw, 7.4rem); line-height: 1.02; letter-spacing: -.055em; padding: .28em 0; border-bottom: 1px solid var(--line); }
  .definition-lines .is-not { color: rgba(14,27,46,.34); text-decoration: line-through; text-decoration-color: var(--brass); text-decoration-thickness: .05em; }
  .definition-lines .is-this { color: var(--ink); }
  .definition-copy { grid-column: 6 / 12; margin-top: 3.5rem; font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--slate); }

  .standards { background: var(--paper-2); }
  .standards-shell { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .standards-heading { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
  .standards-heading h2 { margin-top: 1.4rem; max-width: 10ch; font-size: clamp(3rem, 4.2vw, 5.2rem); }
  .standard-list { grid-column: 7 / 13; border-top: 1px solid var(--line); }
  .standard-list article { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
  .standard-number { color: var(--brass); padding-top: .45rem; }
  .standard-list h3 { font-size: clamp(2rem, 2.7vw, 3.2rem); }
  .standard-list p { grid-column: 2; margin-top: -.5rem; max-width: 30rem; color: var(--slate); }

  .faq-shell { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .faq-heading { grid-column: 1 / 5; }
  .faq-heading h2 { margin-top: 1.35rem; max-width: 9ch; font-size: clamp(3rem, 4.2vw, 5.2rem); }
  .faq-list { grid-column: 6 / 13; border-top: 1px solid var(--line); }
  .faq-list details { border-bottom: 1px solid var(--line); }
  .faq-list summary { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 1.5rem 0; cursor: pointer; font-size: 1.05rem; font-weight: 500; }
  .faq-list summary span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brass); transition: transform .3s var(--ease), background .3s var(--ease); }
  .faq-list details[open] summary span { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
  .faq-list details p { max-width: 42rem; padding: 0 3rem 1.6rem 0; color: var(--slate); }

  .contact { border-radius: 78px 78px 0 0; overflow: clip; padding-top: clamp(8rem, 12vw, 12rem); padding-bottom: clamp(4.5rem, 7vw, 7rem); }
  .contact-curve { position: absolute; left: 50%; top: -70vw; width: 140vw; height: 90vw; transform: translateX(-50%); border: 1px solid rgba(242,238,228,.08); border-radius: 50%; }
  .contact-shell { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .contact-heading { grid-column: 1 / 6; }
  .contact-heading h2 { margin-top: 1.4rem; max-width: 10ch; font-size: clamp(3.2rem, 5vw, 6rem); }
  .contact-heading > p:not(.section-label) { margin-top: 1.8rem; max-width: 30rem; color: rgba(242,238,228,.64); }
  .contact-direct { margin-top: 3rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); display: grid; gap: .6rem; }
  .contact-direct a { width: fit-content; border-bottom: 1px solid rgba(242,238,228,.28); padding-bottom: .25rem; }
  .intake-form { grid-column: 7 / 13; align-self: start; }
  .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.5rem; }
  .form-grid label { display: grid; gap: .65rem; }
  .form-grid label > span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-soft); }
  .form-wide { grid-column: 1 / -1; }
  .form-grid input, .form-grid select, .form-grid textarea {
    width: 100%; border: 0; border-bottom: 1px solid rgba(242,238,228,.32); border-radius: 0;
    background: transparent; color: var(--paper); padding: .25rem 0 .85rem;
    outline: none; transition: border-color .3s var(--ease), background .3s var(--ease);
  }
  .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--brass); }
  .form-grid input::placeholder, .form-grid textarea::placeholder { color: rgba(242,238,228,.34); }
  .form-grid select { color-scheme: dark; }
  .honeypot { position: absolute !important; left: -9999px !important; }
  .button-gold { margin-top: 2.2rem; background: var(--brass); color: var(--ink); }
  .button-gold:hover { background: var(--brass-soft); }
  .form-note { margin-top: 1.25rem; max-width: 34rem; color: rgba(242,238,228,.42); font-size: .75rem; }
  .form-status { min-height: 1.5rem; margin-bottom: 1rem; color: var(--brass-soft); font-size: .85rem; }

  .site-footer {
    background: var(--ink);
    color: var(--paper);
    border-top: 1px solid var(--line-dark);
    padding: clamp(4.75rem, 6.2vw, 6rem) 0 clamp(3.75rem, 4.8vw, 4.75rem);
  }
  .footer-shell {
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(260px, 1fr) auto;
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
  }
  .footer-brand {
    display: block;
    width: min(100%, 300px);
    aspect-ratio: 1518 / 358;
    line-height: 0;
    justify-self: start;
  }
  .footer-brand img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    max-height: none !important;
    aspect-ratio: 1518 / 358;
    object-fit: contain;
    object-position: left center;
  }
  .footer-meta { display: grid; gap: .55rem; color: rgba(242,238,228,.48); line-height: 1.55; }
  .footer-links { display: flex; gap: 1.5rem; font-size: .78rem; align-items: center; }
  .footer-links a { position: relative; padding-bottom: .25rem; }

  .privacy-main { min-height: 100svh; padding: calc(var(--header-h) + 6rem) 0 8rem; }
  .privacy-shell { width: min(860px, calc(100vw - 40px)); margin: 0 auto; }
  .privacy-shell h1 { font-size: clamp(3.5rem, 7vw, 7rem); }
  .privacy-shell h2 { margin-top: 3rem; font-size: 1.6rem; letter-spacing: -.02em; }
  .privacy-shell p { margin-top: 1rem; color: var(--slate); }
}

@layer motion {
  [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
  @keyframes title-in { to { transform: translateY(0); } }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@container (max-width: 760px) {
  .capability { grid-template-columns: 50px 1fr; }
  .capability-detail { grid-column: 2; }
}

@media (max-width: 1180px) {
  :root { --shell: min(100% - 64px, 1180px); }
  .header-shell { grid-template-columns: 220px 1fr auto; gap: 1.5rem; }
  .desktop-nav { gap: 1.5rem; }
  .hero-copy { grid-column: 1 / 9; }
  .hero-kicker { grid-column: 1 / 13; }
  .transaction-brief { grid-column: 9 / 13; }
  .hero-folio, .hero-rail { display: none; }
  .capabilities-heading { grid-template-columns: 1fr 6fr 3fr; }
}

@media (max-width: 960px) {
  :root { --shell: calc(100% - 48px); --header-h: 72px; }
  .desktop-nav, .header-cta { display: none; }
  .header-shell { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; justify-self: end; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--header-h) 0 0; background: var(--paper); padding: 3rem 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .mobile-menu[hidden] { display: block; }
  .mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { font-family: 'Inter Display'; font-size: clamp(2.8rem, 10vw, 5rem); line-height: 1; letter-spacing: -.05em; padding: .28em 0; border-bottom: 1px solid var(--line); }
  .mobile-menu-meta { margin-top: 3rem; display: grid; gap: .5rem; color: var(--slate); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 4rem); }
  .hero-shell { grid-template-columns: repeat(8, 1fr); }
  .hero-kicker { grid-column: 1 / 9; }
  .hero-copy { grid-column: 1 / 9; }
  .hero-title { max-width: 8ch; }
  .transaction-brief { grid-column: 3 / 9; margin-top: 2rem; }
  .hero-bottom { position: relative; margin-top: 4rem; }
  .hero-bottom span { padding: .9rem .4rem; font-size: .58rem; }

  .statement-shell, .dimensions-shell, .method-shell, .definition-shell, .standards-shell, .faq-shell, .contact-shell { grid-template-columns: repeat(8, 1fr); }
  .statement-index { grid-column: 1 / 3; }
  .statement-copy { grid-column: 3 / 9; }
  .statement-note { grid-column: 3 / 9; }
  .dimensions-intro { grid-column: 1 / 4; }
  .dimensions-content { grid-column: 4 / 9; }
  .dimension-panel { grid-template-columns: 70px 1fr; }
  .capabilities-heading { grid-template-columns: repeat(8, 1fr); }
  .capabilities-heading > .section-label { grid-column: 1 / 3; }
  .capabilities-heading h2 { grid-column: 3 / 9; }
  .capabilities-heading > p:last-child { grid-column: 3 / 8; }
  .capability { grid-template-columns: 60px 1fr 220px; }
  .counterparties-heading { grid-template-columns: repeat(8, 1fr); }
  .counterparties-heading > .section-label { grid-column: 1 / 3; }
  .counterparties-heading h2 { grid-column: 3 / 9; }
  .counterparty-flow { grid-template-columns: 1fr 80px 1fr; gap: 2rem; }
  .method-intro { grid-column: 1 / 4; }
  .method-pages { grid-column: 4 / 9; }
  .definition-shell > .section-label { grid-column: 1 / 3; }
  .definition-shell > h2 { grid-column: 3 / 9; }
  .definition-lines { grid-column: 2 / 9; }
  .definition-copy { grid-column: 4 / 9; }
  .standards-heading { grid-column: 1 / 4; }
  .standard-list { grid-column: 4 / 9; }
  .faq-heading { grid-column: 1 / 4; }
  .faq-list { grid-column: 4 / 9; }
  .contact-heading { grid-column: 1 / 4; }
  .intake-form { grid-column: 4 / 9; }
  .footer-shell { grid-template-columns: minmax(220px, 280px) 1fr; align-items: center; }
  .footer-brand { width: min(100%, 270px); }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 40px); --radius-l: 34px; }
  .section { padding: 6.5rem 0; }
  .brand { width: 210px; }
  .hero { padding-bottom: 0; }
  .hero-kicker { display: grid; gap: .4rem; }
  .hero-title { font-size: clamp(4rem, 18vw, 6rem); }
  .hero-lede { margin-top: 1.75rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .transaction-brief { grid-column: 1 / 9; margin-top: 3rem; }
  .hero-bottom { grid-template-columns: repeat(2, 1fr); }
  .hero-bottom span:nth-child(2) { border-right: 0; }
  .hero-bottom span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .statement-shell, .dimensions-shell, .method-shell, .definition-shell, .standards-shell, .faq-shell, .contact-shell { display: block; }
  .statement-index { margin-bottom: 2rem; }
  .statement-copy h2 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .statement-note { margin-top: 3rem; flex-wrap: wrap; justify-content: flex-start; }
  .dimensions-intro, .method-intro, .standards-heading { position: static; }
  .dimensions-nav { display: none; }
  .dimensions-content { margin-top: 3rem; }
  .dimension-panel { min-height: auto; grid-template-columns: 55px 1fr; gap: 1.25rem; padding: 3.5rem 0; }
  .dimension-number { font-size: 4.2rem; }
  .admin-list > div { grid-template-columns: 1fr; gap: .25rem; }
  .capabilities-heading { display: block; }
  .capabilities-heading h2 { margin-top: 1.3rem; }
  .capabilities-heading > p:last-child { margin-top: 1.5rem; }
  .capability { grid-template-columns: 45px 1fr; padding: 2.3rem 0; }
  .capability-detail { grid-column: 2; }
  .capability:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .counterparties-heading { display: block; }
  .counterparties-heading h2 { margin-top: 1.3rem; }
  .counterparty-flow { grid-template-columns: 1fr; gap: 0; margin-top: 4rem; }
  .counterparty-axis { min-height: 160px; }
  .axis-line { top: 0; bottom: 0; }
  .seller-side { text-align: left; }
  .seller-side h3, .seller-side > p { margin-left: 0; }
  .method-pages { margin-top: 5rem; }
  .method-page { position: relative; top: auto; min-height: 520px; margin-bottom: 2rem; transform: none; }
  .method { padding-top: 5.25rem; padding-bottom: 6.25rem; }
  .contact { padding-bottom: 4.5rem; }
  .method-progress { display: none; }
  .definition-shell > h2 { margin-top: 1.3rem; }
  .definition-lines { margin-top: 3rem; }
  .definition-copy { margin-top: 2.5rem; }
  .standards-heading h2, .faq-heading h2 { margin-top: 1.3rem; }
  .standard-list, .faq-list { margin-top: 3rem; }
  .contact-heading h2 { margin-top: 1.3rem; }
  .intake-form { margin-top: 4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .statement { padding: 6rem 0 6.5rem; }
  .capabilities { padding: 6.5rem 0 6.25rem; }
  .footer-shell { grid-template-columns: 1fr; align-items: start; gap: 1.75rem; }
  .footer-brand { width: min(82vw, 285px); }
  .footer-meta { margin-top: .25rem; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
}

/* Anchor offset for the fixed navigation */
#role, #dimensions, #capabilities, #method, #faq, #contact,
.counterparties, .definition, .standards {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

@media (max-width: 720px) {
  .hero-title { font-size: clamp(3.85rem, 16.5vw, 5.5rem); }
}

/* =========================================================
   MOBILE EXPERIENCE REFINEMENT — v6
   Scope: phones only. Desktop/tablet layouts above 720px are untouched.
   ========================================================= */
@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 36px);
    --header-h: 68px;
    --radius-l: 30px;
  }

  body { font-size: 15.5px; }
  h1 { font-size: clamp(3.4rem, 14.4vw, 4.15rem); line-height: .91; }
  h2 { font-size: clamp(2.75rem, 11.2vw, 3.65rem); line-height: .98; }
  h3 { font-size: clamp(1.85rem, 8.2vw, 2.55rem); line-height: 1.02; }
  .mono { font-size: .66rem; letter-spacing: .1em; }
  .section { padding: clamp(5rem, 15vw, 6rem) 0; }

  /* Header and mobile navigation */
  .site-header { height: var(--header-h); }
  .header-shell { gap: .75rem; }
  .brand { width: clamp(176px, 49vw, 194px); }
  .menu-toggle { width: 42px; height: 42px; padding: 9px; }
  .mobile-menu { inset: var(--header-h) 0 0; padding: 2rem 18px 2.5rem; }
  .mobile-menu nav a {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
    padding: .34em 0;
  }
  .mobile-menu-meta { margin-top: 2.25rem; }

  /* Hero: less empty vertical space and clearer conversion path */
  .hero {
    padding-top: calc(var(--header-h) + 2.75rem);
    padding-bottom: 0;
  }
  .hero::after {
    width: 118vw;
    right: -62vw;
    top: 5.5rem;
    opacity: .75;
  }
  .hero-kicker { gap: .5rem; padding-bottom: .75rem; }
  .hero-copy { padding-top: 1.7rem; }
  .hero-title {
    max-width: none;
    font-size: clamp(3.4rem, 14.4vw, 4.15rem);
  }
  .hero-title .line { overflow: visible; }
  .hero-lede {
    margin-top: 1.55rem;
    max-width: 32rem;
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .hero-actions {
    margin-top: 1.85rem;
    display: grid;
    gap: .75rem;
  }
  .hero-actions .button {
    width: 100%;
    min-height: 56px;
    padding-inline: 1.2rem;
  }
  .hero-actions .text-link {
    justify-self: center;
    padding: .6rem 0;
  }
  .transaction-brief { margin-top: 2.25rem; }
  .brief-heading,
  .transaction-brief dl > div,
  .brief-signature {
    gap: .75rem;
    padding: .72rem 0;
  }
  .transaction-brief dt,
  .transaction-brief dd { font-size: .78rem; }
  .brief-signature .mono { font-size: .61rem; }
  .hero-bottom { margin-top: 2.5rem; }
  .hero-bottom span {
    padding: .8rem .25rem;
    font-size: .54rem;
    letter-spacing: .08em;
  }

  /* Role statement */
  .statement {
    padding: 5.5rem 0 5.4rem;
    border-radius: 30px 30px 0 0;
  }
  .statement-index { margin-bottom: 1.65rem; }
  .statement-copy h2 {
    max-width: 10.5ch;
    font-size: clamp(2.9rem, 12vw, 3.75rem);
  }
  .statement-copy p {
    margin-top: 1.7rem;
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .statement-note {
    margin-top: 2.7rem;
    padding: 1rem 0;
    gap: .55rem;
    flex-wrap: nowrap;
    font-size: .58rem;
  }

  /* Four dimensions: shorter, denser and easier to scan */
  .dimensions-content { margin-top: 2.5rem; }
  .dimensions-intro h2 {
    max-width: 9ch;
    font-size: clamp(2.85rem, 11.5vw, 3.55rem);
  }
  .dimensions-intro > p:not(.section-label) {
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  .dimension-panel {
    grid-template-columns: 42px 1fr;
    gap: .9rem;
    padding: 2.8rem 0;
  }
  .dimension-number { font-size: 3.35rem; }
  .dimension-body h3 { margin-top: .65rem; }
  .dimension-body > p:not(.mono) {
    margin-top: 1.15rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  .admin-list { margin-top: 2rem; }
  .admin-list > div {
    gap: .2rem;
    padding: .82rem 0;
  }
  .admin-list dt { font-size: .66rem; }
  .admin-list dd { font-size: .86rem; line-height: 1.42; }

  /* Capabilities */
  .capabilities {
    padding: 5.8rem 0 5.4rem;
    border-radius: 30px 30px 0 0;
  }
  .capabilities-heading { padding-bottom: 2.8rem; }
  .capabilities-heading h2 {
    margin-top: 1.15rem;
    font-size: clamp(2.85rem, 11.5vw, 3.6rem);
  }
  .capabilities-heading > p:last-child {
    margin-top: 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  .capability {
    grid-template-columns: 34px 1fr;
    gap: .85rem;
    padding: 2.15rem 0;
  }
  .capability-number { padding-top: .3rem; }
  .capability-main h3 {
    font-size: clamp(1.95rem, 8.2vw, 2.45rem);
    line-height: 1.02;
  }
  .capability-main p {
    margin-top: 1.05rem;
    font-size: .98rem;
    line-height: 1.5;
  }
  .capability-detail {
    grid-column: 2;
    padding-top: 1.15rem;
  }
  .capability-detail p {
    margin-top: .55rem;
    font-size: .86rem;
    line-height: 1.48;
  }

  /* Buyers and sellers */
  .counterparties-heading h2 {
    margin-top: 1.15rem;
    font-size: clamp(2.85rem, 11.5vw, 3.6rem);
  }
  .counterparty-flow { margin-top: 3.35rem; }
  .counterparty-side { padding: 1rem 0 .5rem; }
  .counterparty-side h3 {
    margin-top: 1.1rem;
    max-width: 10ch;
    font-size: clamp(2.35rem, 9.8vw, 3rem);
  }
  .counterparty-side > p {
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.52;
  }
  .counterparty-side ul { margin-top: 2rem; }
  .counterparty-side li { padding: .85rem 0; }
  .counterparty-axis { min-height: 112px; }
  .axis-marker {
    width: 58px;
    height: 58px;
    box-shadow: 0 0 0 11px var(--paper-2);
  }

  /* Method: cards adapt to content instead of forcing tall panels */
  .method {
    padding-top: 5.4rem;
    padding-bottom: 5.8rem;
  }
  .method-intro { padding-top: 0; }
  .method-intro h2 {
    margin-top: 1.15rem;
    max-width: 10ch;
    font-size: clamp(2.85rem, 11.5vw, 3.6rem);
  }
  .method-intro > p:not(.section-label) {
    margin-top: 1.25rem;
    font-size: .98rem;
    line-height: 1.5;
  }
  .method-pages { margin-top: 3rem; }
  .method-page {
    min-height: 0;
    margin-bottom: 1.25rem;
    padding: 1.55rem;
    border-radius: 22px;
  }
  .page-folio { padding-bottom: .75rem; }
  .method-page h3 {
    margin-top: 2.3rem;
    font-size: clamp(1.9rem, 8.2vw, 2.4rem);
  }
  .method-page > p {
    margin-top: 1rem;
    font-size: .94rem;
    line-height: 1.48;
  }
  .method-page dl { margin-top: 2.2rem; }
  .method-page dl > div {
    grid-template-columns: 56px 1fr;
    gap: .75rem;
    padding: .8rem 0;
  }
  .method-page dt { font-size: .62rem; }
  .method-page dd { font-size: .82rem; line-height: 1.38; }

  /* Definition */
  .definition-shell > h2 {
    margin-top: 1.15rem;
    font-size: clamp(2.85rem, 11.5vw, 3.6rem);
  }
  .definition-lines { margin-top: 2.5rem; }
  .definition-lines p {
    font-size: clamp(2.15rem, 9.2vw, 2.85rem);
    line-height: 1.04;
    padding: .34em 0;
  }
  .definition-copy {
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Standards */
  .standards-heading h2 {
    margin-top: 1.15rem;
    font-size: clamp(2.85rem, 11.5vw, 3.6rem);
  }
  .standard-list { margin-top: 2.5rem; }
  .standard-list article {
    grid-template-columns: 38px 1fr;
    gap: 1rem;
    padding: 1.7rem 0;
  }
  .standard-list h3 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
  .standard-list p {
    grid-column: 2;
    margin-top: -.25rem;
    font-size: .98rem;
    line-height: 1.5;
  }

  /* FAQ */
  .faq-heading h2 {
    margin-top: 1.15rem;
    font-size: clamp(2.85rem, 11.5vw, 3.6rem);
  }
  .faq-list { margin-top: 2.5rem; }
  .faq-list summary {
    gap: 1rem;
    padding: 1.2rem 0;
    font-size: 1rem;
    line-height: 1.4;
  }
  .faq-list summary span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .faq-list details p {
    padding: 0 2.8rem 1.25rem 0;
    font-size: .94rem;
    line-height: 1.5;
  }

  /* Contact and form */
  .contact {
    padding-top: 5.9rem;
    padding-bottom: 4.5rem;
    border-radius: 34px 34px 0 0;
  }
  .contact-heading h2 {
    margin-top: 1.15rem;
    font-size: clamp(2.9rem, 11.8vw, 3.65rem);
  }
  .contact-heading > p:not(.section-label) {
    margin-top: 1.35rem;
    font-size: 1rem;
    line-height: 1.52;
  }
  .contact-direct {
    margin-top: 2.2rem;
    margin-bottom: 0;
    gap: .75rem;
  }
  .contact-direct a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .intake-form { margin-top: 3.1rem; }
  .form-grid { gap: 1.35rem; }
  .form-grid label { gap: .55rem; }
  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    min-height: 48px;
    font-size: 16px;
    padding-bottom: .72rem;
  }
  .form-grid textarea { min-height: 126px; }
  .button-gold {
    width: 100%;
    margin-top: 1.8rem;
    min-height: 56px;
  }
  .form-note {
    margin-top: 1rem;
    font-size: .72rem;
    line-height: 1.45;
  }

  /* Footer */
  .site-footer { padding: 3.5rem 0 3.25rem; }
  .footer-shell { gap: 1.6rem; }
  .footer-brand { width: min(76vw, 258px); }
  .footer-meta { gap: .45rem; }
  .footer-links {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-dark);
  }
  .footer-links a { font-size: .76rem; }
}

@media (max-width: 420px) {
  :root { --shell: calc(100% - 32px); }
  .brand { width: 176px; }
  .hero-title { font-size: clamp(3.15rem, 14vw, 3.65rem); }
  .statement-note { font-size: .53rem; }
  .transaction-brief dt,
  .transaction-brief dd { font-size: .74rem; }
  .footer-links a { font-size: .72rem; }
}
