:root {
  --canvas: #f1ede4;
  --surface: #eaeae6;
  --ink: #151517;
  --grey: #626266;
  --line: #d8d3c6;
  --fog: #101012;
  --fog-surface: #1b1b1e;
  --fog-line: #333338;
  --paper: #efede6;
  --signal: #f6bcd3;
  --rain: #5d6fb8;
  --amber: #e9c36b;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Geist", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.mono,
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  color: var(--grey);
}

.lede {
  max-width: 34rem;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--grey);
  line-height: 1.55;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease, text-shadow 0.35s ease;
}

.site-header.is-solid {
  background: rgba(241, 237, 228, 0.92);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  text-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
}

.nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-cta {
  border: 1px solid currentColor;
  padding: 0.55rem 0.8rem;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .site-header {
    padding: 1.25rem 2rem;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: drift 22s var(--ease) infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 16, 18, 0.35) 0%, rgba(16, 16, 18, 0.18) 35%, rgba(16, 16, 18, 0.78) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(93, 111, 184, 0.22), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 7rem 1.25rem 5rem;
  max-width: 42rem;
}

@media (min-width: 860px) {
  .hero-copy {
    padding: 8rem 2.5rem 6rem;
  }
}

.hero .eyebrow {
  color: rgba(239, 237, 230, 0.72);
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  margin: 0;
  font-size: clamp(4.2rem, 16vw, 8.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.08em;
  animation: rise 1s 0.08s var(--ease) both;
}

.hero-brand span {
  display: block;
}

.hero-line {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 18ch;
  animation: rise 1s 0.16s var(--ease) both;
}

.hero-support {
  margin: 0;
  max-width: 34ch;
  color: rgba(239, 237, 230, 0.78);
  font-size: 1.02rem;
  animation: rise 1s 0.24s var(--ease) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 1s 0.32s var(--ease) both;
}

.hero-scroll {
  position: absolute;
  right: 1.25rem;
  bottom: 1.5rem;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: rgba(239, 237, 230, 0.55);
  writing-mode: vertical-rl;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ink {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(239, 237, 230, 0.55);
  color: var(--paper);
}

.btn-signal {
  background: var(--signal);
  color: var(--ink);
}

/* Manifesto */

.manifesto {
  padding: clamp(4rem, 10vw, 7rem) 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.manifesto h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

/* Features */

.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .plaster-feature .phone-stage {
    order: 0;
  }
}

.fog-feature {
  background: var(--fog);
  color: var(--paper);
}

.fog-feature .eyebrow,
.fog-feature p {
  color: rgba(239, 237, 230, 0.72);
}

.fog-feature h2 {
  color: var(--paper);
}

.feature-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.feature-copy p {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--grey);
}

.feature-copy .note {
  font-size: 0.92rem;
  border-left: 2px solid var(--amber);
  padding-left: 0.9rem;
  color: var(--amber);
}

.fog-feature .note {
  color: var(--amber);
  border-color: var(--amber);
}

/* Phone mockups */

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(290px, 78vw);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(12px);
  transition: transform 0.7s var(--ease);
}

.reveal.is-in .phone {
  transform: translateY(0);
}

.phone.fog {
  background: #0a0a0c;
  border: 1px solid #2a2a2e;
}

.phone.plaster {
  background: #ddd8cc;
  border: 1px solid #c9c3b4;
}

.phone-notch {
  width: 34%;
  height: 8px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: #2a2a2e;
}

.phone-notch.dark {
  background: #1a1a1c;
}

.screen {
  border-radius: 20px;
  overflow: hidden;
  min-height: 520px;
  padding: 1.1rem 1rem 1.2rem;
}

.meter-screen {
  background: var(--fog);
  color: var(--paper);
}

.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
}

.meter-top .faint {
  color: #7b7b80;
}

.meter-scene {
  position: relative;
  margin: 0.85rem 0 1rem;
  height: 210px;
  overflow: hidden;
  border: 1px solid var(--fog-line);
}

