/* =====================================================================
   Bhoomie — shared foundation
   Tokens · themes · type · nav · cursor · grain · ink boil · doodles
   ===================================================================== */
@view-transition { navigation: auto; }

:root {
  --paper: #f7f7f7;
  --paper-deep: #efeeea;
  --card: #ffffff;
  --card-ink: #161616;
  --card-ink-2: #404040; /* secondary text on white cards */
  --card-muted: #737373; /* hints and dates on white cards, 4.7:1 */
  --card-accent: var(--accent); /* accents inside white cards (blue in the blue theme, where yellow can't sit on white) */
  --card-accent-text: var(--accent-text);
  --card-on-accent: var(--on-accent); /* text on a card accent fill (button hover and focus, selection) */
  --ink: #141414;
  --ink-2: #3b3a38;
  --muted: #71706b;
  --line: rgba(20, 20, 20, .14);
  --accent: #fe2917;
  --accent-text: #da2314; /* brand red, deepened so small text and white-on-red pass 4.5:1 */
  --dim: .75; /* scroll-lit words before they light up; still 4.5:1 */
  --img-edge: rgba(0, 0, 0, .1); /* 1px edge on photos and screenshots */
  --on-accent: #ffffff;
  --hover: rgba(20, 20, 20, .14); /* fill behind icon buttons on hover */
  --scrim: rgba(20, 20, 20, .62); /* backing for labels over photos and video: white on it is 5:1 over any frame */
  --on-scrim: #ffffff;
  --tape: rgba(222, 218, 205, .72);
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 10px 30px -12px rgba(20, 20, 20, .22);
  --grain: .075;
  --grain-blend: multiply;

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "Kalam", "Comic Sans MS", cursive;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);


  /* type scale: one size and line-height per role, in rem so a reader's browser text size applies */
  --fs-giant: clamp(4.5rem, 14vw, 14rem);           --lh-giant: .86;     /* case titles, the name on phones */
  --fs-display: clamp(3rem, 6vw, 6rem);             --lh-display: 1.02;  /* section headings, the big stat */
  --fs-h1: clamp(2.5rem, 4.2vw, 4.5rem);            --lh-h1: 1.1;        /* card headings, "Come this way" */
  --fs-statement: clamp(1.75rem, 3.4vw, 3.75rem);   --lh-statement: 1.4; /* case summaries, quotes */
  --fs-h2: clamp(1.75rem, 2.6vw, 3rem);             --lh-h2: 1.2;        /* chapter and project titles */
  --fs-lede: clamp(1.375rem, 2.2vw, 2.5rem);        --lh-lede: 1.4;      /* ledes under titles */
  --fs-h3: clamp(1.25rem, 1.6vw, 1.75rem);          --lh-h3: 1.25;       /* note titles, the learning card */
  --fs-body-lg: clamp(1.0625rem, 1.4vw, 1.5rem);    --lh-body-lg: 1.5;   /* intro paragraphs */
  --fs-body: clamp(1.0625rem, 1.3vw, 1.3125rem);    --lh-body: 1.6;      /* long-form reading */
  --fs-small: clamp(.9375rem, 1.15vw, 1.1875rem);   --lh-small: 1.45;    /* descriptions, meta, notes */
  --fs-ui: 1.125rem;                                --lh-ui: 1.3;        /* nav, labels, handwritten kickers */
  --fs-caption: .875rem;                            --lh-caption: 1.4;   /* tags, footers, captions */
  --fs-micro: .75rem;                                                    /* polaroid dates */

  --gutter: clamp(16px, 3.2vw, 56px);
  --nav-h: 76px;
  color-scheme: light;
}

