:root {
  --ink: #08151f;
  --ink-soft: #142635;
  --paper: #f3f5f1;
  --paper-2: #e5e9e2;
  --blue: #68d8ff;
  --green: #b9ff7a;
  --white: #fffef9;
  --line: rgba(8, 21, 31, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 99; padding: .8rem 1rem; background: var(--blue); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 2rem clamp(1.25rem, 5vw, 5rem); color: var(--white); }
.brand { display: flex; align-items: center; gap: .7rem; font: 700 .95rem/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .16em; }
.brand-mark { display: grid; min-width: 2.25rem; height: 2rem; place-items: center; border: 1px solid currentColor; padding: 0 .35rem; font-size: .72rem; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .92rem; }
.main-nav a:not(.nav-cta) { opacity: .78; transition: opacity .2s; }
.main-nav a:hover { opacity: 1; }
.nav-cta { padding: .8rem 1.1rem; border: 1px solid rgba(255,255,255,.4); }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero { position: relative; min-height: 100vh; overflow: hidden; padding: 10.5rem clamp(1.25rem, 7vw, 7.5rem) 4rem; color: var(--white); background: radial-gradient(circle at 78% 50%, rgba(104,216,255,.13), transparent 28%), linear-gradient(135deg, #08151f, #102637 58%, #071018); }
.hero-copy { position: relative; z-index: 2; width: min(720px, 58vw); }
.eyebrow { margin: 0 0 1.5rem; color: #678291; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 1.8rem; height: 1px; margin: 0 .8rem .25rem 0; content: ""; background: currentColor; }
.eyebrow.light { color: #aac4d0; }
h1, h2, h3 { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 7.4rem); font-weight: 500; line-height: .94; letter-spacing: -.065em; }
h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 650px; margin: 2.2rem 0 0; color: #c0d1d8; font-size: clamp(1rem, 1.3vw, 1.24rem); line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 1.15rem; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--blue); }
.text-link { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #d7e6ec; }
.hero-visual { position: absolute; top: 16%; right: -3%; width: 42vw; height: 65%; border: 1px solid rgba(255,255,255,.08); transform: rotate(-3deg); }
.node-grid { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle, rgba(104,216,255,.7) 1px, transparent 2px), linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 48px 48px, 96px 96px, 96px 96px; }
.data-card { position: absolute; z-index: 2; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.16); background: rgba(10, 31, 46, .86); box-shadow: 0 30px 90px rgba(0,0,0,.32); backdrop-filter: blur(10px); }
.card-main { top: 20%; left: 7%; width: min(370px, 72%); padding: 2.2rem; transform: rotate(3deg); }
.card-main span, .data-card span { color: #9ab1ba; font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
.card-main strong { margin-top: 3.2rem; font: 500 clamp(1.8rem, 2.6vw, 2.7rem)/1.1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 2.4rem; }
.metric-row i { height: 4px; background: var(--blue); }
.card-small, .card-accent { width: 130px; height: 130px; justify-content: space-between; padding: 1rem; font-size: .75rem; }
.card-small { top: 7%; right: 5%; }
.card-accent { right: 12%; bottom: 8%; color: var(--ink); background: var(--green); transform: rotate(5deg); }
.card-accent span { color: rgba(8,21,31,.58); }
.hero-foot { position: absolute; z-index: 2; right: clamp(1.25rem, 7vw, 7.5rem); bottom: 2rem; left: clamp(1.25rem, 7vw, 7.5rem); display: flex; align-items: center; gap: 1.5rem; color: #8da7b2; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-foot i { flex: 1; height: 1px; background: rgba(255,255,255,.12); }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 7.5rem); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.2rem); font-weight: 500; line-height: 1.03; letter-spacing: -.055em; }
.focus { background: var(--paper); }
.focus-copy { max-width: 900px; color: #4c6070; font-size: clamp(1.15rem, 2vw, 1.75rem); line-height: 1.55; }
.services { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service-card { position: relative; min-height: 360px; padding: 2rem; border-right: 1px solid var(--line); }
.service-card:first-child { padding-left: 0; }
.service-card:last-child { border-right: 0; }
.service-number { color: #748894; font-size: .7rem; }
.service-icon { display: grid; width: 3.2rem; height: 3.2rem; margin: 4rem 0 2rem; place-items: center; border: 1px solid var(--line); font-size: 1.4rem; }
.service-card h3 { margin: 0 0 1rem; font-size: 1.35rem; }
.service-card p { max-width: 340px; margin: 0; color: #576b78; line-height: 1.65; }

.process { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; color: var(--white); background: #0f2635; }
.process-intro { position: sticky; top: 3rem; align-self: start; }
.process-intro > p:last-child { max-width: 460px; margin-top: 2rem; color: #a9bdc6; line-height: 1.7; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 70px 1fr; padding: 2.4rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.process-list li > span { color: var(--blue); font-size: .75rem; }
.process-list h3 { margin: 0 0 .7rem; font-size: 1.5rem; }
.process-list p { max-width: 540px; margin: 0; color: #a8bac2; line-height: 1.6; }

.group { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: center; background: var(--paper); }
.large-copy { max-width: 720px; margin: 2.2rem 0 0; color: #526778; font-size: 1.15rem; line-height: 1.8; }
.group-card { min-height: 320px; padding: 2rem; color: var(--white); background: linear-gradient(145deg, #0f2635, #18384a); }
.group-card span { color: #9ab1ba; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.group-card strong { display: block; margin: 4rem 0 1.5rem; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.05em; }
.group-card p { color: #c0d1d8; line-height: 1.7; }

.contact { padding: clamp(5rem, 10vw, 9rem) 1.25rem; text-align: center; color: var(--white); background: var(--ink); }
.contact-inner { max-width: 900px; margin: auto; }
.contact .eyebrow::before { display: none; }
.contact p:not(.eyebrow) { max-width: 620px; margin: 2rem auto; color: #a8bac2; line-height: 1.7; }
.button-light { margin-top: 1rem; color: var(--ink); background: var(--white); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 5vw, 5rem); color: #8da7b2; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-brand { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; }

.legal-page { min-height: 100vh; background: var(--paper); }
.legal-header { position: static; color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-main { max-width: 850px; margin: auto; padding: 7rem 1.5rem; }
.legal-main h1 { margin-bottom: 3rem; color: var(--ink); font-size: clamp(3rem, 7vw, 6rem); }
.legal-main h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; letter-spacing: -.02em; }
.legal-main p, .legal-main li { color: #536778; line-height: 1.75; }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--blue); background: #dbeef5; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: 0; }
}

@media (max-width: 900px) {
  .site-header { padding: 1.3rem; }
  .menu-toggle { z-index: 11; display: flex; width: 2.4rem; height: 2.4rem; flex-direction: column; justify-content: center; gap: 5px; color: var(--white); }
  .menu-toggle span:not(.sr-only) { width: 100%; height: 1px; background: currentColor; }
  .main-nav { position: fixed; inset: 0; display: none; flex-direction: column; justify-content: center; color: var(--white); background: var(--ink); font-size: 1.5rem; }
  .main-nav.open { display: flex; }
  .hero { min-height: 900px; padding-top: 9rem; }
  .hero-copy { width: 100%; }
  .hero-visual { top: auto; right: -15%; bottom: 10%; width: 85vw; height: 38%; opacity: .72; }
  .hero-foot { display: none; }
  .section-heading { display: block; }
  .service-grid, .process, .group { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(2) { min-height: auto; padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-icon { margin: 2rem 0 1rem; }
  .process-intro { position: static; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: 3.2rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-visual { right: -32%; width: 120vw; }
  .process-list li { grid-template-columns: 45px 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
