/* Axiomotto — a world of full-screen cards. Neutral grays for the story, each project in its own colors.
   Display: Archivo, condensed and light, to sit with the wordmark. Body: Inter. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --W: 100vw; --H: 100vh; --G: 64px;
  --void: #0b0b0b; --cur-fg: #141414; --cur-bg: #ecebe8;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(22px, 5.2vw, 88px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--void); overscroll-behavior: none; }
body { font: 400 16px/1.55 var(--body); color: #141414; -webkit-font-smoothing: antialiased; touch-action: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ac, #141414); outline-offset: 3px; }

/* ---------- the world ---------- */
.wall-canvas { position: absolute; left: 0; top: 0; display: none; pointer-events: none; }
.world.far .wall-canvas { display: block; }
.world.far .tile { display: none; }
/* The wall: plain tiles the camera rides past. Same size and inset as the cards, only a color and a small number. */
.tile { position: absolute; width: var(--W); height: var(--H); left: calc(var(--x) * (var(--W) + var(--G))); top: calc(var(--y) * (var(--H) + var(--G)));
  padding: 10px; contain: strict; pointer-events: none; }
.tile::before { content: ""; position: absolute; inset: var(--frame); border-radius: 22px; background: var(--wv, var(--t)); }
.tile span { position: absolute; left: calc(var(--frame) + var(--pad)); bottom: calc(var(--frame) + var(--pad)); font: 500 13px/1 var(--display); letter-spacing: .2em; color: #fff; mix-blend-mode: difference; opacity: .28; }
.viewport { position: fixed; inset: 0; overflow: hidden; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.paths { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.paths path { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 6; stroke-dasharray: 2 22; stroke-linecap: round; }

.card { position: absolute; width: var(--W); height: var(--H);
  left: calc(var(--x) * (var(--W) + var(--G))); top: calc(var(--y) * (var(--H) + var(--G)));
  padding: 10px; color: var(--fg); }
.card-in { position: relative; width: 100%; height: 100%; border-radius: 22px; background: var(--bg); overflow: hidden;
  padding: calc(var(--pad) + 34px) calc(var(--pad) + 48px) calc(var(--pad) + 44px); display: flex; flex-direction: column; justify-content: center; }
.card:not(.on) .card-in * { transition: none; }
.card { contain: strict; }
/* In flight, every card except the two ends swaps to a light stand-in, so the zoomed-out world draws fast. */
.poster { display: none; position: absolute; inset: 10px; border-radius: 22px; background: var(--bg); color: var(--fg); overflow: hidden; }
.poster img { position: absolute; right: 7%; top: 14%; width: 52%; height: 72%; object-fit: cover; border-radius: 14px; }
.poster span { position: absolute; left: 7%; bottom: 12%; font: 300 clamp(3rem, 8vw, 9rem)/.9 var(--display); font-stretch: 72%; max-width: 48%; }
.k-proj .poster img { left: 14%; right: 14%; width: auto; top: 16%; height: 64%; }
.k-proj .poster span { font-size: clamp(1.6rem, 3vw, 3rem); left: 14%; bottom: 8%; top: auto; }
.world.flying .card:not(.end) > .poster { display: block; }
.world.flying .card:not(.end) > .card-in { content-visibility: hidden; visibility: hidden; }
.world.flying .gos, body.moving .hint { visibility: hidden; }

/* ---------- type ---------- */
.display { font: 300 clamp(2.4rem, 6.4vw, 6.6rem)/.96 var(--display); font-stretch: 72%; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2.display { font-size: clamp(2.1rem, 5vw, 5rem); }
.eyebrow { font: 500 12px/1.2 var(--display); font-stretch: 100%; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 22px; opacity: .9; display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow span { opacity: .6; }
.sub { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; max-width: 34ch; margin: 22px 0 0; opacity: .82; text-wrap: pretty; }
.label { font: 500 11px/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; opacity: .6; margin: 0 0 12px; }
.links { display: flex; gap: 22px; flex-wrap: wrap; margin: 34px 0 0; }
.links a { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.links a:hover { color: var(--ac); }

/* ---------- fixed chrome: wordmark, map tab ---------- */
.home { position: fixed; z-index: 30; left: calc(var(--frame) + var(--pad)); top: calc(var(--frame) + clamp(18px, 3vw, 36px)); color: var(--cur-fg); line-height: 0; transition: color .5s ease; }
.wm { width: clamp(118px, 11vw, 168px); height: auto; }
.home:hover { opacity: .7; }

.map-tab { position: fixed; z-index: 30; right: calc(var(--frame) + var(--pad)); top: calc(var(--frame) + clamp(12px, 2.4vw, 28px)); display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 16px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--cur-fg) 92%, transparent); color: var(--cur-bg);
  cursor: pointer; transition: background .5s ease, color .5s ease, padding .25s var(--ease); }
.map-tab:hover { gap: 16px; }
.mt-n { font: 500 12px/1 var(--display); letter-spacing: .08em; }
.mt-name { font: 500 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-n { opacity: .6; }
.mt-ic { display: grid; grid-template-columns: 6px 6px; gap: 3px; }
.mt-ic i { width: 6px; height: 6px; background: currentColor; border-radius: 1.5px; opacity: .85; }

.map { position: fixed; z-index: 40; top: 10px; right: 10px; bottom: 10px; width: min(580px, calc(100vw - 20px)); background: #0f0f0f; color: #eee; border-radius: 22px;
  padding: 24px 26px 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: -30px 0 80px rgba(0,0,0,.45);
  transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .72s cubic-bezier(.16,1,.3,1), opacity .5s ease; overflow: hidden; }
.map.in { transform: none; opacity: 1; }
.map[hidden] { display: flex; transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .45s cubic-bezier(.7,0,.84,0), opacity .35s ease .1s, visibility 0s .45s; }
.map-head, .map-list { opacity: 0; transform: translateY(8px); transition: opacity .5s ease .18s, transform .6s cubic-bezier(.16,1,.3,1) .18s; }
.map.in .map-head, .map.in .map-list { opacity: 1; transform: none; }
.map-list { transition-delay: .32s; }
.map-list details > ul { overflow: hidden; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.map-head p { margin: 0; font: 500 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; }
.map-head span { opacity: .5; margin-left: 8px; }
.map-x, .reader-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.mini-wrap { overflow: visible; margin: 0; padding: 4px 0 6px; scrollbar-width: thin; touch-action: pan-x; flex: none; }
.mini { position: relative; flex: none; margin: 0 auto; }
.mini i, .mini button { opacity: 0; scale: .4; transition: opacity .4s ease, scale .5s cubic-bezier(.16,1,.3,1), translate .35s cubic-bezier(.2,.7,.2,1); }
.map.in .mini i { opacity: .5; scale: 1; }
.map.in .mini button { opacity: 1; scale: 1; }
.mini i { position: absolute; border-radius: 2px; background: var(--t); }
.mini button { position: absolute; padding: 0; border: 0; border-radius: 3px; cursor: pointer; background: var(--b) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: transform .2s var(--ease), box-shadow .2s; }
.mini button img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.mini button b { position: absolute; left: 7px; bottom: 6px; right: 6px; font: 500 10px/1.15 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--f); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mini button:focus-visible { z-index: 2; box-shadow: 0 0 0 2px #fff; }
/* Rest on a real card and it opens up to show its name, inside the card, in the card's own colors. */
.mini button::before { content: attr(data-name); position: absolute; left: 50%; top: 50%; z-index: 6; padding: 9px 13px; border-radius: 7px; background: var(--b); color: var(--f);
  font: 500 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .2s ease, transform .35s cubic-bezier(.16,1,.3,1); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.18); }
.mini button.named { z-index: 6; }
.mini button.named::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mini button.cur { box-shadow: 0 0 0 2px #0f0f0f, 0 0 0 4px #fff; z-index: 1; }
.mini button.cur::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: pulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.mini-tip { position: absolute; z-index: 3; pointer-events: none; font-size: 12px; background: #fff; color: #111; padding: 4px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -115%); }
.map-list { overflow: auto; min-height: 0; display: grid; gap: 0; align-items: start; scrollbar-width: thin; }
.map-list details { border-top: 1px solid rgba(255,255,255,.14); }
.map-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 500 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; }
.map-list summary::-webkit-details-marker { display: none; }
.map-list summary::after { content: "+"; font: 300 22px/1 var(--display); transition: transform .25s var(--ease); }
.map-list details[open] summary::after { transform: rotate(45deg); }
.map-list summary span { opacity: .5; margin-left: 8px; letter-spacing: .1em; }
.map-list ul { list-style: none; margin: 0 0 10px; padding: 0; }
.map-list .ml-work { columns: 2; column-gap: 24px; }
.map-list li { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.07); break-inside: avoid; }
.map-list a { text-decoration: none; padding: 8px 0; opacity: .85; }
.map-list .ml-main { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.map-list .ml-main i { width: 12px; height: 12px; border-radius: 3px; background: var(--b); flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.map-list .ml-sub { font-size: 12px; opacity: .5; padding: 8px 2px; }
.map-list a:hover, .map-list a[aria-current] { color: #fff; opacity: 1; }
.map-list a[aria-current] .ml-t { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) { .map-list .ml-work { columns: 1; } }

/* ---------- arrows ---------- */
.gos a { position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.go-c { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ac); color: var(--bg); flex: none;
  transition: transform .25s var(--ease); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.go-c svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.go-l { font: 500 11px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.go-right { right: 30px; top: 50%; transform: translateY(-50%); flex-direction: column; align-items: flex-end; gap: 10px; }
.go-left { left: 30px; top: 50%; transform: translateY(-50%); flex-direction: column; align-items: flex-start; gap: 10px; }
.go-down { bottom: 30px; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; gap: 8px; }
.go-up { top: 26px; left: 50%; transform: translateX(-50%); flex-direction: column; gap: 8px; }
.go-left .go-l, .go-up .go-l { opacity: .6; }
.go-right:hover .go-c { transform: translateX(4px); } .go-left:hover .go-c { transform: translateX(-4px); }
.go-down:hover .go-c { transform: translateY(4px); } .go-up:hover .go-c { transform: translateY(-4px); }
.go-left .go-c, .go-up .go-c { width: 44px; height: 44px; background: transparent; color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); box-shadow: none; }
/* Arrows breathe on the current card until it's left */
.card.on .go-right .go-c, .card.on .go-down .go-c { animation: nudge 3.4s ease-in-out 1.6s infinite; }
.card.on .go-down .go-c { animation-name: nudgeY; }
@keyframes nudge { 0%, 40%, 100% { transform: translateX(0); } 15% { transform: translateX(6px); } 28% { transform: translateX(0); } }
@keyframes nudgeY { 0%, 40%, 100% { transform: translateY(0); } 15% { transform: translateY(6px); } 28% { transform: translateY(0); } }

/* ---------- content arrives on the current card ---------- */
.card .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); }
.card.on .rise { opacity: 1; transform: none; }
.card.on .rise:nth-child(2) { transition-delay: .08s; } .card.on .rise:nth-child(3) { transition-delay: .16s; }
.card.on .rise:nth-child(4) { transition-delay: .24s; } .card.on .rise:nth-child(5) { transition-delay: .32s; }
.card.on .rise:nth-child(6) { transition-delay: .40s; }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.intro .display { font-size: clamp(2.8rem, 7.6vw, 8rem); }
.intro-photo { margin: 0; justify-self: end; width: min(380px, 100%); }
.intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; filter: grayscale(1) contrast(1.05); }

/* ---------- timeline ---------- */
.time { max-width: 760px; }
.time-mark { display: flex; align-items: center; gap: 18px; }
.time-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--fg) 12%, transparent); }
.time-years { margin: 0; font: 300 clamp(2.6rem, min(7vw, 11vh), 7rem)/.9 var(--display); font-stretch: 72%; letter-spacing: -0.02em; }
.time-org { font: 500 14px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 0; opacity: .7; }
.time-text { font-size: clamp(1.05rem, 1.35vw, 1.25rem); max-width: 46ch; margin: 14px 0 0; text-wrap: pretty; }
.ph { display: inline-block; margin: 28px 0 0; padding: 6px 12px; border: 1px dashed currentColor; border-radius: 999px; font-size: 12px; opacity: .55; }
.k-time .card-in::before { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 1px; background: color-mix(in srgb, var(--fg) 30%, transparent); }
.time-top { position: absolute; left: calc(var(--pad) + 48px); right: calc(var(--pad) + 48px); bottom: calc(54% + 30px); }
.time-mark { position: absolute; left: calc(var(--pad) + 48px); top: 46%; transform: translateY(-50%); margin: 0; }
.time-bot { position: absolute; left: calc(var(--pad) + 48px); right: calc(var(--pad) + 100px); top: calc(46% + 44px); }

/* ---------- lists: what I do, how I think, notes ---------- */
.list-card { width: 100%; max-width: 1180px; margin: 0 auto; }
.do-list, .think-list, .note-list { list-style: none; margin: clamp(26px, 4vh, 48px) 0 0; padding: 0; }
.do-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.do-list li { padding: 22px 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.do-list b { font: 400 clamp(1.15rem, 1.6vw, 1.5rem)/1.15 var(--display); font-stretch: 80%; }
.do-list span { font-size: 14px; opacity: .7; }
.think-list { counter-reset: t; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vh, 44px) clamp(28px, 4vw, 70px); }
.think-list li { counter-increment: t; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; }
.think-list li::before { content: "0" counter(t); grid-row: span 2; font: 300 clamp(1.4rem, 2.2vw, 2rem)/1 var(--display); opacity: .45; }
.think-list b { font: 300 clamp(1.6rem, 3.2vw, 3rem)/1.02 var(--display); font-stretch: 72%; letter-spacing: -0.01em; }
.think-list span { opacity: .7; max-width: 40ch; }
.note-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 28px; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.note-list button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); padding: 14px 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.note-list b { font: 400 clamp(1rem, 1.25vw, 1.15rem)/1.25 var(--display); font-stretch: 85%; }
.note-list span { font-size: 13px; opacity: .55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-list button:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- kind words ---------- */
.words { max-width: 1100px; margin: 0 auto; text-align: center; }
.words .eyebrow { justify-content: center; }
.qs { position: relative; min-height: 2.6em; }
.qt { margin: 0; }
.qt blockquote { margin: 0; font: 300 clamp(1.9rem, 4.2vw, 4.2rem)/1.06 var(--display); font-stretch: 74%; text-wrap: balance; }
.qt blockquote::before { content: "“"; } .qt blockquote::after { content: "”"; }
.qt figcaption { margin-top: 26px; font-size: 15px; opacity: .7; } .qt figcaption b { opacity: 1; font-weight: 600; margin-right: 6px; }
.qt.in { animation: qIn .7s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(12px); } }
.q-dots { display: flex; gap: 10px; justify-content: center; margin-top: 34px; }
.q-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; opacity: .5; }
.q-dots button[aria-current] { background: currentColor; opacity: 1; }

/* ---------- the work grid ---------- */
.work-card { width: 100%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(18px, 3vh, 34px); height: 100%; justify-content: center; }
.work-head .display { max-width: 18ch; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.work-grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--pb); text-decoration: none; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; opacity: .92; }
.work-grid span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font: 500 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.work-grid a:hover img { transform: scale(1.06); opacity: 1; }

/* ---------- project: one card, the work first ---------- */
/* Name and line small at the top, the picture as big as the card allows, one control pill underneath. */
.k-proj .card-in { padding: calc(var(--pad) + 30px) calc(var(--pad) + 96px) 18px; justify-content: flex-start; }
.proj { height: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2vh, 20px); }
.proj-top { align-self: stretch; display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; }
.proj-top .eyebrow { margin: 0; order: 2; }
.proj-name { margin: 0; font: 400 clamp(1.3rem, 2.1vw, 1.9rem)/1.1 var(--display); font-stretch: 78%; letter-spacing: -0.005em; }
.proj-name span { font: 400 clamp(.95rem, 1.15vw, 1.08rem)/1.3 var(--body); opacity: .66; margin-left: 12px; letter-spacing: 0; }
.k-proj .ph-stage { flex: 1; min-height: 0; width: 100%; height: auto; display: grid; }
.k-proj .ph-item { align-items: center; }
.k-proj .ph-item img, .k-proj .ph-item video { border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; flex: none;
  background: color-mix(in srgb, var(--fg) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
.pill button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--fg); transition: background .2s, opacity .2s; }
.pill button:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.pill button:disabled { opacity: .28; cursor: default; }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill .ph-count { min-width: 84px; }
.pill-story { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 0 18px 0 14px; height: 42px; border-radius: 999px; text-decoration: none;
  background: var(--ac); color: var(--bg); font: 500 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; transition: transform .25s var(--ease); }