:root[data-theme="blue"] {
  --paper: #0115d4;
  --paper-deep: #0012bb;
  --card: #ffffff;
  --card-ink: #0d1460;
  --card-ink-2: #393e7d;
  --card-muted: #6e72a0;
  --card-accent: #0115d4;
  --card-accent-text: #0115d4;
  --card-on-accent: #ffffff;
  --ink: #ffffff;
  --ink-2: #dbdef9; /* solid, so text reads the same on every surface */
  --muted: #a4abf0;
  --line: rgba(255, 255, 255, .24);
  --accent: #fee800;
  --accent-text: #fee800;
  --img-edge: rgba(255, 255, 255, .1);
  --on-accent: #0115d4;
  --hover: rgba(255, 255, 255, .24);
  --scrim: rgba(20, 20, 20, .62);
  --on-scrim: #ffffff;
  --tape: rgba(255, 255, 255, .34);
  --shadow: 0 1px 2px rgba(0, 0, 40, .2), 0 14px 34px -12px rgba(0, 0, 40, .55);
  --grain: .12;
  --grain-blend: overlay;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
  overflow-x: hidden;
  font-variation-settings: "SOFT" 40; /* one finish for Fraunces; other fonts ignore the axis */
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
::selection { background: var(--accent-text); color: var(--on-accent); }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 4px; }

