/* Lantern Lab — bold Swiss grotesk on lantern paper, an ink frame, ember line art, a night-sky panel
   and an amber footer. Archivo (display and text) and Fragment Mono (labels), both SIL OFL, self-hosted. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fragment-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  /* lantern paper and ink */
  --paper: #f6f1e9;
  --ink: #0b0a14;
  --ink-soft: rgba(11, 10, 20, 0.66);
  --ink-line: rgba(11, 10, 20, 0.14);
  /* ember: our red */
  --ember: #e4531f;
  --ember-text: #b8401a;
  /* the night panel */
  --night: #0e0c1e;
  --cream: #f4eee6;
  --cream-soft: rgba(244, 238, 230, 0.66);
  --cream-line: rgba(244, 238, 230, 0.14);
  /* lantern light */
  --amber: #ffb547;
  --amber-soft: #ffd58f;
  --on-amber: #1b1206;
  /* card colours */
  --plum: #b9a2e6;
  --plum-deep: #8d6cc4;
  --rose: #f6a48c;
  --sky: #a9d4f2;

  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --page: 1280px;
  --frame: 10px;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--amber);
  color: var(--on-amber);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem);
  line-height: 1;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

.mono,
.label {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.4;
}

.label {
  color: var(--ember-text);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.label--amber {
  color: var(--amber);
}

.wrap {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: var(--on-amber);
  border-radius: 10px;
}
.skip:focus {
  left: 16px;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font: 400 0.78rem/1 var(--mono);
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ember);
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}
.pill:hover {
  background: var(--ember);
  color: #fff;
}
.pill--solid {
  background: var(--cream);
  color: var(--ink);
  box-shadow: none;
}
.pill--solid:hover {
  background: var(--amber);
  color: var(--on-amber);
}
.pill--light {
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.pill--light:hover {
  background: var(--amber);
  color: var(--on-amber);
}

/* ---------- Nav (ink bar) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--cream);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.045em;
  color: var(--amber);
}
.brand img {
  filter: drop-shadow(0 0 8px rgba(255, 181, 71, 0.5));
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a:not(.pill) {
  font: 400 0.85rem/1 var(--mono);
  text-decoration: none;
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease);
}
.nav__links a:not(.pill):hover {
  background-size: 100% 1px;
}
@media (max-width: 760px) {
  .nav__links li:not(:last-child) {
    display: none;
  }
}

/* ---------- Hero: a paper panel inside the ink frame ---------- */
.hero {
  background: var(--ink);
  padding: 0 var(--frame) var(--frame);
}
.hero__panel {
  position: relative;
  min-height: min(84svh, 820px);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-content: center;
}

/* Ember line art: thin lines with rounded turns that draw themselves in. */
.hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero__lines .line,
.side-line path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2;
  stroke-dasharray: 1;
}
.js .hero__lines .line {
  animation: draw 2.4s var(--ease) both;
}
.hero__lines .cord {
  fill: none;
}
.js .hero__lines .line:nth-child(2) {
  animation-delay: 0.25s;
}
.js .hero__lines .line:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.hero__lines .cord {
  stroke: var(--ember);
  stroke-width: 2;
}
.hero__lines .paper {
  fill: rgba(255, 181, 71, 0.18);
  stroke: var(--ember);
  stroke-width: 2;
}
.hero__lines .cap {
  fill: var(--ember);
}
.hero__lines .hang {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: swing 6s ease-in-out infinite;
  animation-delay: calc(var(--d) * -1.7s);
}
.js .hero__lines .paper {
  animation: glow 1.4s both;
  animation-delay: calc(1.6s + var(--d) * 0.25s);
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}
@keyframes glow {
  from {
    fill: rgba(255, 181, 71, 0);
  }
  60% {
    fill: rgba(255, 181, 71, 0.75);
  }
}

.hero__content {
  padding: clamp(5rem, 3rem + 6vw, 9rem) clamp(1.25rem, 0.5rem + 4vw, 4rem) clamp(9rem, 7rem + 6vw, 12rem);
}

/* Headline on ink blocks, one per line, each wiping in. */
.blocks {
  display: grid;
  justify-items: start;
  font-size: clamp(3.2rem, 1rem + 8.6vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-stretch: 94%;
}
.blocks__line {
  display: block;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 0.04em 0.16em 0.12em 0.14em;
  margin-top: -1px;
}
.blocks__line > span {
  display: block;
}
.blocks em {
  font-style: normal;
  color: var(--amber);
}
.js .blocks__line {
  animation: wipe 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 0.12s + 0.1s);
}
.js .blocks__line > span {
  animation: lift 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 0.12s + 0.25s);
}
@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes lift {
  from {
    transform: translateY(105%);
  }
}

