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

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

@layer tokens {
  :root {
    --ink-1000: #05070b;
    --ink-950: #070a0f;
    --ink-900: #0e131b;
    --ink-850: #121925;
    --slate-700: #283448;
    --slate-500: #6f7d90;
    --ivory-100: #f4efe6;
    --stone-300: #c9c1b4;
    --stone-400: #9e988e;
    --gold-400: #d6b467;
    --gold-300: #e9ca82;
    --cyan-400: #41d9ff;
    --green-400: #55d68b;
    --red-400: #ff7777;
    --max: 1180px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 30px;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  }
}

@layer base {
  html { background: var(--ink-950); color-scheme: dark; }
  body {
    min-width: 320px;
    color: var(--ivory-100);
    background:
      radial-gradient(circle at 85% 2%, rgba(65, 217, 255, .09), transparent 30rem),
      radial-gradient(circle at 12% 19%, rgba(214, 180, 103, .08), transparent 34rem),
      var(--ink-950);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
  }
  h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
  h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
  h1 { font-size: clamp(2.65rem, 5vw, 4.5rem); }
  h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
  h3 { font-size: 1.2rem; letter-spacing: -.02em; }
  p { color: var(--stone-300); }
  ::selection { color: var(--ink-950); background: var(--gold-300); }
  :focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 4px; }
  .skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; transform: translateY(-200%); padding: .75rem 1rem; border-radius: 8px; color: var(--ink-950); background: var(--ivory-100); font-weight: 700; }
  .skip-link:focus { transform: translateY(0); }
}

