:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #767676;         /* 4.5:1 on white */
  --body: #555555;
  --green: #8cc651;
  --accent: #ffc7ea;        /* soft muted pink (ink text on it: 9.1:1) */
  --on-accent: #111111;
  --accent-hover: #ffb0e0;  /* hover / active (ink text on it: 7.4:1) */
  --dark: #151515;
  --card: #ededeb;
  --card-text: #5f5f5f;
  --panel: #151515;         /* image panels stay dark in both themes */
  --title: #262626;
  --desc: #6e6e6e;
  --comment: #333333;
  --line: #e6e6e6;
  --line-soft: #ececec;
  --active-row: #fff0fa;
  --accent-text: #c32287;   /* deeper rose for small text on white: 5.7:1 */
  --dark-hover: #2c2c2c;
  --dark-glass: rgba(21,21,21,0.8);
  --ring: transparent;
  --disabled: #7c7c7c;
  --map-road: #b5b5b5; --map-faint: #c9c9c9; --map-park: #6f6f6f; --map-label: #767676;
  --thumb: #d8d8d8;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter Tight", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans);

  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-wipe: cubic-bezier(0.7, 0, 0.2, 1);
}

/* ---------- Dark theme (set on <html data-theme="dark"> by the inline head script) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --ink: #f2f2ee;
  --muted: #9a9a9a;
  --body: #bdbdbd;
  --dark: #262626;          /* pills / note on a near-black page need to lift off it */
  --card: #1f1f1f;
  --card-text: #ababab;
  --title: #ededeb;
  --desc: #a8a8a8;
  --comment: #d4d4d0;
  --line: #2e2e2e;
  --line-soft: #262626;
  --active-row: rgba(255,199,234,0.16);
  --accent-text: var(--accent);         /* #ffc7ea on #141414 */
  --dark-hover: #3a3a3a;
  --dark-glass: rgba(38,38,38,0.85);
  --ring: #3a3a3a;
  --disabled: #949494;
  --map-road: #4a4a4a; --map-faint: #3a3a3a; --map-park: #8a8a8a; --map-label: #9a9a9a;
  --thumb: #3a3a3a;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.skip-link {
  position: fixed; top: 12px; left: 50%; z-index: 100;
  transform: translate(-50%, -200%);
  background: var(--dark); color: #fff; padding: 10px 16px;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Top bar ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--gutter);
  background: var(--bg);
  font-family: var(--mono); font-size: 14px; font-weight: 400;
  letter-spacing: 0.84px; line-height: 1;
}
.topbar-name { font-family: var(--sans); font-weight: 500; justify-self: start; color: var(--muted); text-transform: uppercase; text-decoration: none; }
.topbar-role {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--dark); color: #fff; letter-spacing: 0;
}
.role-win {
  position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3;
  white-space: nowrap;
}
.role-win.is-anim { transition: width 450ms var(--ease); }
.role-win.is-anim.is-snap { transition: none; }
.role-item { display: block; }
.role-win.is-anim .role-item {
  position: absolute; left: 0; top: 0;
  transition: transform 450ms var(--ease), opacity 450ms ease;
  transform: translateY(110%); opacity: 0;
}
.role-win.is-anim .role-item.is-current { transform: none; opacity: 1; }
.role-win.is-anim .role-item.is-out { transform: translateY(-110%); opacity: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.topbar-clock { grid-column: 3; justify-self: end; color: var(--green); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 12vw, 120px);
  letter-spacing: -0.05em;          /* -6px at 120px */
  line-height: 1.05;
}
.hero-title > span { display: block; }
.hero-title { font-size: clamp(40px, 7.4vw, 96px); text-wrap: balance; }
.hero-title em { font-style: italic; color: var(--green); }
.hero-role {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px;
  font-size: 20px; font-weight: 400; color: var(--ink);
}
.pin { color: var(--accent); flex: none; }

/* ---------- Sticker notes ---------- */

.note {
  position: relative; display: inline-block;
  padding: 6px 14px 8px;
  font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1;
  transform: rotate(-3deg);
}
.note em { font-style: italic; }
.note-arrow { position: absolute; top: 100%; margin-top: 4px; }
.note--white { background: #fff; color: #111; }   /* paper sticker on the pink panel, both themes */
.note--white .note-arrow { left: 58%; color: #fff; }
.note--dark { background: var(--dark); color: #fff; transform: rotate(3deg); }
.note--dark em { color: var(--green); }
.note--dark .note-arrow { left: 10%; color: var(--dark); }

/* ---------- About panel ---------- */

.about {
  background: var(--accent); color: var(--on-accent);
  padding: 120px var(--gutter);
  scroll-margin-top: 60px;
}
.about-inner { max-width: 1200px; margin: 0 auto; }
.about .note { margin-bottom: 100px; }
.about-copy {
  max-width: 900px; margin: 0 auto;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3;
  text-align: center;
}

/* ---------- Projects ---------- */

.projects { padding: 140px var(--gutter) 160px; scroll-margin-top: 40px; }
.projects-head { margin: 0 auto 96px; display: flex; flex-direction: column; }
.projects-head .note { align-self: flex-end; margin-bottom: 92px; margin-right: 6%; }
.projects-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(100px, 17.4vw, 250px);
  letter-spacing: -0.05em; line-height: 1;
  color: var(--title);
}
.projects-title em { font-style: italic; }
.projects-title .count {
  margin-left: 0.12em; vertical-align: 2.6em;
  font-family: var(--mono); font-size: 20px; font-weight: 400; font-style: normal;
  letter-spacing: 0; color: var(--accent);
}

.project-list { margin: 0 auto; display: grid; gap: 120px; }
/* text column takes the rest (~36%), dark panel is 64% of the viewport width */
.project {
  display: grid; grid-template-columns: minmax(0, 1fr) 64vw;
  gap: clamp(32px, 4vw, 64px); align-items: start;
}
.project--flip { grid-template-columns: 64vw minmax(0, 1fr); }
.project--flip .project-info { order: 2; }
.project--flip .project-panel { order: 1; }

.project-info { padding-top: 8px; }
.project-name { cursor: default; transition: color 250ms ease; font-size: 24px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.project-desc { margin-top: 14px; max-width: 440px; font-size: 14px; line-height: 1.65; color: var(--desc); }

.facts { margin-top: 28px; max-width: 440px; border-top: 1px solid var(--line); }
.fact { border-bottom: 1px solid var(--line); }
.fact-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.84px; color: var(--ink);
}
.chev { transition: transform 300ms var(--ease); }
.fact-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.fact-toggle { transition: color 200ms ease; }
.fact-toggle[aria-expanded="true"] { color: var(--accent-text); }
@media (hover: hover) { .fact-toggle:hover { color: var(--accent-text); } }
/* smooth expand/collapse via grid rows */
.fact-body {
  display: grid; grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 350ms var(--ease), visibility 0s linear 350ms;
}
.fact-body.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 350ms var(--ease), visibility 0s; }
.fact-inner { overflow: hidden; }
.fact-inner p { padding-bottom: 14px; font-size: 14px; color: var(--desc); }

.btn-case span[aria-hidden] { display: inline-block; transition: transform 250ms var(--ease); }
@media (hover: hover) { .btn-case:hover { background: var(--accent-hover); } .btn-case:hover span[aria-hidden] { transform: translate(3px, -3px); } }
.btn-case:focus-visible span[aria-hidden] { transform: translate(3px, -3px); }
.btn-case {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  margin-top: 32px; padding: 0 18px; border-radius: 4px;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: -0.14px;
  transition: background-color 200ms ease;
}


.project-panel {
  position: relative; aspect-ratio: 1 / 1; max-height: 100vh; width: 100%; overflow: hidden;
  background: var(--panel); border-radius: 4px; box-shadow: 0 0 0 1px var(--ring);
}
.panel-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: clamp(16px, 3vw, 40px);
  opacity: 0; transition: opacity 500ms ease;
}
.panel-img { transition: opacity 500ms ease, transform 700ms var(--ease); }
.panel-img.is-active { opacity: 1; }
.panel-img.is-active { transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); }
.project.show-hmw .panel-img.is-active { transform: translate3d(0, var(--py, 0px), 0) scale(calc(1.06 * var(--ps, 1))); }
.panel-nums { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; gap: 6px; }
.panel-hmw {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  padding: clamp(24px, 4vw, 56px) clamp(24px, 6vw, 88px) clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px);
  background: linear-gradient(to top, rgba(21,21,21,0.92) 0%, rgba(21,21,21,0.72) 55%, rgba(21,21,21,0.35) 100%);
  opacity: 0; pointer-events: none;
  transition: opacity 350ms var(--ease);
}
.panel-hmw p {
  max-width: 34ch;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; color: #fff;
  transform: translateY(14px); transition: transform 450ms var(--ease);
}
.project.show-hmw .panel-hmw { opacity: 1; }
.project.show-hmw .panel-hmw p { transform: none; }
.project-panel { cursor: pointer; }
.project-panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.panel-num {
  width: 34px; height: 34px; padding: 0; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease;
}
@media (hover: hover) {
  .project-panel:hover .panel-img.is-active { transform: translate3d(0, var(--py, 0px), 0) scale(calc(1.06 * var(--ps, 1))); }
  .panel-num:hover { background: var(--accent-hover); transform: translateX(-3px); }
}
.panel-num[aria-pressed="true"], .panel-num[aria-pressed="true"]:hover { background: #fff; color: var(--accent-text); }
.panel-num { transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease), translate 420ms var(--ease-spring) calc(var(--ni, 0) * 40ms); }
.panel-num:focus-visible { outline-color: #fff; outline-offset: 2px; }

/* ---------- Side quests ---------- */

.quests { padding: 40px var(--gutter) 200px; scroll-margin-top: 60px; }

.cards {
  max-width: 1080px; margin: 96px auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.card {
  display: flex; flex-direction: column;
  min-height: 380px; padding: 32px 28px;
  background: var(--card); border-radius: 16px;
}
.card-title { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-text { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--card-text); }
.doodle { stroke: var(--ink); width: 120px; height: 120px; margin-top: auto; align-self: center; }
.card:nth-child(3) .doodle { align-self: flex-end; }
.card:nth-child(4) .doodle { align-self: flex-start; }
.card:nth-child(1) .doodle { align-self: flex-start; }

/* ---------- Cafe map ---------- */

.cafes { max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter) 200px; scroll-margin-top: 60px; }
.cafes-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1.05;
  color: var(--title);
}
.cafes-title em { font-style: italic; }
.cafes-layout {
  margin-top: 56px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px); align-items: stretch;
}
.cafes-map { margin: 0; }
.cafes-map svg { display: block; width: 100%; height: auto; }
.cafes-map svg { stroke: var(--ink); }
.map-river { stroke: var(--ink); }
.map-road { stroke: var(--map-road); }
.map-faint { stroke: var(--map-faint); }
.map-park { stroke: var(--map-park); }
.map-label { fill: var(--map-label); }
.map-n { fill: var(--ink); }

