/* ---------- Fonts (self-hosted, no Google request) ---------- */
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0c1826;      /* matches the backdrop of the portrait */
  --navy-2: #13263b;
  --blue: #2f5f8f;
  --paper: #f5f6f8;
  --sky: #9fc3e6;       /* light blue accent on navy */
  --mist: #e4ebf2;
  --ink: #111c28;
  --ink-soft: #5a6572;
  --line: rgba(17, 28, 40, .14);
  --line-dark: rgba(255, 255, 255, .14);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.015em; margin: 0; }
h1 em, h2 em { color: var(--sky); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.label { font: 500 13px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50; display: flex; align-items: center; color: #fff; transition: background .3s, box-shadow .3s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.site-header.is-solid { background: var(--navy); }
.site-header.is-scrolled:not(.is-solid) { background: rgba(12, 24, 38, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.brand { display: flex; align-items: center; gap: 12px; font: 500 15px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo { width: 44px; height: 44px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a { font: 500 14px/1 var(--text); letter-spacing: .06em; text-decoration: none; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-icon { display: flex; align-items: center; gap: 10px; }
.nav .nav-icon::after { display: none; }
.nav .nav-icon:hover { color: var(--sky); }
.nav-icon-text { display: none; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
@media (max-width: 760px) {
  .brand > span:last-child { font-size: 14px; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px var(--gutter) 24px; box-shadow: 0 16px 30px rgba(0,0,0,.3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav a { font-size: 17px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav-icon-text { display: inline; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: var(--navy); }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 999px; background: #fff; color: var(--navy); font: 600 15px/1 var(--text); letter-spacing: .04em; text-decoration: none; border: 1px solid #fff; transition: background .25s, color .25s, gap .25s; }
.btn:hover { gap: 16px; background: var(--sky); border-color: var(--sky); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; gap: 12px; }

/* ---------- Hero ---------- */
/* sized by width AND height, so the whole first screen fits on short laptop windows too */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: calc(var(--header-h) + clamp(24px, min(7vw, 7vh), 96px)) 0 clamp(56px, min(9vw, 10vh), 120px); }
/* soft blue light, echoing the studio backdrop of the portrait */
.hero::before { content: ""; position: absolute; width: 1100px; height: 1100px; right: -280px; top: -200px; background: radial-gradient(closest-side, rgba(47, 95, 143, .55), rgba(47, 95, 143, 0)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, min(440px, (100vh - var(--header-h) - 110px) * .8)); gap: clamp(40px, 7vw, 110px); align-items: center; }
.hero-kicker { color: rgba(255, 255, 255, .72); margin: 0 0 clamp(16px, 3vh, 28px); }
.hero-kicker::before { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; margin: -2px 14px 0 0; background: var(--sky); }
.hero-kicker em { font-style: normal; color: #fff; }
.hero h1 { font-size: clamp(56px, min(9.4vw, 15vh), 144px); line-height: .9; margin-bottom: clamp(20px, min(3vw, 4vh), 40px); }
.hero h1 em { display: block; white-space: nowrap; }
.hero-bio { max-width: 34em; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; color: rgba(255, 255, 255, .8); }
.hero-bio strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 4vh, 36px); }

.hero-photo { position: relative; justify-self: end; width: 100%; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

.js .hero-text > *, .js .hero-photo { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-text > :nth-child(2) { animation-delay: .08s; }
.js .hero-text > :nth-child(3) { animation-delay: .16s; }
.js .hero-text > :nth-child(4) { animation-delay: .24s; }
.js .hero-photo { animation-delay: .2s; animation-duration: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  /* photo moves between the name line and the headline */
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-text { display: contents; }
  .hero-kicker { order: 1; }
  .hero-photo { order: 2; justify-self: center; width: min(62%, 300px); margin-bottom: 28px; }
  .hero h1 { order: 3; }
  .hero-bio { order: 4; }
  .hero-actions { order: 5; }
}

/* ---------- What really counts ---------- */
.counts { padding: clamp(80px, 11vw, 150px) 0; }
.counts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: end; }
.counts h2 { font-size: clamp(52px, 6.4vw, 96px); margin-bottom: clamp(28px, 3vw, 40px); }
.counts h2 em { color: var(--blue); }
.counts-intro p { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--ink-soft); }
.counts-intro p:last-child { margin: 0; }
.counts-intro strong, .count-list strong { color: var(--ink); font-weight: 600; }
.count-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.count-list li { position: relative; padding-left: 34px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); }
.count-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
@media (max-width: 860px) {
  .counts-grid { grid-template-columns: 1fr; }
  .count-list { gap: 22px; }
}

/* ---------- Do You need BD on demand? ---------- */
.needs { background: var(--mist); padding: clamp(80px, 11vw, 150px) 0; }
.needs h2 { font-size: clamp(52px, 7vw, 108px); margin-bottom: clamp(48px, 6vw, 80px); }
.needs h2 em { color: var(--blue); }
.need-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.need-list li { position: relative; background: #fff; border-radius: 14px; padding: 24px; display: flex; align-items: center; gap: 18px; transition: transform .3s, box-shadow .3s, background .3s; }
.need-list li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12, 24, 38, .1); }
.need-list .icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; transition: background .3s; }
.need-list li:hover .icon { background: var(--blue); }
.need-list p { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; }
.needs-cta { margin: clamp(64px, 8vw, 110px) 0 0; font: 400 clamp(38px, 5vw, 72px)/1.08 var(--serif); letter-spacing: -.01em; max-width: 16em; }
.needs-cta a { font-style: italic; color: var(--blue); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 92% / 100% 2px no-repeat; transition: background-size .3s, color .3s; white-space: nowrap; }
.needs-cta a:hover { color: var(--navy); background-size: 100% 40%; background-image: linear-gradient(rgba(47, 95, 143, .22), rgba(47, 95, 143, .22)); }
@media (max-width: 1000px) { .need-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .need-list { grid-template-columns: 1fr; } .need-list li { padding: 20px; } }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; padding: clamp(80px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 900px; height: 900px; left: -300px; bottom: -400px; background: radial-gradient(closest-side, rgba(47, 95, 143, .4), rgba(47, 95, 143, 0)); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); align-items: center; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 14px; }
.contact h2 { font-size: clamp(64px, 9vw, 140px); margin-bottom: 36px; }
.contact-name { font-size: 20px; line-height: 1.5; margin-bottom: 36px; }
.contact-name em { color: rgba(255, 255, 255, .7); }
.contact-list { margin: 0; border-top: 1px solid var(--line-dark); }
.contact-list > div { display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list dt { font: italic 400 24px/1.1 var(--serif); color: var(--sky); }
.contact-list dd { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; background: linear-gradient(var(--sky), var(--sky)) 0 100% / 0 1px no-repeat; transition: background-size .3s, color .3s; }
.contact-list a:hover { color: var(--sky); background-size: 100% 1px; }
@media (max-width: 860px) {
  /* phones: "reach out" heading, then photo, then name and details */
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-text { display: contents; }
  .contact h2 { order: 1; margin-bottom: 28px; }
  .contact-photo { order: 2; width: min(70%, 320px); margin-bottom: 28px; }
  .contact-name { order: 3; }
  .contact-list { order: 4; }
}

/* ---------- Footer ---------- */
.site-footer { background: #08111b; color: rgba(255, 255, 255, .6); font-size: 14px; padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Legal / 404 ---------- */
.legal { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(80px, 10vw, 140px); min-height: 70vh; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(52px, 7vw, 96px); margin-bottom: 40px; }
.legal h2 { font: 600 17px/1.4 var(--text); margin: 36px 0 10px; }
.legal p { color: var(--ink-soft); }
.legal address { font-style: normal; }
.legal a { color: var(--blue); }
.legal-date { margin-top: 44px; font-size: 15px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .need-list li:nth-child(3n+2), .js .count-list li:nth-child(2) { transition-delay: .08s; }
.js .count-list li:nth-child(3) { transition-delay: .16s; }
.js .need-list li:nth-child(3n) { transition-delay: .16s; }
.js .need-list li.is-in:hover { transition-delay: 0s; }