.pill-story svg { width: 16px; height: 16px; stroke-width: 2; }
.pill-story:hover { transform: translateY(2px); }
.card.on .pill-story svg { animation: nudgeY 3.4s ease-in-out 1.6s infinite; }

/* ---------- project: story ---------- */
.story { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(30px, 6vw, 110px); align-items: end; max-width: 1240px; margin: 0 auto; width: 100%; }
.story-about { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.5; max-width: 42ch; margin: 26px 0 0; text-wrap: pretty; }
.chips { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); border-radius: 999px; font-size: 14px; }
.story-hl { font: 300 clamp(1.4rem, 2.2vw, 2.1rem)/1.12 var(--display); font-stretch: 78%; margin: 0; color: var(--ac); text-wrap: balance; }

/* ---------- project: pictures ---------- */
/* The picture sits right on top of its controls: the stage keeps one height, the image rests on its floor. */
.k-pics .card-in { padding: calc(var(--pad) + 22px) calc(var(--pad) + 130px) 18px calc(var(--pad) + 110px); justify-content: center; }
.pics { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; --strip: 0px; }
.pics.has-strip { --strip: 76px; }
.pics-top { margin: 0; align-self: flex-start; }
.ph-stage { position: relative; width: 100%; height: calc(var(--H) - 20px - var(--pad) * 2 - 40px - 150px - var(--strip)); display: grid; }
.ph-item { grid-area: 1 / 1; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.ph-item[hidden] { display: none; }
.ph-item img, .ph-item video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; cursor: pointer; }
.ph-item.in { animation: phIn .4s var(--ease); }
@keyframes phIn { from { opacity: 0; transform: translateY(6px); } }
.ph-ui { display: flex; align-items: center; justify-content: center; gap: 18px; }
.ph-ui button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); background: none; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .2s, opacity .2s; }
.ph-ui button:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.ph-ui button:disabled { opacity: .3; cursor: default; }
.ph-ui svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-count { margin: 0; min-width: 92px; display: flex; align-items: baseline; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; }
.ph-count b { font: 300 30px/1 var(--display); font-stretch: 75%; color: var(--ac); }
.ph-count span { font: 500 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.ph-strip { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; touch-action: pan-x; scroll-behavior: smooth; }
.ph-strip button { flex: none; width: 84px; height: 56px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--fg) 10%, transparent);
  opacity: .5; transition: opacity .2s, box-shadow .2s; }