/* pins */
.cafe-pin { cursor: pointer; transition: opacity 250ms ease; }
.cafe-pin .pin-body {
  fill: var(--accent); stroke: var(--ink); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: 50% 100%;
  transition: transform 480ms var(--ease-spring), fill 200ms ease;
}
.cafe-pin .pin-dot { fill: #fff; stroke: none; pointer-events: none; }
.cafes-map.has-active .cafe-pin { opacity: 0.4; }
.cafes-map.has-active .cafe-pin.is-active { opacity: 1; }
.cafe-pin.is-active .pin-body { transform: scale(1.35); fill: var(--accent-hover); }

/* list */
.cafes-panel {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cafes-list {
  align-self: stretch;
  max-height: 480px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.cafe-row {
  padding: 18px 14px; border-bottom: 1px solid var(--line-soft); cursor: default;
  transition: background-color 200ms ease;
}
.cafe-row:last-child { border-bottom: 0; }
.cafe-row:focus-visible { outline-offset: -2px; }
.cafe-row.is-active { background: var(--active-row); }
.cafe-name { font-family: var(--sans); font-size: 16px; font-weight: 500; transition: color 200ms ease; }
.cafe-row.is-active .cafe-name { color: var(--accent-text); }
.cafe-area {
  display: block; margin-top: 2px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted);
}
.cafe-comment { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: var(--comment); }

@media (max-width: 860px) {
  .cafes-layout { grid-template-columns: minmax(0, 1fr); }
  .cafes-list { max-height: 420px; }
}

/* ---------- Footer ---------- */

.footer { padding: 80px var(--gutter) 104px; text-align: center; } /* bottom space clears the fixed dock */
.footer-lead { font-size: 14px; letter-spacing: -0.42px; color: var(--ink); }
.footer-heading { position: relative; margin-top: 88px; }
.sticker {
  position: absolute; top: -64px; left: 58%; z-index: 1;
  display: inline-block; padding: 4px 14px 8px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1.1;
  transform: rotate(4deg);
}
.sticker-arrow { position: absolute; top: 100%; left: -8px; margin-top: 2px; color: var(--accent); }
.footer-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 14vw, 180px);
  letter-spacing: -0.05em;          /* -9px at 180px */
  line-height: 1;
}
.footer-title em { font-style: italic; }
.footer-contact {
  margin-top: 36px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px;
  font-size: 14px;
}
.footer-contact a, .topbar-name {
  display: inline-block; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 10px) / 0 1px;
  padding: 12px 2px;
  transition: background-size 350ms var(--ease), color 200ms ease;
}
.footer-contact a:focus-visible, .topbar-name:focus-visible { background-size: 100% 1px; }
@media (hover: hover) {
  .footer-contact a:hover, .topbar-name:hover { background-size: 100% 1px; }
  .footer-contact a:not(.x-handle):hover { color: var(--accent-text); }
  .topbar-name:hover { color: var(--ink); }
}
.footer-contact .x-handle { color: var(--green); }
/* the one action that matters: Email reads as primary (always underlined, heavier) */
.footer-contact li:first-child a { font-weight: 600; background-size: 100% 1px; }

.footer-bottom {
  margin-top: 160px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  text-align: left;
}
.footer-copy { font-size: 14px; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Pills (shared) ---------- */

.pill, .dock-pill, .menu-toggle, .menu-items a {
  font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: -0.14px;
  line-height: 1; color: #fff; text-decoration: none;
}
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--dark); border-radius: 999px; transition: background-color 200ms ease; }
.pill { transition: background-color 200ms ease, transform 200ms var(--ease); }
@media (hover: hover) { .pill:hover { background: var(--accent-hover); } .pill:not(.is-disabled):hover { transform: translateY(-2px); } }
.is-disabled, .is-disabled:hover { color: var(--disabled) !important; cursor: default; }
.pill.is-disabled:hover { background: var(--dark); }

/* ---------- Dock ---------- */

.dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
}
.menu-pill { display: flex; align-items: center; background: var(--dark); border-radius: 999px; padding: 4px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 0; background: none; border-radius: 999px; cursor: pointer;
}
.menu-items {
  display: flex; align-items: center;
  max-width: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: max-width 320ms var(--ease), opacity 160ms ease, visibility 0s linear 320ms;
}
.menu-items a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; border-radius: 999px; transition: background-color 200ms ease; }
@media (hover: hover) { .menu-items a:hover { background: var(--accent-hover); } }
.menu-items li { opacity: 0; transform: translateY(10px) scale(0.9); transition: opacity 200ms ease, transform 380ms var(--ease-spring); }
.menu-pill.is-open .menu-items li { opacity: 1; transform: none; }
.menu-pill.is-open .menu-items li:nth-child(1) { transition-delay: 40ms; }
.menu-pill.is-open .menu-items li:nth-child(2) { transition-delay: 80ms; }
.menu-pill.is-open .menu-items li:nth-child(3) { transition-delay: 120ms; }
.menu-toggle { transition: background-color 200ms ease; }
@media (hover: hover) { .menu-toggle:hover { background: var(--dark-hover); } }
.menu-pill.is-open .menu-items {
  max-width: 360px; opacity: 1; visibility: visible;
  transition: max-width 320ms var(--ease), opacity 180ms ease 40ms, visibility 0s;
}
.dock-pill { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--dark); }
.menu-pill, .dock-pill, .theme-toggle { box-shadow: 0 0 0 1px var(--ring); }
.dock :focus-visible { outline-offset: 2px; }

