:root {
  --ink: #071829;
  --ink-2: #0c2339;
  --paper: #f4f7f8;
  --white: #fff;
  --muted: #5a6873;
  --line: #dbe3e6;
  --aqua: #69e6d2;
  --aqua-dark: #137f79;
  --blue: #4d7dff;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.shell { width: var(--shell); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; color: var(--ink); background: var(--aqua); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--white); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--aqua); color: var(--ink); border-radius: 50%; font-size: 13px; letter-spacing: -.05em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav > a:not(.nav-cta) { color: rgba(255,255,255,.75); transition: color .2s ease; }
.site-nav > a:not(.nav-cta):hover { color: var(--white); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; }
.menu-button span:not(.sr-only) { display: block; height: 1px; background: white; margin: 5px 0; }

.hero { position: relative; overflow: hidden; min-height: 820px; padding: 160px 0 92px; color: var(--white); background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, #000, transparent 70%); }
.hero-glow { position: absolute; width: 620px; height: 620px; top: 80px; right: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(77,125,255,.26), rgba(105,230,210,.06) 48%, transparent 70%); filter: blur(10px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .75fr; gap: 80px; align-items: center; }
.eyebrow, .kicker { margin: 0 0 20px; color: var(--aqua-dark); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.eyebrow { color: var(--aqua); display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 34px; height: 1px; background: var(--aqua); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 6vw, 78px); line-height: .99; letter-spacing: -.055em; font-weight: 500; }
h1 em { color: var(--aqua); font-style: italic; }
.hero-lead { max-width: 700px; margin-bottom: 34px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px; }
.button { min-height: 52px; padding: 13px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--aqua); color: var(--ink); }
.button-primary:hover { background: #8af0df; }
.button-ghost { border: 1px solid rgba(255,255,255,.25); color: var(--white); }
.button-ghost:hover { border-color: var(--aqua); }
.tool-line { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.tool-line li { position: relative; }
.tool-line li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--aqua); }

.portrait-column { position: relative; padding: 10px 0 72px; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 240px 240px 28px 28px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 40px 80px rgba(0,0,0,.3); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; filter: saturate(.92) contrast(1.03); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -80px 100px rgba(7,24,41,.26); pointer-events: none; }
.portrait-grid { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.15) 50%, transparent calc(50% + .5px)), linear-gradient(transparent 68%, rgba(255,255,255,.15) calc(68% + 1px), transparent calc(68% + 2px)); }
.fact-card { position: absolute; z-index: 2; width: 196px; padding: 16px 18px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.fact-card strong, .fact-card span { display: block; }
.fact-card strong { font-family: Georgia, serif; font-size: 22px; letter-spacing: -.03em; }
.fact-card span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.fact-card-top { right: 24px; bottom: 0; }

.intro-strip { color: var(--white); background: #102b42; }
.intro-strip-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.intro-strip p { margin: 0; font-family: Georgia, serif; font-size: 18px; color: rgba(255,255,255,.68); }
.flow-mini { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.flow-mini i { color: var(--aqua); font-style: normal; }

.section { padding: 112px 0; }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2, .process-copy h2, .lab-copy h2, .contact-copy h2 { margin-bottom: 20px; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.06; letter-spacing: -.045em; font-weight: 500; }
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 18px; }
.section-heading.compact { margin-bottom: 34px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 390px; padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #b9cccf; box-shadow: 0 22px 50px rgba(20,51,67,.08); }
.service-index { display: block; margin-bottom: 60px; color: var(--aqua-dark); font-family: Georgia, serif; font-size: 14px; }
.service-card h3 { margin-bottom: 14px; font-size: 25px; letter-spacing: -.03em; }
.service-card > p { max-width: 520px; color: var(--muted); }
.service-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.service-card li { padding: 7px 10px; border-radius: 999px; background: #eef5f4; color: #3f5e62; font-size: 12px; font-weight: 700; }

.kicker-light { color: var(--aqua); }

.case-list-section { background: var(--white); }
.case-list { border-top: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 72px 1fr 210px; gap: 30px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.case-number { color: #9cadb4; font-family: Georgia, serif; font-size: 14px; }
.case-body h3 { margin-bottom: 8px; font-size: 25px; letter-spacing: -.03em; }
.case-body p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.case-tags { margin-bottom: 7px; color: var(--aqua-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.case-link, .case-result { justify-self: end; font-size: 13px; font-weight: 800; }
.case-link { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.case-result { color: var(--muted); text-align: right; }

.process-section { background: #e7eff0; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.process-copy { position: sticky; top: 30px; align-self: start; }
.process-copy > p:last-child { max-width: 460px; color: var(--muted); font-size: 17px; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cbd8da; }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid #cbd8da; }
.process-list li > span { color: var(--aqua-dark); font-family: Georgia, serif; }
.process-list strong { display: block; margin-bottom: 5px; font-size: 21px; }
.process-list p { margin-bottom: 0; color: var(--muted); }

.lab-section { background: var(--white); }
.lab-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding: 60px; border-radius: 22px; background: #f0f5f7; border: 1px solid var(--line); }
.lab-copy h2 { max-width: 650px; font-size: clamp(38px, 4.5vw, 54px); }
.lab-copy > p:not(.kicker) { max-width: 660px; color: var(--muted); }
.lab-note { padding-top: 18px; border-top: 1px solid #cfdbde; font-size: 13px; }
.lab-links { display: grid; align-content: center; gap: 12px; }
.lab-links a { min-height: 108px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: transform .2s ease, border-color .2s ease; }
.lab-links a:hover { transform: translateX(5px); border-color: var(--aqua-dark); }
.lab-links span { font-weight: 800; }
.lab-links b { color: var(--aqua-dark); font-size: 12px; white-space: nowrap; }

.contact-section { padding: 100px 0; color: var(--white); background: #0b263d; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; }
.contact-copy h2 { margin: 0; max-width: 770px; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions > a { color: rgba(255,255,255,.67); text-underline-offset: 4px; }
.contact-main { position: relative; display: grid; padding: 22px 54px 22px 22px; text-decoration: none; background: var(--aqua); color: var(--ink) !important; border-radius: 14px; }
.contact-main span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-main strong { font-size: 24px; }
.contact-main i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 24px; }
.site-footer { color: rgba(255,255,255,.54); background: var(--ink); }
.site-footer .shell { min-height: 80px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.site-footer a { color: inherit; text-underline-offset: 4px; }

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

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr .68fr; gap: 36px; }
  .hero-lead { font-size: 16px; }
  .fact-card-top { right: 18px; }
  .intro-strip-inner { align-items: flex-start; padding: 30px 0; flex-direction: column; }
  .process-grid, .lab-card, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .process-copy { position: static; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .nav-wrap { min-height: 72px; }
  .brand { font-size: 14px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 71px; left: 16px; right: 16px; display: none; padding: 18px; align-items: stretch; flex-direction: column; gap: 0; background: #102b42; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding: 124px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero-lead { line-height: 1.62; }
  .portrait-column { width: min(88%, 430px); margin: 0 auto; padding-bottom: 50px; }
  .fact-card { width: 178px; }
  .fact-card-top { right: 14px; bottom: 0; }
  .tool-line { gap: 10px 22px; }
  .flow-mini { flex-wrap: wrap; }
  .section { padding: 82px 0; }
  .section-heading h2, .process-copy h2, .lab-copy h2, .contact-copy h2 { font-size: 39px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 28px; }
  .service-index { margin-bottom: 38px; }
  .case-label { gap: 20px; }
  .featured-grid { padding-top: 45px; gap: 42px; }
  .case-row { grid-template-columns: 46px 1fr; gap: 14px; }
  .case-link, .case-result { grid-column: 2; justify-self: start; text-align: left; }
  .metrics div { grid-template-columns: 105px 1fr; }
  .lab-card { padding: 32px 24px; }
  .contact-section { padding: 80px 0; }
}

@media (max-width: 420px) {
  .brand > span:last-child { display: none; }
  .hero-actions .button { width: 100%; }
  .fact-card { position: relative; inset: auto; width: 100%; margin-top: 10px; }
  .portrait-column { padding-bottom: 0; }
  .case-row { grid-template-columns: 1fr; }
  .case-link, .case-result { grid-column: 1; }
  .metrics div { grid-template-columns: 1fr; gap: 8px; }
  .lab-links a { align-items: flex-start; flex-direction: column; }
}

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