@layer layout {
  .shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
  .site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7,10,15,.8); backdrop-filter: blur(18px); }
  .nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 720; letter-spacing: -.03em; }
  .brand-mark { position: relative; width: 31px; aspect-ratio: 1; border: 1px solid var(--gold-400); border-radius: 50%; }
  .brand-mark::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--cyan-400); border-radius: 50%; }
  .brand-mark::after { content: ""; position: absolute; left: 50%; top: 2px; width: 1px; height: 27px; transform: rotate(34deg); background: linear-gradient(var(--gold-400), transparent); }
  .desktop-nav { display: flex; align-items: center; gap: 1.6rem; }
  .desktop-nav > a:not(.button) { color: var(--stone-300); text-decoration: none; font-size: .92rem; }
  .desktop-nav > a[aria-current="page"], .desktop-nav > a:hover { color: var(--ivory-100); }
  .menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--slate-700); border-radius: 50%; background: transparent; color: var(--ivory-100); }
  .menu-button span, .menu-button::before { content: ""; display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }
  .hero { min-height: min(820px, calc(100svh - 78px)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(5rem, 11vw, 9rem); }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { max-width: 15ch; font-size: clamp(3rem, 6vw, 5.2rem); }
  .hero .lede { max-width: 640px; margin-top: 1.7rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
  .hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
  .hero-art { min-height: 530px; display: grid; place-items: center; }
  section { padding-block: clamp(5rem, 10vw, 9rem); }
  .section-head { max-width: 780px; margin-bottom: 3.5rem; }
  .section-head p { max-width: 620px; margin-top: 1.2rem; font-size: 1.08rem; }
  .page-hero { padding-block: clamp(5.5rem, 11vw, 9.5rem) clamp(4.5rem, 8vw, 7rem); border-bottom: 1px solid rgba(255,255,255,.08); }
  .page-hero h1 { max-width: 20ch; font-size: clamp(2.5rem, 4.5vw, 4rem); }
  .page-hero p { max-width: 700px; margin-top: 1.7rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .split { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
  .split.equal { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-block: 4rem 2rem; border-top: 1px solid rgba(255,255,255,.1); }
  .footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 2rem; }
  .footer-brand p { max-width: 420px; margin-top: 1rem; }
  .footer-title { margin-bottom: .8rem; color: var(--stone-400); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  .footer-links { list-style: none; padding: 0; }
  .footer-links a { color: var(--stone-300); text-decoration: none; }
  .footer-links a:hover { color: var(--ivory-100); }
  .footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: var(--stone-400); }
}

@layer components {
  .eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.3rem; color: var(--gold-300); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
  .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .7rem; padding: .78rem 1.25rem; border: 1px solid var(--gold-400); border-radius: 999px; color: var(--ink-950); background: var(--gold-400); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
  .button:hover { transform: translateY(-2px); background: var(--gold-300); }
  .button.secondary { color: var(--ivory-100); border-color: var(--slate-700); background: transparent; }
  .button.secondary:hover { color: var(--cyan-400); border-color: var(--cyan-400); }
  .button[disabled] { opacity: .55; cursor: wait; transform: none; }
  .coverage-map { position: relative; width: min(100%, 520px); aspect-ratio: 1; border: 1px solid rgba(214,180,103,.25); border-radius: 50%; background: radial-gradient(circle, rgba(65,217,255,.13), transparent 55%); box-shadow: inset 0 0 80px rgba(65,217,255,.04), 0 0 120px rgba(65,217,255,.04); }
  .coverage-map::before, .coverage-map::after { content: ""; position: absolute; inset: 13%; border: 1px dashed rgba(255,255,255,.16); border-radius: 50%; animation: rotate 35s linear infinite; }
  .coverage-map::after { inset: 28%; border-style: solid; border-color: rgba(214,180,103,.28); animation-direction: reverse; animation-duration: 25s; }
  .axis { position: absolute; inset: 50% 6%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
  .axis.vertical { transform: rotate(90deg); }
  .map-core { position: absolute; z-index: 2; inset: 50% auto auto 50%; width: 104px; aspect-ratio: 1; display: grid; place-items: center; transform: translate(-50%,-50%); border: 1px solid var(--gold-400); border-radius: 50%; color: var(--ivory-100); background: var(--ink-900); font-weight: 800; box-shadow: 0 0 40px rgba(214,180,103,.16); }
  .map-node { position: absolute; z-index: 3; padding: .45rem .75rem; border: 1px solid var(--slate-700); border-radius: 999px; color: var(--stone-300); background: rgba(14,19,27,.92); font-size: .72rem; letter-spacing: .03em; }
  .map-node:nth-child(4) { top: 7%; left: 40%; }
  .map-node:nth-child(5) { top: 27%; right: -2%; }
  .map-node:nth-child(6) { bottom: 22%; right: 3%; }
  .map-node:nth-child(7) { bottom: 5%; left: 39%; }
  .map-node:nth-child(8) { bottom: 24%; left: 0; }
  .map-node:nth-child(9) { top: 25%; left: -1%; }
  .signal-dot { position: absolute; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 18px var(--cyan-400); animation: pulse 2.5s ease-in-out infinite; }
  .signal-dot.one { top: 20%; left: 32%; }
  .signal-dot.two { right: 25%; bottom: 27%; animation-delay: .9s; background: var(--gold-400); box-shadow: 0 0 18px var(--gold-400); }
  .proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); overflow: hidden; background: rgba(255,255,255,.02); }
  .proof-item { min-height: 142px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.1); }
  .proof-item:last-child { border-right: 0; }
  .proof-index { color: var(--gold-400); font-family: var(--serif); font-size: 1.25rem; }
  .proof-item p { color: var(--ivory-100); line-height: 1.35; }
  .card { position: relative; min-height: 280px; padding: clamp(1.5rem, 3vw, 2.2rem); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); overflow: hidden; transition: border-color .25s ease, transform .25s ease; }
  .card:hover { border-color: rgba(214,180,103,.55); transform: translateY(-4px); }
  .card::after { content: ""; position: absolute; right: -45px; bottom: -45px; width: 130px; aspect-ratio: 1; border: 1px solid rgba(65,217,255,.12); border-radius: 50%; }
  .card-number { margin-bottom: 3.5rem; color: var(--stone-400); font-family: var(--serif); font-size: 1.2rem; }
  .card h3 { font-size: 1.35rem; }
  .card p { margin-top: 1rem; }
  .text-link { display: inline-flex; margin-top: 1.25rem; color: var(--gold-300); font-weight: 700; text-decoration: none; }
  .step-list { list-style: none; padding: 0; counter-reset: steps; }
  .step { position: relative; display: grid; grid-template-columns: 100px 1fr; padding-block: 2rem; border-top: 1px solid rgba(255,255,255,.11); counter-increment: steps; }
  .step::before { content: "0" counter(steps); color: var(--gold-400); font-family: var(--serif); font-size: 1.2rem; }
  .step p { margin-top: .6rem; max-width: 620px; }
  .statement { padding: clamp(2rem, 6vw, 5rem); border: 1px solid rgba(214,180,103,.28); border-radius: var(--radius-lg); background: radial-gradient(circle at 82% 20%, rgba(65,217,255,.12), transparent 26rem), var(--ink-900); }
  .statement h2 { max-width: 16ch; }
  .statement p { max-width: 700px; margin-top: 1.3rem; font-size: 1.1rem; }
  .service-detail { display: grid; grid-template-columns: .45fr 1.1fr .8fr; gap: 2rem; padding-block: 2.5rem; border-top: 1px solid rgba(255,255,255,.12); }
  .service-detail .service-number { color: var(--gold-400); font-family: var(--serif); }
  .service-detail ul { margin: 1rem 0 0; padding-left: 1rem; color: var(--stone-300); }
  .principle { padding-block: 1.7rem; border-top: 1px solid rgba(255,255,255,.12); }
  .principle p { margin-top: .65rem; }
  .metric-note { display: inline-block; margin-top: 2rem; padding: .75rem 1rem; border: 1px solid rgba(85,214,139,.25); border-radius: 999px; color: var(--green-400); background: rgba(85,214,139,.06); font-size: .8rem; font-weight: 700; }
  .form-card { padding: clamp(1.4rem, 4vw, 2.7rem); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); background: rgba(14,19,27,.75); }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .field { margin-bottom: 1.15rem; }
  .field.full { grid-column: 1 / -1; }
  label { display: block; margin-bottom: .45rem; color: var(--ivory-100); font-size: .88rem; font-weight: 700; }
  input, textarea { width: 100%; min-height: 50px; padding: .8rem .9rem; border: 1px solid var(--slate-700); border-radius: var(--radius-sm); color: var(--ivory-100); background: var(--ink-950); }
  textarea { min-height: 160px; resize: vertical; }
  input:hover, textarea:hover { border-color: var(--slate-500); }
  input:focus, textarea:focus { border-color: var(--cyan-400); outline: none; box-shadow: 0 0 0 3px rgba(65,217,255,.12); }
  .checkbox-row { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; margin: 1rem 0 1.4rem; }
  .checkbox-row input { width: 20px; min-height: 20px; margin-top: .2rem; accent-color: var(--gold-400); }
  .checkbox-row label { color: var(--stone-300); font-weight: 400; }
  .form-note { margin-bottom: 1.2rem; font-size: .86rem; }
  .form-note a, .legal-copy a { color: var(--gold-300); }
  .form-status { min-height: 1.6rem; margin-top: 1rem; color: var(--green-400); font-weight: 700; }
  .form-status.error { color: var(--red-400); }
  .honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; }
  .contact-aside { position: sticky; top: 120px; }
  .contact-aside a { color: var(--gold-300); }
  .legal-copy { max-width: 800px; }
  .legal-copy h2 { margin-top: 3.2rem; font-family: var(--sans); font-size: 1.45rem; letter-spacing: -.02em; }
  .legal-copy h3 { margin-top: 2rem; }
  .legal-copy p, .legal-copy ul { margin-top: .8rem; }
  .legal-copy li { margin-top: .5rem; color: var(--stone-300); }
  .notice { margin-block: 1.5rem; padding: 1rem 1.15rem; border-left: 2px solid var(--gold-400); background: rgba(214,180,103,.07); color: var(--stone-300); }
  .pill-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
  .pill { padding: .48rem .8rem; border: 1px solid var(--slate-700); border-radius: 999px; color: var(--stone-300); font-size: .8rem; }
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  @keyframes rotate { to { transform: rotate(360deg); } }
  @keyframes pulse { 50% { transform: scale(1.8); opacity: .45; } }
}

