/* Fatherhood — tokens
   The page runs from night to morning: it opens at 3 a.m. under a lamp,
   and ends in daylight, with the bike riding off on its own. */
:root {
  /* night */
  --night: #121833;
  --night-2: #1B2347;
  --night-line: #2E3764;
  --moon: #EEF0F7;
  --moon-dim: #A3AACB;

  /* the lamp that stays on */
  --lamp: #F4B350;
  --lamp-soft: #FCE7C0;
  --ember: #A55E12;

  /* day */
  --wall: #EFF0EB;
  --wall-light: #F8F8F4;
  --ink: #171C33;
  --graphite: #535972;
  --charcoal: #232A4A;
  --charcoal-deep: #171C33;
  --accent: #A55E12;
  --line: #CFD1D4;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  /* modular scale, ratio 1.333 */
  --s-1: 0.875rem;
  --s0: 1rem;
  --s1: 1.333rem;
  --s2: 1.777rem;
  --s3: 2.369rem;
  --s4: 3.157rem;
  --s5: 4.209rem;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 76rem;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

main { background: var(--wall); }

a { color: inherit; }

::selection { background: var(--lamp); color: var(--night); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--wall);
  padding: 0.5rem 1rem;
  z-index: 30;
}
.skip:focus { left: 0.5rem; }

/* Header: stays with you, like the studio */
.night-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 24, 51, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(163, 170, 203, 0.14);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
}

.wordmark {
  display: block;
  line-height: 0;
  color: var(--ink);
}

.wordmark .logo {
  height: 1.5rem;
  width: auto;
}

.site-header ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--s-1);
}

.site-header nav a {
  text-decoration: none;
  color: var(--graphite);
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--ink); }

.site-header .nav-cta {
  white-space: nowrap;
  color: var(--ink);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

@media (max-width: 760px) {
  .site-header li:not(:last-child) { display: none; }
}

.site-header nav { margin-left: auto; }

@media (max-width: 480px) {
  .site-header { gap: 0.6rem; }
  .site-header ul { font-size: 0.8rem; }
  .site-header .nav-cta { padding: 0.45rem 0.75rem; }
  .wordmark .logo { height: 1rem; }
  .lang-switch button { padding: 0.45rem 0.5rem; }
}

/* Language toggle: two options, the active one filled */
.lang-switch {
  display: flex;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  color: var(--graphite);
}

.lang-switch button {
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.04em;
  color: inherit;
  background: none;
  border: 0;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--wall-light);
}

.night-top .lang-switch { color: var(--moon-dim); }
.night-top .lang-switch button:hover { color: var(--moon); }
.night-top .lang-switch button[aria-pressed="true"] {
  background: var(--moon);
  color: var(--night);
}

/* Buttons & links */
.btn {
  display: inline-block;
  font: 600 var(--s0)/1 var(--sans);
  background: var(--charcoal);
  color: var(--wall-light);
  padding: 1.05rem 1.6rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--charcoal-deep); transform: translateY(-1px); }
.btn:active { transform: none; }

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Shared section rhythm */
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--gutter);
}

main > section > h2,
.work-head h2 {
  font-size: clamp(var(--s3), 5.2vw, var(--s5));
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.section-intro {
  color: var(--graphite);
  max-width: 52ch;
  font-size: 1.15rem;
}

/* HERO — 3 a.m. */
main > section.hero-3am {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 78% 42%, rgba(244, 179, 80, 0.16), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(62, 78, 160, 0.35), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #161D3E 100%);
  color: var(--moon);
}

/* film grain, so the night isn't a flat fill */
main > section.hero-3am::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  pointer-events: none;
}

.night-top .site-header .wordmark { color: var(--moon); }
.night-top .site-header nav a { color: var(--moon-dim); }
.night-top .site-header nav a:hover { color: var(--moon); }
.night-top .site-header .nav-cta {
  color: var(--night);
  background: var(--lamp);
  border-color: var(--lamp);
}
.night-top .site-header .nav-cta:hover { background: var(--lamp-soft); border-color: var(--lamp-soft); color: var(--night); }
.night-top :focus-visible,
.hero-3am :focus-visible,
.promises :focus-visible,
.site-footer :focus-visible { outline-color: var(--lamp); }