.serif { font-family: var(--f-display); font-optical-sizing: auto; }
.hand { font-family: var(--f-hand); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 10001; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* headings and short descriptions balance their lines; paragraphs avoid a lone last word */
h1, h2, h3, .cs-lede, .work-short, .works-sub, .cs-next-short, .stat-l, .contact-sub { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------------------------------------------------------- grain */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 9990;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------------------------------------------------------- ink boil (lines redrawn on 2s, like hand animation) */
.boil.on { animation: boil .36s steps(1) infinite; }
.boil.fast.on { animation-duration: .2s; }
@keyframes boil { 0% { filter: url(#boil-0); } 33.33% { filter: url(#boil-1); } 66.66% { filter: url(#boil-2); } }

/* ---------------------------------------------------------- drawings as recolourable masks */
/* mask-image is set from [data-art] by JS so the URL resolves against the page */
.art {
  position: absolute; inset: 0;
  background: var(--ink);
  -webkit-mask-position: center; -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat;
  mask-position: center; mask-size: 100% 100%; mask-repeat: no-repeat;
  transition: background-color .5s var(--ease-out);
}
.art.acc { background: var(--accent); }

/* ---------------------------------------------------------- doodles (SVG, draw-on) */
.dd { overflow: visible; color: var(--ink); }
.dd path, .dd circle, .dd ellipse {
  fill: none; stroke: currentColor; stroke-width: var(--sw, 2.2);
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .5s var(--ease-out), fill .5s var(--ease-out);
}
.dd .a { stroke: var(--accent); }
.dd .af { fill: var(--accent); stroke: none; }
.dd .f { fill: currentColor; stroke: none; }
.dd .t { stroke-width: calc(var(--sw, 2.2) * .7); }
.dd [pathLength] {
  stroke-dasharray: 1 3; stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur, .7s) var(--ease-in-out) var(--d, 0s), stroke .5s;
}
.dd .af, .dd .f { transform-box: fill-box; transform-origin: center; transition: opacity .3s var(--d, 0s), transform .55s var(--ease-spring) var(--d, 0s), fill .5s; }
.dd.pre [pathLength] { stroke-dashoffset: 1.001; }
.dd.pre .af, .dd.pre .f { opacity: 0; transform: scale(.2); }
.dd.erase [pathLength] { transition-duration: .35s; transition-delay: 0s; }
.dd .pupils { transform-box: fill-box; transform-origin: center; }
.dd.js-draw [pathLength], .dd.js-draw .af, .dd.js-draw .f { transition: stroke .5s, fill .5s; }
.dd.js-draw .af, .dd.js-draw .f { transform: none; }
.dd.erase .af, .dd.erase .f { transition-delay: 0s; }

/* ---------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.nav.solid::before { opacity: 1; }
.nav-logo {
  font-family: var(--f-hand); font-weight: 400; color: var(--accent);
  font-size: 2.125rem; line-height: 1; letter-spacing: -.02em;
  display: inline-block; transform-origin: 40% 60%;
  transition: transform .4s var(--ease-spring), color .5s;
}
@media (hover: hover) { .nav-logo:hover { transform: rotate(-8deg) scale(1.08); } }
.nav-right { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 40px); }
.nav-links { display: flex; gap: clamp(8px, 2.4vw, 44px); }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-ui); letter-spacing: -.01em; color: var(--ink);
  padding: 8px 4px;
}
.nav-links .ring { position: absolute; inset: -4px -14px; width: calc(100% + 28px); height: calc(100% + 8px); pointer-events: none; }
.nav-links .ring path { stroke: var(--accent); }
.nav-tools { display: flex; gap: 6px; }
.tool {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease-out, background-color .15s ease-out;
}
.tool:not(:disabled):active { transform: scale(.96); }
@media (hover: hover) {
  .tool:hover { background: var(--hover); transform: rotate(-8deg); }
  .tool:hover:not(:disabled):active { transform: rotate(-8deg) scale(.96); }
}
.tool svg { width: 24px; height: 24px; }
.tool .dd { --pen: 1.5; } /* matches the 400-weight nav text beside it */
.tool .wave, .tool .mute, .tool .bars, .tool .tri {
  transform-box: fill-box; transform-origin: center;
  transition: opacity .3s cubic-bezier(.2, 0, 0, 1), transform .3s cubic-bezier(.2, 0, 0, 1), filter .3s cubic-bezier(.2, 0, 0, 1);
}
.tool[aria-pressed="false"] .wave, .tool[aria-pressed="true"] .mute,
.tool[aria-pressed="true"] .bars, .tool[aria-pressed="false"] .tri { opacity: 0; transform: scale(.25); filter: blur(4px); }
/* the theme is a light switch in the bottom-right corner: red on paper, white on the blue; its rocker flips */
.theme-switch {
  position: fixed; right: var(--gutter); bottom: 16px; z-index: 60;
  width: 48px; height: 70px; display: grid; place-items: center;
  color: var(--accent); -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease-out, color .5s;
}
:root[data-theme="blue"] .theme-switch { color: var(--ink); }
.theme-switch .dd { width: 40px; height: 60px; --pen: 2; color: inherit; } /* drawn in the switch's colour, not the default ink */
/* the lever flips the way a real one looks from the front: it shrinks into its slot and comes out the other side.
   On a click it flips first (.to-blue / .to-paper), then the theme changes. */
.theme-switch .lever { transform-box: view-box; transform-origin: 30px 45px; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }
:root[data-theme="blue"] .theme-switch .lever, :root .theme-switch.to-blue .lever { transform: scaleY(-1); }
:root .theme-switch.to-paper .lever { transform: none; }
.theme-switch:not(:disabled):active { transform: scale(.96); }

.menu-btn { display: none; font-family: var(--f-hand); font-size: var(--fs-ui); color: var(--ink); padding: 6px 10px; -webkit-tap-highlight-color: transparent; transition: transform .15s ease-out; }
.menu-btn:active { transform: scale(.96); }

.menu-sheet {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 38px);
  visibility: hidden;
  transition: clip-path .2s ease-out, visibility 0s linear .2s;
}
.menu-sheet.open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path .6s var(--ease-in-out); }
.menu-sheet nav { display: flex; flex-direction: column; gap: 4px; }
.menu-sheet a { font-family: var(--f-display); font-weight: 250; font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -.03em;
  opacity: 0; transform: translateY(12px); filter: blur(4px);
  transition: opacity .15s ease-out, transform .15s ease-out, filter .15s ease-out; }
.menu-sheet.open a { opacity: 1; transform: none; filter: none; transition: opacity .3s ease-out, transform .3s ease-out, filter .3s ease-out; transition-delay: .2s; }
.menu-sheet.open a:nth-child(2) { transition-delay: .3s; } .menu-sheet.open a:nth-child(3) { transition-delay: .4s; } .menu-sheet.open a:nth-child(4) { transition-delay: .5s; }
.menu-sheet a span { color: var(--accent); font-weight: 200; }

/* ---------------------------------------------------------- cursor */
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none;
  width: 0; height: 0;
  will-change: transform;
}
.cursor-dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  transition: transform .35s var(--ease-out), background-color .25s, opacity .2s;
}
.cursor-ring {
  position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0; transform: scale(.4);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6);
  font: 500 var(--fs-caption)/1 var(--f-body); letter-spacing: .02em; white-space: nowrap;
  color: var(--on-accent); opacity: 0;
  transition: opacity .2s, transform .35s var(--ease-out);
}
.cursor.link .cursor-dot { transform: scale(.45); }
.cursor.link .cursor-ring { opacity: 1; transform: scale(1); }
.cursor.view .cursor-dot { transform: scale(6.6); background: var(--accent-text); } /* carries a label, so it takes the text red */
.cursor.view .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.drag .cursor-dot { transform: scale(4.2); background: var(--accent-text); }
.cursor.drag .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.pencil .cursor-dot { transform: scale(.55); }
.cursor.hidden .cursor-dot, .cursor.hidden .cursor-ring { opacity: 0; }