.meter-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.meter-reticle {
  position: absolute;
  inset: 18% 18%;
  border: 1px solid rgba(239, 237, 230, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.meter-reticle::before,
.meter-reticle::after {
  content: "";
  position: absolute;
  background: rgba(239, 237, 230, 0.8);
}

.meter-reticle::before {
  left: 50%;
  top: 42%;
  width: 1px;
  height: 16%;
}

.meter-reticle::after {
  top: 50%;
  left: 42%;
  height: 1px;
  width: 16%;
}

.meter-readout .label,
.learn-screen .label,
.guide-screen .label {
  margin: 0 0 0.4rem;
  font-size: 0.58rem;
  color: #7b7b80;
}

.stops {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.feel {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: rgba(239, 237, 230, 0.7);
}

.meter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.meter-bar span {
  text-align: center;
  padding: 0.55rem 0;
  border: 1px solid var(--fog-line);
  color: #7b7b80;
}

.meter-bar .on {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.learn-screen,
.guide-screen {
  background: var(--canvas);
  color: var(--ink);
}

.learn-screen h3,
.guide-screen h3 {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lesson-body {
  margin: 0;
  font-size: 0.88rem;
  color: var(--grey);
}

.lesson-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.2rem;
}

.lesson-chips span {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  border: 1.5px solid var(--ink);
  padding: 0.4rem 0.5rem;
}

.lesson-card {
  border: 2px solid var(--ink);
  padding: 0.9rem;
  background: var(--surface);
}

.lesson-card .mono {
  margin: 0;
  font-size: 0.55rem;
  color: var(--grey);
}

.lesson-title {
  margin: 0.45rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.lesson-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--grey);
}

.guide-tag {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--grey);
}

.assign-tile {
  border: 2px solid var(--ink);
  padding: 0.95rem;
}

.assign-tile.signal {
  background: var(--signal);
  animation: signalGlow 3.2s ease-in-out infinite;
}

@keyframes signalGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(246, 188, 211, 0);
  }
  50% {
    box-shadow: 0 12px 28px rgba(246, 188, 211, 0.35);
  }
}

.assign-tile .mono {
  margin: 0;
  font-size: 0.55rem;
}

.assign-name {
  margin: 0.4rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.assign-obj {
  margin: 0 0 0.7rem;
  font-size: 0.84rem;
}

.assign-tile ul {
  margin: 0 0 0.9rem;
  padding-left: 1.05rem;
  font-size: 0.8rem;
  color: rgba(21, 21, 23, 0.78);
}

.go {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

/* Assignments */

.assignments {
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.assign-spread {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 860px) {
  .assign-spread {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: end;
  }

  .assign-spread.reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .assign-spread.reverse .assign-photo {
    order: 2;
  }
}

.assign-photo {
  margin: 0;
  overflow: hidden;
}

.assign-photo img {
  width: 100%;
  height: clamp(240px, 42vw, 460px);
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}

.reveal.is-in .assign-photo img {
  transform: scale(1);
}

.assign-brief .mono {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  color: var(--grey);
}

.assign-brief h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.assign-brief p {
  margin: 0 0 1rem;
  color: var(--grey);
  max-width: 28rem;
}

.assign-brief ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
}

.assign-brief li {
  margin-bottom: 0.35rem;
}

.brief-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .brief-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.brief {
  background: var(--canvas);
  padding: 1.35rem 1rem 1.5rem;
}

.brief .mono {
  margin: 0 0 0.65rem;
  font-size: 0.62rem;
  color: var(--grey);
}

.brief h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 18ch;
}

/* Cities */

.cities {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
}

.cities-media {
  position: absolute;
  inset: 0;
}

.cities-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cities::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 18, 0.2), rgba(16, 16, 18, 0.82));
}

.cities-copy {
  position: relative;
  z-index: 1;
  padding: 4rem 1.25rem 3.5rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .cities-copy {
    padding: 5rem 2.5rem 4rem;
  }
}

.cities .eyebrow {
  color: rgba(239, 237, 230, 0.7);
}

.cities h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14ch;
}

.cities-copy > p {
  max-width: 34rem;
  color: rgba(239, 237, 230, 0.78);
}

.city-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
  }
}

.city-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(239, 237, 230, 0.22);
}

.city-list span {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.city-list em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 237, 230, 0.62);
}

/* Closing */

.closing {
  display: grid;
  gap: 2rem;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 860px) {
  .closing {
    grid-template-columns: 0.75fr 1.1fr;
    gap: 3rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.closing-art {
  border: 2px solid var(--ink);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  background: var(--fog);
}

.closing-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.92;
}

.closing-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 12ch;
}

.closing-copy p {
  margin: 0 0 1.4rem;
  color: var(--grey);
  font-size: 1.1rem;
}

.fine {
  margin-top: 1rem !important;
  font-family: var(--sans);
  font-size: 0.68rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 700px) {
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.footer-brand p {
  margin: 0.55rem 0 0;
  color: var(--grey);
  max-width: 24rem;
  font-size: 0.95rem;
}

.footer-mark {
  margin: 0;
  font-size: 0.65rem;
  color: var(--grey);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-scroll,
  .assign-tile.signal,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