main > section.hero-3am {
  max-width: none;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(4.5rem, 10vw, 8rem);
}

.hero-inner {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero-3am h1 {
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
  margin-bottom: 2.25rem;
  color: var(--moon);
}

.hero-3am .lede { color: #C9CEE3; }

.btn-light { background: var(--lamp); color: var(--night); }
.btn-light:hover {
  background: var(--lamp-soft);
  box-shadow: 0 10px 40px -10px rgba(244, 179, 80, 0.6);
}

.hero-3am .text-link {
  color: var(--moon);
  text-decoration-color: rgba(244, 179, 80, 0.7);
}

.lockscreen-wrap {
  position: relative;
  margin: 0;
  width: clamp(16rem, 24vw, 19.5rem);
}

/* the lamp: warm light behind the phone */
.glow {
  position: absolute;
  inset: -35% -55%;
  background: radial-gradient(closest-side, rgba(244, 179, 80, 0.32), rgba(244, 179, 80, 0.08) 55%, transparent 75%);
  pointer-events: none;
}

.lockphone {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 2.6rem;
  background:
    radial-gradient(120% 60% at 50% 0%, #3B4786 0%, transparent 70%),
    radial-gradient(100% 50% at 50% 100%, #5A3C63 0%, transparent 70%),
    #1A2150;
  border: 9px solid #0B0E1F;
  padding: 3.2rem 0.9rem 1rem;
  color: var(--moon);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 80px -20px rgba(244, 179, 80, 0.35);
  transform: rotate(2.5deg);
}

/* dynamic island */
.lockphone::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 32%;
  height: 1.3rem;
  border-radius: 999px;
  background: #0B0E1F;
  transform: translateX(-50%);
}

.lock-time {
  position: relative;
  height: 4.4rem;
  font-family: var(--sans);
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.lock-time span { position: absolute; inset: 0; }
.lock-time .t1 { opacity: 0; }

.lock-date {
  font-size: 0.85rem;
  color: #C3C8E0;
  margin: 0.4rem 0 2rem;
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.note {
  background: rgba(238, 240, 247, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 1.1rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #DDE0EE;
}
.note p { margin: 0; }

.note-app {
  display: flex;
  justify-content: space-between;
  color: #AEB4D2;
  font-size: 0.72rem;
  margin-bottom: 0.2rem !important;
}

.note-title {
  font-weight: 600;
  color: #FFFFFF;
}

/* the reply is the warm one */
.note-2 {
  background: var(--lamp-soft);
  color: #4A3413;
  box-shadow: 0 10px 30px -8px rgba(244, 179, 80, 0.55);
}
.note-2 .note-app { color: #8A6428; }
.note-2 .note-title { color: #2B1D07; }

.lockscreen-wrap figcaption {
  position: relative;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--lamp-soft);
  margin-top: 2rem;
  max-width: 31ch;
}

/* The one moment: the alert lands, the clock ticks to 3:04, the reply arrives above it */
@media (prefers-reduced-motion: no-preference) {
  .js .note-1 { opacity: 0; transform: translateY(-8px); animation: land 0.5s ease-out 0.8s forwards; }
  .js .note-2 { opacity: 0; transform: translateY(-8px) scale(0.98); animation: land 0.6s cubic-bezier(.2,.8,.2,1) 3.2s forwards; }
  .js .lock-time .t0 { animation: out 0.3s ease 3s forwards; }
  .js .lock-time .t1 { animation: in 0.3s ease 3s forwards; }
  .js .notes { flex-direction: column-reverse; }
  .js .glow { opacity: 0.45; animation: lamp-on 1.2s ease 3.2s forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .lock-time .t0 { opacity: 0; }
  .lock-time .t1 { opacity: 1; }
  .notes { flex-direction: column-reverse; }
}

@keyframes land { to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; } }
@keyframes in { to { opacity: 1; } }
@keyframes lamp-on { to { opacity: 1; } }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lockscreen-wrap { width: min(18rem, 76vw); margin: 1rem auto 0; }
  .lockphone { transform: none; }
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
}

/* ESSAY — first light */
main > section.essay {
  max-width: none;
  background: var(--wall-light);
}

.essay-inner {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.essay h2 {
  font-size: clamp(var(--s3), 4.6vw, var(--s5));
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
  position: sticky;
  top: 7rem;
  align-self: start;
}

.essay-body {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.7;
  max-width: 36em;
}

.dropcap::first-letter {
  float: left;
  font-size: 4.6em;
  font-weight: 300;
  line-height: 0.8;
  padding: 0.06em 0.12em 0 0;
  color: var(--ember);
}

.essay blockquote {
  position: relative;
  margin: 2.5em 0;
  padding: 1.6em 1.75em;
  background: var(--lamp-soft);
  border-radius: 4px 1.5rem 1.5rem 1.5rem;
  color: #3A2A10;
}
.essay blockquote p {
  font-style: italic;
  font-weight: 300;
  font-size: 1.4em;
  line-height: 1.35;
  margin: 0;
}

.signoff {
  font-family: var(--hand);
  font-size: 2.1rem;
  line-height: 1.1;
  margin-top: 2.25rem;
  color: var(--ink);
}
.signoff span {
  display: block;
  font-family: var(--sans);
  font-size: var(--s-1);
  color: var(--graphite);
  margin-top: 0.35rem;
}

@media (max-width: 820px) {
  .essay-inner { grid-template-columns: 1fr; }
  .essay h2 { position: static; }
}

/* PROMISES — written into the contract, set on the night colour */
main > section.promises {
  position: relative;
  isolation: isolate;
  max-width: none;
  background: var(--night);
  color: var(--moon);
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
main > section.promises::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
}

.promises .section-intro { color: var(--moon-dim); }

.promise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 3.5rem 0 0;
}

.promise-list > div {
  position: relative;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color 0.25s;
}
.promise-list > div:hover { border-color: rgba(244, 179, 80, 0.55); }

/* a small lamp beside each promise */
.promise-list > div::before {
  content: "";
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 18px 3px rgba(244, 179, 80, 0.45);
  margin-bottom: 1.5rem;
}

.promise-list dt {
  font-family: var(--serif);
  font-size: var(--s2);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--moon);
}

.promise-list dd {
  margin: 0;
  color: var(--moon-dim);
  max-width: 42ch;
}

@media (max-width: 700px) {
  .promise-list { grid-template-columns: 1fr; }
}

/* SCALE — from one page to a platform, growing left to right */
.scale-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 3.5rem 0 0;
}

.scale-list > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--wall-light);
  border: 1px solid var(--line);
}
/* each size is a little taller than the one before */
.scale-list > div:nth-child(1) { min-height: 10rem; }
.scale-list > div:nth-child(2) { min-height: 12rem; }
.scale-list > div:nth-child(3) { min-height: 14.5rem; }

.scale-list dt {
  font-family: var(--serif);
  font-size: var(--s2);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.scale-list dd {
  margin: 0;
  color: var(--graphite);
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .scale-list { grid-template-columns: 1fr; }
  .scale-list > div:nth-child(n) { min-height: 0; }
}

/* WORK */
main > section.work {
  max-width: none;
  background: var(--wall-light);
}

.work > * {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.work-head { margin-bottom: clamp(3rem, 7vw, 5.5rem); }

.project {
  --tint: var(--charcoal);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4.5rem, 10vw, 8rem);
}
.project:has(.tone-arusku) { --tint: #1F5E8C; }
.project:has(.tone-umkm)   { --tint: #0F7A55; }

.project:last-child { margin-bottom: 0; }

.project-flip .project-visual { order: 2; }

.project h3 {
  font-size: clamp(var(--s3), 4vw, var(--s4));
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.project-kind {
  display: inline-block;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 10%, transparent);
  border-radius: 0.8rem;
  padding: 0.3rem 0.8rem;
  font-size: var(--s-1);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.project-text > p:not(.project-kind) { max-width: 46ch; }

@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; }
  .project-visual { aspect-ratio: 1 / 1; padding: 1.75rem; }
  .phone-screen { padding: 1.4rem 0.7rem 0.9rem; gap: 0.55rem; }
  .phone .ui-title { font-size: 0.85rem; }
  .phone .ui-figure { font-size: 0.72rem; }
  .phone .ui-button { font-size: 0.66rem; padding: 0.5rem 0.3rem; }
  .phone .ui-rows span:nth-child(n+2) { display: none; }
  .project-flip .project-visual { order: 0; }
}

/* Project visuals: drawn in CSS, tinted per product */
.project-visual {
  --bg: #D6D6D2;
  --soft: #E4E6EA;
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 1.75rem;
  overflow: hidden;
}

/* money as a current: soft flowing bands */
.tone-arusku {
  --bg: #D3E3F0;
  --soft: #E4EEF6;
  background:
    repeating-radial-gradient(ellipse 140% 60% at 0% 120%, transparent 0 28px, rgba(31, 94, 140, 0.09) 28px 30px),
    radial-gradient(34rem 22rem at 100% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--bg);
}

/* spending per day, this week */
.ui-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.35rem;
  height: 5.5rem;
  padding-top: 0.25rem;
}
.ui-bars span {
  height: 40%;
  border-radius: 3px 3px 1px 1px;
  background: color-mix(in srgb, var(--tint) 28%, white);
}
.ui-bars span:nth-child(2) { height: 65%; }
.ui-bars span:nth-child(3) { height: 30%; }
.ui-bars span:nth-child(4) { height: 85%; background: var(--tint); }
.ui-bars span:nth-child(5) { height: 50%; }
.ui-bars span:nth-child(6) { height: 70%; }
.ui-bars span:nth-child(7) { height: 22%; }

.browser .ui-figure { align-self: start; }

/* market stall awning over a soft green */
.tone-umkm {
  --bg: #CDE8DA;
  --soft: #E2F2E9;
  background:
    repeating-linear-gradient(90deg, rgba(15, 122, 85, 0.16) 0 36px, transparent 36px 72px) top / 100% 2.2rem no-repeat,
    radial-gradient(circle, rgba(15, 122, 85, 0.14) 1.5px, transparent 2px) 0 0 / 22px 22px,
    radial-gradient(36rem 22rem at 50% 115%, rgba(15, 122, 85, 0.3), transparent 60%),
    var(--bg);
}

.phone {
  position: relative;
  flex: none;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 19;
  background: #10132A;
  border-radius: 1.9rem;
  padding: 0.45rem;
  box-shadow:
    0 40px 60px -30px rgba(16, 19, 42, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: rotate(-3deg);
}

.phone-screen {
  height: 100%;
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 1.6rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.72rem;
  overflow: hidden;
}
.phone-screen > * { min-width: 0; flex: none; }

.ui-bar {
  width: 32%;
  height: 5px;
  border-radius: 3px;
  background: #10132A;
  margin: -0.9rem auto 0.4rem;
}

.ui-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.ui-figure {
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FFFFFF;
  background: var(--tint);
  border-radius: 0.7rem;
  padding: 0.6rem 0.7rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 18px -8px var(--tint);
}

.ui-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* ledger rows: a member, a line of detail, an amount */
.ui-rows span {
  position: relative;
  flex: none;
  height: 1.6rem;
  border-radius: 0.5rem;
  background: var(--soft);
}
.ui-rows span::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 45%, white);
  transform: translateY(-50%);
}
.ui-rows span::after {
  content: "";
  position: absolute;
  left: 1.9rem;
  right: 0.5rem;
  top: 50%;
  height: 0.3rem;
  border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 30%, white) 0 45%, transparent 45% 72%, var(--tint) 72%);
  transform: translateY(-50%);
}
.ui-rows span:nth-child(n+3) { display: none; }
.ui-rows.short span { height: 0.5rem; background: var(--soft); }
.ui-rows.short span::before,
.ui-rows.short span::after { content: none; }
.ui-rows.short span:last-child { width: 70%; }

