@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --navy: #0c1b2a;
  --blue: #1f4f9c;
  --gold: #8b6914;
  --gold-light: #d4a72c;
  --ink: #0a0a0a;
  --text: #55585d;
  --sand: #f3f1ed;
  --off: #fafaf8;
  --stone: #e6e3dc;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --space: clamp(72px, 8.5vw, 120px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dt, dd { margin: 0; padding: 0; }
h1, h2, h3, .creds, .stat dd { font-feature-settings: "lnum" !important; } /* the font shorthand resets this */
ul { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy); color: #fff; }

.wrap { width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb { white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 20; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy); }
.skip:focus { top: 12px; }

.section { padding-block: var(--space); }
.sand { padding-block: var(--space); background: var(--sand); }
.sand-slim { padding-block: clamp(48px, 5vw, 72px); }
.h2 { max-width: 24ch; margin-inline: auto; color: var(--ink); font: 700 clamp(1.75rem, 3.2vw, 2.375rem)/1.18 var(--serif); text-align: center; text-wrap: balance; }
.sub { max-width: 52ch; margin: 14px auto 0; font-size: 1.0625rem; text-align: center; text-wrap: balance; }
.eyebrow { color: rgb(255 255 255 / .62); font: 600 .8125rem/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.link { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.link:hover { text-decoration-thickness: 2px; }

.pill { display: inline-block; padding: 14px 32px; border: 1px solid transparent; border-radius: 999px; font-size: .9375rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.pill-light { background: #fff; color: var(--navy); }
.pill-light:hover { background: var(--sand); }
.pill-line { border-color: rgb(255 255 255 / .28); color: rgb(255 255 255 / .85); font-weight: 500; }
.pill-line:hover { border-color: rgb(255 255 255 / .6); color: #fff; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 10; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.top-logo img { width: auto; height: 34px; filter: brightness(0) invert(1); }
.top-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 32px); }
.top-nav a:not(.pill) { display: block; padding-block: 10px; color: rgb(255 255 255 / .75); font-size: .9375rem; text-decoration: none; }
.top-nav a:not(.pill):hover, .top-nav a[aria-current] { color: #fff; }
.pill-nav { padding: 9px 24px; background: rgb(255 255 255 / .16); color: #fff; font-weight: 500; }
.pill-nav:hover { background: rgb(255 255 255 / .26); }
.top.is-stuck { border-color: var(--stone); background: #fff; }
.is-stuck .top-logo img { filter: none; }
.is-stuck .top-nav a:not(.pill) { color: var(--text); }
.is-stuck .top-nav a:not(.pill):hover, .is-stuck .top-nav a[aria-current] { color: var(--ink); }
.is-stuck .pill-nav { background: var(--ink); color: #fff; }
.is-stuck .pill-nav:hover { background: var(--navy); }

/* Hero */
.hero { display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: 128px 60px; background: radial-gradient(720px 620px at 50% 46%, #152a49, transparent), var(--navy); text-align: center; }
.hero-short { min-height: 0; padding-block: 148px 72px; }
.hero-title { max-width: 17ch; margin: 0 auto; color: #fff; font: 700 clamp(2.375rem, 5.2vw, 3.875rem)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.hero .eyebrow + .hero-title { margin-top: 22px; }
.hero-lede { max-width: 46ch; margin: 22px auto 0; color: rgb(255 255 255 / .72); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; text-wrap: balance; }
.hero-lede a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.logos { max-width: 960px; margin: 88px auto 0; padding: 32px clamp(24px, 4vw, 48px) 36px; border-radius: 16px; background: #fff; }
.logos .eyebrow { color: #6a6c70; }
.logos-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px clamp(28px, 3.6vw, 48px); margin-top: 26px; }
.logos img { width: auto; height: 36px; }
.logos .is-tall { height: 48px; }

/* Expertise */
.hexes { --r: clamp(108px, 13.6vw, 156px); --h: calc(var(--r) * 1.732); --g: 7px; position: relative; height: calc(var(--h) * 2 + var(--g)); margin-top: 64px; }
.hex { position: absolute; width: calc(var(--r) * 2); height: var(--h); }
.hex-a { left: calc(50% - var(--r) * 1.75 - var(--g) * .43); top: calc(var(--h) / 2 + var(--g) / 2); --c: var(--navy); --w: #dfe4ea; }
.hex-b { left: calc(50% - var(--r) * .25 + var(--g) * .43); top: 0; --c: var(--blue); --w: #dbe5f4; }
.hex-c { left: calc(50% - var(--r) * .25 + var(--g) * .43); top: calc(var(--h) + var(--g)); --c: #a87c13; --w: #f2e7c9; }
.hex-svg { width: 100%; height: 100%; overflow: visible; }
.hex-ring { fill: var(--c); }
.hex-icon { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hex-icon circle, .hex-icon path:first-child { fill: var(--w); }
.hex-icon .dot { fill: var(--c); stroke: none; }
.hex-icon .dot ~ path { fill: none; }
.hex-text { position: absolute; top: 50%; width: max-content; max-width: 290px; transform: translateY(-50%); line-height: 1.4; }
.hex-a .hex-text { right: calc(100% - var(--r) * .3); text-align: right; }
.hex-b .hex-text, .hex-c .hex-text { left: calc(100% - var(--r) * .3); }
.hex-title { margin-bottom: 10px; color: var(--c); font: 700 1.5625rem/1.2 var(--serif); }
.hex-text li { padding-block: 3px; font-size: 1.0625rem; color: #3d4046; }

/* Credentials */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; text-align: center; }
.stat dt { font-size: .9375rem; font-weight: 500; }
.stat dd { color: var(--ink); font: 700 clamp(2.5rem, 4.6vw, 3.5rem)/1 var(--serif); }
.stat:first-child dd { color: var(--gold); }
.stat dd span { font-weight: 400; }
.creds { max-width: 40ch; margin: clamp(44px, 5vw, 64px) auto 0; color: var(--ink); font: 700 clamp(1.25rem, 2.1vw, 1.5rem)/1.6 var(--serif); text-align: center; text-wrap: balance; }
.creds-more { margin-top: 20px; text-align: center; }

/* Cards and work */
.card { padding: 32px; border: 1px solid var(--stone); border-radius: 16px; background: var(--off); }
.card-title { color: var(--ink); font: 700 1.25rem/1.3 var(--serif); text-wrap: balance; }
.who { margin-top: 8px; color: var(--gold); font-size: .9375rem; font-weight: 500; line-height: 1.45; }
.rail { --show: 3; --gap: 20px; position: relative; display: flex; gap: var(--gap); margin-top: 48px; overflow-x: auto; overscroll-behavior-x: contain; border-radius: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.case { display: flex; flex: 0 0 calc((100% - (var(--show) - 1) * var(--gap)) / var(--show)); flex-direction: column; overflow: hidden; padding: 0; scroll-snap-align: start; }
.case .card-title { font-size: 1.125rem; }
.case .who { margin-top: 5px; font-size: .875rem; }
.case-fig { border-bottom: 1px solid var(--stone); background: #fff; color: var(--navy); }
.fig { width: 100%; height: auto; font-family: var(--sans); }
.fig-hot { color: #a87c13; }
.case-text { padding: 20px 24px 24px; font-size: .9375rem; line-height: 1.55; }
.case-text > p:not(.who) { margin-top: 10px; }
.who a { text-decoration-thickness: 1px; text-underline-offset: .22em; }
.rail-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.rail-nav[hidden] { display: none; }
.rail-nav button { width: 46px; height: 46px; padding: 0; border: 1px solid var(--stone); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: background-color .2s; }
.rail-nav button:hover { background: var(--sand); }
.rail-nav svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-nav .i-play, .is-paused .i-pause { display: none; }
.is-paused .i-play { display: inline; }

/* Visual cryptography */
.sheets { display: none; }
.js .sheets { display: block; }
.sheets-canvas { width: 100%; height: clamp(230px, 36vw, 400px); margin-top: 48px; border-radius: 16px; background: #fff; cursor: ew-resize; touch-action: pan-y; }
.sheets-control { display: block; max-width: 320px; margin: 22px auto 0; }
.sheets input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; background: linear-gradient(#cfcabf, #cfcabf) center / 100% 2px no-repeat; cursor: ew-resize; }
.sheets input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--navy); }
.sheets input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--navy); }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.service { padding: 36px clamp(24px, 4vw, 48px); text-align: center; }
.service p { margin-top: 10px; text-wrap: pretty; }
.disc { width: 48px; height: 48px; margin: 0 auto 20px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.disc circle { fill: #e7e8ea; stroke: none; }

/* Contact and footer */
.contact { padding-block: var(--space); background: var(--navy); text-align: center; }
.contact .h2 { color: #fff; }
.contact .sub { color: rgb(255 255 255 / .72); }
.contact-act { margin-top: 34px; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: 52px; font-size: .875rem; text-align: center; }
.foot-logo { width: auto; height: 30px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.foot-links a { display: inline-block; padding-block: 5px; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.foot-legal { color: #6f7277; }

/* Inner pages */
.page { padding-block: var(--space); }
.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { margin-top: 2em; color: var(--ink); font: 700 1.375rem/1.3 var(--serif); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 1em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose hr { margin-block: 2.5em 1.5em; border: 0; border-top: 1px solid var(--stone); }
.prose a, .record a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.bio { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; padding-block: var(--space) 0; }
.bio-photo { width: 100%; border-radius: 16px; }
.records { padding-bottom: var(--space); }
.record { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 72px); margin-top: clamp(52px, 6vw, 84px); }
.record-title { color: var(--ink); font: 700 1.5rem/1.25 var(--serif); }
.record-list li { display: grid; grid-template-columns: 4em 1fr; padding-block: 12px; line-height: 1.55; }
.record-list li + li { border-top: 1px solid var(--stone); }
.record-list li:first-child { padding-top: 4px; }
.record-when { color: var(--ink); font-weight: 500; }
.record-note { margin-bottom: 20px; }
.record-text p + p { margin-top: 1em; }

@media (max-width: 959px) {
  .rail { --show: 2; }
  .logos-list { gap: 24px 28px; }
  .logos img { height: 28px; }
  .logos .is-tall { height: 39px; }
}
@media (max-width: 1059px) {
  .hex-text li { font-size: 1rem; }
}
@media (max-width: 899px) {
  .hexes { --r: 92px; display: grid; gap: 40px; width: fit-content; height: auto; margin: 48px auto 0; }
  .hex { position: static; display: grid; grid-template-columns: calc(var(--r) * 2) 1fr; align-items: center; gap: 20px; width: auto; height: auto; }
  .hex-svg { height: var(--h); }
  .hex-a .hex-ring { transform: matrix(-1, 0, 0, 1, 200, 0); }
  .hex .hex-text { position: static; width: auto; transform: none; text-align: left; }
}
@media (max-width: 639px) {
  .top-in { min-height: 66px; }
  .top-logo img { height: 30px; }
  .top-wide, .top-mid { display: none; }
  .hero { padding-block: 112px 48px; }
  .hero-short { padding-block: 124px 56px; }
  .eyebrow { font-size: .75rem; letter-spacing: .16em; }
  .hero-actions { flex-direction: column; }
  .logos { margin-top: 56px; padding-inline: 20px; }
  .logos-list { gap: 24px 28px; }
  .logos img { height: 26px; }
  .logos .is-tall { height: 38px; }
  .hexes { --r: 58px; }
  .hex { gap: 16px; }
  .stats { gap: 12px; }
  .stat dt { font-size: .8125rem; line-height: 1.35; }
  .services, .bio, .record { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; }
  .rail { --show: 1; }
  .sheets-canvas { height: 200px; }
}
@media (max-width: 479px) {
  .contact .pill { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