/* theme toggle: hand-drawn sun / moon, 44px */
.theme-toggle {
  position: relative; width: 44px; height: 44px; flex: none; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--dark); color: #fff; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, transform 200ms var(--ease);
}
.theme-toggle svg { grid-area: 1 / 1; transition: opacity 200ms ease, transform 380ms var(--ease-spring); }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; }
@media (hover: hover) { .theme-toggle:hover { background: var(--dark-hover); } }
.theme-toggle:active { transform: scale(0.92); }

/* theme swap: eased surfaces only (class lives ~350ms; inherited text colour follows body) */
.theme-anim body, .theme-anim .topbar, .theme-anim .card, .theme-anim .cafes-panel, .theme-anim .cafe-row.is-active,
.theme-anim .menu-pill, .theme-anim .dock-pill, .theme-anim .theme-toggle, .theme-anim .pill, .theme-anim .topbar-role,
.theme-anim .facts, .theme-anim .fact, .theme-anim .project-desc, .theme-anim .fact-inner p, .theme-anim .card-text,
.theme-anim .cafe-comment, .theme-anim .cafe-area, .theme-anim .footer-copy, .theme-anim .topbar-name,
.theme-anim .projects-title, .theme-anim .cafes-title {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease !important;
}

.to-top {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 50;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease, visibility 0s linear 250ms, background-color 200ms ease;
}
.to-top.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 250ms ease, transform 250ms ease, visibility 0s, background-color 200ms ease;
}
@media (hover: hover) { .to-top:hover { background: var(--accent-hover); } }

/* ---------- Loading screen (initial load only, ~2.6s, driven by script.js) ---------- */