.ui-button {
  margin-top: auto;
  background: var(--tint);
  color: #FFFFFF;
  text-align: center;
  border-radius: 999px;
  padding: 0.65rem 0.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.ui-photo {
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  border: 5px solid #FBF6EE;
  box-shadow: 0 6px 14px -6px rgba(90, 50, 20, 0.5);
  transform: rotate(-2deg);
  background:
    radial-gradient(circle at 38% 42%, rgba(70, 40, 20, 0.6) 0 14%, transparent 15%),
    radial-gradient(circle at 64% 46%, rgba(70, 40, 20, 0.5) 0 12%, transparent 13%),
    radial-gradient(ellipse at 50% 100%, rgba(70, 40, 20, 0.45) 0 38%, transparent 39%),
    linear-gradient(180deg, #D9B98F, #A77A4E);
  filter: sepia(0.3);
}

.browser {
  width: 100%;
  max-width: 30rem;
  background: #FFFFFF;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 40px 60px -30px rgba(16, 19, 42, 0.55);
  font-size: 0.75rem;
  transform: rotate(1.5deg);
}

.browser-top {
  display: flex;
  gap: 5px;
  padding: 0.65rem 0.8rem;
  background: #F1F3F6;
  border-bottom: 1px solid #E3E6EB;
}
.browser-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF6B5B;
}
.browser-top i:nth-child(2) { background: #F4B350; }
.browser-top i:nth-child(3) { background: #3FBF6F; }

.browser-body {
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 1rem;
  padding: 1rem;
  min-height: 13rem;
}

.ui-side {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ui-side span {
  height: 0.6rem;
  border-radius: 3px;
  background: var(--soft);
}
.ui-side span:first-child { background: var(--tint); width: 70%; }

.ui-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ui-cal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.ui-cal span {
  height: 2.8rem;
  border-radius: 0.45rem;
  background: var(--soft);
  border-left: 3px solid color-mix(in srgb, var(--tint) 40%, white);
}
.ui-cal .c1 { background: var(--tint); border-left-color: #0F3257; }
.ui-cal .c3 { background: transparent; border: 1px dashed color-mix(in srgb, var(--tint) 35%, white); }

.browser-body.shop { grid-template-columns: 42% 1fr; }

.ui-weave {
  border-radius: 4px;
  min-height: 11rem;
  background:
    repeating-linear-gradient(45deg, rgba(230, 230, 227, 0.75) 0 3px, transparent 3px 9px),
    repeating-linear-gradient(-45deg, rgba(230, 230, 227, 0.45) 0 3px, transparent 3px 9px),
    var(--tint);
}

/* HOW */
.stages {
  list-style: none;
  counter-reset: stage;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.stages li {
  counter-increment: stage;
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--wall-light);
  border: 1px solid var(--line);
}

/* the first launch is the moment we want remembered */
.stages li:nth-child(3) {
  background: var(--night);
  border-color: var(--night);
  color: var(--moon);
  box-shadow: 0 30px 60px -30px rgba(18, 24, 51, 0.6);
}
.stages li:nth-child(3)::before { color: var(--lamp); }
.stages li:nth-child(3) .stage-time { color: var(--lamp); }
.stages li:nth-child(3) > p:last-child { color: var(--moon-dim); }

.stages li::before {
  content: counter(stage);
  display: block;
  font-family: var(--serif);
  font-size: var(--s4);
  font-weight: 300;
  line-height: 1;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

.stages h3 {
  font-size: var(--s2);
  margin-bottom: 0.3rem;
}

.stage-time {
  font-size: var(--s-1);
  font-weight: 600;
  color: var(--ember);
  margin-bottom: 1rem;
}

.stages li > p:last-child {
  color: var(--graphite);
  font-size: 0.98rem;
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; }
}

/* FIT */
main > section.fit { padding-top: 0; }

.fit-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: 2rem;
}

.fit ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: var(--s1);
  line-height: 1.4;
}

.fit li {
  position: relative;
  padding: 1rem 0 1rem 2.25rem;
  border-bottom: 1px solid var(--line);
}

.fit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
}
.fit-yes li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23121833' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--lamp);
}
.fit-not li::before {
  border: 1.5px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) center / 50% 1.5px no-repeat;
}