/* ---------------------------------------------------------- sketch button */
.sbtn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: var(--fs-small); letter-spacing: -.005em; color: var(--ink);
  isolation: isolate; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: color .3s var(--ease-out), transform .15s ease-out;
}
.sbtn .sb-edge { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.sbtn .sb-edge path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.sbtn::before {
  content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%);
  width: 260%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-text); transform: translate(-50%, -50%) scale(0);
  transition: transform .5s var(--ease-out);
}
/* the main action in a group of buttons: filled with ink at rest */
.sbtn.primary { background: var(--ink); color: var(--paper); }
.sbtn:focus-visible { color: var(--on-accent); }
.sbtn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) {
  .sbtn:hover { color: var(--on-accent); }
  .sbtn:hover::before { transform: translate(-50%, -50%) scale(1); }
  .sbtn:hover .sb-edge path { stroke: var(--accent); }
  .sbtn:hover .arr { transform: translate(3px, -3px); }
}
.sbtn:not(:disabled):active { transform: scale(.96); }
.sbtn .arr { display: inline-block; transition: transform .3s var(--ease-out); }
/* a label or icon that changes in place ("Copy email ✿" → "Copied ✓"): both versions share one grid
   cell, so the pill keeps its size, and they cross-fade. Words slide up; icons scale (.25 → 1). */
.sbtn .swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; transition: opacity .3s cubic-bezier(.2, 0, 0, 1), transform .3s cubic-bezier(.2, 0, 0, 1), filter .3s cubic-bezier(.2, 0, 0, 1); }
.swap > :last-child, .copied .swap > :first-child { opacity: 0; }
.copied .swap > :last-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .swap > :last-child { transform: translateY(.45em); filter: blur(4px); }
  .arr.swap > :last-child { transform: scale(.25); }
  .copied .swap > :first-child { transform: translateY(-.45em); filter: blur(4px); }
  .copied .arr.swap > :first-child { transform: scale(.25); }
  .copied .swap > :last-child, .copied .arr.swap > :last-child { transform: none; filter: none; }
}
/* trim the space the font reserves above and below, so labels sit centred in the pill */
@supports (text-box: trim-both cap alphabetic) {
  .sbtn { display: inline-block; text-box: trim-both cap alphabetic; padding-block: 20px; }
  .sbtn .arr { margin-left: 10px; }
}

/* ---------------------------------------------------------- tape + pin */
.tape {
  position: absolute; width: 74px; height: 22px; background: var(--tape);
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px)),
    repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 4px);
  -webkit-mask-composite: source-over;
  z-index: 3;
}
.pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.18), 0 2px 3px rgba(0,0,0,.18);
  z-index: 4;
}