.hero__lead {
  position: absolute;
  right: clamp(1.25rem, 0.5rem + 4vw, 4rem);
  bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* The ink tab cut into the panel's bottom-left corner, listing the lanterns. */
.hero__tab {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1.6rem 3rem 1.4rem clamp(1.25rem, 0.5rem + 4vw, 4rem);
  background: var(--ink);
  color: var(--cream);
  border-top-right-radius: 56px;
}
.hero__tab::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 100% 0, transparent 39px, var(--ink) 40px);
  pointer-events: none;
}
.hero__tab ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__tab a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.05em;
}
.hero__tab a img {
  border-radius: 10px;
  transition: transform 0.4s var(--ease);
}
.hero__tab a:hover img {
  transform: rotate(-8deg) scale(1.08);
}
.soon-mark span {
  display: block;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 238, 230, 0.55);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}
.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.side-line {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(60px, 9vw, 160px);
  height: 100%;
  pointer-events: none;
}
.js .side-line path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease);
}
.js .side-line.is-in path {
  stroke-dashoffset: 0;
}

/* Reveal on scroll (only with JS; without it everything is visible). */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Cards (two staggered columns of colour blocks) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 6rem;
  max-width: 1060px;
}
.cards > li:nth-child(even) {
  margin-top: 6rem;
  margin-bottom: -6rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 36rem;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    opacity 0.9s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11, 10, 20, 0.45);
}
.card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card__text {
  position: relative;
  z-index: 3;
  padding: 1.75rem 1.75rem 0;
  max-width: 28rem;
}
.card h3 {
  font-size: clamp(2.8rem, 2rem + 2.6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-stretch: 94%;
  margin-bottom: 0.6rem;
}
.card__text > p {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 22rem;
}
.card__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: end center;
  min-height: 14rem;
}
.card__art > svg {
  width: 62%;
  max-width: 280px;
  margin-bottom: -7%;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__art > svg {
  transform: translateY(-10px) rotate(-3deg);
}

.card--plum {
  background: var(--plum);
}
.card--amber {
  background: var(--amber);
}
.card--rose {
  background: var(--rose);
}
.card--sky {
  background: var(--sky);
}

/* Habiku's three phones fan out on hover. */
.card__art--phones {
  padding-top: 1.5rem;
}
.ph {
  position: absolute;
  bottom: -90px;
  width: 30%;
  max-width: 180px;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 0 0 6px #19142c,
    0 30px 50px -10px rgba(11, 10, 20, 0.45);
  transition: transform 0.8s var(--ease);
}
.ph--c {
  z-index: 2;
  transform: translateY(calc(var(--py, 0) * -1px));
}
.ph--l {
  transform: translateX(-62%) rotate(-8deg) translateY(10%);
}
.ph--r {
  transform: translateX(62%) rotate(8deg) translateY(10%);
}
.card:hover .ph--c {
  transform: translateY(-14px);
}
.card:hover .ph--l {
  transform: translateX(-78%) rotate(-12deg) translateY(6%);
}
.card:hover .ph--r {
  transform: translateX(78%) rotate(12deg) translateY(6%);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--ink-line);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ticks li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- Inside the lab: the night panel ---------- */
.inside {
  --lit: 0;
  padding: 7rem var(--frame) 0;
}
.inside__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--cream);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
  background:
    radial-gradient(45% 55% at 80% 30%, rgba(255, 181, 71, calc(var(--lit) * 0.16)), transparent 70%),
    radial-gradient(100% 60% at 50% 120%, rgba(255, 122, 61, 0.25), transparent 60%),
    linear-gradient(180deg, #06050d, var(--night) 55%, #1d1533);
}
.inside__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
}
.inside__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.inside__title {
  font-size: clamp(2.8rem, 1.2rem + 6vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-stretch: 94%;
  margin-bottom: 1.5rem;
}
.inside__lead {
  max-width: 32rem;
  color: var(--cream-soft);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}
.inside__lantern {
  display: grid;
  place-items: center;
}
.big-lantern {
  width: min(100%, 230px);
  color: var(--cream);
  overflow: visible;
  transform-origin: 50% 0;
  animation: sway 7s ease-in-out infinite;
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-1.6deg);
  }
  50% {
    transform: rotate(1.6deg);
  }
}
.big-lantern__glass {
  fill: rgba(255, 181, 71, calc(0.04 + var(--lit) * 0.16));
}
.big-lantern__aura {
  opacity: var(--lit);
  transform-origin: 100px 165px;
  transform: scale(calc(0.6 + var(--lit) * 0.6));
}
.big-lantern__flame {
  opacity: calc(0.12 + var(--lit) * 0.88);
  transform-origin: 100px 190px;
  transform: scale(calc(0.4 + var(--lit) * 0.6));
  filter: drop-shadow(0 0 calc(var(--lit) * 18px) rgba(255, 181, 71, 0.9));
}