.fit h3 {
  font-family: var(--sans);
  font-size: var(--s0);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.fit-not ul { color: var(--graphite); }

@media (max-width: 700px) {
  .fit-cols { grid-template-columns: 1fr; }
}

/* LET GO — morning */
main > section.letgo {
  max-width: none;
  overflow: hidden;
  background:
    radial-gradient(50rem 22rem at 85% 100%, rgba(244, 179, 80, 0.4), transparent 70%),
    linear-gradient(180deg, var(--wall-light) 0%, #F9EBD2 100%);
  padding-bottom: 0;
}

.letgo-inner {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
}

.letgo h2 {
  font-size: clamp(var(--s3), 6vw, 5.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.bike-scene {
  margin: clamp(2rem, 5vw, 4rem) 0 0;
}

.bike-scene svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bike-scene figcaption {
  font-size: var(--s-1);
  color: var(--graphite);
  max-width: 52ch;
  margin-top: 1rem;
}

.figure-ink { fill: var(--ink); stroke: var(--ink); }
.figure-far { stroke: #8C91A8 !important; }

.limb {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bike-frame {
  fill: none;
  stroke: var(--ember);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wheel .bike-frame { stroke: var(--ink); stroke-width: 6; }

.bike-spokes { stroke: #9A8B78; stroke-width: 1.5; }

.ground { stroke: #C9B38F; stroke-width: 2; }

/* scroll-driven parts; JS sets --p from 0 to 1 */
.bike-scene { --p: 0; }

.rider {
  transform: translateX(calc(var(--p) * 320px));
}

.wheel-spin {
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(calc(var(--p) * 540deg));
}

.parent {
  transform: translateX(calc(var(--p) * 40px));
}

.parent-arm {
  transform-box: view-box;
  transform-origin: 524px 142px;
  transform: rotate(calc(var(--p) * 20deg));
}

@media (max-width: 820px) {
  .bike-scene svg { margin-left: -32%; width: 170%; }
}

/* CONTACT */
main > section.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact h2 {
  font-size: clamp(var(--s3), 5vw, var(--s5));
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.contact-text p { max-width: 42ch; }

.contact-direct { color: var(--graphite); }
.contact-direct a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 40px 80px -50px rgba(18, 24, 51, 0.4);
}

.field {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
}

.field label,
.field legend {
  display: block;
  font-size: var(--s-1);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--wall-light);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:hover,
.field textarea:hover { border-color: #A9ADB8; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-color: transparent;
  background: #FFFFFF;
}

.field [aria-invalid="true"] { border-color: #B23A2B; }

.field textarea { resize: vertical; }

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.95rem;
  margin: 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.choices label:has(input:checked) {
  border-color: var(--ink);
  background: var(--lamp-soft);
}
.choices label:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.choices input { accent-color: var(--ink); margin: 0; }

.form-status {
  min-height: 1.6em;
  margin: 0;
  font-size: 0.95rem;
}
.form-status.is-error { color: #B23A2B; }
.form-status.is-sent { color: #2F6B45; }

@media (max-width: 820px) {
  main > section.contact { grid-template-columns: 1fr; }
}

/* FOOTER — night again */
.site-footer {
  position: relative;
  isolation: isolate;
  padding: 3.5rem max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  font-size: var(--s-1);
  color: var(--moon-dim);
  background: var(--night);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--lamp); text-underline-offset: 0.25em; }
.footer-mark {
  font-family: var(--serif);
  font-size: var(--s2);
  color: var(--moon);
  margin-right: auto !important;
}