/* ---------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 10002;
  transform: translate(-50%, 20px) rotate(-1.5deg); opacity: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-hand); font-size: var(--fs-ui); padding: 10px 20px 8px; border-radius: 14px;
  transition: opacity .15s ease-out, transform .15s ease-out;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-1.5deg); transition: opacity .25s ease-out, transform .45s var(--ease-spring); }

/* ---------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10003;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease-out);
  display: none;
}
.lightbox.open { display: block; }
.lightbox.show { opacity: 1; }
.lightbox img { position: fixed; left: 0; top: 0; transform-origin: 0 0; border-radius: 6px; box-shadow: var(--shadow); will-change: transform; outline: 1px solid var(--img-edge); outline-offset: -1px; }
.lightbox .lb-close { position: fixed; right: var(--gutter); top: 22px; font-family: var(--f-hand); font-size: var(--fs-ui); padding: 6px 12px; -webkit-tap-highlight-color: transparent; transition: transform .15s ease-out; }
.lightbox .lb-close:active { transform: scale(.96); }

/* ---------------------------------------------------------- curtain (page-transition fallback) */
.curtain {
  position: fixed; inset: 0; z-index: 10004; pointer-events: none;
  background: var(--paper);
  clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%));
}
.curtain.cover { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); transition: clip-path .55s var(--ease-in-out); }
.curtain.leave { clip-path: circle(0% at 50% 50%); transition: clip-path .7s var(--ease-in-out); }
.curtain.instant { transition: none; clip-path: circle(150% at 50% 50%); }

/* theme switch: colours swap in one frame (no transitions), then the new theme spreads like spilled ink */
.no-tx, .no-tx *, .no-tx *::before, .no-tx *::after { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
.theme-vt::view-transition-old(root) { animation: none; }
.theme-vt::view-transition-new(root) { animation: ink-spread .75s var(--ease-in-out); }
@keyframes ink-spread { from { clip-path: circle(0 at var(--tx, 90%) var(--ty, 40px)); } to { clip-path: circle(150vmax at var(--tx, 90%) var(--ty, 40px)); } }

/* ---------------------------------------------------------- footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--fs-caption); color: var(--muted); }
.foot a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s; }
@media (hover: hover) { .foot a:hover { color: var(--accent-text); } }

/* ---------------------------------------------------------- responsive */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }
}

/* motion paused from the nav: ambient loops stop */
.still .boil.on { animation: none; filter: none; }
.still .grain, .still .mouse .wheel, .still .fire.lit .fire-flame .art { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;
    /* movement snaps into place; fades stay, as a gentle cross-fade */
    transition-property: opacity, color, background-color, border-color, fill, stroke, visibility !important;
    transition-duration: .2s !important; transition-delay: 0s !important; }
  .boil.on { animation: none; filter: none; }
  .grain { animation: none; }
  .menu-sheet { clip-path: none; opacity: 0; }
  .menu-sheet.open { clip-path: none; opacity: 1; }
  .menu-sheet a { transform: none; filter: none; }
  .cs-cover-img, .work-img, .cs-next-img { view-transition-name: none !important; }
}

/* ---------------------------------------------------------- the flower: her mark
   The hand-drawn flower (the favicon) is the logo, and comes back as a small stitch
   across the site. It's a mask, so it takes the accent: red on paper, yellow on the blue. */
.mark { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; background: var(--accent);
  -webkit-mask: url("../assets/art/flower-mark.png") center / contain no-repeat; mask: url("../assets/art/flower-mark.png") center / contain no-repeat; }
.mark-sm { width: .9em; height: .9em; margin-right: 2px; }
.nav-logo .mark { width: 34px; height: 34px; vertical-align: middle; transition: transform .6s var(--ease-spring); }
@media (hover: hover) { .nav-logo:hover .mark { transform: rotate(72deg); } }
