/* Type follows the Age of Abundance brand book: a wedge serif that announces, a warm sans that reads, a mono that
   labels. The files here are its open-licence stand-ins (Spectral, Instrument Sans, IBM Plex Mono, all SIL OFL). */
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; src: url("assets/fonts/Spectral-Light.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; src: url("assets/fonts/Spectral-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; src: url("assets/fonts/InstrumentSans.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 600; src: url("assets/fonts/InstrumentSans-Italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; src: url("assets/fonts/Outfit-Bold-wordmark.woff") format("woff"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; src: url("assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-display: swap; }

:root {
  --navy: #0E1B2E;
  --night: #06121F;
  --paper: #F5F1E8;
  --rule: #D9D1C1;
  --ink: #141A26;
  --body: #2E3340;
  --muted: #6B675F;
  --amber: #C8651A;
  --sun: #E8821A;
  --serif: "GT Sectra Display", "GT Sectra", "Spectral", "Tiempos Headline", Georgia, serif;
  --book: "S\F6hne", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Berkeley Mono", "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--night); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--book);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
em { font-style: italic; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.veil { position: fixed; inset: 0; z-index: 40; background: var(--night); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.veil--on { opacity: 1; transition-duration: .26s; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--paper); color: var(--ink); padding: .7rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }

#world { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: none; pointer-events: none; }
.webgl #world { display: block; }

main, .foot { position: relative; z-index: 1; }

/* Kicker */
.kicker {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  color: var(--sun);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.45rem;
  font-family: var(--book);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn--sun { background: var(--sun); color: var(--navy); }
.btn--sun:hover { background: #F4973A; }
.btn--line { border-color: rgba(245, 241, 232, .5); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); background: rgba(245, 241, 232, .08); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: #1A2C47; }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--gutter) 1.6rem;
  color: var(--paper);
  transition: color .35s;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(6, 18, 31, .82), rgba(6, 18, 31, 0));
  opacity: var(--shade, 1);
  transition: opacity .35s;
  pointer-events: none;
}
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(245, 241, 232, .94), rgba(245, 241, 232, 0));
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.nav--day { color: var(--ink); }
.nav--day::before { opacity: 0; }
.nav--day::after { opacity: 1; }
.nav__name { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: -0.005em; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5vw;
  padding: 7rem var(--gutter) 6rem;
  background: linear-gradient(var(--night), var(--navy));
}
.hero__inner { width: min(44rem, 52vw); margin-left: clamp(0rem, 3vw, 4rem); }
.hero__portrait { flex: 0 0 auto; width: min(30vw, 54vh); }
.hero h1 {
  font-size: clamp(2.2rem, 3.4vw + .6rem, 3.9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero__role { margin: 1.7rem 0 0; font-size: 1.05rem; color: rgba(245, 241, 232, .78); max-width: 30rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }
.hero__down {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: rgba(245, 241, 232, .7);
  animation: nudge 2.6s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* Story */
.story { background: var(--navy); }
.step {
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: 10vh var(--gutter);
}
.step__text { width: min(30rem, 100%); margin-left: clamp(0rem, 3vw, 4rem); }
.step h2 { font-size: clamp(2.3rem, 3.8vw + .5rem, 4.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.step h3 { font-size: clamp(1.9rem, 2.2vw + .8rem, 2.8rem); line-height: 1.12; margin-bottom: 1.3rem; }
.step p { color: rgba(245, 241, 232, .86); }
.step__year { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--sun); margin: 0 0 .9rem; }

.step--intro .step__text { width: min(34rem, 100%); }
.step--intro .step__text h2 + p { margin-top: 1.1rem; font-size: 1.12rem; line-height: 1.55; }
.portrait { aspect-ratio: 7 / 8; overflow: hidden; margin-right: clamp(0rem, 4vw, 5rem); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Seeing the world: a row of places that drifts slowly to the right. Two copies of the set, so it never ends. */
.reel { margin-top: 2rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reel__track { display: flex; width: max-content; animation: reel var(--reel-t, 150s) linear infinite; will-change: transform; }
.reel:hover .reel__track { animation-play-state: paused; }
.reel figure { margin: 0 .6rem 0 0; flex: 0 0 auto; width: clamp(7.2rem, 10.5vw, 9.6rem); }
.reel img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: rgba(245, 241, 232, .06); }
.reel figcaption { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .62; margin-top: .55rem; white-space: nowrap; }
@keyframes reel { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reel__track { animation: none; }
  .reel__track [aria-hidden="true"] { display: none; }
}

/* The turn */
.turn { background: linear-gradient(var(--navy), var(--night)); }
.beat {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.7rem;
  padding: 10vh var(--gutter);
  text-align: center;
}
.beat--tall { min-height: 96vh; }
.beat--q { min-height: 42vh; padding-block: 5vh; }
.say { margin: 0; font-family: var(--serif); text-wrap: balance; }
.say--mid { font-size: clamp(1.5rem, 2.1vw + .6rem, 2.5rem); line-height: 1.25; letter-spacing: -0.005em; max-width: 23em; }
.say--big { font-size: clamp(1.9rem, 3.3vw + .6rem, 3.6rem); font-weight: 300; line-height: 1.14; letter-spacing: -0.015em; max-width: 17em; }
.say--huge { font-size: clamp(3.1rem, 8.6vw, 8.2rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.02em; }
.say--body { font-family: var(--book); font-size: 1.125rem; line-height: 1.6; max-width: 33rem; color: rgba(245, 241, 232, .84); text-wrap: pretty; }
.js .beat .say {
  opacity: var(--o, 1);
  transform: translate3d(0, calc((1 - var(--o, 1)) * 16px), 0);
}

/* Dawn */
.dawn {
  position: relative;
  background: linear-gradient(var(--night), #7A3A16 12vh, var(--sun) 22vh, #F7D9A8 32vh, var(--paper) 44vh);
  padding: 54vh var(--gutter) 10vh;
  color: var(--navy);
}
.dawn__anchor { position: absolute; top: 30vh; left: 0; }
.dawn__stack { --mw: min(31vh, 33vw); display: flex; flex-direction: column; align-items: center; text-align: center; }
.mark { width: var(--mw); height: auto; overflow: visible; margin-bottom: calc(var(--mw) * .2); }
.mark__tri { opacity: var(--mark, 1); }
.mark__dot { opacity: var(--dot, 1); }
/* The show's wordmark: Outfit Bold capitals at 0.39 of the mark's height, as in the Age of Abundance logo. */
.dawn__title { display: flex; flex-direction: column; align-items: center; font-family: "Outfit", var(--book); font-size: calc(var(--mw) * 1.02 * .39); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.04; opacity: var(--title, 1); }

.webgl .hero, .webgl .story, .webgl .turn { background: none; }
.webgl .dawn { background: none; padding: 0; height: 200vh; }
.webgl .dawn__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}
.webgl .dawn__anchor { top: calc((100% - 100vh) * .93); }

/* Day sections */
.day { background: var(--paper); color: var(--ink); padding: clamp(5rem, 15vh, 10rem) 0; }
.webgl .day, .webgl .foot { background: none; }
.wrap { width: min(70rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.day p { color: var(--body); }
.day h2 { color: var(--navy); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.7vw + .6rem, 3.3rem);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.2;
  max-width: 21em;
  margin: 0 0 clamp(3rem, 8vh, 5.5rem);
  text-wrap: pretty;
}
.day .lede { color: var(--navy); }

.aoa { padding-top: clamp(3rem, 8vh, 6rem); }
.aoa__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.aoa__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--navy);
  transition: color .2s;
}
.links__sub { font-family: var(--book); font-size: .95rem; line-height: 1.5; color: var(--muted); }
.links svg { align-self: center; transition: transform .25s; }
.links a:hover { color: var(--amber); }
.links a:hover svg { transform: translate(3px, -3px); }
.links--two { margin-top: 2.4rem; }
.links--two a { grid-template-columns: minmax(0, 1fr) auto; row-gap: .35rem; }
.links--two .links__sub { grid-column: 1; grid-row: 2; max-width: 32rem; }
.links--two svg { grid-column: 2; grid-row: 1; }

/* Work with me */
.work__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.work__head h2 { font-size: clamp(3rem, 6vw + .5rem, 6rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.02; }
.work__intro { font-family: var(--serif); font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); line-height: 1.35; margin: 0; }
.day .work__intro { color: var(--navy); }
.work__photo { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: clamp(3rem, 8vh, 5rem); }
.work__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

.offers { list-style: none; margin: 0 0 clamp(4rem, 10vh, 6.5rem); padding: 0; border-top: 1px solid var(--ink); }
.offer {
  display: grid;
  grid-template-columns: 4rem minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.offer__n { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--amber); padding-top: .8rem; }
.offer h3 { font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.1rem); line-height: 1.18; color: var(--navy); }
.talks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.talks strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.3; color: var(--navy); }
.talks span { display: block; color: var(--muted); font-size: 1rem; margin-top: .2rem; }

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  background: var(--navy);
  color: var(--paper);
  padding: clamp(1.75rem, 5vw, 4.5rem);
  border-radius: 4px;
  scroll-margin-top: 5.5rem;
}
.inquiry h2 { font-size: clamp(2rem, 2.6vw + .8rem, 3.3rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.08; margin-bottom: 1.2rem; }
.day .inquiry h2 { color: var(--paper); }
.day .inquiry p { color: rgba(245, 241, 232, .84); }
.inquiry__alt a { color: var(--paper); text-underline-offset: 3px; }
.inquiry__alt a:hover { color: var(--sun); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem 1.5rem; align-content: start; }
.field label { display: block; font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: rgba(245, 241, 232, .74); margin-bottom: .2rem; }
.field .opt { font-weight: 400; color: rgba(245, 241, 232, .55); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 241, 232, .4);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--book);
  font-size: 1.06rem;
  line-height: 1.5;
  padding: .5rem 0 .6rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select {
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23F5F1E8' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .1rem center;
  background-size: .75rem;
}
.field select option { color: var(--ink); background: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--sun);
  box-shadow: 0 1px 0 var(--sun);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #F2A65A; box-shadow: 0 1px 0 #F2A65A; }
.field--wide, .form__foot { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.form__foot .btn { min-width: 8.5rem; }
.form__foot .btn[disabled] { opacity: .6; cursor: default; }
.form__status { margin: 0; font-size: 1rem; min-height: 1.5em; }

/* Travel */
.day.travel { padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(2rem, 6vh, 4rem); }
.travel__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: start; border-top: 1px solid var(--rule); padding-top: 2rem; }
.travel h2 { font-family: var(--mono); font-size: .75rem; font-weight: 400; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.day .travel h2 { color: var(--muted); }
.travel__text { max-width: 34rem; font-size: .9375rem; line-height: 1.6; }
.day .travel__text p { color: var(--muted); margin-bottom: .8em; }
.travel__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1.1rem; }
.travel__links a { color: var(--navy); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.travel__links a:hover { color: var(--amber); }

/* Footer */
.foot { min-height: 82vh; display: flex; align-items: flex-end; background: var(--paper); color: var(--ink); padding: 4rem 0 2.4rem; }
.foot__inner { display: flex; flex-direction: column; gap: 1.5rem; }
.foot__name { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 8.5rem); font-weight: 300; line-height: 1; margin: 0; color: var(--navy); letter-spacing: -0.02em; }
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 0; padding: 0; }
.foot__links a { font-size: .875rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.foot__links a:hover { color: var(--amber); }
.foot__legal { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); }

/* Narrow and portrait screens */
@media (max-width: 1100px), (orientation: portrait) {
  .step { justify-content: center; }
  .step__text {
    margin-left: 0;
    width: min(33rem, 100%);
    padding: 1.7rem 1.5rem 1.8rem;
    background: rgba(6, 18, 31, .72);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    border-radius: 4px;
  }
  .step--intro .step__text { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; text-align: center; }
  .portrait { margin-right: 0; }
}

/* Upright screens: the portrait sits above the words, so both are on the first screen. */
@media (orientation: portrait), (max-width: 760px) {
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.3rem; padding-top: 5.4rem; }
  .hero__portrait { order: -1; width: min(34vw, 15rem); }
  .hero__inner { width: 100%; margin-left: 0; }
}

@media (max-width: 900px) {
  .aoa__grid, .work__head, .inquiry, .travel__row { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .5rem 1rem; }
  .offer__body { grid-column: 2; }
  .links a { font-size: 1.35rem; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav__opt { display: none; }
  .hero { padding-top: 5.4rem; }
  .hero__inner { width: 100%; margin-left: 0; }
  .hero__role { font-size: 1rem; margin-top: 1.2rem; }
  .hero__cta { margin-top: 1.6rem; }
  .hero__down { display: none; }
  .step { min-height: 96vh; padding-block: 12vh; }
  .beat { min-height: 76vh; }
  .beat--tall { min-height: 100vh; }
  .beat--q { min-height: 46vh; }
  .form { grid-template-columns: 1fr; }
  .work__photo { aspect-ratio: 4 / 3; }
  .foot { min-height: 94vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__down { animation: none; }
  .js .beat .say { transform: none; }
}