.ph-strip button:hover { opacity: .85; }
.ph-strip button[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ac); }
.ph-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; max-width: 1180px; margin: 0 auto; width: 100%; }
.contact .display { font-size: clamp(3rem, 8vw, 8.4rem); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 500 11px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.form input, .form textarea { font: 400 16px/1.4 var(--body); text-transform: none; letter-spacing: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); background: rgba(255,255,255,.6); color: #141414; resize: none; }
.form button { justify-self: start; padding: 13px 28px; border-radius: 999px; border: 0; background: var(--fg); color: var(--bg); font-weight: 600; cursor: pointer; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; }
.hp { position: absolute; left: -9999px; }

/* ---------- reader ---------- */
.reader { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 10px; animation: fade .3s ease; }
.reader[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.reader-in { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 20px); overflow: auto; background: #f4f3f0; color: #141414; border-radius: 22px; padding: clamp(28px, 5vw, 64px); touch-action: pan-y; }
.reader-x { position: sticky; top: 0; float: right; border-color: rgba(0,0,0,.2); background: #f4f3f0; }
.reader h2 { font: 300 clamp(2rem, 4vw, 3.2rem)/1 var(--display); font-stretch: 74%; margin: 0; text-wrap: balance; }
.reader-dek { font-size: 1.15rem; opacity: .7; margin: 16px 0 28px; }
.reader-body p { font-size: 17px; line-height: 1.7; margin: 0 0 1.1em; }

/* ---------- hint ---------- */
.hint { position: fixed; z-index: 30; left: calc(var(--frame) + var(--pad)); bottom: 26px; margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(20,20,20,.86); color: #fff; font-size: 13px; white-space: nowrap;
  opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hint.show { opacity: 1; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .do-list { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .note-list { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px), (max-height: 560px) {
  :root { --pad: 18px; }
  .card { padding: 6px; }
  .card-in { border-radius: 16px; padding: 74px 20px 100px; justify-content: flex-start; overflow-y: auto; touch-action: pan-y; }
  .k-proj .card-in { padding: 70px 14px 96px; }
  .proj-name span { display: block; margin: 4px 0 0; }
  .pill .ph-count { min-width: 64px; }
  .pill-story { padding: 0 14px; }
  .go-l { display: none; }
  .go-c { width: 50px; height: 50px; }
  .go-left .go-c, .go-up .go-c { width: 40px; height: 40px; }
  .go-right { right: 14px; top: auto; bottom: 22px; transform: none; }
  .go-left { left: 14px; top: auto; bottom: 22px; transform: none; }
  .go-down { bottom: 22px; }
  .go-up { top: auto; bottom: 22px; left: calc(50% - 76px); transform: none; }
  .k-story .go-up { left: 14px; right: auto; }
  .intro, .hub, .story, .contact { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .intro-photo { justify-self: start; width: 150px; order: -1; }
  .hub-img { height: 38vh; order: -1; }
  .display.hub-name { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .do-list { grid-template-columns: 1fr 1fr; }
  .do-list li { padding: 14px 10px 0 0; }
  .think-list { grid-template-columns: 1fr; }
  .note-list { grid-template-columns: 1fr; }
  .note-list span { display: none; }
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .work-grid span { font-size: 10px; letter-spacing: .06em; padding: 16px 6px 6px; }
  .ph-stage { height: calc(var(--H) - 330px - var(--strip)); }
  .ph-strip button { width: 64px; height: 44px; }
  .mt-name { display: none; }
  .hint { left: 20px; right: 20px; bottom: 86px; white-space: normal; width: max-content; max-width: calc(100vw - 40px); text-align: center; }
  .home { left: 26px; top: 28px; }
  .k-time .card-in::before, .time-mark { top: 210px; }
  .time-top { left: 20px; right: 20px; bottom: auto; top: 80px; }
  .time-mark { left: 20px; }
  .time-bot { left: 20px; right: 20px; top: 250px; }
  .map-tab { top: 22px; right: 16px; bottom: auto; padding: 8px 12px; }
  .hint { top: auto; bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .card .rise, .hub-img img { transition: none; transform: none; opacity: 1; }
  .card.on .go-c { animation: none !important; }
}

.hub-img.fit img { object-fit: contain; }

/* ================= round 6 ================= */

/* Logo: bottom left, a signature. (Phones keep it top left, clear of the arrows.) */
.home { top: auto; bottom: calc(var(--frame) + clamp(18px, 2.6vw, 30px)); left: calc(var(--frame) + var(--pad)); }
.wm { width: clamp(108px, 9vw, 150px); }
.hint { bottom: calc(var(--frame) + clamp(18px, 2.6vw, 30px) + 34px); }

/* Intro: the wordmark builds letter by letter in the middle, then glides to the corner. */
.intro-veil { position: fixed; inset: 0; z-index: 60; background: #ecebe8; pointer-events: none; transition: opacity .7s ease; }
.intro-veil.out { opacity: 0; }
.intro-mark { position: fixed; z-index: 61; left: 50%; top: 50%; width: min(560px, 70vw); color: #141414; transform: translate(-50%, -50%); transform-origin: 0 0; pointer-events: none; }
.intro-mark .wm { width: 100%; height: auto; display: block; }
.intro-mark .wl { opacity: 0; transform: translateY(26%); transform-box: fill-box; transition: opacity .45s ease, transform .6s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 85ms); }
.intro-mark.built .wl { opacity: 1; transform: none; }
body.intro-on .home, body.intro-on .map-tab { opacity: 0; }
.home, .map-tab { transition: opacity .4s ease; }

/* Side arrows on project cards: just the arrow. */
.k-proj .go-left .go-l, .k-proj .go-right .go-l { display: none; }

/* Project card: one 16:9 frame, centered both ways, the pill right under it. */
.k-proj .card-in { padding: calc(var(--pad) + 30px) calc(var(--pad) + 90px) calc(var(--pad) + 10px); justify-content: center; }
.proj { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 0; }
.proj-top { align-self: start; }
.proj-body { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.frame { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((var(--H) - var(--pad) * 2 - 230px) * 16 / 9)); border-radius: 14px; overflow: hidden;
  background: color-mix(in srgb, var(--fg) 7%, transparent); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.k-proj .frame .ph-stage { position: absolute; inset: 0; width: 100%; height: 100%; flex: none; display: block; }
.k-proj .frame .ph-item { position: absolute; inset: 0; display: block; }
.k-proj .frame .ph-item[hidden] { display: none; }
.k-proj .frame .ph-item img, .k-proj .frame .ph-item video { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; box-shadow: none; }
.pill { padding: 7px; gap: 6px; }
.pill button { width: 52px; height: 52px; }
.pill svg { width: 20px; height: 20px; }
.pill .ph-count { min-width: 104px; }
.pill .ph-count b { font-size: 34px; }
.pill .ph-count span { font-size: 12px; }
.pill-story { height: 52px; padding: 0 22px 0 18px; font-size: 12px; margin-left: 8px; }

/* Story card: title up top and smaller; overview, challenge, solution; the pills read clearly. */
.k-story .card-in { justify-content: flex-start; padding-top: calc(var(--pad) + 44px); }
.story { display: flex; flex-direction: column; gap: clamp(26px, 5vh, 56px); max-width: 1240px; margin: 0 auto; width: 100%; align-items: stretch; }
.story-head .eyebrow { margin-bottom: 14px; }
.story-title { margin: 0; font: 300 clamp(1.9rem, 3.4vw, 3.3rem)/1 var(--display); font-stretch: 74%; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance; }
.story-cols { display: grid; grid-template-columns: repeat(3, 1fr) minmax(220px, .95fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.ocs h3 { margin: 0 0 12px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); font: 500 12px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.ocs p { margin: 0; font-size: clamp(.98rem, 1.12vw, 1.08rem); line-height: 1.55; text-wrap: pretty; }
.story-side { padding: 18px 20px 20px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.story-side .label { opacity: .85; }
.chips li { border-color: color-mix(in srgb, var(--fg) 62%, transparent); background: color-mix(in srgb, var(--fg) 10%, transparent); font-weight: 500; }
.story-hl { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }

/* Brands card: the logos, one color, on a quiet grid. */
.brands { width: 100%; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(22px, 4vh, 44px); }
.brands-head .display { font-size: clamp(2rem, 4.4vw, 4.4rem); }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-left: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.logo-wall li { display: grid; place-items: center; aspect-ratio: 1.35; padding: 16%; border-right: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.logo { display: block; width: 100%; max-height: 100%; aspect-ratio: var(--ar); background: var(--fg); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; opacity: .88; transition: opacity .25s, transform .35s var(--ease); }
.logo-wall li:hover .logo { opacity: 1; transform: scale(1.06); }

/* Map: two big tabs, one list at a time. */
.map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-tabs button { text-align: left; padding: 16px 18px 15px; border-radius: 14px; border: 0; cursor: pointer; background: rgba(255,255,255,.05); color: #eee;
  display: flex; flex-direction: column; gap: 8px; transition: background .3s, color .3s; }
.map-tabs button b { font: 300 clamp(1.5rem, 2.2vw, 2rem)/1 var(--display); font-stretch: 76%; letter-spacing: -0.01em; }
.map-tabs button span { font: 500 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.map-tabs button:hover { background: rgba(255,255,255,.1); }
.map-tabs button[aria-selected="true"] { background: #eee; color: #111; }
.map-panes { position: relative; min-height: 0; overflow: hidden; }
.map-pane { list-style: none; margin: 0; padding: 0; }
.map-pane[hidden] { display: none; }
.map-pane.in { animation: paneIn .45s cubic-bezier(.16,1,.3,1); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }
.map-pane.ml-work { columns: 2; column-gap: 24px; }
.map-list { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }

/* Mini wall: only the plain tiles lean away; the real cards hold still and grow a touch under the mouse. */
.mini button { transition: opacity .4s ease, scale .3s cubic-bezier(.16,1,.3,1), box-shadow .2s; }
.mini button:hover { scale: 1.35; z-index: 4; }
.mini button.edge-l::before { left: 0; transform: translate(0, -50%) scale(.3); transform-origin: left center; }
.mini button.edge-r::before { left: auto; right: 0; transform: translate(0, -50%) scale(.3); transform-origin: right center; }
.mini button.edge-l.named::before, .mini button.edge-r.named::before { transform: translate(0, -50%) scale(.74); }
.mini button.named::before { transform: translate(-50%, -50%) scale(.74); }

@media (max-width: 760px), (max-height: 560px) {
  .home { top: 26px; bottom: auto; left: 22px; }
  .wm { width: 112px; }
  .k-proj .card-in { padding: 70px 14px 96px; }
  .frame { width: 100%; }
  .pill button { width: 44px; height: 44px; }
  .pill .ph-count { min-width: 70px; } .pill .ph-count b { font-size: 26px; }
  .pill-story { height: 44px; padding: 0 14px; }
  .story-cols { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .k-story .card-in { padding-top: 74px; }
}
@media (max-width: 1100px) and (min-width: 761px) { .story-cols { grid-template-columns: 1fr 1fr; } .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .intro-veil, .intro-mark { display: none; } }
.brands { max-width: min(1060px, 100%); }
.logo-wall { width: 100%; }
.logo-wall li { min-width: 0; aspect-ratio: 1.25; padding: 18%; }
.logo-wall li { aspect-ratio: 1.25; overflow: hidden; }
.logo { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }

/* ================= round 7 ================= */
/* Pictures: near-16:9 photos fill the frame; tall photos and screenshots sit whole over a soft blur of themselves. */
.k-proj .frame .ph-item.fill img { object-fit: cover; }
.k-proj .frame .ph-item.pad { overflow: hidden; }
.k-proj .frame .ph-item.pad::before { content: ""; position: absolute; inset: -40px; background: var(--img, none) center / cover no-repeat; filter: blur(34px) saturate(1.1) brightness(.78); }
.k-proj .frame .ph-item.pad img { position: relative; }

/* Logo: the same distance from the left edge and the bottom edge. */
.home { left: calc(var(--frame) + var(--pad)); bottom: calc(var(--frame) + var(--pad)); }
.hint { bottom: calc(var(--frame) + var(--pad) + 40px); left: calc(var(--frame) + var(--pad)); }

/* Map panel: more room at the sides; tabs Story, Work, Contact; two even columns. */
.map { width: min(600px, calc(100vw - 20px)); padding: 26px 34px 22px; }
.map-tabs { grid-template-columns: repeat(3, 1fr); }
.map-tabs button { padding: 15px 16px 14px; }
.map-tabs button b { font-size: clamp(1.45rem, 2vw, 1.85rem); }
.map-panes { padding: 0 6px; }
.map-pane.two, .map-pane.ml-work { columns: 2; column-gap: 34px; }
.map-pane li { padding: 2px 0; }
.map-list a { padding: 11px 0; }
.map-list .ml-main i.ext { background: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); border-radius: 50%; }
.ml-note { margin-left: auto; font-size: 12px; opacity: .45; }

/* Mini wall: the real cards breathe with a soft glow that sweeps across them, and lift clearly under the mouse. */
@keyframes cardGlow { 0%, 82%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); filter: none; }
  88% { box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 18px 4px rgba(255,255,255,.35); filter: brightness(1.25); } }
.map.in .mini button:not(.cur) { animation: cardGlow 6.5s ease-in-out infinite; animation-delay: calc(1.4s + var(--g, 0s)); }
.mini button:hover, .mini button.named { scale: 1.55; z-index: 5; animation: none !important;
  box-shadow: 0 0 0 2px #fff, 0 0 22px 6px rgba(255,255,255,.4), 0 10px 26px rgba(0,0,0,.6); filter: brightness(1.15); }
.mini button { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .map.in .mini button { animation: none; } }
@media (max-width: 760px), (max-height: 560px) { .home { left: 22px; bottom: auto; top: 26px; } .map { padding: 22px 20px 18px; } .map-pane.two { column-gap: 18px; } }
.k-proj .frame .ph-item video { object-fit: cover; }

/* ================= round 8 ================= */
/* Signature patterns: draw themselves in, in the project's accent, then settle to a faint texture. The picture follows. */
.pat { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; color: var(--ac); }
.k-proj .proj { position: relative; z-index: 1; }
.pat path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.card.on .pat path { animation: patDraw 1.7s cubic-bezier(.35,.1,.2,1) forwards; animation-delay: calc(var(--k, 0) * 1.1s); }
.card.on svg.pat { animation: patSettle 1.4s ease 2.5s forwards; }
@keyframes patDraw { to { stroke-dashoffset: 0; } }
@keyframes patSettle { to { color: color-mix(in srgb, var(--fg) 16%, transparent); } }
.pat-mask { background: var(--ac); -webkit-mask: var(--mask) center / cover no-repeat; mask: var(--mask) center / cover no-repeat; clip-path: circle(0% at 50% 55%); opacity: .95; }
.card.on .pat-mask { animation: maskIn 2s cubic-bezier(.3,.1,.2,1) .1s forwards, maskSettle 1.4s ease 2.5s forwards; }
@keyframes maskIn { to { clip-path: circle(80% at 50% 55%); } }
@keyframes maskSettle { to { background: color-mix(in srgb, var(--fg) 14%, transparent); } }
.k-proj .frame { opacity: 0; transform: translateY(16px) scale(.985); }
.k-proj.on .frame { animation: frameIn .9s cubic-bezier(.16,1,.3,1) .7s forwards; }
@keyframes frameIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pat path { stroke-dashoffset: 0; } .card.on .pat path, .card.on svg.pat, .card.on .pat-mask { animation: none; }
  svg.pat { color: color-mix(in srgb, var(--fg) 16%, transparent); } .pat-mask { clip-path: none; background: color-mix(in srgb, var(--fg) 14%, transparent); }
  .k-proj .frame { opacity: 1; transform: none; } .k-proj.on .frame { animation: none; }
}

/* Map: tabs and lists span the full width of the wall above them. */
.map-list { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.map-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.map-panes { padding: 0; width: 100%; }
.map-pane.two { width: 100%; columns: 2; column-gap: 48px; }
/* A quiet sign of life: now and then one real card glows faintly. */
.map.in .mini button:not(.cur) { animation: none; }
.mini button.blink { box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 0 14px 2px rgba(255,255,255,.18); transition: box-shadow 1.2s ease, filter 1.2s ease; filter: brightness(1.12); }
.mini button { transition: opacity .4s ease, scale .3s cubic-bezier(.16,1,.3,1), box-shadow 1.6s ease, filter 1.6s ease; }

/* Field notes: a reading panel that slides in from the left, the twin of the map. */
.reader { position: fixed; inset: 0; z-index: 50; display: block; padding: 0; background: none; animation: none; pointer-events: none; }
.reader-dim { position: absolute; inset: 0; background: rgba(8,8,8,.5); opacity: 0; transition: opacity .5s ease; pointer-events: auto; }
.reader.in .reader-dim { opacity: 1; }
.reader-in { position: absolute; top: 10px; left: 10px; bottom: 10px; width: min(760px, calc(100vw - 20px)); max-height: none; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; background: #f4f3f0; color: #141414; border-radius: 22px; box-shadow: 30px 0 80px rgba(0,0,0,.4);
  transform: translateX(calc(-100% - 30px)); transition: transform .72s cubic-bezier(.16,1,.3,1); pointer-events: auto; }
.reader.in .reader-in { transform: none; }
.reader.out .reader-in { transition: transform .45s cubic-bezier(.7,0,.84,0); }
.reader-bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: rgba(20,20,20,.08); z-index: 3; }
.reader-bar span { display: block; height: 100%; width: 0; background: #141414; }
.reader-top { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(24px, 5vw, 64px) 0; flex: none; }
.reader-top .eyebrow { margin: 0; }
.reader-x { position: static; float: none; width: 40px; height: 40px; border: 1px solid rgba(0,0,0,.18); background: none; }
.reader-scroll { flex: 1; overflow-y: auto; padding: 26px clamp(24px, 5vw, 64px) 40px; scrollbar-width: thin; overscroll-behavior: contain; }
.reader-scroll > * { opacity: 0; transform: translateY(10px); transition: opacity .6s ease .25s, transform .7s cubic-bezier(.16,1,.3,1) .25s; }
.reader.in .reader-scroll > * { opacity: 1; transform: none; }
.reader h2 { font: 300 clamp(2rem, 3.6vw, 3.2rem)/1.02 var(--display); font-stretch: 74%; margin: 0; max-width: 18ch; text-wrap: balance; }
.reader-dek { font-size: 1.18rem; line-height: 1.5; opacity: .7; margin: 18px 0 30px; max-width: 46ch; }
.reader-body { max-width: 62ch; }
.reader-body p { font-size: 17.5px; line-height: 1.75; margin: 0 0 1.15em; text-wrap: pretty; }
.reader-foot { flex: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(0,0,0,.1); }
.reader-foot button { text-align: left; padding: 16px clamp(24px, 5vw, 64px) 18px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: background .2s; }
.reader-foot button + button { text-align: right; align-items: flex-end; border-left: 1px solid rgba(0,0,0,.1); }
.reader-foot button:hover { background: rgba(0,0,0,.04); }
.reader-foot span { font: 500 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; opacity: .5; }
.reader-foot b { font: 400 15px/1.3 var(--display); font-stretch: 85%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reader[hidden] { display: none; }

/* ================= round 9 ================= */
/* The pattern draws first; the title, picture, pill and arrows arrive about two-thirds of the way through. */
.k-proj .proj-top, .k-proj .pill, .k-proj .gos { opacity: 0; }
.k-proj.on .proj-top { animation: contentIn .8s cubic-bezier(.16,1,.3,1) 1.8s forwards; }
.k-proj.on .frame { animation: frameIn 1s cubic-bezier(.16,1,.3,1) 2s forwards; }
.k-proj.on .pill { animation: contentIn .8s cubic-bezier(.16,1,.3,1) 2.3s forwards; }
.k-proj.on .gos { animation: contentIn .8s ease 2.5s forwards; }
@keyframes contentIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.k-proj .pill { transform: translateY(10px); }
.card.on svg.pat { animation: patSettle 1.4s ease 3s forwards; }
.card.on .pat-mask { animation: maskIn 2s cubic-bezier(.3,.1,.2,1) .1s forwards, maskSettle 1.4s ease 3s forwards; }
/* Article lines read as type: thicker. */
.pat path.thick { stroke-width: 5; stroke-linecap: butt; }
/* Handwriting: filled letterforms written in line by line. */
.pat path.fillp { fill: currentColor; stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
.pat g.hw { clip-path: inset(0 100% 0 0); }
.card.on .pat g.hw { animation: writeIn 1.1s cubic-bezier(.45,.05,.4,1) forwards; animation-delay: calc(var(--k) * 1.5s); }
@keyframes writeIn { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .k-proj .proj-top, .k-proj .pill, .k-proj .gos, .k-proj .frame { opacity: 1; transform: none; animation: none !important; }
  .pat g.hw { clip-path: none; }
}

/* The work card: a small label, then just the pictures. Hover washes a picture in its brand color and names it. */
.work-card { gap: 18px; }
.work-head .display { display: none; }
.work-head .eyebrow { margin: 0; }
.work-grid { gap: 12px; }
.work-grid a { aspect-ratio: 16 / 9; border-radius: 12px; }
.work-grid img { opacity: 1; }
.work-grid a::after { content: ""; position: absolute; inset: 0; background: var(--pb); opacity: 0; transition: opacity .35s ease; }
.work-grid span { inset: 0; display: grid; place-items: center; padding: 10px; background: none; z-index: 1; text-align: center;
  font: 400 clamp(1rem, 1.5vw, 1.45rem)/1.1 var(--display); font-stretch: 80%; letter-spacing: 0; text-transform: none; color: var(--pf, #fff);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease .05s, transform .4s cubic-bezier(.16,1,.3,1) .05s; }
.work-grid a:hover::after, .work-grid a:focus-visible::after { opacity: .92; }
.work-grid a:hover span, .work-grid a:focus-visible span { opacity: 1; transform: none; }
.work-grid a:hover img { transform: scale(1.04); }
@media (hover: none) { .work-grid span { opacity: 1; transform: none; place-items: end start; font-size: 11px; font-family: var(--display); letter-spacing: .06em;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.6)); color: #fff; } }

/* Field notes reader: the title runs wider. */
.reader h2 { max-width: 30ch; }

/* Colour wave: bolder, and the tiles lift as it passes. */
.tile::before { transform: scale(var(--ws, 1)); transition: none; }

/* Contact tab: a short form, Book a call, and small social icons. */
.map-contact { display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: start; }
.map-form { display: grid; gap: 10px; }
.map-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-form input, .map-form textarea { width: 100%; font: 400 15px/1.4 var(--body); color: #eee; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 11px 13px; resize: none; }
.map-form input::placeholder, .map-form textarea::placeholder { color: rgba(255,255,255,.4); }
.map-form input:focus, .map-form textarea:focus { outline: none; border-color: rgba(255,255,255,.5); }
.map-form .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.map-form button { padding: 12px 22px; border-radius: 999px; border: 0; background: #eee; color: #111; font-weight: 600; cursor: pointer; }
.map-form .book { padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); text-decoration: none; font-size: 14px; }
.map-form .book:hover { background: rgba(255,255,255,.08); }
.map-form .form-msg { margin: 0; font-size: 13px; opacity: .75; min-height: 1.2em; }
.socials { display: flex; flex-direction: column; gap: 10px; }
.socials a, .contact .socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .7; transition: opacity .2s, background .2s; }
.socials a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.contact .socials { flex-direction: row; margin-top: 22px; }
.contact .socials a { border-color: color-mix(in srgb, var(--fg) 40%, transparent); color: var(--fg); }

/* ================= round 10 ================= */
/* Homepage: the title line never splits "Principal Brand Designer". */
.intro .sub { max-width: 46ch; }
.nb { white-space: nowrap; }

/* Project pages: the title and the role line up with the edges of the pictures. */
.k-proj .proj-top { justify-self: center; width: min(100%, calc((var(--H) - var(--pad) * 2 - 230px) * 16 / 9)); }
@media (max-width: 760px), (max-height: 560px) { .k-proj .proj-top { width: 100%; } }

/* The picture pill: easier to read. */
.pill .ph-count span { font-weight: 650; opacity: .85; }
.pill-story { font-weight: 650; }

/* Top-right pill: a home link (the A and a small house), then the map. Bolder type. */
.map-bar { position: fixed; z-index: 30; right: calc(var(--frame) + var(--pad)); top: calc(var(--frame) + clamp(12px, 2.4vw, 28px)); display: flex; align-items: stretch;
  border-radius: 999px; background: color-mix(in srgb, var(--cur-fg) 92%, transparent); color: var(--cur-bg); transition: background .5s ease, color .5s ease, opacity .4s ease; }
.map-bar .map-tab { position: static; background: none; color: inherit; padding: 10px 14px 10px 14px; }
.mt-home { display: flex; align-items: center; gap: 7px; padding: 0 13px 0 16px; color: inherit; text-decoration: none; position: relative; border-radius: 999px 0 0 999px; transition: background .2s; }
.mt-home::after { content: ""; position: absolute; right: 0; top: 9px; bottom: 9px; width: 1px; background: currentColor; opacity: .22; }
.mt-home:hover { background: color-mix(in srgb, var(--cur-bg) 10%, transparent); }
.mt-a { height: 13px; width: auto; fill: currentColor; }
.mt-house { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.mt-n { font-weight: 650; }
.mt-name { font-weight: 700; }
body.intro-on .map-bar { opacity: 0; }
@media (max-width: 760px), (max-height: 560px) {
  .map-bar { top: 22px; right: 16px; }
  .map-bar .map-tab { padding: 8px 12px; }
  .mt-home { padding: 0 11px 0 13px; }
}

/* Map panel: closes by sliding back out; the close control is an arrow pointing the way it leaves. */
.map.out { transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none;
  transition: transform .52s cubic-bezier(.7,0,.84,0), opacity .3s ease .22s; }
.map.out .map-head, .map.out .map-list { opacity: 0; transition: opacity .2s ease; }
.map-x { display: grid; place-items: center; color: inherit; transition: background .2s, transform .25s var(--ease); }
.map-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-x:hover { background: rgba(255,255,255,.08); transform: translateX(3px); }

/* Map panel: tabs sit lower; the contact form has room above it, a bigger message box, and its top lines up with the icons. */
.map-list { margin-top: 18px; gap: 26px; }
.map-contact .socials { margin: 0; }
.map-form textarea { height: clamp(130px, 25vh, 230px); }

/* Field notes: two columns, bigger, six at a time, paged with the projects' pill. */
@media (min-width: 761px) {
  .note-list { grid-template-columns: 1fr 1fr; gap: 0 56px; }
  .note-list button { padding: 20px 0; gap: 6px; }
  .note-list b { font-size: clamp(1.2rem, 1.75vw, 1.55rem); line-height: 1.2; }
  .note-list span { font-size: 15px; line-height: 1.45; }
}
.note-list.in li:not([hidden]) { animation: paneIn .45s cubic-bezier(.16,1,.3,1); }
.note-pill { display: flex; width: max-content; margin: clamp(22px, 3.5vh, 36px) auto 0; }
.note-pill .ph-count { min-width: 104px; }

/* Far Away Posts: the letter writes itself huge and on a diagonal, filling the page; then it fades to gray and the work arrives. */
#farawayposts .fp-letter .hw path { fill: currentColor; }
#farawayposts.on .pat g.hw { animation-duration: 1.1s; animation-delay: calc(var(--k) * 1.3s); }
#farawayposts.on svg.pat { animation: patSettle 1s ease 2.5s forwards; }
#farawayposts.on .proj-top { animation-delay: 2.9s; }
#farawayposts.on .frame { animation-delay: 3.1s; }
#farawayposts.on .pill { animation-delay: 3.4s; }
#farawayposts.on .gos { animation-delay: 3.6s; }
@media (prefers-reduced-motion: reduce) {
  .map.out { transition: none; }
  .note-list.in li:not([hidden]) { animation: none; }
}

/* Fix: project arrows stay at mid-height. The old rise-in left a transform on .gos, which pulled the arrows to the bottom corners. Fade only. */
.k-proj.on .gos { animation-name: gosIn; }
@keyframes gosIn { from { opacity: 0; } to { opacity: 1; } }

/* ================= round 11 ================= */
/* Top-right pill: just the house for home. On story pages it takes the band colour. */
.map-bar { background: color-mix(in srgb, var(--bar-fg, var(--cur-fg)) 92%, transparent); color: var(--bar-bg, var(--cur-bg)); }
.mt-home { padding: 0 12px 0 15px; }
.mt-house { width: 17px; height: 17px; }

/* Homepage: real buttons, the three social icons, a bigger "Start here", no photo (the right side stays open). */
.intro-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; transition: transform .25s var(--ease), background .2s, color .2s; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--fg); color: var(--fg); }
.btn:hover { transform: translateY(-2px); }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.intro-acts .socials { flex-direction: row; gap: 10px; margin: 0 0 0 10px; }
.intro-acts .socials a { width: 48px; height: 48px; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.intro-acts .socials a:hover { background: var(--fg); color: var(--bg); opacity: 1; }
.intro-open { min-height: 1px; }
.go-start .go-c { width: 88px; height: 88px; }
.go-start .go-c svg { width: 30px; height: 30px; stroke-width: 1.7; }
.go-start .go-l { font-size: 13px; letter-spacing: .22em; font-weight: 600; }
@media (max-width: 760px), (max-height: 560px) {
  .intro-acts .socials { margin: 4px 0 0; width: 100%; }
  .go-start .go-c { width: 64px; height: 64px; }
}

/* Map panel: closes as smoothly as it opens, in reverse. */
.map.out { transform: translateX(calc(100% + 30px)); opacity: 1; transition: transform .66s cubic-bezier(.65,0,.35,1), opacity .25s ease .45s; }
.map.out .map-head, .map.out .map-list { opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .3s ease; }

/* Map panel: a Back pill in exactly the spot where the top-right pill sits. */
.map-head { min-height: 46px; padding-right: 130px; }
.map-x { position: absolute; z-index: 2; top: calc(clamp(12px, 2.4vw, 28px) - 5.5px); right: calc(var(--pad) + 0px); width: auto; height: auto; min-height: 46px;
  display: inline-flex; align-items: center; gap: 10px; padding: 0 16px 0 20px; border: 0; border-radius: 999px; background: #eee; color: #111;
  font: 700 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .2s, gap .25s var(--ease); }
.map-x svg { width: 18px; height: 18px; stroke-width: 2; }
.map-x:hover { background: #fff; transform: none; gap: 14px; }
@media (max-width: 760px), (max-height: 560px) { .map-x { top: 12px; right: 6px; min-height: 40px; } .map-head { padding-right: 110px; } }

/* Map tabs: Work, Story, Contact. Just the words. */
.map-tabs button { padding: 18px 18px 17px; justify-content: center; }
.map-tabs button b { font-size: clamp(1.5rem, 2.1vw, 1.95rem); }
.pane-intro { margin: 2px 0 14px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.62); max-width: 52ch; text-wrap: pretty; }
.map-contact .pane-intro { grid-column: 1 / -1; margin-bottom: 0; }
.map-pane.in { animation: paneIn .45s cubic-bezier(.16,1,.3,1); }

/* Lists: each column gets its own lines, with a clear gap between the columns. Noticeable, never bright. */
.pane-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; }
.pane-list li { border-top: 0; border-bottom: 1px solid rgba(255,255,255,.17); padding: 2px 0; }
@media (max-width: 760px), (max-height: 560px) { .pane-list { column-gap: 22px; } }

/* The work: four across, three rows, a little bigger. A line about the project you hover appears top right. */
.work-card { max-width: min(1160px, calc((var(--H) - var(--pad) * 2 - 200px) * 2.37 + 36px)); }
.work-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 44px; }
.work-desc { margin: 0; max-width: 48ch; text-align: right; display: flex; flex-direction: column; gap: 4px; min-height: 2.9em; justify-content: flex-end; }
.work-desc b { font: 500 12px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.work-desc span { font-size: 14px; line-height: 1.45; opacity: .72; text-wrap: balance; }
.work-desc.in { animation: contentIn .35s cubic-bezier(.16,1,.3,1); }
@media (max-width: 760px), (max-height: 560px) { .work-grid { grid-template-columns: repeat(2, 1fr); } .work-desc { display: none; } }

/* Story pages: plain white for reading, with the project's colour as a band across the top, just past the top-right pill. */
.k-story { --band-h: calc(clamp(12px, 2.4vw, 28px) + 46px + 16px); }
.k-story .card-in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--band-h); background: var(--band); z-index: 0; pointer-events: none;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06); }
.k-story .story { position: relative; z-index: 1; }
.k-story .card-in { padding-top: calc(var(--band-h) + clamp(30px, 6vh, 64px)); }
.k-story .go-up { z-index: 6; color: var(--bandfg); top: calc(var(--frame) + (var(--band-h) - 44px) / 2); }
.k-story .go-up .go-c { color: var(--bandfg); border-color: color-mix(in srgb, var(--bandfg) 45%, transparent); }
.k-story .go-up .go-l { display: none; }
.k-story .story-side { background: #f3f2ef; }
.k-story .chips li { border-color: rgba(20,20,20,.35); background: none; }

/* ================= round 12 ================= */
/* Map panel: the Back pill never moves. (It sat inside a header that slid 6–8px as the panel opened and closed.) */
.map-head, .map.in .map-head, .map.out .map-head, .map[hidden] .map-head { transform: none !important; }
.map-x { font-weight: 800; font-size: 12.5px; }
.map-tabs button b { font-weight: 600; }
.pane-intro { font: 300 clamp(1.35rem, 1.8vw, 1.65rem)/1.28 var(--display); font-stretch: 84%; color: rgba(255,255,255,.82); max-width: 30ch; margin: 4px 0 18px; }
.map-contact .pane-intro { margin-bottom: 4px; }

/* Story pages: the homepage's warm off-white instead of pure white */
.k-story .story-side { background: rgba(20,20,20,.05); }

/* Project pages: easier to read at a glance */
.pill-story { font-weight: 800; }
.k-proj .proj-name { font-weight: 600; }
.k-proj .proj-name span { font-weight: 600; opacity: .82; }
.k-proj .proj-top .eyebrow { font-weight: 700; }

/* Homepage: the three roles read as one line */
.roles { font-weight: 600; }

/* ================= round 14 ================= */
/* Homepage: "Start here" lines up with the left edge of the top-right pill (set in the script) */
.go-start { align-items: flex-start; }

/* Gallery pill: still tinted, but more solid, so it holds up on textured backgrounds */
.k-proj .pill { background: color-mix(in srgb, color-mix(in srgb, var(--bg) 78%, var(--fg) 22%) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* Leges Motus: its accent is near-black on red, so the number takes the pill's white to read as one with it */
#legesmotus .pill .ph-count b { color: var(--fg); }

/* The work: the hover line has a fixed two-line slot at the top, so nothing below it moves */
.work-head { align-items: flex-start; }
.work-head .eyebrow { font-size: 15px; letter-spacing: .2em; padding-top: 2px; }
.work-desc { height: 66px; min-height: 0; justify-content: flex-start; overflow: hidden; }
.work-desc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* What I do: two halves of one job */
.do-card .display { max-width: 18ch; }
.do-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); margin-top: clamp(26px, 4vh, 48px); }
.do-h { margin: 0; display: flex; align-items: baseline; gap: 12px; font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.1 var(--display); font-stretch: 78%; }
.do-h i { font: 500 12px/1 var(--display); font-style: normal; letter-spacing: .14em; opacity: .55; }
.do-half .do-list { margin-top: 16px; grid-template-columns: 1fr 1fr; }
.do-half .do-list li { padding: 18px 20px 4px 0; }
@media (max-width: 760px), (max-height: 560px) {
  .do-cols { grid-template-columns: 1fr; gap: 26px; }
  .do-half .do-list { grid-template-columns: 1fr 1fr; }
}

/* ================= round 15 ================= */
/* XPLOR: a real contour map. Gray rings, a few yellow index lines, then everything settles to gray. */
#xplor svg.pat-topo { color: #6a6a6e; }
#xplor .pat-topo path.hi { stroke: var(--ac); }
#xplor.on svg.pat-topo { animation: topoSettle 1.6s ease 3s forwards; }
#xplor.on .pat-topo path.hi { animation: patDraw 1.7s cubic-bezier(.35,.1,.2,1) forwards, hiSettle 1.6s ease 3s forwards; animation-delay: calc(var(--k, 0) * 1.1s), 3s; }
@keyframes topoSettle { to { color: #2e2e31; } }
@keyframes hiSettle { to { stroke: #3a3a3e; } }

/* Softwire: its own infinity mark, outlined, with a line that keeps travelling round it. */
.pat-inf .orbit { stroke-width: 2.2; stroke-dasharray: .07 .93; stroke-dashoffset: 0; opacity: 0; animation: none; }
#softwire.on .pat-inf .orbit { animation: orbitIn .8s ease 3.2s forwards, orbit 14s linear 3.2s infinite; }
#softwire.on .pat-inf .orbit.o2 { animation-duration: .8s, 19s; animation-delay: 3.6s, 3.6s; }
@keyframes orbitIn { to { opacity: .55; } }
@keyframes orbit { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Sunday Drive: a winding two-lane road with the centre line rolling along it. */
.pat-road path.shoulder { stroke-width: 1; opacity: .55; }
.pat-road path.lane { stroke-dasharray: 16 22; stroke-dashoffset: 0; stroke-width: 2; opacity: 0; }
#sunday-drive.on .pat-road path.lane { animation: laneIn 1s ease 1.6s forwards, laneRoll 2.6s linear 1.6s infinite; }
@keyframes laneIn { to { opacity: 1; } }
@keyframes laneRoll { to { stroke-dashoffset: -38; } }

/* Ube × Ice: tone on tone, darker purple settling into gray. */
#ubexice .pat-mask { background: #34247f; }
#ubexice.on .pat-mask { animation: maskIn 2s cubic-bezier(.3,.1,.2,1) .1s forwards, ubeSettle 1.6s ease 3s forwards; }
@keyframes ubeSettle { to { background: color-mix(in srgb, #8f8ca3 34%, transparent); } }

@media (prefers-reduced-motion: reduce) {
  #xplor svg.pat-topo { color: #2e2e31; } #xplor .pat-topo path.hi { stroke: #3a3a3e; animation: none !important; }
  .pat-inf .orbit { opacity: .5; animation: none !important; }
  .pat-road path.lane { opacity: 1; animation: none !important; }
  #ubexice .pat-mask { background: color-mix(in srgb, #8f8ca3 34%, transparent); animation: none !important; }
}

/* Story highlights and the two ventures */
.time-hl { list-style: none; margin: 18px 0 0; padding: 0; max-width: 560px; }
.time-hl li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); font-size: 15px; line-height: 1.45; font-weight: 500; }
.time-hl li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: #ff6a3d; }
.now-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; }
.now-list a { display: block; height: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 7%, transparent); color: inherit; text-decoration: none; transition: background .25s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.now-list a:hover { background: color-mix(in srgb, var(--fg) 13%, transparent); transform: translateY(-2px); }
.now-list b { display: block; font: 500 1.25rem/1.1 var(--display); margin-bottom: 6px; }
.now-list b i { font-style: normal; font-size: .8em; opacity: .55; }
.now-list span { display: block; font-size: 14px; line-height: 1.45; opacity: .8; }
.now-open { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .now-list { grid-template-columns: 1fr; } }

/* The map's lists: hovering lights the whole cell and it grows a touch; the light slides between links. */
.map-pane { position: relative; }
.pane-list { position: relative; z-index: 1; }
.ml-hl { position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 10px; background: rgba(255,255,255,.11); opacity: 0; pointer-events: none;
  transition: transform .38s cubic-bezier(.2,.9,.25,1), width .38s cubic-bezier(.2,.9,.25,1), height .38s cubic-bezier(.2,.9,.25,1), opacity .25s ease; }
.ml-hl.on { opacity: 1; }
.ml-hl.cur { background: rgba(255,255,255,.07); }
.ml-hl.cur.on { background: rgba(255,255,255,.11); }
.pane-list li { border-bottom-color: rgba(255,255,255,.1); }
.map-list .pane-list a.ml-main { padding-left: 10px; padding-right: 10px; transition: transform .3s cubic-bezier(.2,.9,.25,1), opacity .2s ease; transform-origin: left center; }
.map-list .pane-list a.ml-main:hover, .map-list .pane-list a.ml-main.hov { transform: scale(1.04); opacity: 1; }
.map-list .pane-list a[aria-current] { transform: scale(1.04); }
.map-list a[aria-current] .ml-t { text-decoration: none; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ml-hl, .map-list .pane-list a.ml-main { transition: none; } }

/* The showpiece gets its own line, pinned to the bottom of the map. */
.map-list { min-height: 0; }
.map-panes { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.map-panes::-webkit-scrollbar { display: none; }
.ml-feature { flex: none; margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-radius: 16px; background: #ff6a3d; color: #160c06 !important; opacity: 1 !important; text-decoration: none; transition: transform .3s cubic-bezier(.2,.9,.25,1), background .2s ease; }
.ml-feature:hover { transform: scale(1.02); background: #ff7d55; }
.ml-feature[aria-current] { box-shadow: 0 0 0 2px #fff inset; }
.ml-feature .mf-k { font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.ml-feature .mf-t { font: 500 1.45rem/1 var(--display); }
.ml-feature .mf-s { font-size: 13px; opacity: .75; margin-left: auto; text-align: right; max-width: 210px; line-height: 1.3; }
.ml-feature svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ml-feature .mf-tx { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px), (max-height: 560px) { .ml-feature .mf-s { display: none; } .ml-feature { justify-content: space-between; } }
/* Highlights sit in a second column beside the story, so the timeline stays put. */
@media (min-width: 900px) and (min-height: 561px) {
  .time-bot:has(.time-hl), .time-bot:has(.now-list) { max-width: none; display: grid; grid-template-columns: minmax(0, 44ch) minmax(0, 440px); grid-template-rows: auto auto auto auto 1fr; column-gap: 72px; align-content: start; }
  .time-bot > * { grid-column: 1; }
  .time-bot > .time-hl, .time-bot > .now-list { grid-column: 2; grid-row: 1 / 6; align-self: start; margin-top: 12px; }
  .time-bot > .now-list { grid-template-columns: 1fr; }
}
.map-list .ml-feature { padding: 14px 16px 14px 18px; }
.map-list { gap: 16px; }
.map-panes.more { -webkit-mask: linear-gradient(#000 calc(100% - 46px), transparent); mask: linear-gradient(#000 calc(100% - 46px), transparent); }
@media (min-width: 900px) and (min-height: 561px) {
  .time-bot:has(.now-list) { grid-template-rows: auto auto auto 1fr auto; }
  .time-bot > .now-list { grid-row: 1 / 5; }
  .time-bot > .now-open { grid-column: 2; grid-row: 5; margin-top: 12px; }
  .time-hl li { font-size: clamp(15px, 1.15vw, 17px); }
  .now-list span { font-size: clamp(13.5px, 1vw, 15px); }
}
@media (max-width: 760px), (max-height: 560px) { .time-bot { padding-bottom: 120px; } .time-hl li { font-size: 15px; } }

/* ================= round 16 ================= */
/* The showpiece leads the map: white on a deeper orange, big enough to read at a glance. */
.map-list .ml-feature { margin-top: 0; order: -1; background: #c8441b; color: #fff !important; padding: 16px 18px 16px 20px; }
.map-list .ml-feature:hover { background: #d84d22; }
.ml-feature .mf-k { font: 700 12px/1 var(--body); letter-spacing: .18em; opacity: .92; }
.ml-feature .mf-t { font: 500 clamp(1.6rem, 2.1vw, 1.9rem)/1 var(--display); }
.ml-feature .mf-s { font-size: 14px; opacity: .92; font-weight: 500; }
.ml-feature svg { width: 26px; height: 26px; stroke-width: 2; }
.ml-feature[aria-current] { box-shadow: 0 0 0 2px rgba(255,255,255,.85) inset; }
/* Far Away Posts: the handwriting settles fainter behind the pictures. */
#farawayposts.on svg.pat { animation: fapSettle 1.2s ease 2.5s forwards; }
@keyframes fapSettle { to { color: color-mix(in srgb, var(--fg) 7%, transparent); } }
@media (prefers-reduced-motion: reduce) { #farawayposts svg.pat { color: color-mix(in srgb, var(--fg) 7%, transparent); } }
.story-note { margin: 0; font-size: 15px; line-height: 1.45; }
.story-side .story-hl + .label { margin-top: 18px; }
@media (min-width: 900px) and (min-height: 561px) { .time-bot:has(.time-hl), .time-bot:has(.now-list) { justify-content: space-between; } }
@media (min-width: 900px) and (min-height: 561px) {
  .time-bot > .now-open { grid-row: 1; margin: 12px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
  .time-bot:has(.now-list) { grid-template-rows: auto auto auto auto 1fr; }
  .time-bot > .now-list { grid-row: 2 / 6; }
}
@media (min-width: 900px) and (min-height: 561px) and (max-height: 820px) {
  #now .card-in::before, #now .time-mark { top: 40%; }
  #now .time-top { bottom: calc(60% + 30px); }
  #now .time-bot { top: calc(40% + 40px); }
}
@media (min-width: 900px) and (min-height: 561px) { .time-bot:has(.time-hl), .time-bot:has(.now-list) { right: calc(var(--pad) + 30px); } }

/* ================= round 17 ================= */
/* Monarch: a satellite keeps tracking you with no signal; when the trail reaches signal, the route lights up and the check-ins land. */
#monarch .pat-sat path.trail { stroke-dasharray: 0 13; stroke-dashoffset: 0; stroke-width: 3.2; opacity: 0; animation: none; }
#monarch.on .pat-sat path.trail { animation: fadeUp .9s ease .2s forwards; }
#monarch .pat-sat path.synced { stroke: var(--ac); stroke-width: 2.4; stroke-dasharray: var(--f) 2; stroke-dashoffset: var(--f); opacity: 0; animation: none; }
#monarch.on .pat-sat path.synced { animation: satSync 16s linear 2.6s infinite; }
#monarch .pat-sat path.pin { fill: var(--ac); stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: none; }
#monarch.on .pat-sat path.pin { animation: satPin 16s cubic-bezier(.2,.9,.3,1.3) 2.6s infinite; animation-delay: calc(2.6s + var(--i) * .25s); }
#monarch.on .pat-sat path.ring { animation: patDraw 1.7s cubic-bezier(.35,.1,.2,1) forwards, satRing 16s ease 2.6s infinite; animation-delay: calc(var(--k) * 1.1s), calc(2.6s + var(--i) * .15s); }
#monarch .pat-sat .beam { stroke-dasharray: 3 11; stroke-dashoffset: 0; stroke-width: 1.4; opacity: 0; animation: none; }
#monarch.on .pat-sat .beam { animation: fadeUp .8s ease 1.4s forwards, beamFlow 1.6s linear 1.4s infinite; }
#monarch.on .pat-sat g.sat { animation: satDrift 14s ease-in-out 2s infinite alternate; }
#monarch .pat-sat .you { fill: var(--ac); opacity: 0; offset-rotate: 0deg; offset-distance: 0%; }
#monarch.on .pat-sat .you { animation: satYou 16s linear 2.6s infinite; }
@keyframes fadeUp { to { opacity: 1; } }
@keyframes beamFlow { to { stroke-dashoffset: -28; } }
@keyframes satDrift { from { transform: translate(-40px, 6px); } to { transform: translate(40px, -6px); } }
@keyframes satYou { 0% { offset-distance: 0%; opacity: 0; } 4% { opacity: .9; } 60% { offset-distance: 70%; } 94% { opacity: .9; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes satSync { 0%, 60% { stroke-dashoffset: var(--f); opacity: .85; } 67% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: .85; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes satPin { 0%, 62% { opacity: 0; transform: translateY(-14px) scale(.4); } 65% { opacity: .9; transform: none; } 90% { opacity: .9; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes satRing { 0%, 58% { stroke: currentColor; } 61% { stroke: var(--ac); } 75%, 100% { stroke: currentColor; } }
@media (prefers-reduced-motion: reduce) {
  #monarch .pat-sat path.trail, #monarch .pat-sat .beam { opacity: 1; animation: none !important; }
  #monarch .pat-sat path.synced { opacity: .85; stroke-dashoffset: 0; animation: none !important; }
  #monarch .pat-sat path.pin { opacity: .9; animation: none !important; }
  #monarch .pat-sat .you { opacity: 0; animation: none !important; }
}

/* XPLOR: the whole contour map draws in and stays as drawn: gray rings, yellow index lines, no fade to black. */
#xplor.on svg.pat-topo { animation: none; color: #5d5d62; }
#xplor.on .pat-topo path.hi { animation: patDraw 1.7s cubic-bezier(.35,.1,.2,1) forwards; animation-delay: calc(var(--k, 0) * 1.1s); }
#xplor .pat-topo path { opacity: .7; }
#xplor .pat-topo path.hi { opacity: .75; }
@media (prefers-reduced-motion: reduce) { #xplor svg.pat-topo { color: #5d5d62; } #xplor .pat-topo path.hi { stroke: var(--ac); } }
.ml-feature .mf-s { text-wrap: balance; max-width: 230px; }

/* ================= round 18 ================= */
/* The nav pill: no more size snap on hover. It lifts as one piece, and the map grows out of it. */
.map-tab:hover { gap: 12px; }
.map-bar { transform-origin: 100% 50%; transition: background .5s ease, color .5s ease, opacity .4s ease, transform .45s cubic-bezier(.2,.9,.25,1), box-shadow .45s ease; }
.map-bar:hover { transform: scale(1.045); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.map-bar .mt-ic { transition: transform .45s cubic-bezier(.2,.9,.25,1); }
.map-bar:hover .mt-ic { transform: rotate(90deg); }
.map, .map[hidden] { transform: none; transform-origin: 100% 0; }
.map { clip-path: inset(0 0 0 0 round 22px); opacity: 1; transition: clip-path .62s cubic-bezier(.2,.9,.25,1), opacity .3s ease; }
.map:not(.in), .map[hidden] { clip-path: inset(var(--frame) calc(var(--frame) + var(--pad)) calc(100% - 70px) calc(100% - 300px) round 999px); opacity: 0; }
.map[hidden] { transition: clip-path .42s cubic-bezier(.6,0,.4,1), opacity .3s ease .12s, visibility 0s .45s; }
@media (prefers-reduced-motion: reduce) { .map, .map[hidden] { transition: opacity .2s ease; clip-path: none; } .map-bar:hover { transform: none; } }

/* Story highlights: a tidy grid of names and one-line facts beside the story. */
.time-hl { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-width: none; }
.time-hl li { padding: 11px 0 12px; border-top: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); display: flex; flex-direction: column; gap: 4px; font-weight: 400; }
.time-hl li::before { display: none; }
.time-hl li b { font: 500 clamp(15px, 1.15vw, 17px)/1.15 var(--display); font-stretch: 85%; }
.time-hl li span { font-size: clamp(13px, .95vw, 14.5px); line-height: 1.4; opacity: .78; }
@media (min-width: 900px) and (min-height: 561px) {
  .time-bot:has(.time-hl) { grid-template-columns: minmax(0, 40ch) minmax(0, 640px); grid-template-rows: auto auto auto 1fr; column-gap: 64px; }
  .time-bot > .time-hl { grid-row: 1 / 5; margin-top: 8px; }
  .time-bot > .mv-links { grid-column: 2; }
  .k-time:has(.time-hl) .card-in::before, .k-time:has(.time-hl) .time-mark { top: 36%; }
  .k-time:has(.time-hl) .time-top { bottom: calc(64% + 26px); }
  .k-time:has(.time-hl) .time-bot { top: calc(36% + 36px); }
  .k-time:has(.time-hl) .time-years { font-size: clamp(2.4rem, min(6vw, 9vh), 6rem); }
}
@media (max-width: 899px) { .time-hl { grid-template-columns: 1fr; } }
.mv-links { margin: 16px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.mv-links a { color: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); padding-bottom: 2px; }
.mv-links a:hover { border-bottom-color: currentColor; }
.mv-links i { font-style: normal; opacity: .6; }

/* What I do: the number sits on its own line above each heading, everything flush left. */
.do-h { display: block; }
.do-h i { display: block; margin-bottom: 10px; }
.do-list li:nth-child(n) { min-width: 0; }

/* Brand experience: logos float on the background, no boxes. */
.logo-wall, .logo-wall li { border: 0 !important; }
.logo-wall { gap: 8px 2%; }
.logo-wall li { padding: 14% 16%; }

/* Kind words: the same pager as the galleries. */
.q-dots { display: none; }
.words .q-pill { margin-top: 38px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.words .q-pill .ph-count b { color: var(--fg); }
.qs { min-height: 4.4em; display: grid; align-items: center; }
.qt blockquote { font-size: clamp(1.7rem, 3.4vw, 3.4rem); }
/* How I think: seven principles, three columns on wide screens so the list never runs into the arrows. */
@media (min-width: 1100px) and (min-height: 561px) {
  .think-list { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.4vh, 40px) clamp(26px, 3vw, 54px); }
  .think-list b { font-size: clamp(1.45rem, 2.3vw, 2.3rem); }
  .think-list span { font-size: clamp(13.5px, 1vw, 15.5px); }
}
@media (min-width: 1100px) and (min-height: 561px) and (max-height: 820px) {
  .think-list { margin-top: 18px; gap: 16px clamp(24px, 2.6vw, 44px); }
  .think-list b { font-size: clamp(1.3rem, 2vw, 1.9rem); }
  .think-list span { font-size: 13px; line-height: 1.42; }
  .k-think .list-card { padding-top: 0; }
  .mv-links { justify-content: flex-end; }
}


/* ================= round 19: lighter on phones ================= */
/* Cards you aren't on (and aren't flying between) stop rendering entirely. */
/* (phone-only, see below) */
/* The world layer is promoted only while it moves, not all the time. */
/* (world layer: original behaviour restored) */

/* The map's orange button: no grow on hover, so the ring is never clipped. */
.map-list .ml-feature:hover { transform: none; }
.map-list .ml-feature[aria-current] { box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.map-list { padding: 0 1px; }
@media (max-width: 760px), (pointer: coarse) {
  /* Blur behind glass is expensive on phones: use solid tints instead. */
  .k-proj .pill, .z-step, .z-step .z-key, .z-panel { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .k-proj .pill { background: color-mix(in srgb, var(--bg) 70%, var(--fg) 14%) !important; }
  .z-step { background: color-mix(in srgb, var(--bg) 90%, #fff 6%) !important; }
  /* Patterns draw in once and then stay still: no looping animations on phones. */
  #sunday-drive.on .pat-road path.lane { animation: laneIn 1s ease 1.6s forwards !important; }
  #softwire.on .pat-inf .orbit { animation: orbitIn .8s ease 3.2s forwards !important; }
  #monarch.on .pat-sat path.synced, #monarch.on .pat-sat path.pin, #monarch.on .pat-sat .you, #monarch.on .pat-sat g.sat { animation: none !important; }
  #monarch.on .pat-sat path.synced { opacity: .85; stroke-dashoffset: 0; }
  #monarch.on .pat-sat path.pin { opacity: .9; }
  #monarch.on .pat-sat path.ring { animation: patDraw 1.7s cubic-bezier(.35,.1,.2,1) forwards !important; animation-delay: calc(var(--k) * 1.1s) !important; }
  #monarch.on .pat-sat .beam { animation: fadeUp .8s ease 1.4s forwards !important; }
  .map.in .mini button:not(.cur) { animation: none !important; }
}

/* Browser autofill keeps the field colours instead of its own blue-gray. */
form input:-webkit-autofill, form input:-webkit-autofill:hover, form input:-webkit-autofill:focus, form textarea:-webkit-autofill {
  -webkit-text-fill-color: currentColor; -webkit-box-shadow: 0 0 0 1000px #f6f5f2 inset; box-shadow: 0 0 0 1000px #f6f5f2 inset; transition: background-color 9999s ease 0s; caret-color: currentColor; }
.map-form input:-webkit-autofill, .map-form input:-webkit-autofill:hover, .map-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eee; -webkit-box-shadow: 0 0 0 1000px #1c1c1b inset; box-shadow: 0 0 0 1000px #1c1c1b inset; }

/* A thicker black frame around every card, so the edges read clearly. */
:root { --frame: 18px; }
.card { padding: var(--frame); }
@media (max-width: 760px), (max-height: 560px) { :root { --frame: 10px; } .card { padding: var(--frame); } }
/* Homepage and What I do: set line breaks on wider screens. */
.br-d { display: none; }
@media (min-width: 900px) { .br-d { display: inline; } .intro .display, .do-card h2 { text-wrap: wrap; } }

/* Set lines: each phrase stays on its own line on wider screens, and the type sizes to fit. */
@media (min-width: 900px) and (min-height: 561px) {
  .intro { grid-template-columns: minmax(0, 1fr) 0; }
  .intro .display .ln, .do-card h2 .ln { display: block; white-space: nowrap; }
  .intro .display { font-size: clamp(2.8rem, min(6.6vw, 12.5vh), 8rem); }
  .do-card h2 .ln { display: block; }
}
/* The map stays crisp: once it has opened, the clip used for the opening animation is dropped. */
.map.in.settled { clip-path: none; transition: opacity .3s ease; }

/* Crisp text everywhere in the nav: no scaling of text (Safari draws scaled text soft). The pill lifts,
   list items slide a touch, and the highlight box does the growing. */
.map-bar:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.map-list .pane-list a.ml-main:hover, .map-list .pane-list a.ml-main.hov, .map-list .pane-list a[aria-current] { transform: translateX(4px); }
.ml-hl.on { transform-origin: 0 50%; }
.map, .map-head, .map-list, .map.in .map-head, .map.in .map-list { will-change: auto; }
.map.in .map-head, .map.in .map-list { transform: none; }

/* The map opens the way it used to: it slides in from the right. No clip animation, nothing redrawn mid-way. */
.map { clip-path: none !important; transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .72s cubic-bezier(.16,1,.3,1), opacity .5s ease; }
.map.in, .map.in.settled { transform: none; opacity: 1; }
.map[hidden] { transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .45s cubic-bezier(.7,0,.84,0), opacity .35s ease .1s, visibility 0s .45s; }
@media (prefers-reduced-motion: reduce) { .map, .map[hidden] { transform: none; transition: opacity .2s ease; } }

/* Desktop renders exactly as before. On phones only, cards you aren't on stop rendering to save memory. */
@media (max-width: 760px), (pointer: coarse) { .card:not(.on):not(.end) > .card-in { content-visibility: hidden; } }

/* No mask on the scrolling lists (masks make browsers redraw the text as a soft bitmap).
   A thin, quiet scrollbar shows when there's more below instead. */
.map-panes.more, .map-panes { -webkit-mask: none !important; mask: none !important; }
.map-panes { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.map-panes::-webkit-scrollbar { display: block; width: 6px; }
.map-panes::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 3px; }
.map-list .pane-list a.ml-main:hover, .map-list .pane-list a.ml-main.hov, .map-list .pane-list a[aria-current] { transform: none; }
.map-list .pane-list a.ml-main { transition: opacity .2s ease, color .2s ease; }

/* Sharper menu text: solid colours instead of see-through white, and a touch more weight on the condensed type. */
.map-tabs button b { font-weight: 400; }
.pane-intro { font-weight: 400; color: #d6d6d6; }
.map-list a { opacity: 1; color: #cfcfcf; }
.map-list a:hover, .map-list a[aria-current] { color: #fff; }
.map-head p { color: #e8e8e8; }
.map, .map * { -webkit-font-smoothing: antialiased; }

/* Light text on the black menu reads soft when it's thin: give it more weight and pure white. */
.map, .map * { -webkit-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: auto; }
.map-tabs button b { font-weight: 500; }
.map-tabs button[aria-selected="true"] b { font-weight: 600; }
.pane-intro { font: 400 clamp(15px, 1.1vw, 17px)/1.5 var(--body) !important; color: #f2f2f2 !important; max-width: 40ch; }
.map-list a, .map-list .ml-t { color: #f0f0f0; font-weight: 500; }
.map-head p { color: #fff; font-weight: 600; }
.ml-feature .mf-t { font-weight: 600; }

/* The menu's inner parts no longer animate on their own (the panel's slide is enough), so the browser
   draws the menu text directly instead of as separate cached layers. */
.map-head, .map-list, .map.in .map-head, .map.in .map-list { opacity: 1 !important; transform: none !important; transition: none !important; }
.map-pane.in { animation: none !important; }

/* ===== Light menu: off-white panel, dark text, as sharp as the cards on any screen ===== */
html:not(.menu-dark) .map { background: #f4f3f0 !important; color: #141414 !important; box-shadow: -24px 0 70px rgba(0,0,0,.28) !important; }
html:not(.menu-dark) .map-head p { color: #141414 !important; }
html:not(.menu-dark) .map-x { background: #141414 !important; color: #fff !important; border-color: #141414 !important; }
html:not(.menu-dark) .map-x span, html:not(.menu-dark) .map-x svg { color: #fff !important; stroke: #fff; }
html:not(.menu-dark) .mini i { opacity: 1 !important; filter: invert(1) brightness(1.05); }
html:not(.menu-dark) .map.in .mini i { opacity: .9 !important; }
html:not(.menu-dark) .mini button.cur { box-shadow: 0 0 0 2px #f4f3f0, 0 0 0 4px #141414 !important; }
html:not(.menu-dark) .map-tabs button { background: rgba(20,20,20,.06) !important; color: #141414 !important; }
html:not(.menu-dark) .map-tabs button:hover { background: rgba(20,20,20,.1) !important; }
html:not(.menu-dark) .map-tabs button[aria-selected="true"] { background: #141414 !important; color: #fff !important; }
html:not(.menu-dark) .pane-intro { color: #2a2a2a !important; }
html:not(.menu-dark) .map-list a, html:not(.menu-dark) .map-list .ml-t { color: #1a1a1a !important; }
html:not(.menu-dark) .map-list a:hover, html:not(.menu-dark) .map-list a[aria-current] { color: #000 !important; }
html:not(.menu-dark) .pane-list li { border-bottom-color: rgba(20,20,20,.12) !important; }
html:not(.menu-dark) .ml-hl { background: rgba(20,20,20,.07) !important; }
html:not(.menu-dark) .ml-hl.cur { background: rgba(20,20,20,.05) !important; }
html:not(.menu-dark) .map-list .ml-main i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2) !important; }
html:not(.menu-dark) .map-form input, html:not(.menu-dark) .map-form textarea { background: #fff !important; color: #141414 !important; border-color: rgba(20,20,20,.18) !important; }
html:not(.menu-dark) .map-form input::placeholder, html:not(.menu-dark) .map-form textarea::placeholder { color: rgba(20,20,20,.45) !important; }
html:not(.menu-dark) .map .socials a { color: #141414 !important; border-color: rgba(20,20,20,.25) !important; }
html:not(.menu-dark) .map-panes::-webkit-scrollbar-thumb { background: rgba(20,20,20,.2) !important; }
html:not(.menu-dark) .map-form button { background: #141414 !important; color: #fff !important; }
html:not(.menu-dark) .map-form .book { border-color: rgba(20,20,20,.3) !important; color: #141414 !important; }
html:not(.menu-dark) .map-form .book:hover { background: rgba(20,20,20,.06) !important; }
html:not(.menu-dark) .map-contact .socials a { color: #141414 !important; }
html:not(.menu-dark) .map.in .mini i { opacity: .38 !important; }
html:not(.menu-dark) .mini button { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
html:not(.menu-dark) .map-x, html:not(.menu-dark) .map-x * { opacity: 1 !important; color: #fff !important; }

/* The light / dark switch at the top of the menu */
.mode-tg { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: none; color: #eee; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; margin-left: auto; margin-right: 10px; }
.mode-tg i { position: relative; width: 30px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.2); transition: background .25s ease; }
.mode-tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2,.9,.25,1); }
html:not(.menu-dark) .mode-tg { border-color: rgba(20,20,20,.2); color: #141414; }
html:not(.menu-dark) .mode-tg i { background: rgba(20,20,20,.15); }
html:not(.menu-dark) .mode-tg i::after { transform: translateX(12px); background: #141414; }
@media (max-width: 760px) { .mode-tg b { display: none; } .mode-tg { padding: 0 8px; } }
.mode-tg { margin-right: 150px; }
@media (max-width: 760px), (max-height: 560px) { .mode-tg { margin-right: 4px; } }
html .map .map-list a.ml-feature, html .map .map-list a.ml-feature * { color: #fff !important; }
.map-head p { white-space: nowrap; } .mode-tg { margin-right: 138px; flex: none; }
