@font-face { font-family: Nunito; src: url(../fonts/nunito-latin-wght-normal.woff2) format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/nunito-latin-wght-italic.woff2) format('woff2'); font-weight: 200 1000; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(../fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --indigo: #424A9E;
  --indigo-deep: #2E3478;
  --apricot: #FAAA53;
  --apricot-ink: oklch(0.56 0.13 58);
  --paper: oklch(0.993 0.003 85);
  --tint: oklch(0.965 0.008 276);
  --ink: oklch(0.3 0.045 276);
  --ink-soft: oklch(0.47 0.035 276);
  --cream: #FFF4E2;
  --night-0: #0E1130;
  --night-1: #181C52;
  --night-2: #2A3080;
  --frame: clamp(10px, 1.25vw, 18px);
  --gutter: clamp(20px, 5vw, 80px);
  --font: Nunito, ui-rounded, 'Avenir Next', system-ui, sans-serif;
  --label: 'Barlow Condensed', 'Avenir Next Condensed', system-ui, sans-serif;
  --out-quint: cubic-bezier(.22, 1, .36, 1);
  --out-expo: cubic-bezier(.16, 1, .3, 1);
  --app-h: 100dvh;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8'%3E%3Cpath d='M0 4q10-6 20 0t20 0' fill='none' stroke='%23424A9E' stroke-width='1.1'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.is-night { background: var(--night-0); overflow: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: calc(var(--frame) + 8px); left: calc(var(--frame) + 8px); z-index: 60; padding: 8px 14px; background: var(--indigo); color: var(--cream); transform: translateY(-200%); }
.skip:focus { transform: none; }
.noscript { position: fixed; inset: auto 0 0; z-index: 70; padding: 16px; text-align: center; background: var(--indigo); color: var(--cream); }

/* The indigo frame from the PDF. It stays put while night turns into day. */
.frame { position: fixed; inset: 0; z-index: 50; border: var(--frame) solid var(--indigo); pointer-events: none; }

/* Lock screen */
.lock {
  --ground: clamp(150px, 22%, 240px);
  --tent-h: min(calc(var(--app-h) - var(--ground) - var(--frame) * 2 + 4vh), 96vw);
  --px: 0; --py: 0;
  position: fixed; inset: 0;
  height: var(--app-h);
  overflow: hidden;
  color: var(--cream);
  background: linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 52%, var(--night-2) 84%, #3A4196 100%);
}
.lock__sky, .lock__embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock__embers { pointer-events: none; z-index: 3; }
.lock__camera { position: absolute; inset: 0; will-change: transform; z-index: 1; }
.lock__hills { position: absolute; left: -2%; right: -2%; bottom: 0; width: 104%; height: calc(var(--ground) + 96px); transform: translate3d(calc(var(--px) * -6px), 0, 0); }
.hill-back { fill: #171B52; }
.hill-front { fill: #0F1238; }
.lock__tent {
  position: absolute;
  left: 63%;
  bottom: calc(var(--ground) - var(--tent-h) * .075);
  width: calc(var(--tent-h) * .84);
  height: var(--tent-h);
  margin-left: calc(var(--tent-h) * -.42);
  transform: translate3d(calc(var(--px) * -3px), 0, 0);
}
.tent { width: 100%; height: 100%; overflow: visible; }
.tent__spill { mix-blend-mode: screen; pointer-events: none; }
.tent__pull { transition: opacity .25s; }
.tent__hit { cursor: grab; touch-action: none; }
.lock__flood { position: absolute; inset: 0; background: var(--apricot); opacity: 0; pointer-events: none; }
.flood { position: fixed; inset: 0; z-index: 40; background: var(--apricot); pointer-events: none; }

.lock__panel {
  position: absolute; z-index: 4;
  left: clamp(40px, 8vw, 132px);
  top: 50%;
  width: min(30rem, 36vw);
  transform: translateY(-50%);
  transition: opacity .3s, transform .5s var(--out-quint);
}
.lock__brand { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 4vh, 44px); }
.lock__word { width: 76px; height: auto; }
.lock__tag { font-size: .875rem; letter-spacing: .34em; font-weight: 400; opacity: .78; }
.lock__title { font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.lock__lead { margin-top: 14px; max-width: 26rem; font-size: 1.125rem; line-height: 1.6; color: oklch(0.9 0.02 85 / .86); letter-spacing: .005em; }
.lock__form { margin-top: clamp(24px, 4.5vh, 44px); max-width: 26rem; }
.lock__label { display: block; font: 500 .875rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: oklch(0.86 0.04 75); }
.lock__field { position: relative; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.lock__input {
  flex: 1; min-width: 0; height: 52px;
  background: none; border: 0; outline: none;
  color: var(--apricot); caret-color: var(--apricot);
  font: 600 1.375rem/1 var(--font);
  letter-spacing: .08em;
}
.lock__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 8px; }
.lock__wave path { fill: none; stroke: oklch(0.9 0.02 85 / .5); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke .25s; }
.lock__field:focus-within .lock__wave path { stroke: var(--apricot); }
.has-error .lock__wave path { stroke: var(--apricot); }
.lock__show { font: 500 .875rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; padding: 12px 6px; min-height: 44px; color: oklch(0.86 0.04 75); }
.lock__show:hover { color: var(--cream); }
.lock__go {
  flex: none; min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  background: var(--apricot); color: #23286B;
  font: 800 1rem/1 var(--font);
  transition: transform .2s var(--out-quint), background-color .2s;
}
.lock__go:hover { background: #FFC077; }
.lock__go:active { transform: scale(.97); }
.is-checking .lock__go { opacity: .7; }
.lock__status { min-height: 1.6em; margin-top: 12px; font-size: 1rem; color: #FFD6A3; }
.lock__ask { margin-top: 4px; font-size: .9375rem; }
.lock__ask a { color: oklch(0.9 0.02 85 / .82); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lock__ask a:hover { color: var(--cream); }
.lock__sound {
  position: absolute; z-index: 5;
  right: calc(var(--frame) + 20px); top: calc(var(--frame) + 14px);
  min-height: 44px; padding: 0 6px;
  font: 500 .875rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase;
  color: oklch(0.9 0.02 85 / .72);
}
.lock__sound:hover { color: var(--cream); }
.lock__sound[aria-pressed='true'] { color: var(--apricot); }
.is-opening .lock__panel { opacity: 0; transform: translateY(-50%) translateX(-14px); pointer-events: none; }
.is-opening .lock__sound { opacity: 0; transition: opacity .25s; }
.is-opening .tent__hit { pointer-events: none; }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .lock { --ground: min(56%, 400px); --tent-h: calc(var(--app-h) - var(--ground) + 2vh); }
  .lock__tent { left: 50%; bottom: calc(var(--ground) - var(--tent-h) * .08); }
  .lock__panel {
    left: 0; right: 0; top: auto; bottom: 0;
    width: auto; max-width: 30rem; margin: 0 auto;
    padding: 0 calc(var(--frame) + 18px) calc(var(--frame) + 14px + env(safe-area-inset-bottom));
    transform: none;
  }
  .is-opening .lock__panel { transform: translateY(12px); }
  .lock__brand { justify-content: center; margin-bottom: 14px; }
  .lock__word { width: 60px; }
  .lock__title { font-size: 2.125rem; text-align: center; }
  .lock__lead { margin: 8px auto 0; text-align: center; font-size: 1rem; }
  .lock__form { margin: 18px auto 0; }
  .lock__ask { text-align: center; }
  .lock__sound { right: auto; left: calc(var(--frame) + 12px); }
}
.is-compact { --ground: 190px; }
.is-compact .lock__brand, .is-compact .lock__lead, .is-compact .lock__ask, .is-compact .lock__sound { display: none; }
.is-compact .lock__title { font-size: 1.5rem; }
.is-compact .lock__form { margin-top: 8px; }

/* Site */
.app { min-height: 100vh; padding: var(--frame); background: var(--paper); }
.site-head {
  position: sticky; top: var(--frame); z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: var(--paper);
}
.site-head__mark { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; color: var(--indigo); }
.logo { width: 34px; height: 68px; overflow: visible; }
.site-head .logo { width: 36px; height: auto; aspect-ratio: 105 / 175.4; }
/* At this size and line height the baseline lands level with the tent's right-hand corner. Resize both together. */
.site-head__name { font: 600 1.875rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; }
.site-head nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-head nav a {
  position: relative;
  padding: 10px 0;
  color: var(--indigo); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.site-head nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 8px;
  background: var(--wave) repeat-x left center / 20px 4px;
  opacity: 0; transition: opacity .2s;
}
.site-head nav a:hover::after, .site-head nav a[aria-current]::after { opacity: 1; }

.wave { height: 8px; background: var(--wave) repeat-x left center / 40px 8px; margin: 0 var(--gutter); opacity: .55; }

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  padding: clamp(40px, 9vh, 112px) var(--gutter) clamp(32px, 6vh, 72px);
}
.hero__title {
  grid-column: 1 / span 8;
  color: var(--indigo);
  font-size: clamp(2.5rem, 5.9vw, 5.75rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__line > span { display: block; }
.hero__aside { grid-column: 9 / span 4; }
.hero__lead { max-width: 26rem; }
.hero__list { margin-top: 18px; font: 500 1rem/1.5 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.is-arriving .hero__line > span { animation: rise 1s var(--out-expo) both; animation-delay: calc(520ms + var(--i) * 90ms); }
.is-arriving .hero__aside { animation: fade .9s ease-out both 860ms; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

.work { padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(64px, 11vh, 128px); }
.home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 6.5vw, 96px) clamp(16px, 2.2vw, 32px);
  align-items: start;
}
.home-grid__item { margin-top: var(--drop, 0); min-width: 0; }
.tile { display: block; text-decoration: none; color: inherit; }
.tile .shot img { transition: transform .9s var(--out-quint); }
.tile:hover .shot img { transform: scale(1.025); }
.tile__meta { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; margin-top: 12px; }
.tile__num { grid-row: span 2; font: 600 1rem/1.5 var(--label); letter-spacing: .06em; color: var(--apricot-ink); }
.tile__title { font-size: clamp(1.125rem, 1.7vw, 1.5rem); font-weight: 800; line-height: 1.25; color: var(--indigo); }
.tile__kind { font-size: .9375rem; color: var(--ink-soft); }
.tile:hover .tile__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--apricot); }

.shot { display: block; position: relative; overflow: hidden; width: 100%; }
.shot img { width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease-out, transform .9s var(--out-quint); }
.shot[data-state='ready'] img { opacity: 1; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease-out, transform 1s var(--out-quint); }
.reveal.is-in { opacity: 1; transform: none; }

/* Case study */
.case__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding: clamp(32px, 7vh, 88px) var(--gutter) clamp(32px, 6vh, 64px);
}
.case__title { grid-column: 1 / span 6; }
.case__title h1 {
  margin-top: 8px;
  color: var(--indigo);
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.case__copy { grid-column: 8 / span 5; display: grid; gap: 14px; align-content: end; max-width: 68ch; }
.case__credits { margin-top: 6px; font-size: .9375rem; font-style: italic; color: var(--ink-soft); }
.eyebrow { display: flex; gap: 12px; font: 500 1rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow__num { color: var(--apricot-ink); font-weight: 600; }
.case__rows { display: grid; gap: clamp(32px, 5.5vw, 72px); padding: 0 var(--gutter) clamp(56px, 9vh, 104px); }
.row { display: flex; gap: clamp(12px, 2vw, 28px); align-items: flex-start; }
.row figure { flex: var(--ar) 1 0; min-width: 0; }
figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.4; font-style: italic; color: var(--ink-soft); }
.case__next { padding: clamp(40px, 7vh, 72px) var(--gutter) clamp(56px, 9vh, 96px); }
.case__next a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; text-decoration: none; }
.case__next-label { grid-column: 1 / -1; font: 500 1rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.case__next-title { grid-column: 1 / span 8; color: var(--indigo); font-size: clamp(2.25rem, 5.4vw, 5rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.case__next a:hover .case__next-title { text-decoration: underline; text-decoration-color: var(--apricot); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.case__next .shot { grid-column: 10 / span 3; }

/* Resume */
.cv { padding: clamp(32px, 7vh, 80px) var(--gutter) clamp(56px, 10vh, 112px); }
.cv__head { display: grid; grid-template-columns: clamp(96px, 12vw, 148px) minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.cv__head .shot { border-radius: 50%; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--apricot); }
.cv__head h1 { color: var(--indigo); font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.cv__sub { font-weight: 700; color: var(--ink-soft); }
.cv__summary { max-width: 62ch; margin-top: 10px; }
.button {
  align-self: start; min-height: 44px; padding: 0 22px;
  border-radius: 999px; background: var(--indigo); color: var(--cream); font-weight: 800; font-size: 1rem;
  transition: background-color .2s;
}
.button:hover { background: var(--indigo-deep); }
.cv__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(40px, 7vh, 72px); }
.cv__main { grid-column: 1 / span 7; display: grid; gap: clamp(32px, 5vh, 56px); }
.cv__side { grid-column: 9 / span 4; display: grid; gap: 32px; align-content: start; }
.cv__heading {
  padding-bottom: 12px; margin-bottom: 18px;
  background: var(--wave) repeat-x left bottom / 40px 8px;
  font: 600 1.0625rem/1.2 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--indigo);
}
.cv__list { display: grid; gap: 22px; }
.cv__entry h3 { font-size: 1.125rem; font-weight: 800; color: var(--indigo); line-height: 1.35; }
.cv__where { color: var(--ink-soft); font-size: 1rem; }
.cv__entry p + p { margin-top: 8px; }
.cv__plain { display: grid; gap: 4px; }
.cv__plain a { text-underline-offset: 3px; text-decoration-color: var(--apricot); overflow-wrap: anywhere; }

.missing { padding: clamp(64px, 18vh, 180px) var(--gutter); }
.missing h1 { color: var(--indigo); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; }
.missing p { margin-top: 16px; }

/* Footer: the frame opens up to hold it. */
.site-foot { background: var(--indigo); color: var(--cream); padding: clamp(48px, 10vh, 112px) var(--gutter) 28px; }
.site-foot__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.site-foot__title { grid-column: 1 / span 6; font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.site-foot__links { grid-column: 8 / span 5; display: grid; gap: 6px; align-content: start; }
.site-foot__primary { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 800; color: var(--apricot); text-decoration: none; overflow-wrap: anywhere; }
.site-foot__primary:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-foot__list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot__list a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 8vh, 80px); font-size: .875rem; color: oklch(0.9 0.02 85 / .82); }
.site-foot__lock { min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-foot__lock:hover { color: var(--apricot); }

@media (max-width: 760px) {
  .hero, .case__head { display: block; }
  .hero__title { font-size: 8.9vw; }
  .hero__aside { margin-top: 22px; }
  .case__copy { margin-top: 20px; }
  .home-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-grid__item { grid-column: 1 / -1 !important; margin-top: 0; }
  .row { flex-wrap: wrap; }
  .row figure { flex: 1 1 100%; }
  .row--3 figure, .row--4 figure { flex: 1 1 calc(50% - 8px); }
  .row--3 figure:first-child:nth-last-child(3) { flex-basis: 100%; }
  .case__next .shot { display: none; }
  .case__next-title { grid-column: 1 / -1; }
  .cv__head { display: block; }
  .cv__head .shot { width: 92px; margin: 4px 0 20px 6px; }
  .cv__head .button { margin-top: 18px; }
  .cv__body { display: block; }
  .cv__side { margin-top: 40px; }
  .site-foot__inner { display: block; }
  .site-foot__links { margin-top: 28px; }
  .site-head__name { display: none; }
}

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

@media print {
  @page { margin: 14mm; }
  body { background: none; font-size: 10.5pt; line-height: 1.4; }
  .frame, .site-head, .site-foot, .skip, .button { display: none !important; }
  .app { padding: 0; }
  .cv { padding: 0; }
  .cv__head { grid-template-columns: 62pt 1fr; gap: 14pt; }
  .cv__head .shot { box-shadow: none; }
  .cv__head h1 { font-size: 24pt; }
  .cv__sub { font-size: 10.5pt; }
  .cv__summary { font-size: 10pt; margin-top: 4pt; }
  .cv .eyebrow { display: none; }
  .cv__heading { font-size: 10pt; padding-bottom: 3pt; margin-bottom: 6pt; background: none; border-bottom: .75pt solid var(--apricot); }
  .cv__entry h3 { font-size: 10.5pt; }
  .cv__where { font-size: 9.5pt; }
  .cv__entry p, .cv__plain { font-size: 9.5pt; }
  .cv__entry p + p { margin-top: 3pt; }
  .cv__plain { gap: 1pt; }
  .cv__body { margin-top: 12pt; }
  .cv__main { grid-column: 1 / span 8; gap: 10pt; }
  .cv__side { grid-column: 9 / span 4; gap: 9pt; }
  .cv__list { gap: 5pt; }
  .cv__entry { break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}
