/* palette: bg=#FFFFFF fg=#1B2A4A accent=#216B7C */
/* fonts: display="Fraunces" body="Inter" mono="JetBrains Mono" */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F2ECE2;         /* warm cream alternating band */
  --bg-deep: #14213D;        /* deep navy inverted band */
  --fg: #1B2A4A;             /* deep navy text */
  --fg-soft: #34435F;
  --muted: #6C778C;          /* secondary text */
  --accent: #216B7C;         /* petrol-teal accent */
  --accent-deep: #17505E;
  --line: #D9D3C7;
  --border: rgba(27, 42, 74, 0.14);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}

.divider-line {
  width: 44px;
  height: 1px;
  background: var(--accent);
  margin: 22px auto;
  opacity: 0.7;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(27, 42, 74, 0.06);
  border-bottom-color: var(--border);
}
/* transparent header over hero on home */
.header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.header--overlay .brand__mark, .header--overlay .brand__sub, .header--overlay .nav a, .header--overlay .menu-toggle span { color: #fff; }
.header--overlay .menu-toggle span { background: #fff; }
.header--overlay[data-scrolled="true"] .brand__mark,
.header--overlay[data-scrolled="true"] .brand__sub,
.header--overlay[data-scrolled="true"] .nav a { color: var(--fg); }
.header--overlay[data-scrolled="true"] .menu-toggle span { background: var(--fg); }
body.has-overlay { padding-top: 0; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__mark { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; color: var(--fg); }
.brand__sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: none; gap: 34px; align-items: center; }
.nav a { font-size: 13px; letter-spacing: 0.02em; color: var(--fg-soft); transition: color 0.25s; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
@media (min-width: 900px) { .nav { display: flex; } }

.nav__cta {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 11px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
@media (min-width: 900px) { .nav__cta { display: inline-block; } }
.header:not(.header--overlay) .nav__cta { color: var(--fg); }
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 30px; padding: 6px 0; }
.menu-toggle span { display: block; height: 1.5px; width: 26px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-deep);
  color: #fff;
  padding: 100px 28px 40px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-menu[data-open="true"] { transform: none; opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--serif); font-size: 34px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu__foot { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,61,0.34) 0%, rgba(20,33,61,0.12) 40%, rgba(20,33,61,0.72) 100%); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { position: relative; text-align: center; color: #fff; width: 100%; padding-bottom: 74px; }
.hero__play { width: 54px; height: 54px; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 26px; transition: background 0.3s, border-color 0.3s; }
.hero__play:hover { background: rgba(255,255,255,0.14); }
.hero__play svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.hero .eyebrow { color: rgba(255,255,255,0.9); }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 8.4rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-weight: 300;
  margin: 18px auto 0;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: #A9D9E2; }
.hero__tag { margin: 24px auto 0; max-width: 40ch; color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.7; }

/* ---------- Section base ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }
.section-head p { color: var(--fg-soft); margin-top: 22px; font-size: 18px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); margin-top: 34px;
  transition: gap 0.3s var(--ease);
}
.arrow-link:hover { gap: 16px; }
.arrow-link svg { width: 18px; height: 12px; stroke: currentColor; }

/* ---------- Intro image grid (clone of reference row) ---------- */
.gallery { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .gallery { grid-template-columns: 1fr 1.35fr 1fr; align-items: end; gap: 22px; } }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:nth-child(1) img { aspect-ratio: 4/5; }
.gallery figure:nth-child(2) img { aspect-ratio: 4/3; }
.gallery figure:nth-child(3) img { aspect-ratio: 4/5; }
.gallery figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- Services list ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: clamp(40px,6vw,72px); border-top: 1px solid var(--border); }
.service {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 38px 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease);
}
@media (min-width: 768px) {
  .service { grid-template-columns: 80px 1fr 1.4fr; gap: 32px; align-items: baseline; }
  .service:hover { padding-left: 14px; }
}
.service__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.service__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.service__desc { color: var(--fg-soft); font-size: 16px; line-height: 1.7; }

/* ---------- Manifesto dark band ---------- */
.manifesto { background: var(--bg-deep); color: #fff; padding: clamp(96px, 15vw, 200px) 0; }
.manifesto__mark { font-family: var(--serif); font-size: 120px; line-height: 0.5; color: var(--accent); display: block; height: 60px; }
.manifesto blockquote { margin: 0 auto; max-width: 920px; text-align: center; }
.manifesto p { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.18; font-weight: 300; letter-spacing: -0.02em; }
.manifesto p em { font-style: italic; color: #A9D9E2; }
.manifesto cite { display: block; margin-top: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-style: normal; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; margin-top: clamp(48px,7vw,80px); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -0.03em; line-height: 1; }
.stat__label { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

/* ---------- Library cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: clamp(48px,7vw,80px); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--border); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); box-shadow: 0 4px 24px -4px rgba(20,33,61,0.06); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px -10px rgba(20,33,61,0.16); }
.card__media { overflow: hidden; aspect-ratio: 3/2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 26px 26px 30px; }
.card__cat { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.card h3 { font-size: 1.42rem; line-height: 1.2; margin-top: 14px; }
.card p { color: var(--fg-soft); font-size: 15px; margin-top: 12px; line-height: 1.65; }
.card__meta { margin-top: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 14px; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split--rev .split__media { order: -1; }
@media (min-width: 900px) { .split--rev .split__media { order: 1; } }
.split__media { overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; }
.split p { color: var(--fg-soft); margin-top: 22px; font-size: 17px; }
.split ul { list-style: none; padding: 0; margin: 30px 0 0; }
.split li { padding: 14px 0; border-top: 1px solid var(--border); display: flex; gap: 16px; align-items: baseline; font-size: 16px; }
.split li::before { content: "—"; color: var(--accent); }

/* ---------- Team / principles (text-only, no faces) ---------- */
.principles { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: clamp(48px,7vw,80px); }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { padding: 34px 30px; border: 1px solid var(--border); background: var(--bg); }
.avatar { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 22px; }
.principle h3 { font-size: 1.3rem; }
.principle .role { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-top: 6px; display: block; }
.principle p { color: var(--fg-soft); font-size: 15px; margin-top: 16px; line-height: 1.66; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: clamp(40px,6vw,64px) auto 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 8px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.4rem; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-soft); font-size: 16px; padding: 0 0 24px; max-width: 68ch; line-height: 1.72; }

/* ---------- CTA band ---------- */
.cta { background: var(--bg-alt); text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; max-width: 16ch; margin: 0 auto; }
.cta p { color: var(--fg-soft); margin: 24px auto 0; max-width: 52ch; font-size: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  padding: 16px 34px; border-radius: 999px; background: var(--fg); color: #fff;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--fg); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; margin-top: clamp(40px,6vw,72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.info-block { padding: 22px 0; border-top: 1px solid var(--border); }
.info-block .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.info-block .v { margin-top: 8px; font-size: 17px; color: var(--fg); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px; color: var(--fg); transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { border: 0; justify-self: start; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(120px,16vw,180px) 0 clamp(80px,12vw,120px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
.legal .updated { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.legal h2 { font-size: 1.55rem; margin-top: 48px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.78; margin-top: 16px; }
.legal ul { padding-left: 20px; }

/* ---------- Thanks ---------- */
.thanks { min-height: 82vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px 20px 90px; }
.thanks h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1; }
.thanks p { color: var(--fg-soft); margin: 24px auto 0; max-width: 46ch; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: rgba(255,255,255,0.72); padding: clamp(72px,10vw,110px) 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.footer__brand .brand__mark { color: #fff; }
.footer__brand p { margin-top: 20px; max-width: 34ch; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer__col h4 { font-family: var(--mono); font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer__col a { display: block; padding: 7px 0; font-size: 15px; color: rgba(255,255,255,0.78); transition: color 0.25s; }
.footer__col a:hover { color: #A9D9E2; }
.footer__bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer__bottom .brand__sub { color: rgba(255,255,255,0.4); }

/* ---------- Cookie popup ---------- */
.cookie-popup { position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:flex-start;padding:24px;background:rgba(20,33,61,0.4);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .3s; }
.cookie-popup[data-open="true"] { opacity:1;pointer-events:all; }
.cookie-popup__card { background:var(--bg);padding:32px 36px;max-width:480px;border-radius:6px;box-shadow:0 20px 60px -12px rgba(20,33,61,0.4); }
.cookie-popup__label { font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:0.18em;color:var(--accent); }
.cookie-popup__card h3 { font-size:1.5rem;margin-top:12px; }
.cookie-popup__card p { color:var(--fg-soft);font-size:14px;line-height:1.65;margin-top:14px; }
.cookie-popup__card a { color:var(--accent);text-decoration:underline; }
.cookie-popup__actions { display:flex;gap:12px;margin-top:22px; }
.cookie-popup__actions button { padding:11px 24px;border:1px solid var(--border);cursor:pointer;font-size:13px;border-radius:999px;transition:background 0.25s,color 0.25s; }
.cookie-popup__actions button:last-child { background:var(--fg);color:var(--bg);border-color:var(--fg); }
.cookie-popup__actions button:last-child:hover { background:var(--accent);border-color:var(--accent); }

/* page intro (inner pages) */
.page-hero { padding: clamp(140px,18vw,220px) 0 clamp(50px,7vw,80px); text-align: center; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { color: var(--fg-soft); margin: 26px auto 0; max-width: 54ch; font-size: 18px; }