.vows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(244, 238, 230, 0.25);
}
.vows li {
  padding: 1.6rem 1.6rem 1.9rem 0;
  border-bottom: 1px solid var(--cream-line);
}
.vows li:not(:nth-child(3n + 1)) {
  padding-left: 1.6rem;
  border-left: 1px solid var(--cream-line);
}
.vows .mono {
  display: block;
  color: var(--amber);
  margin-bottom: 2rem;
}
.vows h3 {
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  margin-bottom: 0.45rem;
}
.vows p {
  margin: 0;
  color: var(--cream-soft);
}

.zeros {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
}
.zeros > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.4rem;
}
.zeros dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cream-soft);
  text-transform: uppercase;
}
.zeros dd {
  margin: 0;
  font-size: clamp(3.2rem, 2rem + 4vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-stretch: 90%;
}
.zeros .is-lit dd {
  color: var(--amber);
  text-shadow: 0 0 40px rgba(255, 181, 71, 0.55);
}

/* ---------- Steps ---------- */
.steps {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 0;
  top: 9px;
  height: 2px;
  background: var(--ink-line);
}
.steps::after {
  background: var(--ember);
  transform-origin: left;
  transform: scaleX(var(--progress));
}
.steps li {
  position: relative;
  padding-top: 3rem;
}
.steps__dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink-line);
  transition:
    background 0.6s,
    box-shadow 0.6s;
}
.steps li.is-in .steps__dot {
  background: var(--ember);
  box-shadow: 0 0 0 5px rgba(228, 83, 31, 0.18);
}
.steps .mono {
  color: var(--ember-text);
  margin-bottom: 0.8rem;
}
.steps h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.steps p:last-child {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Footer: the amber block ---------- */
.footer {
  padding: 0 var(--frame) var(--frame);
}
.footer__panel {
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--on-amber);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(1.25rem, 0.5rem + 4vw, 4rem) calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem 3rem;
  margin-bottom: 2.5rem;
}
.footer__bigmark {
  width: clamp(72px, 6vw + 40px, 110px);
  height: auto;
  margin-bottom: 1.5rem;
}
.footer__title {
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
}
.footer__lead p:last-child {
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 26rem;
}
.footer__cols {
  display: flex;
  gap: 4rem;
}
.footer__cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.footer__cols a {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.footer__cols a:hover {
  background-size: 100% 1.5px;
}
.footer__mail {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.footer__field {
  flex: 0 1 26rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--on-amber);
  overflow-wrap: anywhere;
  user-select: all;
}
.footer__btn {
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: var(--on-amber);
  color: var(--amber);
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.footer__btn:hover {
  transform: translateY(-2px);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(27, 18, 6, 0.25);
  font-size: 0.72rem;
}

/* ---------- 404 ---------- */
.lost {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 120px;
}
.lost .wrap {
  display: grid;
  justify-items: center;
}
.lost img {
  margin-bottom: 1.5rem;
}
.lost h1 {
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  margin-bottom: 1rem;
}
.lost p {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }
  .cards > li:nth-child(even) {
    margin: 0;
  }
  .card {
    min-height: 0;
  }
  .card--plum .card__art {
    min-height: 20rem;
  }
  .ph {
    width: 34%;
    bottom: -70px;
  }
  .side-line {
    display: none;
  }
  .inside__top {
    grid-template-columns: 1fr;
  }
  .inside__lantern {
    order: -1;
    justify-items: start;
  }
  .big-lantern {
    width: 120px;
  }
  .vows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vows li:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .vows li:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--cream-line);
  }
  .zeros {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2rem;
  }
  .hero__lead {
    position: static;
    padding: 0 clamp(1.25rem, 0.5rem + 4vw, 4rem) 8rem;
  }
  .hero__content {
    padding-bottom: 2rem;
  }
}
@media (max-width: 640px) {
  :root {
    --frame: 6px;
    --radius: 22px;
  }
  .hero__lines {
    opacity: 0.5;
  }
  .hero__lines .hang {
    display: none;
  }
  .hero__tab {
    padding-right: 1.75rem;
  }
  .hero__tab ul {
    gap: 1.25rem;
  }
  .hero__tab a,
  .soon-mark span {
    font-size: 1.4rem;
  }
  .soon-mark:last-child {
    display: none;
  }
  .vows {
    grid-template-columns: 1fr;
  }
  .vows li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .steps::before,
  .steps::after {
    left: 9px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .steps::after {
    transform-origin: top;
    transform: scaleY(var(--progress));
  }
  .steps li {
    padding: 0 0 0 2.5rem;
  }
  .zeros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zeros > div:last-child {
    grid-column: 1 / -1;
  }
  .footer__cols {
    gap: 2.5rem;
  }
  .footer__mail {
    justify-content: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .side-line path {
    stroke-dashoffset: 0;
  }
}