.loader { display: none; }
.is-loading { overflow: hidden; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.loader { transition: transform 640ms var(--ease-wipe); }
.loader.is-done { opacity: 1; transform: translateY(-102%); }
.loader-track { width: 100%; position: relative; --cw: clamp(310px, 78vw, 780px); }
.loader-car {
  stroke: var(--ink);
  display: block;
  width: var(--cw); height: auto;
  margin-left: 50%; position: relative;
  transform: translateX(calc(-50vw - 110%));  /* script.js moves it */
  will-change: transform;
}
.loader-car .speed { opacity: 0; transition: opacity 200ms ease; }
.loader.is-fast .loader-car .speed { opacity: 1; }
.loader-pct {
  margin-top: 28px; text-align: center;
  font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0.84px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* pit stop scene: every value below is set from script.js off the load progress */
.loader-pit { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .loader-pit {
    stroke: var(--ink);   /* presentation attribute is #111; CSS wins so dark mode flips */
    display: block; position: absolute; left: 50%; transform: translateX(-50%);
    width: var(--cw); height: auto; top: 0; left: 50%;

  }
  .loader-car .wheel {
    transform-box: fill-box; transform-origin: center;
    transform: translate(calc(var(--lift, 0) * var(--wx, -30) * 1px), calc(var(--lift, 0) * -40px)) rotate(calc(var(--spin, 0) * 1deg));
  }
  .loader-car .wheel-f { --wx: 30; }
  .loader-car .ghost { opacity: var(--ghost, 0); }
  .loader-pit .light { fill: transparent; }
  .loader-pit .light.on { fill: #e10600; }
  .loader-pit .crew { opacity: calc(min(1, var(--rush) * 40) * (1 - var(--clear) * var(--clear))); }
  .loader-pit .crew-s, .loader-pit .crew-cl { opacity: 1; transform: translate(0, calc(var(--hop) * -3px)); }
  .loader-pit .crew-tl { transform: translate(calc((1 - var(--rush)) * -460px), calc(var(--hop) * -3px)); }
  .loader-pit .crew-k1 { transform: translate(calc((1 - var(--rush)) * -460px + var(--clear) * 540px), calc(var(--hop) * -4px)); }
  .loader-pit .crew-k2 { transform: translate(calc((1 - var(--rush)) * -720px + var(--clear) * 340px), calc(var(--hop) * -4px)); }
  .loader-pit .pose-run { display: block; } .loader-pit .pose-kneel { display: none; }
  .loader.is-set .pose-run { display: none; } .loader.is-set .pose-kneel { display: block; }
  .loader-pit .t-go, .loader.is-go .t-stop { display: none; }
  .loader.is-go .t-go { display: block; }
  .loader.is-lights-out .stall { opacity: 0.5; }
}

/* the page fades in as the loader leaves */
.js .topbar, .js main, .js .footer, .js .dock { transition: opacity 400ms ease; }
.is-loading:not(.is-revealed) .topbar,
.is-loading:not(.is-revealed) main,
.is-loading:not(.is-revealed) .footer,
.is-loading:not(.is-revealed) .dock { opacity: 0; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(30px) scale(0.985); transition: opacity 700ms var(--ease), transform 750ms var(--ease-spring); }
.js .reveal.is-in { opacity: 1; transform: none; }
.card { transition: translate 350ms var(--ease), rotate 350ms var(--ease), box-shadow 350ms ease; }
.js .cards .card { transition: opacity 800ms var(--ease), transform 800ms var(--ease), translate 350ms var(--ease), rotate 350ms var(--ease), box-shadow 350ms ease; }
.js .cards .card:nth-child(2) { transition-delay: 100ms, 100ms, 0s, 0s, 0s; }
.js .cards .card:nth-child(3) { transition-delay: 200ms, 200ms, 0s, 0s, 0s; }
@media (hover: hover) {
  .cards .card:hover { translate: 0 -8px; rotate: -1.2deg; box-shadow: 0 18px 40px -20px rgba(21,21,21,0.25); }
  .cards .card:nth-child(2):hover { rotate: 1deg; }
}
.doodle { transition: rotate 400ms var(--ease), scale 400ms var(--ease); }
@media (hover: hover) { .cards .card:hover .doodle { rotate: -4deg; scale: 1.05; } }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .project, .project--flip { grid-template-columns: minmax(0, 1fr); }
  .project--flip .project-info, .project--flip .project-panel { order: 0; }
  .project-list { gap: 88px; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .card { min-height: 320px; }
  .sticker { position: static; display: inline-block; margin-bottom: 76px; font-size: 24px; }
  .sticker-arrow { left: 40%; }
  .footer-bottom { flex-direction: column-reverse; align-items: center; text-align: center; }
}

@media (max-width: 640px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; font-size: 12px; }
  .topbar-role { justify-self: end; padding: 7px 11px; gap: 7px; }
  .topbar-clock { display: none; }
  .about { padding: 88px var(--gutter); }
  .about .note { margin-bottom: 84px; font-size: 21px; }
  .projects-head .note { font-size: 21px; margin-right: 0; }
  /* dock spans the width (pointer-events pass through the gaps); to-top moves above it */
  .dock { left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; justify-content: center; pointer-events: none; }
  .dock > * { pointer-events: auto; }
  .menu-pill.is-open + .dock-pill, .menu-pill.is-open ~ .theme-toggle { display: none; }
  .menu-toggle, .menu-items a { padding: 0 11px; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
  .menu-items a { padding: 0 10px; }
  .dock-pill { padding: 0 18px; min-height: 44px; font-size: 13px; }
  .pill { padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
  .to-top { left: auto; right: var(--gutter); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .cards .card:hover, .cards .card:hover .doodle { translate: none; rotate: none; scale: none; }
  .project-panel:hover .panel-img.is-active, .project.show-hmw .panel-img.is-active { transform: none; }
  .cafe-pin.is-active .pin-body { transform: none; }
}


/* ---------- Craft polish (v8) ---------- */
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, .projects-title, .footer-title, .cafes-title { text-wrap: balance; }
p, .cafe-comment { text-wrap: pretty; }

/* hero entrance: staged rise after the loader wipes away */
.hero-title > *, .hero-role {
  transition: opacity 640ms var(--ease), transform 780ms var(--ease-spring);
}
.is-loading:not(.is-revealed) .hero-title > *, .is-loading:not(.is-revealed) .hero-role { opacity: 0; transform: translateY(46px); }
/* topbar stages in first (80ms stagger), then the hero lines follow */
.is-revealed .hero-title > span:first-child { transition-delay: 320ms; }
.is-revealed .hero-title > span:last-child { transition-delay: 440ms; }
.is-revealed .hero-role { transition-delay: 950ms; }
.topbar-name, .topbar-role, .topbar-clock {
  transition: opacity 600ms var(--ease) var(--td, 0ms), transform 700ms var(--ease-spring) var(--td, 0ms);
}
.topbar-name { transition: background-size 350ms var(--ease), color 200ms ease, opacity 600ms var(--ease) var(--td, 0ms), transform 700ms var(--ease-spring) var(--td, 0ms); }
.topbar-name { --td: 0ms; } .topbar-role { --td: 80ms; } .topbar-clock { --td: 160ms; }
.is-loading:not(.is-revealed) .topbar-name, .is-loading:not(.is-revealed) .topbar-role, .is-loading:not(.is-revealed) .topbar-clock { opacity: 0; transform: translateY(-12px); }

/* hero drift on scroll (JS sets the value; wheel scrolling is already eased, so no CSS transition) */
.hero { transform: translateY(var(--hero-drift, 0px)); }

/* magnetic dock controls */
.dock-pill, .menu-toggle { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform 420ms var(--ease-spring), background-color 200ms ease, color 200ms ease; }

/* cafe list: staggered rise when the section enters */
.cafe-row { opacity: 0; transform: translateY(14px); transition: opacity 480ms var(--ease), transform 560ms var(--ease-spring); transition-delay: calc(var(--i, 0) * 55ms); }
.cafes-list.rows-in .cafe-row { opacity: 1; transform: none; }

/* cafe map: lines draw themselves in when the section enters */
.cafes-layout .map-frame, .cafes-layout .map-park, .cafes-layout .map-road, .cafes-layout .map-river {
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
}
.cafes-layout.is-in .map-frame { stroke-dashoffset: 0; transition: stroke-dashoffset 1500ms var(--ease); }
.cafes-layout.is-in .map-road { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease) 350ms; }
.cafes-layout.is-in .map-river { stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms var(--ease) 550ms; }
.cafes-layout.is-in .map-park { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease) 800ms; }
.cafes-layout .map-label { opacity: 0; transition: opacity 600ms var(--ease) 1100ms; }
.cafes-layout.is-in .map-label { opacity: 1; }
@keyframes pin-in { from { opacity: 0; } to { opacity: 1; } }
.cafes-layout.is-in .cafe-pin { animation: pin-in 450ms var(--ease) backwards; animation-delay: calc(1000ms + var(--pi, 0) * 90ms); }

/* footer title: letters wave in sequence on hover */
.wave-letter { display: inline-block; transition: transform 320ms var(--ease-spring); transition-delay: calc(var(--wi, 0) * 26ms); }
@media (hover: hover) { .footer-title:hover .wave-letter { transform: translateY(-10px); } }

/* quiet scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .is-loading .hero-title > *, .is-loading .hero-role { opacity: 1; transform: none; }
  .hero { transform: none; }
  .cafe-row { opacity: 1; transform: none; transition: none; }
  .cafes-layout .map-frame, .cafes-layout .map-park, .cafes-layout .map-road, .cafes-layout .map-river { stroke-dashoffset: 0; }
  .cafes-layout .map-label { opacity: 1; }
  .wave-letter { transition: none; }
  .footer-title:hover .wave-letter { transform: none; }
}

/* ---------- Motion pass v9 ---------- */

/* loader progress line (transform-only, driven by the same eased value as the counter) */
.loader-line { width: min(320px, 60vw); height: 2px; margin: 26px auto 0; position: relative; background: var(--line); overflow: hidden; }
.loader-line span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* hamburger -> X */
.menu-toggle svg .bar { transform-box: fill-box; transform-origin: center; transition: transform 420ms var(--ease-spring), opacity 200ms ease; }
.menu-pill.is-open .bar-1 { transform: translateY(4px) rotate(45deg); }
.menu-pill.is-open .bar-2 { transform: scaleX(0); opacity: 0; }
.menu-pill.is-open .bar-3 { transform: translateY(-4px) rotate(-45deg); }

/* pill: subtle frosted backdrop while open */
.menu-pill { transition: background-color 300ms ease; }
.menu-pill.is-open {
  background: var(--dark-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
}

/* project rows: settle in with a slight rotate */
.js .project.reveal { transform: translateY(40px) rotate(0.4deg) scale(0.985); transform-origin: 0 100%; }
.js .project.reveal.is-in { transform: none; }

/* arrows draw themselves when their note enters */
.js .note-arrow path { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.js .note.is-in .note-arrow path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 800ms var(--ease) 350ms, opacity 120ms linear 350ms; }
.js .note.is-in .note-arrow path + path { transition-delay: 1050ms; transition-duration: 450ms, 120ms; }

/* project row choreography (hover devices, motion allowed) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .js .project.reveal { transition: opacity 700ms var(--ease), transform 900ms var(--ease-spring), translate 520ms var(--ease-spring); }
  .project.is-in:hover { translate: 0 -4px; }
  .project-name { transition: color 250ms ease, translate 520ms var(--ease-spring); }
  .project:hover .project-name { translate: 6px 0; }
  .project:hover .panel-num { translate: 0 -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .project.reveal { transform: none; transition: none; }
  .js .note-arrow path { stroke-dashoffset: 0; opacity: 1; }
  .is-loading .topbar-name, .is-loading .topbar-role, .is-loading .topbar-clock { opacity: 1; transform: none; }
  .menu-pill.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-pill.is-open .bar-1, .menu-pill.is-open .bar-3 { transition: none; }
}

/* ---------- Motion pass v10 ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero: per-letter reveal (JS adds .is-split and sets --ld per letter) */
  .hero-title.is-split > * { transition: none; opacity: 1; transform: none; }
  .hero-title .hl { display: inline-block; transition: opacity 500ms var(--ease), transform 780ms var(--ease-spring); }
  .is-loading:not(.is-revealed) .hero-title .hl { opacity: 0; transform: translateY(0.6em) rotate(6deg); }
  .is-revealed .hero-title .hl { transition-delay: var(--ld, 320ms); }

  /* scroll progress line */
  .scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 260; pointer-events: none;
    background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  }

  /* per-panel progress fill on the active numbered square */
  .panel-num { position: relative; overflow: hidden; isolation: isolate; }
  .panel-num::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: rgba(17,17,17,0.14); transform: scaleY(var(--rp, 0)); transform-origin: 50% 100%; opacity: 0;
  }
  .panel-num[aria-pressed="true"]::before { opacity: 1; }

  /* magnetic project titles */
  .project-name { transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0); transition: color 250ms ease, translate 520ms var(--ease-spring), transform 620ms var(--ease-spring); }
  .project-name.is-mag { transition: color 250ms ease, translate 520ms var(--ease-spring), transform 140ms ease-out; }

  /* HMW words stagger in */
  .hmw-word { display: inline-block; opacity: 0; transform: translateY(8px); transition: opacity 150ms ease, transform 150ms ease; }
  .project.show-hmw .hmw-word { opacity: 1; transform: none; transition: opacity 400ms var(--ease) calc(120ms + var(--wd, 0) * 18ms), transform 500ms var(--ease) calc(120ms + var(--wd, 0) * 18ms); }

  /* cafe rows: comment slides in, pin settles with a second bounce */
  @keyframes cafe-comment-in { from { opacity: 0.2; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
  .cafe-row.is-active .cafe-comment { animation: cafe-comment-in 240ms var(--ease); }
  @keyframes pin-bounce {
    0% { transform: scale(1); } 40% { transform: scale(1.5); } 62% { transform: scale(1.27); }
    80% { transform: scale(1.4); } 92% { transform: scale(1.33); } 100% { transform: scale(1.35); }
  }
  .cafe-pin.is-active .pin-body { animation: pin-bounce 640ms ease-out; }
}

/* ---------- "View" cursor label (only over .project-panel; native cursor kept) ---------- */
.view-label {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  will-change: transform;
}
.view-label-pill {
  display: block; padding: 4px 8px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: 10px; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transform: scale(0.6); transform-origin: left top;
  transition: opacity 160ms ease, transform 220ms var(--ease);
}
.view-label.is-on .view-label-pill { opacity: 1; transform: scale(1); }


/* ---------- v14: loader-to-hero transition, session skip, mobile pass ---------- */

/* word groups so per-letter spans never break mid-word */
.hw { display: inline-block; white-space: nowrap; }

/* hand-drawn speed streaks that sweep across as the loader wipes up (class-driven by .is-revealed) */
.wipe-streaks { position: fixed; inset: 0; z-index: 210; overflow: hidden; pointer-events: none; visibility: hidden; }
.is-revealed .wipe-streaks { visibility: visible; }
.streak { position: absolute; left: 0; width: min(70vw, 560px); height: 14px; opacity: 0; transform: translateX(-110%); }
.streak:nth-child(1) { top: 34%; color: var(--ink); }
.streak:nth-child(2) { top: 52%; color: var(--accent); width: min(90vw, 760px); }
.streak:nth-child(3) { top: 66%; color: var(--green); width: min(55vw, 440px); }
@keyframes streak-run {
  0% { opacity: 0; transform: translateX(-110%); }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100vw); }
}
@media (prefers-reduced-motion: no-preference) {
  .is-revealed .streak { animation: streak-run 780ms cubic-bezier(0.5, 0, 0.3, 1) both; }
  .is-revealed .streak:nth-child(1) { animation-delay: 40ms; }
  .is-revealed .streak:nth-child(2) { animation-delay: 150ms; }
  .is-revealed .streak:nth-child(3) { animation-delay: 260ms; }

  /* repeat visit in the same session: no loader, quick entrance */
  @keyframes quick-in { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
  .is-skip .hero-title .hl { animation: quick-in 420ms var(--ease) backwards; animation-delay: calc(var(--ld, 0ms) * 0.22); }
  .is-skip .hero-role { animation: quick-in 420ms var(--ease) 300ms backwards; }
}
@media (prefers-reduced-motion: reduce) { .wipe-streaks { display: none; } }

/* touch: no tap flash, no double-tap delay on controls */
.project-panel, .panel-num, .cafe-pin, .cafe-row, .fact-toggle, .menu-toggle, .dock-pill, .to-top { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* cafe pins: larger invisible hit area (tappable) */
.pin-hit { fill: transparent; stroke: none; }

/* touch devices: bigger number squares */
@media (pointer: coarse) {
  .panel-num { width: 44px; height: 44px; font-size: 12px; }
  .panel-nums { top: 10px; right: 10px; }
}
@media (max-width: 860px) {
  .cafes-list { max-height: none; overflow: visible; }   /* page scrolls; no nested scroller on touch */
}

@media (max-width: 640px) {
  .hero { padding: 104px var(--gutter) 96px; }
  .hero-title { font-size: clamp(38px, 12.2vw, 60px); line-height: 1.04; }
  .hero-role { font-size: 16px; margin-top: 24px; align-items: flex-start; text-align: left; }
  .hero-role .pin { margin-top: 3px; }

  .about-copy { font-size: clamp(22px, 6.6vw, 28px); }

  .projects { padding: 96px var(--gutter) 112px; }
  .projects-head { margin-bottom: 56px; }
  .projects-head .note { margin-bottom: 88px; }
  .projects-title { font-size: clamp(56px, 20vw, 100px); }
  .projects-title .count { font-size: 14px; vertical-align: 2.4em; }
  .project-list { gap: 72px; }
  .project-name { font-size: 28px; overflow-wrap: anywhere; }
  .project-desc, .facts { max-width: none; }
  .fact-toggle { min-height: 44px; padding: 0; }
  .btn-case { min-height: 44px; margin-top: 24px; }
  .panel-hmw { padding: 20px 64px 20px 20px; }
  .panel-hmw p { font-size: clamp(18px, 5.4vw, 22px); }

  .quests { padding: 24px var(--gutter) 112px; }
  .cards { margin-top: 56px; }
  .cafes { padding: 24px var(--gutter) 120px; }
  .cafes-layout { margin-top: 36px; }
  .cafes-map .map-label { font-size: 14px; }
  .pin-hit { r: 30px; }
  .cafe-row { padding: 16px 12px; }

  .footer { padding: 64px var(--gutter) 120px; }
  .footer-heading { margin-top: 64px; }
  .footer-title { font-size: clamp(44px, 14.6vw, 72px); }
  .footer-bottom { margin-top: 96px; }
  .footer-contact { gap: 4px 24px; }
  .pill-row { justify-content: center; }

  .loader-pct { font-size: 16px; margin-top: 22px; }
}

/* soft pink hover states: keep text legible (ink on pink) */
@media (hover: hover) {
  .btn-case:hover, .pill:not(.is-disabled):hover, .menu-items a:hover, .to-top:hover, .panel-num:hover:not([aria-pressed="true"]) { color: var(--on-accent); }
}


/* ---------- Mobile pass (v19) ---------- */
.dock { transition: transform 320ms var(--ease), opacity 240ms ease; }
.to-top { transition: opacity 200ms ease, transform 320ms var(--ease), background-color 200ms ease; }
@media (max-width: 640px) {
  .topbar-clock { grid-column: auto; }
  /* the floating dock and back-to-top tuck away while reading downward, and return on scroll up */
  .dock-tucked .dock { transform: translateY(calc(100% + 28px)); }
  .dock-tucked .to-top { opacity: 0; transform: translateY(80px); pointer-events: none; }
  /* back-to-top sits left, clear of the 01-04 switchers that sit on the right of each image */
  .to-top { right: auto; left: var(--gutter); }
  /* leave room under each project so the dock never sits on its Case study button */
  .project-info { padding-bottom: 72px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* comfortable touch targets */
@media (pointer: coarse) {
  .panel-num { width: 46px; height: 46px; }
  .topbar-name { display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; }
  .footer-contact a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; }
  .fact-toggle { min-height: 44px; }
  .btn-case { min-height: 44px; }
  .theme-toggle { min-width: 44px; min-height: 44px; }
}

/* sketch style: confident ink lines, flat pink fills nudged off the outline (loader scene recreated from the reference sketch) */
.sk { filter: url(#wob); overflow: visible; }
.sk .sk-pink { fill: var(--accent); stroke: none; }
.sk .sk-pk, .sk .sk-pk-s { fill: var(--accent); stroke: none; }
.sk .sk-pk { transform: translate(2px, 1px); }
.sk .sk-pk-s { fill: none; stroke: var(--accent); stroke-width: 13px; }
.sk .sk-bg { fill: var(--bg); }
.sk .sk-sl { stroke: var(--bg); }
.sk .sk-ink { fill: var(--ink); }
.sk .sk-tyre { fill: var(--tyre); }
:root { --tyre: #111; }
:root[data-theme="dark"] { --tyre: #3a3a3a; }
.loader-pit .light.on { fill: var(--accent); }
.loader-pit text { fill: var(--ink); }
.loader { --clear: 0; --hop: 0; --rush: 0; }
.doodle.sk { overflow: hidden; }
.cards .card:nth-child(1) .doodle { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.sk .sk-pf { fill: var(--accent); }
.doodle { width: min(100%, 300px) !important; height: auto !important; }

/* v21 doodles: recreated from her reference sketches */
.doodle.sk2 { overflow: visible; width: auto !important; height: 250px !important; max-width: 100%; -webkit-mask-image: none !important; mask-image: none !important; }
.sk .hat { stroke: var(--accent-deep); stroke-width: 2.2; fill: none; }
.sk .sk-hair { fill: var(--tyre); stroke: var(--ink); }
.sk .sk-pf2 { fill: var(--coffee); stroke: none; }
:root { --accent-deep: #ff9fdb; --coffee: #ffb0e0; }

.project-panel { cursor: pointer; }
.project-name { cursor: pointer; }
.project-panel:focus-visible { outline: 2px solid var(--accent, #1a1a1a); outline-offset: 4px; }
@media (hover: hover) { .project-name:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- Top nav (replaces the top bar; the bottom dock stays on phones only) ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 76px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 400ms ease, transform 400ms var(--ease); }
.nav-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-name { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-tag { padding: 7px 12px; border-radius: 6px; background: var(--card); color: var(--ink); font-size: 13px; white-space: nowrap; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { padding: 10px 14px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 8px; transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) { .nav-links a:hover { background: var(--card); } }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.nav-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease; }
@media (hover: hover) { .nav-icon:hover { background: var(--card); } }
.nav-cta { min-height: 38px; margin-left: 10px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--dark); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.nav-cta.is-disabled { color: var(--disabled); cursor: default; }
.is-loading:not(.is-revealed) .nav { opacity: 0; transform: translateY(-10px); }
@media (min-width: 901px) { .dock, .to-top { display: none !important; } }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr; height: 60px; }
  .nav-links, .nav-right, .nav-tag { display: none; }
}

.nav-dot { color: var(--accent-text); }

/* ---------- v31 polish ---------- */
.cafes-map text, .cafes-map .map-label, .map-n { font-family: var(--sans) !important; font-style: normal !important; }
.cafes-map svg { filter: none; }
.cafes-map .map-frame { fill: color-mix(in srgb, var(--card) 70%, transparent); }
.cafes-map .map-park { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: color-mix(in srgb, var(--accent-text) 55%, transparent); }
.cafes-map .map-river { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 2.4; }
.cafes-map .map-road { stroke-width: 1.4; }
.cafes-map .map-label { font-size: 10.5px; letter-spacing: 0.12em; font-weight: 500; }
.cafe-area, .cafe-name { font-family: var(--sans) !important; }
.cafe-area { font-size: 11px; letter-spacing: 0.08em; }
/* loader */
.loader-line { height: 3px !important; border-radius: 999px; overflow: hidden; }
.loader-line span { border-radius: 999px; }
.loader-pct { font-family: var(--sans) !important; font-size: 13px !important; letter-spacing: 0.14em !important; text-transform: uppercase; color: var(--muted) !important; }
.loader-pct::after { content: " · pit stop in progress"; }
.loader.is-fast .loader-pct::after { content: " · lights out"; }
.cafe-comment { font-family: var(--sans) !important; font-style: normal !important; font-size: 14px !important; line-height: 1.45 !important; }

/* cafe map: softer, more finished */
.cafes { padding-top: 120px; }
.cafes-map { padding: 28px; border-radius: 24px; background: var(--card); }
.cafes-map .map-frame { stroke: none !important; fill: transparent !important; }
.cafes-map .map-faint { stroke: color-mix(in srgb, var(--ink) 25%, transparent); }
.cafes-map .map-road { stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: 1.2; }
.cafes-map .map-river { stroke: color-mix(in srgb, var(--accent) 80%, var(--ink)); stroke-width: 3; opacity: .55; }
.cafes-map .map-park { fill: color-mix(in srgb, var(--accent) 28%, transparent); stroke: none; }
.cafes-map .map-label { fill: color-mix(in srgb, var(--ink) 55%, transparent); }
.cafes-panel, .cafes-list { border-radius: 24px; }
.cafe-row { border-radius: 14px; }
/* brighter map palette: the site green and pink at full strength */
.cafes-map { background: color-mix(in srgb, var(--green) 16%, var(--bg)); }
.cafes-map .map-park { fill: color-mix(in srgb, var(--green) 70%, transparent); }
.cafes-map .map-river { stroke: var(--accent); stroke-width: 4; opacity: 1; }
.cafes-map .map-road { stroke: color-mix(in srgb, var(--ink) 28%, transparent); }
.cafe-pin .pin-body { fill: var(--accent-hover); }
.cafe-row.is-active { background: color-mix(in srgb, var(--green) 22%, transparent); }

/* ---------- v32: logo "kam." ---------- */
.nav-name { font-family: "Plus Jakarta Sans", var(--sans); font-weight: 800; font-size: 30px; letter-spacing: -0.06em; }
.nav-name .nav-dot { color: var(--accent); }

/* ---------- v32: cursor-reactive dot grid behind the landing hero ---------- */
.hero { position: relative; }
.hero > :not(.dotgrid) { position: relative; z-index: 1; }
.dotgrid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* v36: no green in the headline */
.hero-title em { color: var(--accent-text); }
.note--dark em { color: var(--accent); }

/* v42: stacked project slides on the home page */
.project-list.is-stage { gap: 0; }
.project-list.is-stage .project {
  position: sticky; top: 84px; height: calc(100vh - 108px); margin: 0 0 26vh;
  padding: clamp(24px, 3vw, 44px); border-radius: 32px; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 56px);
  transform-origin: 50% 0; will-change: transform; backface-visibility: hidden;
  box-shadow: 0 -18px 40px -24px rgba(0,0,0,0.25); overflow: hidden;
}
.project-list.is-stage .project--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.project-list.is-stage .project:last-child { margin-bottom: 6vh; }
.project-list.is-stage .project-panel { aspect-ratio: auto; max-height: none; height: 100%; align-self: stretch; border-radius: 18px; }
.project-list.is-stage .project-name { font-family: var(--serif); font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -0.03em; margin-top: 12px; }
.project-list.is-stage .project-desc { max-width: 46ch; font-size: clamp(14px, 1.2vw, 17px); }
.project-list.is-stage .project-info { padding-top: 0; }
.slide-eyebrow { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.slide-eyebrow span { font-family: var(--serif); font-size: 18px; letter-spacing: 0; }
.project-list.is-stage .slide-eyebrow { display: block; }
.project-list.is-stage .project.c0 { background: #f1ece2; }
.project-list.is-stage .project.c1 { background: #151515; --ink: #f2f2ee; --desc: #cfcfca; --line: #3a3a3a; --accent-text: var(--accent); color: #f2f2ee; }
.project-list.is-stage .project.c2 { background: var(--accent); --ink: #111; --desc: #33262c; --line: rgba(17,17,17,.35); --accent-text: #171114; color: #111; }
.project-list.is-stage .project.c2 .btn-case { background: #171114; color: #fff; }
.project-list.is-stage .project.c3 { background: #faf8f4; box-shadow: 0 -18px 40px -24px rgba(0,0,0,0.25), inset 0 0 0 1px #e6e1d7; }
:root[data-theme="dark"] .project-list.is-stage .project.c0 { background: #1f1f1f; }
:root[data-theme="dark"] .project-list.is-stage .project.c3 { background: #181818; box-shadow: inset 0 0 0 1px #2f2f2f; }
:root[data-theme="dark"] .project-list.is-stage .project.c1 { background: #2b2b2b; }
.work-rail { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 30; display: none; flex-direction: column; gap: 14px; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.work-rail.is-on { opacity: 1; pointer-events: auto; display: flex; }
.work-rail a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--mono); font-size: 11px; color: var(--ink); opacity: .45; transition: opacity 200ms; }
.work-rail a i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.work-rail a.is-cur { opacity: 1; }
.work-rail a:not(.is-cur) span { display: none; }
@media (max-width: 899px) { .work-rail { display: none !important; } }

/* v43: inset deck cards on cream, peeking edge, left rail, bottom pill (after the pin stills) */
#work { background: #f8f4ec; }
:root[data-theme="dark"] #work { background: var(--bg); }
.project-list.is-stage .project { top: 72px; height: calc(100vh - 72px - 100px); margin: 0 0 40vh; border-radius: 26px; overflow: visible; padding: clamp(28px, 3.4vw, 56px) clamp(32px, 4vw, 72px); isolation: isolate; }
.project-list.is-stage .project:last-child { margin-bottom: 0; }
.project-list.is-stage .project::after { content: ""; position: absolute; z-index: -1; left: 4.5%; right: 4.5%; bottom: -15px; height: 40px; border-radius: 0 0 22px 22px; background: var(--peek, transparent); box-shadow: 0 10px 18px -10px rgba(0,0,0,.35); }
.project-list.is-stage .project.c0 { background: #ffc7ea; --ink: #111; --desc: #3b2a35; --line: rgba(17,17,17,.3); --accent-text: #171114; --peek: #151515; color: #111; }
.project-list.is-stage .project.c0 .btn-case { background: #171114; color: #fff; }
.project-list.is-stage .project.c1 { background: #151515; --peek: #e9dfcb; }
.project-list.is-stage .project.c2 { background: #e9dfcb; --ink: #151515; --desc: #4a443a; --line: rgba(21,21,21,.25); --accent-text: #8d1a63; --peek: #ffffff; color: #151515; }
.project-list.is-stage .project.c2 .btn-case { background: #151515; color: #fff; }
.project-list.is-stage .project.c3 { background: #ffffff; --peek: transparent; box-shadow: 0 -18px 40px -24px rgba(0,0,0,.25), inset 0 0 0 1px #e6e1d7; }
:root[data-theme="dark"] .project-list.is-stage .project.c3 { background: #181818; }
:root[data-theme="dark"] .project-list.is-stage .project.c2 { background: #e9dfcb; }
:root[data-theme="dark"] .project-list.is-stage .project.c1 { background: #2b2b2b; }
:root[data-theme="dark"] .project-list.is-stage .project.c0 { background: #ffc7ea; }
.slide-count { display: none; position: absolute; top: clamp(20px, 2.4vw, 36px); right: clamp(28px, 3vw, 48px); font-family: var(--mono); font-size: clamp(15px, 1.4vw, 20px); opacity: .55; }
.project-list.is-stage .slide-count { display: block; }
.work-rail { left: 14px; right: auto; align-items: center; gap: 10px; padding: 8px; border-radius: 18px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -12px rgba(0,0,0,.3); }
.work-rail a { width: 36px; height: 36px; justify-content: center; border-radius: 12px; opacity: 1; color: var(--ink); font-size: 11px; }
.work-rail a i { display: none; }
.work-rail a span, .work-rail a:not(.is-cur) span { display: block; }
.work-rail a.is-cur { background: var(--accent); color: #111; }
.work-cta { position: fixed; left: 50%; bottom: 20px; translate: -50% 12px; z-index: 31; display: none; align-items: center; gap: 28px; padding: 8px 8px 8px 24px; border-radius: 999px; background: #efe9dd; color: #151515; box-shadow: 0 14px 40px -18px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity 250ms ease, translate 350ms var(--ease); font-family: var(--mono); font-size: 13px; min-width: min(420px, 60vw); justify-content: space-between; }
:root[data-theme="dark"] .work-cta { background: #262626; color: #f2f2ee; }
.work-cta.is-on { display: flex; opacity: 1; translate: -50% 0; pointer-events: auto; }
.work-cta b { font-family: var(--sans); font-weight: 400; font-size: 14px; }
.work-cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 20px; border-radius: 999px; background: #111; color: #fff; text-decoration: none; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
:root[data-theme="dark"] .work-cta a { background: var(--accent); color: #111; }
@media (max-width: 899px) { .work-cta, .work-rail { display: none !important; } }

/* v43: one pinned stage, cards stacked in place */
.work-stage { display: contents; }
.project-list.is-stage { display: block; }
.project-list.is-stage .work-stage { display: block; position: sticky; top: 72px; height: calc(100vh - 72px - 100px); }
.project-list.is-stage .project { position: absolute; inset: 0; top: 0; height: auto; margin: 0; transform-origin: 50% 40%; box-shadow: 0 -6px 30px -14px rgba(0,0,0,.28); }
.project-list.is-stage .project:last-child { margin: 0; }
.project-list.is-stage .project::after { display: none; }
body { overflow-x: clip; }

/* v44: phone version of the deck */
@media (max-width: 899px) {
  .project-list.is-stage .work-stage { top: 64px; height: calc(100svh - 64px - 96px); }
  .project-list.is-stage .project { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; padding: 18px 18px 18px; border-radius: 22px; }
  .project-list.is-stage .project--flip { grid-template-columns: none; }
  .project-list.is-stage .project--flip .project-info, .project-list.is-stage .project--flip .project-panel { order: 0; }
  .project-list.is-stage .project-info { flex: 0 0 auto; }
  .project-list.is-stage .project-name { font-size: clamp(34px, 11vw, 46px); margin-top: 6px; }
  .project-list.is-stage .project-desc { margin-top: 8px; font-size: 13px; line-height: 1.5; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .project-list.is-stage .facts { margin-top: 10px; }
  .project-list.is-stage .fact-toggle { min-height: 38px; }
  .project-list.is-stage .btn-case { margin-top: 12px; min-height: 40px; }
  .project-list.is-stage .project-panel { flex: 1 1 0; min-height: 120px; height: auto; align-self: stretch; border-radius: 14px; }
  .project-list.is-stage .slide-count { top: 16px; right: 18px; font-size: 14px; }
  .project-list.is-phone ~ .x, .work-rail, .work-cta { display: none !important; }
  .project-list.is-stage { margin-left: -4px; margin-right: -4px; }
  .project-list.is-stage .panel-nums { top: auto; bottom: 10px; right: auto; left: 50%; transform: translateX(-50%); grid-auto-flow: column; gap: 6px; }
  .project-list.is-stage .panel-num { width: 44px; height: 44px; }
  .project-list.is-stage .panel-img { padding: 12px 12px 64px; }
}

/* v48: dark-mode loader palette (from her reference): near-black, white line art, hot pink, gold gantry light + trolley, grey mid-tones. Loader only. */
:root[data-theme="dark"] .loader {
  --bg: #0e0e0e; --ink: #fff; --accent: #dc0a78; --tyre: #3a3a3a; --muted: #a5a5a5; --line: #3a3a3a;
  --gold: #d8b880;
}
:root[data-theme="dark"] .loader .sk-pk, :root[data-theme="dark"] .loader .sk-pk-s { }
:root[data-theme="dark"] .loader .light { stroke: var(--gold); }
:root[data-theme="dark"] .loader .light.on { fill: var(--accent); stroke: var(--gold); }
:root[data-theme="dark"] .loader .sk path.sk-ink[d^="M386 112"] { fill: var(--gold); stroke: var(--gold); }
:root[data-theme="dark"] .loader .crew-tl path.sk-pk[d="M26 -10 h64 v6 h-64z"] { fill: var(--gold); }
:root[data-theme="dark"] .loader .crew-tl path.sk-bg[d="M26 -11 h64 v7 h-64z"] { fill: #1a1a1a; stroke: var(--gold); }
:root[data-theme="dark"] .loader .sk .sk-sl { stroke: #0e0e0e; }

/* v55: Brew List page */
.brew { padding-top: 110px; min-height: 100vh; }
.brew .cafes { padding-top: 40px; }

/* v56: skip control on the loader, bottom right */
.loader-skip {
  position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(18px, 3.5vh, 36px);
  pointer-events: auto; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: none;
  color: var(--muted); background: transparent; border: 0; padding: 10px 6px;
  transition: color 200ms ease;
}
.loader-skip:hover, .loader-skip:focus-visible { color: var(--ink); }
.loader-skip:focus-visible { outline: 2px solid var(--accent-ink, currentColor); outline-offset: 2px; border-radius: 4px; }
.loader-skip:disabled { opacity: 0; }

/* v60: About page */
.about-page { min-height: 100vh; display: flex; }
.about-page .about { flex: 1; display: flex; align-items: center; justify-content: center; padding-top: 140px; padding-bottom: 140px; }
.about-page .about-inner { width: 100%; }

/* v61: Toolkit row (About) */
.toolkit { margin: 96px auto 0; text-align: center; }
.toolkit-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 0 0 40px; }
.tk-row { --u: 72px; list-style: none; margin: 0; padding: 0; height: calc(var(--u) * 2.4); display: flex; align-items: center; justify-content: center; gap: 18px; }
.tk-row li { display: block; }
.tk-item { --k: 1; position: relative; display: block; width: calc(var(--u) * var(--k)); height: calc(var(--u) * var(--k)); padding: 0; border: 0; background: none; cursor: pointer; transition: width 220ms var(--ease), height 220ms var(--ease); -webkit-tap-highlight-color: transparent; }
.tk-item img { display: block; width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 1px 2px rgba(0,0,0,.12); user-select: none; }
.tk-item:focus-visible { outline: 2px solid #1a62d6; outline-offset: 4px; border-radius: 24%; }
.tk-label { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 4px); padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,.72); color: #111; font-family: var(--sans); font-size: 15px; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.tk-item.is-active .tk-label, .tk-item:focus-visible .tk-label { opacity: 1; transform: translate(-50%, 0); }
.tk-item.is-active { --k: 1.65; }
.tk-item.is-near1 { --k: 1.28; }
.tk-item.is-near2 { --k: 1.1; }
@media (max-width: 640px) { .tk-row { --u: 36px; gap: 8px; } .tk-item.is-active { --k: 1.4; } .tk-item.is-near1 { --k: 1.15; } .tk-item.is-near2 { --k: 1.04; } .tk-label { font-size: 14px; padding: 7px 11px; } .toolkit { margin-top: 72px; } .about-page .about { padding-top: 110px; } }
@media (prefers-reduced-motion: reduce) { .tk-item, .tk-label { transition: none; } }

/* v62: About on the page background, pink only as an accent */
.about-page .about { background: var(--bg); color: var(--ink); }
.about-copy .hl { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 94%, transparent 94%); padding: 0 .08em; }
.toolkit-title { display: inline-block; background: linear-gradient(transparent 68%, var(--accent) 68%, var(--accent) 92%, transparent 92%); padding: 0 .12em; }
.tk-label { background: var(--accent); color: #111; }
.tk-item img { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px rgba(128,128,128,.18); }
.tk-item.is-active img { box-shadow: 0 6px 18px rgba(0,0,0,.14), 0 0 0 2px var(--accent); }

/* v63: no highlight under Toolkit heading */
.toolkit-title { background: none; padding: 0; display: block; }

/* v64: phone toolkit as a 4-per-row grid of larger tiles */
@media (max-width: 640px) {
  .tk-row { --u: 74px; display: grid; grid-template-columns: repeat(4, var(--u)); justify-content: center; gap: 22px 16px; height: auto; align-items: start; padding-top: 44px; }
  .tk-item { width: var(--u); height: var(--u); transform: scale(var(--k)); transition: transform 220ms var(--ease); z-index: 1; }
  .tk-item.is-active { --k: 1.18; z-index: 3; }
  .tk-item.is-near1, .tk-item.is-near2 { --k: 1; }
  .tk-label { bottom: calc(100% + 8px); }
}

/* v65: more breathing space on phone */
@media (max-width: 640px) {
  .about-copy { line-height: 1.42; }
  .toolkit { margin-top: 112px; }
  .toolkit-title { margin-bottom: 52px; }
  .tk-row { --u: 68px; gap: 40px 22px; padding-top: 44px; }
  .about-page .about { padding-top: 130px; padding-bottom: 150px; }
}

/* v66: spacing pass (more room, same design) */
@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .hero { padding: 120px var(--gutter) 112px; }
  .hero-role { margin-top: 32px; line-height: 1.5; }
  .about-copy { line-height: 1.5; }
  .projects { padding: 112px var(--gutter) 128px; }
  .projects-head { margin-bottom: 72px; }
  .project-list.is-stage { margin-left: 0; margin-right: 0; }
  .project-list.is-stage .project { padding: 24px 24px 24px; gap: 18px; }
  .project-list.is-stage .project-desc { margin-top: 12px; line-height: 1.6; }
  .project-list.is-stage .facts { margin-top: 14px; }
  .project-list.is-stage .btn-case { margin-top: 16px; }
  .project-list.is-stage .slide-count { top: 22px; right: 24px; }
  .quests { padding: 40px var(--gutter) 128px; }
  .cards { margin-top: 72px; gap: 24px; }
  .card { padding: 36px 28px; }
  .card-text { line-height: 1.6; margin-top: 12px; }
  .cafes { padding: 40px var(--gutter) 140px; }
  .cafes-layout { margin-top: 48px; gap: 28px; }
  .cafe-row { padding: 22px 18px; }
  .footer { padding: 80px var(--gutter) 128px; }
  .footer-heading { margin-top: 80px; }
  .footer-bottom { margin-top: 112px; }
  .footer-contact { gap: 12px 28px; }
  .pill-row { gap: 12px; }
}
@media (min-width: 641px) {
  .cards { gap: 28px; }
  .card { padding: 36px 32px; }
  .card-text { line-height: 1.6; margin-top: 12px; }
  .cafe-row { padding-top: 20px; padding-bottom: 20px; }
  .footer-contact { gap: 8px 32px; }
}

/* v67: phone rhythm from her astapable reference: big empty gaps between blocks, quiet small headings, tight tile grid */
@media (max-width: 640px) {
  .about-page .about { padding-top: 150px; padding-bottom: 180px; }
  .toolkit { margin-top: 150px; }
  .toolkit-title { font-size: 24px; color: var(--muted); letter-spacing: -0.01em; margin-bottom: 60px; }
  .tk-row { --u: 60px; gap: 13px; padding-top: 0; grid-template-columns: repeat(4, var(--u)); }
  .tk-label { font-size: 13px; padding: 6px 10px; bottom: calc(100% + 6px); }
  .about-copy { line-height: 1.5; }

  .hero { padding: 128px var(--gutter) 128px; }
  .projects { padding: 140px var(--gutter) 160px; }
  .projects-head { margin-bottom: 88px; }
  .project-list { gap: 96px; }
  .quests { padding: 64px var(--gutter) 160px; }
  .cards { margin-top: 88px; gap: 20px; }
  .cafes { padding: 64px var(--gutter) 160px; }
  .cafes-layout { margin-top: 64px; gap: 40px; }
  .footer { padding: 120px var(--gutter) 140px; }
  .footer-heading { margin-top: 96px; }
  .footer-bottom { margin-top: 140px; }
}

/* v68: even, proportionate gaps between home sections on phone (~96px rhythm) */
@media (max-width: 640px) {
  .hero { padding-top: 112px; padding-bottom: 96px; }
  .projects { padding: 96px var(--gutter) 40px; }
  .projects-head { margin-bottom: 56px; }
  .projects-head .note { margin-bottom: 56px; }
  .project-list { gap: 0; }
  .quests { padding: 0 var(--gutter) 96px; }
  .cards { margin-top: 56px; }
  .cafes { padding: 0 var(--gutter) 96px; }
  .footer { padding: 72px var(--gutter) 128px; }
  .footer-heading { margin-top: 72px; }
  .footer-bottom { margin-top: 88px; }
}

/* v69: desktop toolkit sized and spaced like her astapable reference (44px tiles, 12px gaps, quiet heading, big gaps) */
@media (min-width: 641px) {
  .about-page .about { padding-top: 170px; padding-bottom: 200px; }
  .about-copy { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.4; }
  .toolkit { margin-top: 130px; }
  .toolkit-title { font-size: 24px; color: var(--muted); letter-spacing: -0.01em; margin-bottom: 72px; }
  .tk-row { --u: 44px; gap: 12px; height: calc(var(--u) * 2.4); }
  .tk-item.is-active { --k: 1.7; }
  .tk-item.is-near1 { --k: 1.3; }
  .tk-item.is-near2 { --k: 1.1; }
  .tk-label { font-size: 13px; padding: 6px 10px; bottom: calc(100% + 8px); }
}
