/* Fonts: Latin subsets, self-hosted */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 300 600; font-display: swap; src: url('../fonts/hanken-grotesk-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/literata-latin.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/literata-italic-latin.woff2') format('woff2'); }

:root {
  --pine: #183833;
  --verdigris: #417F66;
  --moss: #84B490;
  --sage: #CBE0C1;
  --paper: #F6F5F1;
  --rule: #E3E3DF;
  --ink-2: #3C4C46;
  --ink-3: #4E605A;
  --muted: #7E8F86;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  --swell: url('../img/swell-verdigris-scrim.jpg');
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--pine); }
h1, h2, h3, h4, p { margin: 0; text-wrap: pretty; }
img { display: block; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Landing ---------- */
/* The swell is always sized to the whole viewport and anchored to the top, so
   the inner pages' banner is literally the top slice of the landing page. */
.swell { view-transition-name: hero; position: absolute; inset: 0; overflow: hidden; }
.swell::before { content: ''; position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; height: 100svh; background: var(--pine) var(--swell) center / cover no-repeat; }

.home { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.home__logo { position: absolute; z-index: 1; left: 50%; bottom: calc(50% + 56px); transform: translateX(-50%); }
.home__logo img { view-transition-name: logo; height: clamp(40px, 6vw, 60px); width: auto; }
.choices { view-transition-name: choices; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  padding: .6em 1em;
  text-align: center;
  white-space: nowrap;
  font: 400 1.125rem/1.2 var(--serif);
  letter-spacing: -.005em;
  color: #FFFFFF;
  text-decoration: underline transparent 1px;
  text-underline-offset: .3em;
  transition: text-decoration-color .15s ease;
}
.choice:hover { text-decoration-color: currentColor; }
.choice:focus-visible { outline-color: #FFFFFF; }

/* ---------- Shared page parts ---------- */
.wrap { max-width: var(--max, 1440px); margin-inline: auto; padding-inline: clamp(24px, 5vw, 72px); }
.banner { position: relative; color: #FFFFFF; }
.topbar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(28px, 3.5vw, 40px); }
.logo { display: block; }
.logo img { view-transition-name: logo; height: 34px; width: auto; }
.back { view-transition-name: back; font: 500 14px/1.2 var(--sans); color: inherit; text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.back:hover { border-bottom-color: currentColor; }

.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px); }
.split__aside { flex: 1 1 260px; min-width: 0; }
.split__sticky { position: sticky; top: 40px; }
.split__main { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; }
.index { font: 500 11px/1 var(--sans); letter-spacing: .18em; color: var(--muted); }
.h2 { font: 400 clamp(1.75rem, 2.8vw, 2.375rem)/1.12 var(--serif); letter-spacing: -.015em; color: var(--pine); }
.split__sticky .h2 { margin-top: 14px; }

/* ---------- What We Do ---------- */
.intro-block { border-bottom: 1px solid var(--rule); }
.intro { display: flex; flex-wrap: wrap; }
.intro__title { flex: 3 1 420px; min-width: 0; padding: clamp(56px, 8vw, 120px) clamp(24px, 4vw, 64px) clamp(56px, 8vw, 120px) 0; }
.intro__title h1 { font: 400 clamp(2.1rem, 4.2vw, 3.5rem)/1.05 var(--serif); letter-spacing: -.02em; color: var(--pine); }
.intro__panel { flex: 2 1 320px; min-width: 0; margin-block: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding: clamp(40px, 5vw, 64px); color: #FFFFFF; background: linear-gradient(rgba(24,56,51,.78), rgba(24,56,51,.42)), var(--swell) center / cover, var(--pine); }
.intro__panel p { font: 300 18px/1.62 var(--sans); color: rgba(255,255,255,.86); }
.tick { width: 44px; height: 4px; background: var(--moss); }

.prose { gap: 22px; flex-grow: 4; }
.prose p { font: 300 17px/1.7 var(--sans); color: var(--ink-3); max-width: 68ch; }
.prose p:first-child { font-size: 18px; color: var(--ink-2); }

.actors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.actor { padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px); background: var(--paper); }
.actor__inner { max-width: 520px; margin-left: auto; }
.actor h3 { font: 400 clamp(1.75rem, 2.6vw, 2.25rem)/1 var(--serif); color: var(--pine); padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.actor h4 { font: 500 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--verdigris); margin: 26px 0 10px; }
.actor p { font: 300 16px/1.66 var(--sans); color: var(--ink-2); }
.actor--dark { background: var(--pine); color: #FFFFFF; }
.actor--dark .actor__inner { margin-left: 0; }
.actor--dark h3 { color: #FFFFFF; border-bottom-color: rgba(255,255,255,.2); }
.actor--dark h4 { color: var(--moss); }
.actor--dark p { color: rgba(255,255,255,.85); }

.callout { background: var(--sage); }
.callout .wrap { padding-block: clamp(40px, 5vw, 72px); }
.callout p { font: 400 clamp(1.15rem, 1.9vw, 1.5rem)/1.45 var(--serif); color: var(--pine); max-width: 44ch; }

.symptoms-note { font: 400 17px/1.5 var(--serif); color: var(--verdigris); margin-top: 22px; }
.symptoms { flex: 3 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; align-self: flex-start; background: var(--rule); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.symptom { background: #FFFFFF; padding: clamp(22px, 2.5vw, 30px); }
.symptom span { font: 500 28px/1 var(--serif); color: var(--sage); }
.symptom p { font: 300 16px/1.66 var(--sans); color: var(--ink-3); margin-top: 16px; }
.symptom--wide { grid-column: 1 / -1; }
.symptom--wide p { max-width: 80ch; }

.work { background: var(--paper); }
.work .wrap { padding-block: clamp(56px, 7vw, 96px); }
.work__head { display: flex; align-items: baseline; gap: 18px; padding-bottom: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--rule); }
.stage { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding-block: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.stage:last-child { border-bottom: 0; }
.stage__num { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1 var(--serif); color: var(--moss); }
.stage__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 44px); min-width: 0; }
.stage h3 { font: 400 clamp(1.4rem, 2.2vw, 1.75rem)/1.15 var(--serif); color: var(--pine); }
.stage__tag { font: italic 400 16px/1.5 var(--serif); color: var(--verdigris); margin-top: 10px; }
.stage__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stage__text p { font: 300 16.5px/1.7 var(--sans); color: var(--ink-3); }
.stage__text .pull { font: 400 16.5px/1.6 var(--serif); color: var(--pine); border-left: 2px solid var(--moss); padding-left: 18px; }

.principle { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); padding-block: 26px; border-top: 1px solid var(--rule); }
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle h3 { flex: 1 1 200px; font: 400 clamp(1.05rem, 1.6vw, 1.3rem)/1.3 var(--serif); color: var(--pine); }
.principle p { flex: 2 1 320px; min-width: 0; font: 300 16px/1.66 var(--sans); color: var(--ink-3); }

.closing { background: var(--pine); color: #FFFFFF; }
.closing .wrap { padding-top: clamp(64px, 9vw, 128px); }
.closing h2 { font: 400 clamp(2rem, 4.4vw, 3.25rem)/1.06 var(--serif); letter-spacing: -.02em; max-width: 22ch; }
.closing p { font: 300 18px/1.7 var(--sans); color: rgba(255,255,255,.82); max-width: 66ch; margin-top: 32px; }
.closing strong { font-weight: 500; color: #FFFFFF; }
.closing__foot { margin-top: clamp(56px, 8vw, 104px); padding-block: 36px 48px; border-top: 1px solid rgba(255,255,255,.16); }
.closing__foot img { height: 20px; width: auto; }

/* ---------- Who We Are ---------- */
.person { gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.person .index { color: var(--moss); }
.person h2 { font: 400 clamp(1.9rem, 3.2vw, 2.5rem)/1.06 var(--serif); letter-spacing: -.02em; color: var(--pine); margin-top: 16px; }
.person .split__sticky::after { content: ''; display: block; width: 48px; height: 2px; margin: 22px 0; background: var(--pine); }
.person .split__main { gap: 24px; }
.person p { font: 300 17px/1.72 var(--sans); color: var(--ink-3); max-width: 64ch; }
.person p:first-child { font-size: 18px; color: var(--pine); }
.people-foot { padding-block: 36px 56px; }
.people-foot img { height: 17px; width: auto; }

/* ---------- Page transition ----------
   Browsers without cross-document view transitions, and visitors who prefer
   reduced motion, simply get a normal page load. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  :root { --vt-time: .8s; --vt-ease: cubic-bezier(.65, 0, .2, 1); }

  ::view-transition-group(*) { animation-duration: var(--vt-time); animation-timing-function: var(--vt-ease); }

  /* The swell's bottom edge travels while its pixels stay still. */
  ::view-transition-group(hero) { overflow: hidden; }
  ::view-transition-old(hero), ::view-transition-new(hero) { animation: none; opacity: 1; mix-blend-mode: normal; width: auto; height: auto; }

  /* The incoming page rises from behind the swell. */
  ::view-transition-old(root) { animation: vt-fade-out calc(var(--vt-time) * .4) ease both; }
  ::view-transition-new(root) { animation: vt-rise var(--vt-time) var(--vt-ease) both; }

  ::view-transition-old(choices), ::view-transition-old(back) { animation: vt-fade-out calc(var(--vt-time) * .25) ease both; }
  ::view-transition-new(choices), ::view-transition-new(back) { animation: vt-fade-in calc(var(--vt-time) * .45) ease calc(var(--vt-time) * .55) both; }

  @keyframes vt-fade-out { to { opacity: 0; } }
  @keyframes vt-fade-in { from { opacity: 0; } }
  @keyframes vt-rise { from { opacity: 0; transform: translateY(72px); } }
}