@layer utilities {
  .muted { color: var(--stone-400); }
  .gold { color: var(--gold-300); }
  .max-copy { max-width: 680px; }
  .top-rule { border-top: 1px solid rgba(255,255,255,.1); }
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@media (max-width: 860px) {
  .menu-button { display: block; }
  .desktop-nav { position: fixed; inset: 79px 0 auto; display: none; padding: 1.2rem 1rem 2rem; flex-direction: column; align-items: stretch; background: var(--ink-950); border-bottom: 1px solid var(--slate-700); }
  .desktop-nav.is-open { display: flex; }
  .desktop-nav a { min-height: 48px; display: flex; align-items: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 430px; order: -1; }
  .coverage-map { width: min(90vw, 420px); }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split.equal { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .service-detail { grid-template-columns: 50px 1fr; }
  .service-detail > :last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  h1 { font-size: clamp(2.45rem, 10vw, 3.2rem); }
  .hero h1 { font-size: clamp(2.7rem, 11.5vw, 3.65rem); }
  .page-hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .hero { padding-top: 3.5rem; }
  .hero-art { min-height: 340px; }
  .map-node { font-size: .62rem; padding: .35rem .55rem; }
  .map-core { width: 82px; font-size: .8rem; }
  .proof-strip, .grid-2, .grid-3, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-item { min-height: 112px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .proof-item:last-child { border-bottom: 0; }
  .card { min-height: 240px; }
  .step { grid-template-columns: 58px 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail > :last-child { grid-column: 1; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .button { width: 100%; }
}

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