/* the circle's vertical shift on phones (the sheet's lift, the menu's push down; js mfLiftForCard): a registered length,
   so it can glide with the sheet (.mf-shifting, .5s, the sheet's own curve) while a resize still snaps. Browsers without
   @property change it at once */
@property --shift { syntax: '<length>'; inherits: true; initial-value: 0px; }
:root { --shift: 0px; }
:root.mf-shifting { transition: --shift .5s cubic-bezier(.32, .72, 0, 1), --fit .5s cubic-bezier(.32, .72, 0, 1); }
/* the phone layout's fit (2026-11-19): the disc scaled to the room above the sheet (js mfLiftForCard), 1 everywhere else */
@property --fit { syntax: '<number>'; inherits: true; initial-value: 1; }
:root { --fit: 1; }

/* Hexagon homepage, built from the design canvas. Sizes follow the MF golden-ratio scales:
   spacing steps of sqrt(phi) from 16px, type 16 * sqrt(phi)^n. */

/* MF Ductus at 30.28-unit strokes (Thin / phi), wordmark letters only */
/* MF Ductus Sans Thin, the wordmark's face since 2026-11-16 (his ask; was MF Ductus Wordmark at 100); one step lighter since
   2026-11-20 (his ask: "reduce the weight"): MF Ductus Sans Hairline, Thin with its pen 49.59 -> 42.24 (tools/hairline.py) */
@font-face {
  font-family: 'MF Ductus Sans';
  src: url('/fonts/MFDuctusSans-Hairline.woff2?v=a524e27140') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
/* MF Ductus SC Medium (MF Ductus's own true small caps), the title above the disc since 2026-11-16 (his ask: titles above the discs
   only; the panel and sheet titles keep the Sans SC below) */
@font-face {
  font-family: 'MF Ductus SC';
  /* &r=2 (2026-11-20): a new URL. On PR #198's first deploy (2026-11-16) this file was left out, and the site caches every /fonts/
     response, 404s included, for a year (vercel.json), so browsers that opened the site then kept the failure at the old URL and
     showed the titles in the fallback sans (found on an iPhone in Safari) */
  src: url('/fonts/MFDuctusSC-Medium.woff2?v=9c06a319aa&r=2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* MF Ductus Sans SC Medium (true small caps, drawn at small-cap height), for the project title above the circle's
   project (chosen from _preview/title-weights.html, option 4; was ExtraLight) */
@font-face {
  font-family: 'MF Ductus Sans SC';
  src: url('/fonts/MFDuctusSansSC-Medium.woff2?v=3cba212ba6') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* MF Ductus Regular, the phone menu's words on touch screens since 2026-11-21 (his asks: MF Ductus, then a step down from
   SemiBold to Medium, then "reduce the weight" again); about.css declares the same file, and Medium 500, in the same family */
@font-face {
  font-family: 'MF Ductus';
  src: url('/fonts/MFDuctus-Regular.woff2?v=8d135fea87') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MF Ductus Wordmark';
  src: url('/fonts/MFDuctus-Wordmark.woff2?v=8e7a123483') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #01163D;            /* oklch(21.26% 0.0807 259.59); the Moonstone's flash shares this hue */
  --cream: #F9E6E7;           /* the ground, the Synesthesia calm light (2026-11-13, his pick: B4 / 5L of the Synesthesia previews, whole site); before it warm white #FEF7F3 (2026-11-10, his pick 3 of _preview/light-ground.html): oklch(98.0% 0.0092 52), the Moonstone's peach hue at a quarter of its old chroma; was cream #FFE6D7 */
  --veil: 252, 240, 240;      /* #FCF0F0: the band behind the header is the light ground and the near-white #FFFAF8 mixed half and half as light (his rule 2026-11-13, every project; js/home-hexagon.js computes it per project); was #FFFAF8 */
  --project-size: min(443.33px, calc(var(--hex-width) * 735 / 850 * 0.56));   /* see .mf-project; 56% of the ring (2026-11-10, his pick; was 48%, 380px) */
  --flash: #516890;           /* a chevron's state after it has moved the circle on (and the guide pill): the Moonstone's flash blue #4167A7 at 1/phi its chroma, oklch(51.64% 0.0684 260.27), same lightness and hue; white on it 5.63:1 */
  --dim-color: #010515;        /* oklch(12% 0.04 259.59): navy's hue, almost black */
  --dim-opacity: 1;            /* the overlay starts solid */
  --dim-ground: var(--dim-color);   /* the overlay's colour: near-black by day (at night, cream: the night opens bright) */
  --intro-ink: var(--type-start);   /* the type's first colour, on the overlay; it turns to --navy as the overlay lifts */
  --type-start: #FFFAF8;       /* oklch(98.9% 0.0059 54): the ground's hue, brighter, for the first frame */
  --bg-video-saturate: 0.618;  /* 1 / phi */
  --bg-video-opacity: 0.0382; /* 0.1 / phi^2; the outline reads the frames directly, so it is unaffected */

  --space-gutter: 14.19px;    /* 16 / phi^(1/4): the gap from the top and left edges to the ink */
  --space-section: 304.86px;  /* 16 * sqrt(phi)^12.25 */
  --hex-clear: 53.28px;       /* 16 * sqrt(phi)^5: the outline's clearance from the nearer screen edges */
  --wordmark-size: 54.25px;   /* 48.10 * phi^(1/4) */
  --nav-size: 17.51px;        /* 18.04 / phi^(1/16), a hair smaller */
  --nav-leading: 23.65px;     /* nav size * sqrt(phi), plus two phi^(1/16) hairs */
  --radius-md: 8px;
  /* roles the dark theme swaps (below); in the light theme they are the colours above */
  --shade: var(--dim-color);   /* hover and pressed shapes behind a word (nav, chevron bean, buttons) */
  --hint-ink: #5A637A;         /* the lines over the switch: navy over the calm light, 5.00 : 1 (was #626C83, 4.96 : 1 on the warm white) */
  --landed: #5A637A;           /* a chevron's bean after it has moved the circle on: the hint grey (2026-11-10, his pick 5 of _preview/ring-bean-light.html; 5.0 : 1 on the warm white, where the near-white #FFFAF8 it was disappeared; night keeps the near-white) */
  --on-landed: #FFFAF8;        /* the chevron on it: the near-white, 5.1 : 1 */
  --landed-alt: #FFFAF8;       /* held, every other step (2026-11-10, his ask): the near-white bean */
  --on-landed-alt: #01163D;    /* the chevron on it: navy */
  --on-shade: #FFFAF8;         /* the word on that shape: the site's near-white, never pure white (2026-11-09), as the disc ring's hairline */
  --panel: var(--type-start);  /* the details panel's ground */
  --hairline: rgba(1, 22, 61, .14);
  --sheet-bg: rgba(255, 250, 248, .86);   /* the phone sheet's thick material: the panel colour, frosted */
  --sheet-fill: rgba(120, 120, 128, .16); /* iOS tertiary fill: the close button's circle */
  --sheet-glyph: rgba(60, 60, 67, .6);    /* iOS secondary label: its cross */
  --grabber: rgba(60, 60, 67, .3);
  --sheet-solid: #FFFAF8;  /* the sheet's colour, opaque */
  --mark: #112A53;             /* the drawn sun, moon and "live" off the stone */
  --mf-hz60: #E9FF00;          /* 60 Hz as a colour (tokens.css): 60 Hz x 2^43 = 527.77 THz, 568.04 nm (CIE 1931 table), the sRGB cusp at its hue; not used yet */

  /* drawing box (850 x 736 units); the outline (a circle) fills 735 x 735 of it. Sized so the outline is as large
     as the screen allows while staying --hex-clear from the nearer edges */
  --hex-width: min(calc((100vw - 2 * var(--hex-clear)) * 850 / 735),
                   calc((100svh - 2 * var(--hex-clear)) * 850 / 735));
  --hex-stroke-fallback: var(--cream); /* shown through mix-blend-mode: difference */
  /* js/home-hexagon.js (layout) overrides --hex-width and --project-size and sets these from the window and what's in
     it, so nothing ever collides; without it, the circle is centred in the window as before */
  --ring-cx: 50%; --ring-cy: 50%;                              /* the circle's centre, from the left and the top */
  --ring-dx: 0px; --ring-dy: 0px;                              /* the same, from the middle (moves the drawn outline) */
  --title-cx: var(--ring-cx);                                  /* the title's and the label's centre line */
  --title-base: calc(var(--project-size) / 2 + 25.89px);       /* the circle's centre up to the label's baseline box */
}

html, body { margin: 0; background: var(--floor, var(--cream)); }   /* --floor: dark only, the ground as it shows through the video */
/* the home never scrolls or bounces, on a desktop or a phone: it is exactly the visible screen. Only the details panel
   (and the phone menu) scroll, and their scrolling stops at their own ends (overscroll-behavior: contain) */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.mf-zoomed, html.mf-zoomed body { overflow: auto; }   /* zoomed in (Cmd +): the home keeps its unzoomed layout, magnified, and scrolls */
.mf-home { touch-action: pinch-zoom; }
/* the home is an interface, not text: nothing selects or opens a touch menu when a drag (the sun or moon, a swipe, the stone)
   crosses it (2026-11-09); the details' copy stays selectable */
.mf-home { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mf-home .mf-details, .mf-home .mf-details * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* pull to refresh (js/home-hexagon.js): a small copy of the home's circle, centred at the top in the navy of the type
   and the nav's 1.443 stroke, drawing round from 12 o'clock as the page is pulled down; full is ready. While the page
   reloads it keeps tracing (the arc breathing, turning on phi timing). _preview/refresh.html, direction 1 */
.mf-pull { position: fixed; left: 50%; top: calc(14.19px + env(safe-area-inset-top, 0px)); width: 24px; height: 24px; opacity: 0; pointer-events: none; z-index: 40; color: var(--navy); }
.mf-pull svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.mf-pull circle { transform-origin: 12px 12px; }   /* a finger dragging inside the ring stays a drag (no pan); pinch-zoom stays */
* { -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; }   /* no double-tap zoom (and no tap delay); pinch-zoom stays, for anyone who needs it */   /* no grey box from the phone's browser on a tap; the site draws its own highlights */

.mf-home {
  position: relative;
  height: 100vh; height: 100dvh;   /* the visible screen (a phone's toolbars don't add a scroll) */
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--cream);
  color: var(--navy);
  font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
}

/* background video, faded into the cream */
.mf-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; pointer-events: none;
  opacity: var(--bg-video-opacity);
  /* chroma lowered on this layer only; the outline renderer reads the video's raw frames */
  filter: saturate(var(--bg-video-saturate));
}

/* Safari's bars (2026-11-16, his ask: no solid bars on phones). A Safari tab never draws a page that doesn't scroll under its
   bars; it fills them with one colour each: the top one from a solid fixed strip at the top (8px is enough, 1px isn't), the
   bottom one from the page's own background (html: the ground). This strip carries the header band's colour, over the band's
   near-opaque top, so the status bar continues the band and the toolbar the ground, with no edge. Measured in iOS Safari */
.mf-bar-tint { position: fixed; left: 0; right: 0; top: 0; height: 8px; background: rgb(var(--veil)); pointer-events: none; }
/* and the toolbar: the sea video fades out over its last 64px on touch screens, so the page meets the toolbar's ground in plain
   ground, with no line where the texture stops (the mask reads alpha only; its colour is the navy, never black) */
@media (hover: none) and (pointer: coarse) {
  .mf-bg-video { -webkit-mask-image: linear-gradient(to bottom, #01163D calc(100% - 64px), rgba(1, 22, 61, 0)); mask-image: linear-gradient(to bottom, #01163D calc(100% - 64px), rgba(1, 22, 61, 0)); }
}

/* warm veil from the top, feathered */
.mf-veil {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom,
    rgba(var(--veil), 1) 0%, rgba(var(--veil), 0.86) 8%, rgba(var(--veil), 0.66) 17%,
    rgba(var(--veil), 0.46) 26%, rgba(var(--veil), 0.28) 35%, rgba(var(--veil), 0.14) 44%,
    rgba(var(--veil), 0.05) 53%, rgba(var(--veil), 0) 62%);
}

/* very dark overlay on the background, under the outline and the type; it lifts as the outline grows in
   (same 1.8s ease-out), cleared by js/home-hexagon.js (.clear) */
.mf-dim {
  position: absolute; inset: 0; pointer-events: none;
  background-color: var(--dim-ground);
  opacity: var(--dim-opacity);
  transition: opacity 1.8s cubic-bezier(.215, .61, .355, 1);
}
.mf-dim.clear { opacity: 0; }

/* the type starts inverted (warm near-white on the dark) and turns back to navy as the overlay lifts */
.mf-header { color: var(--intro-ink); transition: color 1.8s cubic-bezier(.215, .61, .355, 1); }
.mf-home.lit .mf-header { color: var(--navy); }

/* the ring: max-chroma footage drawn only along the outline (the shader in js/home-hexagon.js draws the stroke), the
   inverted seascape turned back to the sea's own blues and drawn as it is, by day and at night (_preview/ring-colors.html, 2) */
.mf-hex-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
  /* no blend: the shader draws the sea's own colours (the inverted footage turned back), the same in both themes */
  transform: translate(var(--ring-dx), calc(var(--ring-dy) + var(--shift)));   /* the shader draws the outline at the canvas's centre */
}

/* drawn hexagon (fallback): same path, frame and size as the mask */
.mf-hex-stroke {
  display: none;
  position: absolute; left: var(--ring-cx); top: calc(var(--ring-cy) + var(--shift)); transform: translate(-50%, -50%);
  width: var(--hex-width); height: auto; overflow: visible;
  mix-blend-mode: difference;
  stroke: var(--hex-stroke-fallback);
}
.mf-nogl .mf-hex-video { display: none; }
.mf-nogl .mf-hex-stroke { display: block; }

/* the membrane: the old site's frosted material (mf.css --membrane: a light tint, blur(3px) saturate(150%), a faint cast
   gathering toward the top) over the whole screen while the details panel is open, in the home's colours: the ground lifted a step at 15% and a flash-blue
   cast. Above the background and the ring, under the type and the controls; the project's disc is cut out of it, so the
   project sits clear in a window. */
.mf-membrane {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(65, 103, 167, .06), transparent 70%),
    rgba(var(--veil), .15);
  -webkit-backdrop-filter: blur(9.89px) saturate(150%); backdrop-filter: blur(9.89px) saturate(150%);   /* 16/phi: stronger than the old membrane's 3px */
  --hole: calc(var(--project-size) / 2);
  -webkit-mask: radial-gradient(circle at var(--ring-cx) calc(var(--ring-cy) + var(--shift)), transparent var(--hole), #000 calc(var(--hole) + .5px));
          mask: radial-gradient(circle at var(--ring-cx) calc(var(--ring-cy) + var(--shift)), transparent var(--hole), #000 calc(var(--hole) + .5px));
  opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s .3s;
}
/* with the panel open, the title and category above the disc are hidden (the panel shows them); they go and come back
   at once, no fade (.no-fade is set only while the panel opens or closes, js/home-hexagon.js) */
.mf-home.has-details .mf-project-title, .mf-home.has-details .mf-project-label,
.mf-home.title-wait .mf-project-title, .mf-home.title-wait .mf-project-label { opacity: 0; }   /* title-wait: closing, until the circle is home */
.mf-home.no-fade .mf-project-title, .mf-home.no-fade .mf-project-label { transition: none; }
/* only while the details panel is open (.has-details, js/home-hexagon.js), in step with its slide */
.mf-home.has-details .mf-membrane { opacity: 1; visibility: visible; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s; }
/* the selected disc: a very bright glow ring just outside it, lit while a finger is on the disc and while its details
   are open (so it shows as the panel slides in on a phone). A white-hot hairline on the disc's edge, a solid stroke in
   the Moonstone's full flash blue #4167A7 (2.33px), then a tight bloom and a wide halo in the same blue, all at full
   strength (was a .55 ring and a .38 halo in the calmer #516890) */
/* Adularescence's cast (_preview/moonstone-cast.html 2c): the stone lying on the page. One light model in both themes: the
   shadow and the caustic are fixed ratios of the light the ground reflects (in linear light: shadow core 0.52/0.47/0.44
   R/G/B, warm because light through the stone fills it; contact 0.35; caustic x1.55/1.45/1.35; blue on the lit side
   x1.04/1.10/1.25). Each theme's colours are those ratios applied to its ground (calm light #F9E6E7; calm dark #0A0408, since 2026-11-13) in linear
   light, painted as they are: no blend modes, because Safari doesn't blend layers over the sea video (2026-11-09, iPhone:
   multiply painted grey and colour-dodge dark). The sea is at 3.8% (1.5% at night), so the ground is the colour. Placed
   and faded per frame by js/home-hexagon.js; the parts only, never the container. */
:root { --cast-sh1: #BAA4A0; --cast-sh2: #D8C2C1; --cast-ct: #9C8885; --cast-gc: #E2C2B6; --cast-gcm: #CEB2AA; --cast-gb: rgb(246 245 255); }   /* the ratios on the warm white (2026-11-10); the lit side's blue can't be brighter than so white a ground, so it keeps its 1.04 / 1.10 / 1.25 lean at the near-white's level */
.mf-cast { position: absolute; left: var(--ring-cx); top: calc(var(--ring-cy) + var(--shift)); width: 0; height: 0; pointer-events: none; }
.mf-cast > i { position: absolute; left: 0; top: 0; display: block; width: 0; height: 0; opacity: 0; }
.mf-cast-sh1 { background: radial-gradient(closest-side, var(--cast-sh1) 0%, var(--cast-sh1) 62%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 52%, transparent 100%); mask: linear-gradient(90deg, #000 0%, #000 52%, transparent 100%); }
.mf-cast-sh2 { background: radial-gradient(closest-side, var(--cast-sh2) 0%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 40%, transparent 100%); mask: linear-gradient(90deg, #000 0%, #000 40%, transparent 100%); }
.mf-cast-ct { background: radial-gradient(closest-side, var(--cast-ct) 0%, transparent 100%); }
.mf-cast-ca { background: radial-gradient(closest-side, color-mix(in srgb, var(--cast-gc) calc(var(--cast-glow, 1) * 100%), transparent) 0%,
  color-mix(in srgb, var(--cast-gcm) calc(var(--cast-glow, 1) * 100%), transparent) 45%, transparent 100%); }
.mf-cast-bs { background: radial-gradient(closest-side, color-mix(in srgb, var(--cast-gb) calc(var(--cast-s, .5) * 100%), transparent) 0%, transparent 100%); }
/* Chromatophores' frosted window (Bioluminescence only): the membrane's own material, the size and place of the disc's frame
   (set per frame by js/home-hexagon.js), just behind it: in the ring by order, in the desktop stage at the staged disc's layer */
.mf-disc-membrane { position: fixed; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 160% at 50% 0%, rgba(65, 103, 167, .06), transparent 70%), rgba(var(--veil), .15);
  -webkit-backdrop-filter: blur(9.89px) saturate(150%); backdrop-filter: blur(9.89px) saturate(150%); }
.mf-disc-membrane.staged { z-index: 19; }
.mf-disc-glow {
  position: absolute; left: var(--ring-cx); top: calc(var(--ring-cy) + var(--shift)); translate: -50% -50%; width: var(--project-size); height: var(--project-size);
  border-radius: 50%; pointer-events: none; opacity: 0;
  /* the ring and glow in the project's own accent (his pick AD-1, 2026-11-16, both modes, every project; --accent set per project by
     mfProjectTheme from data-projects, the theme's --flash otherwise); a near-white hairline inside, never pure white. Was the old
     Moonstone blue #4167A7 with a #fff hairline at night and a near-white ring by day, the same on every disc */
  box-shadow: 0 0 0 1px #FFFAF8, 0 0 0 3.33px var(--accent, var(--flash)), 0 0 9.89px 3.33px color-mix(in srgb, var(--accent, var(--flash)) 90%, transparent), 0 0 41.89px 9.89px color-mix(in srgb, var(--accent, var(--flash)) 62%, transparent);
}
@media (color-gamut: p3) { :root { --mf-hz60: color(display-p3 0.9270 0.9980 0.0000); } }   /* 60 Hz, at a wide-gamut screen's fuller chroma */
/* light mode: the same ring with a softer glow (AD-1's light version) */
:root[data-theme="light"] .mf-disc-glow { box-shadow: 0 0 0 1px #FFFAF8, 0 0 0 3.33px var(--accent, var(--flash)), 0 0 9.89px 3.33px color-mix(in srgb, var(--accent, var(--flash)) 55%, transparent), 0 0 41.89px 9.89px color-mix(in srgb, var(--accent, var(--flash)) 30%, transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .mf-disc-glow { box-shadow: 0 0 0 1px #FFFAF8, 0 0 0 3.33px var(--accent, var(--flash)), 0 0 9.89px 3.33px color-mix(in srgb, var(--accent, var(--flash)) 55%, transparent), 0 0 41.89px 9.89px color-mix(in srgb, var(--accent, var(--flash)) 30%, transparent); } }
.mf-home:is(.has-details, .disc-press) .mf-disc-glow { opacity: 1; }
/* a mouse over the disc lights it too, and so does a press, at once (no fade); hover only where there's a real hover */
.mf-home.disc-down .mf-disc-glow { opacity: 1; }
@media (hover: hover) { .mf-home.disc-hover .mf-disc-glow { opacity: 1; } }
/* phones: with the details open, the menu closes and the hamburger steps aside, so only the panel's close button shows */
.mf-home.has-details .mf-burger-wrap { visibility: hidden; }

/* the project at the centre of the circle: the Moonstone, 380 px at full size, which is 48% of the circle's diameter
   at 1440 x 900; it shrinks with the circle on smaller screens (the page inside zooms the stone to fit its frame) */
.mf-project {
  position: absolute; left: var(--ring-cx); top: calc(var(--ring-cy) + var(--shift)); translate: -50% -50%;
  width: var(--project-size); height: var(--project-size);
  border: 0; background: transparent; color-scheme: normal;
}

/* the next-project chevron: inside the circle on the right, halfway between the project's edge and the circle line;
   16/phi wide, 16*phi tall, the nav caret's stroke; it turns from the first-frame white to navy with the type */
.mf-next, .mf-prev {
  position: absolute; top: calc(var(--ring-cy) + var(--shift)); translate: -50% -50%;
  left: calc(var(--ring-cx) + (var(--project-size) / 2 + var(--hex-width) * 366.3 / 850) / 2);
  width: 44px; height: 112px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;   /* tall enough to cover the hover bean (112.2px) */
  display: grid; place-items: center;
  color: var(--intro-ink);
  transition: color 1.8s cubic-bezier(.215, .61, .355, 1);
}
/* the back chevron: the same distance on the left */
.mf-prev { left: calc(var(--ring-cx) - (var(--project-size) / 2 + var(--hex-width) * 366.3 / 850) / 2); }
.mf-home.lit .mf-next, .mf-home.lit .mf-prev { color: var(--navy); }
/* on landing only right is allowed: the back chevron waits hidden (it keeps its place and shape) until the first step
   right, and the guide's left key is dimmed */
.mf-prev.is-locked { visibility: hidden; pointer-events: none; }
.mf-keys kbd.is-off { opacity: .382; }
.mf-next, .mf-prev { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }   /* held down, no selection or touch menu */
.mf-next svg, .mf-prev svg { display: block; overflow: visible; }   /* hover switches at once, no fade */
/* hover: the nav items' padding, in the near-black dim colour, with the chevron near-white. The same padding (4.66px above
   and below the ink, 7.54px at the sides) and corner (radius 5.08px, smoothing 1/phi) as the nav, around the chevron's
   ink (11.4 x 24.35px with its round caps), so 26.485 x 33.673px; optically centred the same way, halfway between the ink
   box's centre and the ink's centre of mass (-0.095px across). Drawn inside the chevron's svg, behind its stroke. js/home-hexagon.js
   draws it as a long bean following the ring stroke (concentric arcs, round ends): that box's thickness, x phi^3 long. */
.mf-next-hl { fill: var(--shade); stroke: none; opacity: 0; }   /* darker than the nav's navy: #010515 */
.mf-home.lit :is(.mf-next, .mf-prev).is-key svg { color: var(--on-shade); }   /* near-white #FFFAF8 on the dark bean */   /* on the svg, so the button keeps its 1.8 s intro fade */
.mf-home.lit :is(.mf-next, .mf-prev).is-key .mf-next-hl { opacity: 1; }
/* hover only where there's a real hover: iOS keeps :hover on the last thing tapped, so on phones the bean would stay lit
   after a tap (the tap's own feedback is the landed flash) */
@media (hover: hover) {
  .mf-home.lit :is(.mf-next, .mf-prev):hover svg { color: var(--on-shade); }
  .mf-home.lit :is(.mf-next, .mf-prev):hover .mf-next-hl { opacity: 1; }
}
/* pressed (2026-11-19, his ask: "a different color when clicked. only 1 accent color"; was the hover bean on a press and
   near-white / grey alternating while held): every press and held step of a chevron (click, tap, swipe, arrow key) lights its
   bean in the project's one accent (--accent, the disc highlight's colour, set per project by mfProjectTheme()), the chevron on
   it in the calm dark #0A0408 (5.6 : 1 on Adularescence's #0285FF, more on the others). Both themes, no blend, so the accent
   stays itself. Hover keeps the hover bean (js land() still sets .is-pressed / .is-held-a / .is-held-b).
   2026-11-20 (his word "keep the color. just use the inverted hue of each"): the accent's inverted hue, --accent-inv (OKLCH hue
   + 180, lightness kept, chroma in gamut; js invHue()): Adularescence #B67A00, Chromatophores bio #FF9B6D, MF Anaglyph #2DB9FF.
   The chevron on it stays #0A0408 (5.6, 9.8, 9.2 : 1) */
.mf-home.lit :is(.mf-next, .mf-prev):is(.is-pressed, .is-held-a, .is-held-b) .mf-next-hl { opacity: 1; fill: var(--accent-inv, var(--accent, var(--flash))); }
.mf-home.lit :is(.mf-next, .mf-prev):is(.is-pressed, .is-held-a, .is-held-b) svg { color: #0A0408; }   /* .is-key: lit by the arrow keys (js/home-hexagon.js) */
.mf-next:focus-visible, .mf-prev:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 50%; }
.mf-project { transition: opacity .6s cubic-bezier(.215, .61, .355, 1); }
.mf-project.is-out { opacity: 0; pointer-events: none; }
.mf-project.is-parked { visibility: hidden; pointer-events: none; }   /* loaded, sized and drawn while it waits (display none would stop its drawing), so a switch shows it at once */
.mf-project.no-fade, .mf-home .mf-project.no-fade { transition: none; }
.mf-project.is-disc { border-radius: 50%; }   /* a project on its own ground, shown as a disc (MF Anaglyph: MF Splash Drift) */
/* a project that opens as a rectangle (Chromatophores, "shape": "rect"): its corner is half the disc in px, so the corner eases
   from the circle down to the rectangle's own (desktop 25.89px, phones the sheet's 38px) as its box grows */
.mf-project.is-rect { border-radius: calc(var(--project-size) / 2); }

/* the project's title, centred above the project and its category label, in MF Ductus Sans SC Medium (true small caps), a step above the nav's size; it turns from the
   first-frame white to navy with the type, and crossfades when the chevron changes the project */
.mf-project-title {
  position: absolute; left: var(--title-cx); margin: 0;
  bottom: calc(100% - var(--ring-cy) - var(--shift) + var(--title-base) + 12.58px + 9.89px); translate: -50% 0;   /* above the label: the label, 16/phi */
  font-family: 'MF Ductus SC', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 500;   /* MF Ductus SC since 2026-11-16 (was MF Ductus Sans SC) */
  font-size: 18.59px;   /* the nav's 17.51 * phi^(1/8), a little larger */ line-height: 1; white-space: nowrap;
  text-transform: lowercase;   /* lowercased into the true small caps */
  letter-spacing: .12em; padding-left: .12em;   /* opened a little (.1 -> .12em, 2026-11-19); the padding balances the trailing space so it stays centred */
  color: var(--intro-ink);
  transition: color 1.8s cubic-bezier(.215, .61, .355, 1);   /* no fade when the project changes (2026-11-08): the words change at once */
}
.mf-home.lit .mf-project-title { color: var(--navy); }
/* the project's category under its title: Atkinson Hyperlegible Next (Poppins until 2026-11-22) at the guide's 12.58px, as written (Motion, Type · static), untracked, 16 x phi (25.89px)
   above the project and 16/phi (9.89px) below the title; it turns navy with the type and crossfades with the title */
.mf-project-label {
  position: absolute; left: var(--title-cx); margin: 0; translate: -50% 0;
  bottom: calc(100% - var(--ring-cy) - var(--shift) + var(--title-base));   /* 16 x phi above the project (or above the circle, where the title can't fit inside it) */
  font-size: 12.58px; line-height: 1; letter-spacing: 0; white-space: nowrap;   /* as written: Motion, Type · static */
  color: var(--intro-ink);
  transition: color 1.8s cubic-bezier(.215, .61, .355, 1);
}
.mf-home.lit .mf-project-label { color: var(--label-ink); }
/* the categories (Motion, Type · static) sit back from the titles: the ink 61.8% (1/phi) of the way from the ground,
   in both themes (the tokens swap, so the mix follows); in the panel and the PROJECTS list too */
.mf-home { --label-ink: color-mix(in oklab, var(--navy) 61.8%, var(--cream)); }
.mf-details-label { color: color-mix(in oklab, var(--navy) 61.8%, var(--panel)); }
.mf-menu-cat { color: var(--label-ink); }
.mf-label-dot { margin: 0 .5em; }   /* "type · static": the dot opened up on both sides (no word spaces) */
/* a project change (js typeIn): each letter its own mask, its top half and bottom half sliding in from either side;
   the category rises through the bottom of its own line (clipped there, room above and below for its letters) */
.mf-tl { display: inline-block; position: relative; overflow: hidden; vertical-align: top; padding: .18em 0; margin: -.18em 0; }
.mf-tl-top, .mf-tl-bot { display: inline-block; }
.mf-tl-top { clip-path: inset(-20% 0 50% 0); }
.mf-tl-bot { position: absolute; left: 0; top: .18em; clip-path: inset(50% 0 -20% 0); }
.mf-project-label { clip-path: inset(-.6em -2em -.3em -2em); }
.mf-label-in { display: inline-block; }

/* header */
.mf-header {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: var(--space-gutter);
  padding: var(--space-gutter) var(--space-gutter) 0;
  /* from the Home Screen the page runs under the status bar (viewport-fit=cover): the header keeps clear of it and the island.
     A Safari tab's insets are 0, so this is the gutter there */
  padding-top: calc(var(--space-gutter) + env(safe-area-inset-top, 0px));
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* wordmark: the M's leftmost ink and its cap top land on the gutter, equal gaps (measured in a 4x render) */
.mf-wordmark {
  display: block;
  margin-left: -0.0464em;   /* MF Ductus Sans Thin's M (2026-11-16): its left bearing 0.050em, 0.019 less than the Wordmark cut's */
  margin-top: -0.0709em;   /* cap top lands on the gutter, level with PROJECTS (Sans caps 0.700em tall, the Wordmark's 0.691) */
  font-family: 'MF Ductus Sans', 'Atkinson Hyperlegible Next', sans-serif;
  font-weight: 100;
  /* scales down on narrow screens so the name (about 8.26em wide) never overflows */
  font-size: calc(min(var(--wordmark-size), calc((100vw - 2 * var(--space-gutter)) / 8.26)) / 1.1278 / 1.1278);   /* a little smaller everywhere (2026-11-20, his ask): / phi^(1/4), and another step the same day */
  line-height: 1;
  letter-spacing: 0;
  font-kerning: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.mf-wordmark:hover { text-decoration: none; }

/* nav: P, A and C aligned optically by eye (offsets on each item); the links are switched off for now */
/* the nav's blur layer (2026-11-20, his rule): when anything on the page reaches the nav's words on desktop (js/nav-blur.js
   sets .is-crowded), a blur layer shows behind them: the header band's colour at 60%, blurred 16px, a rounded box 16px round
   the list */
.mf-nav { position: relative; }
.mf-nav-list { position: relative; }
.mf-nav-blur { position: absolute; inset: -16px; border-radius: 16px; pointer-events: none;
  background: rgba(var(--veil), .6);   /* the header band's colour, strong enough that what passes under stays behind the words */
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s .3s; }
.mf-nav.is-crowded .mf-nav-blur { opacity: 1; visibility: visible; transition: opacity .3s cubic-bezier(.215, .61, .355, 1); }
@media (prefers-reduced-motion: reduce) { .mf-nav-blur, .mf-nav.is-crowded .mf-nav-blur { transition: none; } }
.mf-nav { margin-right: clamp(0px, 100vw - 600px, var(--space-section)); /* gives way on mid widths (the wordmark is about 7.81em, 424px) instead of wrapping under it */ font-size: var(--nav-size); margin-top: -0.3147em; /* P's cap top on the gutter */ }
.mf-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  font-size: var(--nav-size); line-height: calc(var(--nav-leading) * 1.0619);   /* a little more open than the shared leading (2026-11-22, his ask, desktop: x phi^(1/8), 25.11px, was 23.65); the nav shows on desktop only, About's index keeps 23.65 */
  text-transform: uppercase;
}
.mf-nav-item { position: relative; display: inline-flex; align-items: baseline; letter-spacing: 0; font-kerning: normal; cursor: default; }   /* Atkinson Hyperlegible Next's own kerning (2026-11-22; the Poppins-fitted letter spacing is gone) */   /* hovers switch at once, never fade */
/* hover: a smoothed rounded rectangle in the near-black dim colour (#010515) behind the word, the word near-white #FFFAF8.
   Design #3 in _preview/nav-highlight.html. Each shape is an inline SVG path, computed from the word's ink as rendered
   (Poppins 400 at the nav size, 8x raster): fitted around the capitals, cap height 12.204px, padded cap/phi^2 = 4.66px
   above and below and 4.66 x phi = 7.54px at the sides, so H = 21.53px; radius H/phi^3 = 5.08px with Figma-style corner
   smoothing 1/phi (61.8%), so the curvature ramps up out of the straight edges. Optical centring: each shape is centred
   halfway between the ink box's centre and the ink's centre of mass, so light ends (the T's, A, the open caret) read
   evenly padded: ABOUT -0.99px, CONTACT -0.41px, PROJECTS -2.26px, and all three -0.09px vertically (one value, so the
   stack stays even). Positioned outside the item's flow, so nothing moves. Remeasure if the nav's font or size changes. */
.mf-nav-hl { position: absolute; z-index: -1; overflow: visible; pointer-events: none; fill: var(--shade); opacity: 0; }
a.mf-nav-item { cursor: pointer; }
a.mf-nav-item:hover { text-decoration: none; }   /* ABOUT (a link since 2026-11-20) lights as the others do, never underlined */
.mf-home.lit .mf-nav-item:hover { color: var(--on-shade); }   /* near-white #FFFAF8 on the near-black shape; the caret follows (currentColor) */
.mf-home.lit .mf-nav-item:hover .mf-nav-hl { opacity: 1; }
/* the arrow keys' selection (js/home-hexagon.js, .is-kbd): lit exactly as hover */
.mf-home.lit .mf-nav-item.is-kbd { color: var(--on-shade); }
.mf-home.lit .mf-nav-item.is-kbd .mf-nav-hl { opacity: 1; }
.mf-home.lit .mf-projects-menu button.is-kbd { color: var(--hl-ink, var(--on-shade)); }
.mf-home.lit .mf-projects-menu button.is-kbd::before { background: var(--hl, var(--shade)); }
/* a project picked by the keys: PROJECTS lets go of its lit state, so one thing is lit at a time */
.mf-home.lit.kbd-in-menu .mf-nav-item[aria-expanded="true"] { color: var(--navy); }
.mf-home.kbd-in-menu .mf-nav-item[aria-expanded="true"] .mf-nav-hl { opacity: 0; }


/* PROJECTS is a button: it opens the list of the circle's projects (js/home-hexagon.js builds it from data-projects).
   The caret is its chevron and turns over while the list is open. Choosing a project shows it in the circle. */
button.mf-nav-item { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: inherit; line-height: inherit; }
button.mf-nav-item:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 5.08px; }
.mf-nav-item .mf-caret { transition: rotate .2s ease; }
.mf-nav-item[aria-expanded="true"] .mf-caret { rotate: 180deg; }
.mf-home.lit .mf-nav-item:is(:hover, [aria-expanded="true"]) .mf-caret { fill: currentColor; }   /* the caret fills on hover and while the list is open */
.mf-home.lit .mf-nav-item[aria-expanded="true"] { color: var(--on-shade); }   /* open: lit like hover */
.mf-home.lit .mf-nav-item[aria-expanded="true"] .mf-nav-hl { opacity: 1; }
.mf-nav-list li:has(.mf-projects-menu) { position: relative; }
/* the list sits under PROJECTS as plain items, no card (Michael), above the circle and the chevrons. Its top padding
   bridges the 9.89px gap under PROJECTS, so hovering down keeps it open. Each button is as wide as the widest name
   (the list sizes to its longest, each item fills it) and as tall as its share of the 4.66px between items, so the
   hover areas meet; the highlight shape (::before) is inset 2.33px top and bottom, which leaves the visible gap. */
.mf-projects-menu { list-style: none; margin: 0; padding: 9.89px 0 0; position: absolute; z-index: 30; top: 100%; left: 0; min-width: max-content; }
.mf-projects-menu[hidden] { display: none; }
.mf-projects-menu button {
  font: inherit; color: inherit; text-transform: uppercase; letter-spacing: 0; line-height: 1; text-align: left;
  background: none; border: 0; cursor: pointer; position: relative; isolation: isolate;
  display: block; box-sizing: border-box; width: calc(100% + 7.54px); margin-left: -7.54px; padding: 9.32px 7.54px;   /* more leading between the names (2026-11-22, his ask): each row 4.66px (cap/phi^2) taller, 35.15px, was 6.99px padding; the highlight keeps its size (inset below) */
}
/* a category heading over its projects: the project label's size (Atkinson Hyperlegible Next 12.58px), capitalised ("Type"), not a button */
.mf-menu-cat { font-size: 12.58px; line-height: 1; letter-spacing: 0; text-transform: capitalize; padding: 4.66px 0 2.33px; cursor: default; }
.mf-menu-cat:not(:first-child) { padding-top: 14.19px; }   /* the gutter between one category and the next */
.mf-projects-menu button::before { content: ''; position: absolute; z-index: -1; inset: 4.66px 0; border-radius: 5.08px; }   /* was 2.33px: the extra leading goes round the shape, not into it */
/* the projects highlight as the phone menu's (2026-11-22, his ask: "make the navbar projects dropdown text style hover/tap the
   same as it is on mobile", desktop): each project lights in its own disc's colours (--hl, --hl-ink from data-projects' hl, set on the
   button by js/site-header.js), on hover, press and focus; the near-black shape and near-white word only where a project has none */
.mf-home.lit .mf-projects-menu button:is(:hover, :active, :focus-visible) { color: var(--hl-ink, var(--on-shade)); outline: none; }
.mf-home.lit .mf-projects-menu button:is(:hover, :active, :focus-visible)::before { background: var(--hl, var(--shade)); }

/* a project's number in a circle (2026-11-22, his ask and pick from _preview/project-numbers.html, N1 and N2: "outline on not selected,
   solid on selected"): beside each name in the PROJECTS list and the phone menu, an outline in the word's own ink (the nav's 1.443px
   stroke); the project showing (aria-current) and the title above the disc take it solid, the number cut out in the ink's own word colour
   (--on-shade). The circle is the nav size x phi^(1/4) (1.128em; the title's 1.2em), its number Atkinson Hyperlegible Next at .6 of it, optically centred
   (--ox / --oy, measured by js/site-header.js); its vertical margins give back what it adds over a line-height 1 line, so no row grows */
.mf-num { --num-d: 1.128em; position: relative; display: inline-block; vertical-align: middle; flex: none; width: var(--num-d); height: var(--num-d);
  margin: calc((1em - var(--num-d)) / 2) .42em calc((1em - var(--num-d)) / 2) 0; border-radius: 50%; box-shadow: inset 0 0 0 1.443px currentColor;
  letter-spacing: 0; text-transform: none; }
.mf-num i { position: absolute; left: 50%; top: 50%; font: 400 calc(var(--num-d) * .6)/1 'Atkinson Hyperlegible Next', system-ui, sans-serif; font-style: normal; letter-spacing: 0;
  transform: translate(calc(-50% + var(--ox, 0em)), calc(-50% + var(--oy, 0em))); }
[aria-current="true"] > .mf-num, .mf-project-title .mf-num { background: currentColor; box-shadow: none; }
[aria-current="true"] > .mf-num i, .mf-project-title .mf-num i { color: var(--on-shade); }
/* lit (hover, press, keys): the solid circle takes the word's colour on the project's shape, the number the shape's */
.mf-home.lit :is(.mf-projects-menu, .mf-burger-projects) button[aria-current="true"]:is(:hover, :active, :focus-visible, .is-kbd) > .mf-num i { color: var(--hl, var(--shade)); }
.mf-project-title .mf-num { --num-d: 1.2em; display: none; }   /* the title's own copy shows on phones only (below) */
/* where the project's number sits (2026-11-22, his asks: "just outside of the video mask ring in the top left", then "above the title on
   mobile only"): desktop, a solid circle just outside the ring at its upper left (45 degrees, 9.89px clear of the ring), at the title's size;
   phones (and landscape phones), above the title, centred on its letters, 9.89px over the capitals. It hides with the title */
.mf-ring-num { position: absolute; z-index: 3; font-size: 18.59px; --num-d: 1.2em; margin: 0; pointer-events: none;
  left: calc(var(--ring-cx) - (var(--ring-r, 0px) + 9.89px + var(--num-d) / 2) * .7071);
  top: calc(var(--ring-cy) + var(--shift, 0px) - (var(--ring-r, 0px) + 9.89px + var(--num-d) / 2) * .7071);
  translate: -50% -50%; color: var(--intro-ink); background: currentColor; box-shadow: none; transition: color 1.8s cubic-bezier(.215, .61, .355, 1), opacity .3s; }
.mf-ring-num i { color: var(--on-shade); }
.mf-home.lit .mf-ring-num { color: var(--navy); }
.mf-home:is(.has-details, .title-wait, .has-burger) .mf-ring-num { opacity: 0; }
@media (max-width: 600px) {
  .mf-ring-num { display: none; }
  .mf-project-title .mf-num { display: block; margin: 0 auto 9.89px; translate: -.06em 0; }   /* the title's .12em tracking pad offset, so it sits on the letters' middle */
}
:root.mf-land .mf-ring-num { display: none; }
:root.mf-land .mf-project-title .mf-num { display: block; margin: 0 auto 9.89px; translate: -.06em 0; }
/* the unselected circles pressed into the page (2026-11-22, his pick D1 of _preview/num-neumorph.html, "Pressed in, soft"): no outline;
   an inset shadow in the theme's dark from the upper left and an inset glow in its light from the lower right (1.5px, 2.5px blur), navy /
   near-black and near-white / calm light, never pure black or white. Lit (hover, press, keys) they go back to the outline in the lit word's
   colour; the selected one stays solid. The open phone menu keeps the outline: its difference blend would turn the press inside out */
.mf-num, .mf-details-close { --neu-d: rgba(1, 22, 61, .28); --neu-l: rgba(255, 250, 248, .95); }
:root[data-theme="dark"] :is(.mf-num, .mf-details-close) { --neu-d: rgba(1, 5, 21, .95); --neu-l: rgba(249, 230, 231, .16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.mf-num, .mf-details-close) { --neu-d: rgba(1, 5, 21, .95); --neu-l: rgba(249, 230, 231, .16); } }
:is(.mf-projects-menu, .mf-burger-projects) button:not([aria-current="true"]) > .mf-num { box-shadow: inset 1.5px 1.5px 2.5px var(--neu-d), inset -1.5px -1.5px 2.5px var(--neu-l); }
:is(.mf-projects-menu, .mf-burger-projects) button:not([aria-current="true"]) > .mf-num i { opacity: .8; }
.mf-home.lit :is(.mf-projects-menu, .mf-burger-projects) button:not([aria-current="true"]):is(:hover, :active, :focus-visible, .is-kbd) > .mf-num { box-shadow: inset 0 0 0 1.443px currentColor; }
.mf-home.lit :is(.mf-projects-menu, .mf-burger-projects) button:not([aria-current="true"]):is(:hover, :active, :focus-visible, .is-kbd) > .mf-num i { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .mf-home.has-burger .mf-burger-projects button:not([aria-current="true"]) > .mf-num { box-shadow: inset 0 0 0 1.443px currentColor; }
  .mf-home.has-burger .mf-burger-projects button:not([aria-current="true"]) > .mf-num i { opacity: 1; }
}
   /* 22.31px by the 18.59px title, 9.89px to the first letter */
/* picked from a list, the title's circle flashes twice in the project's accent, on and off, no fade (js/home-hexagon.js .flash) */
:is(.mf-project-title .mf-num, .mf-ring-num).flash { animation: mf-num-flash .48s steps(1, end) 1; }
@keyframes mf-num-flash { 0% { background: var(--accent, currentColor); } 25% { background: currentColor; } 50% { background: var(--accent, currentColor); } 75%, 100% { background: currentColor; } }
@media (prefers-reduced-motion: reduce) { :is(.mf-project-title .mf-num, .mf-ring-num).flash { animation: none; } }
/* the open phone menu blends its words by difference, near-white by day (below): the solid circle's number is the calm dark there, so it
   reads as a cut-out of whatever the menu sits on, in both themes */
@media (hover: none), (pointer: coarse) { .mf-home.has-burger .mf-burger-projects button[aria-current="true"] > .mf-num i { color: #0A0408 !important; } }

/* golden-ratio caret, a step larger since 2026-11-22 (his ask "make the projects triangle larger": x phi^(1/2), 10.823 x 8.508, was
   8.509 x 6.689; its stroke kept at the nav's 1.443), optically centred on the capitals: its optical point (halfway between its box's
   middle and its centroid, 7/12 of its height from the apex) on the capitals' middle, so top = -cap/2 + 5/12 x 8.508px; Atkinson
   Hyperlegible Next's cap height is .6676em */
.mf-caret {
  display: block; flex: none;
  margin-left: 4.260px;
}
/* PROJECTS: the caret sits outside the highlight shape, 4.66px (cap/phi^2) past its end, in the ink, not the shape's word colour */
.mf-nav-item .mf-caret { margin-left: 10.64px; top: calc(-.3338em + 3.545px + 1px); }   /* a hair lower than the burger's: 1px; the gap past the highlight is set by js/site-header.js from the S's ink (4.66px past the shape) */
.mf-home.lit .mf-nav-item .mf-caret { color: var(--navy); }
.mf-caret {
  position: relative; top: calc(-.3338em + 3.545px);
}


/* keyboard hint, bottom right on the gutter: two keycaps and a label, a step below the nav (16 / sqrt(phi) = 12.58px).
   The keycaps are outlined in the type's colour with the nav highlight's corner (5.08px); like the header, the hint
   turns from the first-frame white to navy with the type. Touch screens have no arrow keys, so it's hidden there. */
.mf-keys {
  position: absolute; right: var(--space-gutter); bottom: var(--space-gutter); margin: 0;
  display: flex; align-items: center; gap: 5.26px;   /* the caret's ink gap */
  font-size: 12.58px; line-height: 1; letter-spacing: 0;
  color: var(--intro-ink);
  transition: color 1.8s cubic-bezier(.215, .61, .355, 1);
}
.mf-home.lit .mf-keys { color: var(--navy); }
.mf-keys kbd {
  display: inline-grid; place-items: center; box-sizing: border-box;
  width: 20.36px; height: 20.36px; padding: 0;   /* a 16 * sqrt(phi) square */
  border: 1px solid currentColor; border-radius: 5.08px;
  font: inherit; font-size: 12.58px;
}
.mf-keys kbd svg { display: block; overflow: visible; }   /* drawn arrows (the UI face's own aren't used), centred in the cap */
.mf-keys span { margin-left: 2.63px; }
.mf-keys .mf-key-return { margin-left: 16px; }   /* the second key, set off from the first label */   /* the label a half-gap further from the keys */
@media (hover: none) and (pointer: coarse) { .mf-keys { display: none; } }

/* the sun cursor: one sun everywhere inside the ring while the Moonstone shows, the same as over the stone
   (carousel/moonstone.html): drawn (a cursor image can't blend), colour burn in the flash's deep blue #112A53, its rays
   growing and shrinking on golden steps (js/home-hexagon.js sets .is-sun and moves .mf-sun; over the stone the stone's
   frame draws it). No other cursor inside the ring. */
.mf-home.is-sun, .mf-home.is-sun * { cursor: none; }
.mf-home.is-sun :is(.mf-next, .mf-prev, .mf-sky-btn), .mf-home.is-sun :is(.mf-next, .mf-prev, .mf-sky-btn) * { cursor: pointer; }   /* over a chevron: the normal cursor, no sun */
.mf-sun { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 25; pointer-events: none; display: none; }
/* solid #112A53 off the stone; colour burn only where the icon overlaps the disc (js/home-hexagon.js sets .on-disc) */
.mf-sun.on-disc, .mf-sky.on-disc { mix-blend-mode: color-burn; }
.mf-home.is-sun .mf-sun.on { display: block; }
.mf-sun .mf-moon { display: none; }
.mf-sun.is-moon .mf-moon { display: inline; }   /* at night the cursor is tonight's moon, the marker's crescent */
.mf-sun.is-moon g { display: none; }
.mf-home.has-details .mf-sun, .mf-home.has-burger .mf-sun { display: none; }
.mf-home.sky-grab { cursor: grab; }   /* Live, inside the ring: a drag moves the sun or moon */
.mf-home.sky-dragging, .mf-home.sky-dragging * { cursor: grabbing; }
/* the sky's marker in the ring (js/home-hexagon.js): where the real sun is, drawn as the sun cursor is (colour burn, the
   flash's deep blue), its angle round the ring the sun's direction and its distance from the centre how far the sun is
   from straight overhead; at night a crescent moon, the same size. Under the cursor's sun; hidden with
   the details panel or the phone menu open (the membrane is up then). */
/* the sun / moon marker's size and its "live" label (js/home-hexagon.js reads both: the fixed circle sits far enough in
   from the stroke that "live" under the sun at the bottom stays 6.99px clear: .5405 x size + label + 6.99) */
.mf-home { --mark-size: 40.71px; --mark-label: 12.58px; }   /* 25.16 x phi, 9.89 x sqrt(phi): _preview/marker-size.html, 3 (2026-11-06) */
.mf-sky { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 24; pointer-events: none; display: none; }
.mf-home.has-sky .mf-sky { display: block; }
.mf-home.has-details .mf-sky, .mf-home.has-burger .mf-sky { display: none; }
.mf-sky svg { position: absolute; left: 0; top: 0; translate: -50% -50%; width: var(--mark-size); height: var(--mark-size); overflow: visible; }
.mf-sky .mf-moon { display: none; }
.mf-sky.is-moon g { display: none; }   /* at night: the crescent instead of the sun (its disc and rays) */
/* "Live" under the live sun (or moon), centred, 16/phi (9.89px) Atkinson Hyperlegible Next in the same deep blue (the marker hides in Animate) */
.mf-sky-label { position: absolute; left: 0; top: calc(var(--mark-size) * var(--mark-gap, .5405)); translate: -50% 0; font-size: var(--mark-label); line-height: 1; letter-spacing: 0; color: var(--mark); white-space: nowrap; }
.mf-sky.is-moon .mf-moon { display: inline; }   /* a crescent, a 6.6-unit moon cut by an offset circle, the size of the old moon disc */   /* (the suns draw 24 units at 18.87px in a 32-unit box, so the rays never overflow it) */
/* over a chevron (js/home-hexagon.js sets .over-nav): the sun, the moon and "live" turn white with a difference blend,
   so they invert against what's under them (dark on the cream, light over the chevron and its highlight) */
.mf-sky.over-nav, .mf-sun.over-nav { mix-blend-mode: difference; }
.mf-sky.over-nav g, .mf-sky.over-nav .mf-moon, .mf-sun.over-nav g { fill: #FFFFFF; stroke: #FFFFFF; }
.mf-sky.over-nav .mf-moon, .mf-sky.over-nav .mf-core, .mf-sun.over-nav circle { stroke: none; }
.mf-sky.over-nav .mf-sky-label { color: #FFFFFF; }
/* Tilt and Live sun: centred under the ring, the guide's size, lit as the nav is (near-black shape,
   white word, no fade) */
.mf-sky-controls {
  position: absolute; display: flex; gap: 9.89px;   /* --sky-cx: a phone in landscape may set the switch beside the circle */
  /* centred on --sky-cx without a transform (2026-11-10): a box from the left edge to twice --sky-cx, the row centred in it
     at its own width. A translate would make the row a stacking context and cut the lines' blend off from the cast behind */
  left: 0; right: calc(100% - 2 * var(--sky-cx, var(--ring-cx))); width: max-content; margin-inline: auto;
  /* 16 x phi under the ring, but never closer than the gutter to the bottom (a short window: the guide's row); 21.9 = its height */
  top: calc(var(--sky-top, min(calc(50% + var(--hex-width) * 366.3 / 850 + 25.89px), calc(100% - var(--space-gutter) - 21.9px))) + var(--shift));
  color: var(--intro-ink); transition: color 1.8s cubic-bezier(.215, .61, .355, 1);   /* turns navy with the type; the buttons inherit, so their hover never fades */
}
.mf-home.lit .mf-sky-controls { color: var(--navy); }
.mf-sky-controls[hidden], .mf-sky-btn[hidden] { display: none; }
/* light mode (2026-11-10, his pick 5 of _preview/hint-blend.html): the lines over the switch ("The stone's appearance is…", "The
   effect is driven by…") multiply with what's behind them, with a soft halo of the ground round the words, so they stay readable
   where Adularescence's cast passes behind. The lines only: the button is left as it was (his word). Night unchanged (its light ink
   would turn black on the near-black ground). Safari doesn't blend over the sea video: there the lines show as before */
:root[data-theme="light"] .mf-home .mf-geo-line { mix-blend-mode: multiply; text-shadow: 0 0 6.99px #F9E6E7, 0 0 14px #F9E6E7, 0 0 25.89px rgba(249, 230, 231, .8); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .mf-home .mf-geo-line { mix-blend-mode: multiply; text-shadow: 0 0 6.99px #F9E6E7, 0 0 14px #F9E6E7, 0 0 25.89px rgba(249, 230, 231, .8); } }
/* over the switch (his word 2026-11-09: every line about a button sits above it), the first time its button shows in each view of the project (js: the sky's tick):
   Adularescence's location line over Live Sun / Live Moon, MF Anaglyph's orientation line over Tilt (phones). Hung
   over the switch so the switch never moves; the layout keeps its room clear (GEO in the solver). Quieter than the
   type, in Atkinson Hyperlegible Next Light and --hint-ink (about 5 : 1 on its ground, so it still reads) */
.mf-geo-line {
  position: absolute; bottom: calc(100% + 16px); left: 50%; translate: -50% 0; margin: 0;   /* 16px clear of its button (was 16/phi, 9.89; more room, his ask 2026-11-10) */
  width: max-content; max-width: min(22em, calc(100vw - 2 * 14.19px)); text-align: center; text-wrap: balance;
  font-size: 12.58px; line-height: 1.2; font-weight: 300; color: var(--hint-ink);
}
.mf-geo-line[hidden], .mf-home.geo-none .mf-geo-line { display: none; }
@media (max-width: 600px) { .mf-geo-line { font-size: 15px; } }
.mf-sky-btn {
  font: inherit; font-size: 12.58px; line-height: 1; letter-spacing: 0; color: inherit; background: none;
  border: 1px solid var(--shade);   /* a stroke in the button's fill colour: outlined at rest, one shape when lit */
  padding: 3.66px 6.54px; border-radius: 5.08px; cursor: pointer; white-space: nowrap;   /* the 4.66 x 7.54 padding less the stroke */
  /* desktop (2026-11-07, Michael: larger): one golden step up, x sqrt(phi): 16px type, padding and corner in step (27.3px
     tall); phones keep their own larger size below */
  font-size: 16px; --pv: 4.66px; --ph: 8.32px; border-radius: 6.46px;
  /* the label optically centred (js: centreLabel, 2026-11-09): --ox / --oy move it inside the padding, the size unchanged */
  padding: calc(var(--pv) + var(--oy, 0px)) calc(var(--ph) - var(--ox, 0px)) calc(var(--pv) - var(--oy, 0px)) calc(var(--ph) + var(--ox, 0px));
  opacity: .618;   /* at rest 1/phi, so it sits back; full when hovered, focused or pressed */
}
/* lit on hover only where there's a real hover (a phone keeps a tapped button "hovered"), on keyboard focus, and while
   it's pressed (a tap) */
.mf-home.lit .mf-sky-btn:is(:focus-visible, :active) { background: var(--shade); color: var(--on-shade); outline: none; opacity: 1; }
@media (hover: hover) { .mf-home.lit .mf-sky-btn:hover { background: var(--shade); color: var(--on-shade); opacity: 1; } }
/* Recalibrate, being chosen (js/home-hexagon.js, ?recal=1..4; _preview/recalibrate.html) */
.mf-recal svg { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mf-recal svg .dot { fill: currentColor; stroke: none; }
.mf-home.recal-3 .mf-recal { padding-left: .52em; padding-right: .52em; }   /* square: the switch's height */
.mf-home.recal-4 .mf-sky-controls { flex-direction: column; align-items: center; gap: 9.89px; }
.mf-recal-line { margin: 0; font-size: 12.58px; line-height: 1.2; white-space: nowrap; opacity: .618; }
.mf-recal-line button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.mf-recal-pulse { position: absolute; left: 0; top: 0; width: var(--mark-size); height: var(--mark-size); translate: -50% -50%; border-radius: 50%;
  border: 1.6px solid var(--mark); box-sizing: border-box; animation: mf-recal-pulse .618s cubic-bezier(.215, .61, .355, 1) forwards; }
@keyframes mf-recal-pulse { to { width: calc(var(--mark-size) * 2.618); height: calc(var(--mark-size) * 2.618); } }
.mf-sun svg { position: absolute; left: 0; top: 0; translate: -50% -50%; width: var(--mark-size); height: var(--mark-size); overflow: visible; }   /* 24 / sqrt(phi), as over the stone */

/* the details panel: slides in from the right over 34% of the screen (min 320px; the whole width on phones) with the
   project in the circle's title, category, intro and notes, and a link to its full page. Return/Enter opens and closes
   it, as do Escape and the close button (js/home-hexagon.js). On near-white (--type-start), navy type. */
.mf-details {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; box-sizing: border-box;
  width: max(320px, 34vw); overflow-y: auto; overscroll-behavior: contain;   /* was 1/phi^2 (38.2%), pulled in a little */ -webkit-overflow-scrolling: touch;
  padding: 67.77px 41.89px 67.77px;
  background: var(--panel); color: var(--navy);   /* near-white #FFFAF8, the ground's hue (the dark theme: --panel) */
  border-left: 1px solid var(--hairline); box-shadow: -16px 0 41.89px rgba(1, 5, 21, .08);
  transform: translateX(0); transition: transform .3s cubic-bezier(.215, .61, .355, 1), visibility 0s;
}
.mf-details[hidden] { display: block; visibility: hidden; transform: translateX(100%); transition: transform .3s cubic-bezier(.215, .61, .355, 1), visibility 0s .3s; }
/* Dismiss: a capsule, stroke only, the word and the cross; it fills solid while it's pressed (and on keyboard focus) */
.mf-details-close {
  position: absolute; top: 25.89px; right: 25.89px; display: inline-flex; align-items: center; gap: 6.99px;
  height: 30px; padding: 0 12.58px 0 14.19px; box-sizing: border-box; border: 0; box-shadow: inset 1.5px 1.5px 2.5px var(--neu-d), inset -1.5px -1.5px 2.5px var(--neu-l); border-radius: 7.08px;   /* a rounded rectangle (2026-11-22, his ask; was a capsule): H/phi^3, the nav highlight's corner rule. Unlit it's pressed into the panel, as the unselected project numbers are (his ask the same day; was a 1.443px ring); lit, the solid fill */   /* the nav's stroke (2026-11-22, his ask: a heavier Dismiss; was a 1px border): drawn as an inset ring, since a border is rounded down to whole device pixels */
  background: none; color: inherit; cursor: pointer; font: inherit; font-size: 12.58px; line-height: 1; letter-spacing: 0;
}
.mf-details-close svg { width: 9.89px; height: 9.89px; stroke-width: 1.835; }   /* the x a step heavier (x phi^(1/2): 1.51px drawn, was 1.19) */
.mf-details-close:active, .mf-details-close:focus-visible { background: var(--navy); border-color: var(--navy); box-shadow: none; color: var(--panel); outline: none; }
@media (hover: hover) { .mf-details-close:hover { background: var(--navy); border-color: var(--navy); box-shadow: none; color: var(--panel); } }   /* lit on hover too, at once (no fade), where there's a real hover */
.mf-details-title {
  margin: 0; font-family: 'MF Ductus SC', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 500; text-transform: lowercase;   /* the disc title's face and kerning (2026-11-16) */
  font-size: 30.08px; line-height: 1; letter-spacing: .12em; outline: none;   /* the circle's title, a phi step up, and its tracking */
}
.mf-details-label { margin: 9.89px 0 41.89px; font-size: 12.58px; line-height: 1; }
.mf-details-label .mf-label-dot { margin: 0 .5em; }
.mf-details-body { font-size: 16px; line-height: 1.618; }
.mf-details-body p { margin: 0 0 1em; }
.mf-details-body .mf-d-intro { font-size: 17.51px; }
.mf-details-body h2 {
  font-family: 'MF Ductus Sans SC', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 500; text-transform: lowercase;
  font-size: 18.59px; line-height: 1; letter-spacing: .1em; margin: 41.89px 0 16px;
}
.mf-details-body .code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9em; }
/* the Functionality heading and its text a little lighter than the intro (2026-11-22, his ask: "slightly lighter / gray", every project):
   the ink at 72% over the panel, so it greys toward the panel in either theme and keeps well above 4.5 : 1 */
.mf-details-body h2, .mf-details-body h2 ~ * { color: color-mix(in srgb, currentColor 72%, transparent); }   /* currentColor here is the panel's ink, inherited, so nothing compounds */
/* a project's final piece with its details (911): desktop, at the top of the panel above the title; phones, on its own
   above the peek card, between the header and the card (js/home-hexagon.js sets its top and height), the disc stepping
   aside while it shows */
.mf-preview { display: none; }
.mf-preview-pic, .mf-preview-pic img { display: block; width: 100%; height: auto; }
.mf-preview-pic img { border-radius: 5.08px; box-shadow: 0 8px 25.89px rgba(1, 5, 21, .16); }
/* desktop: the stage, the space left of the panel. With the details open the project fills it, 41.89px (16 phi^2) clear
   of every side, on the page's own ground (so the ring, title and chevrons go under it); a click in the margin dismisses.
   911 shows its final piece; the other discs grow from the ring into it, in step with the panel's slide. The panel
   itself is unchanged and never holds the project. */
.mf-home { --stage-w: calc(100vw - max(320px, 34vw)); --stage-m: 41.89px; --stage-size: calc(min(var(--stage-w), 100vh) - 2 * var(--stage-m)); }
.mf-stage { position: fixed; left: 0; top: 0; bottom: 0; width: var(--stage-w); z-index: 18; display: none; background: var(--floor, var(--cream)); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s .3s; }
.mf-stage-pic { position: absolute; inset: var(--stage-m); margin: 0; display: grid; place-items: center; cursor: default; }
.mf-stage-pic[hidden] { display: none; }
.mf-stage-pic picture, .mf-stage-pic img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mf-stage-pic img { border-radius: 5.08px; box-shadow: 0 8px 25.89px rgba(1, 5, 21, .16); max-height: calc(100vh - 2 * var(--stage-m)); }
@media (min-width: 601px) {
  .mf-stage { display: block; }
  .mf-home.has-details .mf-stage { opacity: 1; visibility: visible; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s; }
  /* the disc's box eases between the ring and the stage only for a "resize" disc while staging (js stageDisc; the others
     move by a compositor transform), so a window resize moves it with its ring instead of trailing it */
  .mf-home .mf-project { transition: opacity .6s cubic-bezier(.215, .61, .355, 1); }
  .mf-home.mf-staging .mf-project { transition: opacity .6s cubic-bezier(.215, .61, .355, 1), left .3s cubic-bezier(.215, .61, .355, 1), top .3s cubic-bezier(.215, .61, .355, 1), width .3s cubic-bezier(.215, .61, .355, 1), height .3s cubic-bezier(.215, .61, .355, 1), border-radius .3s cubic-bezier(.215, .61, .355, 1); }
  .mf-home.disc-staged .mf-project:not(.is-parked):not(.is-out) { position: fixed; z-index: 19; left: calc(var(--stage-w) / 2); top: 50vh; width: var(--stage-size); height: var(--stage-size); }   /* in the stage (js stageDisc: set with the details, kept until the shrink ends) */
  /* a rect project fills the stage as a rectangle, 41.89px clear of every side (the disc morphs into it: box and corner together) */
  .mf-home.disc-staged .mf-project.is-rect:not(.is-parked):not(.is-out) { width: calc(var(--stage-w) - 2 * var(--stage-m)); height: calc(100vh - 2 * var(--stage-m)); border-radius: 25.89px; }
  /* 911: the disc grows like the others; once grown its full piece crossfades in over it (.pic-on), and out as it shrinks */
  .mf-stage-pic { opacity: 0; transition: opacity .3s cubic-bezier(.215, .61, .355, 1); }
  .mf-home.pic-on .mf-stage-pic { opacity: 1; }
  .mf-home.pic-on.stage-pic .mf-project:not(.is-parked) { opacity: 0; transition: opacity .3s cubic-bezier(.215, .61, .355, 1); }
  .mf-home.has-details .mf-disc-glow { opacity: 0; }
  .mf-home.mf-staging .mf-disc-glow { transition: opacity .3s cubic-bezier(.215, .61, .355, 1); }   /* fades with the grow */
}
@media (max-width: 600px) {
  .mf-preview:not([hidden]) { display: grid; place-items: center; position: fixed; left: 14.19px; right: 14.19px; margin: 0; z-index: 19; pointer-events: none; }
  .mf-preview:not([hidden]) { animation: mf-in .3s cubic-bezier(.215, .61, .355, 1) both; }   /* fades in as the sheet rises */
  .mf-preview .mf-preview-pic { width: 100%; height: 100%; display: grid; place-items: center; }
  .mf-preview .mf-preview-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }   /* width and height set from its proportions (js) */
  .mf-home.show-preview :is(.mf-project, .mf-disc-glow, .mf-next, .mf-prev) { visibility: hidden; }
  /* a rect project opened (Chromatophores, js phoneRect): the disc morphs into the rectangle between the header and the sheet
     at medium, 8px in from the sides with the sheet's 38px corner, on the sheet's curve; its ring glow and the chevrons go,
     and the membrane over the page loses its hole */
  .mf-home.rect-open .mf-project.is-rect:not(.is-parked):not(.is-out) { position: fixed; z-index: 19; left: var(--rect-cx); top: var(--rect-cy); width: var(--rect-w); height: var(--rect-h); border-radius: 38px; }
  .mf-home.rect-morph .mf-project.is-rect { transition: opacity .6s cubic-bezier(.215, .61, .355, 1), left .5s cubic-bezier(.32, .72, 0, 1), top .5s cubic-bezier(.32, .72, 0, 1), width .5s cubic-bezier(.32, .72, 0, 1), height .5s cubic-bezier(.32, .72, 0, 1), border-radius .5s cubic-bezier(.32, .72, 0, 1); }
  .mf-home.rect-open :is(.mf-disc-glow, .mf-next, .mf-prev) { visibility: hidden; }
  .mf-home.rect-open .mf-membrane { --hole: 0px; }
}
/* phones: an Apple-style bottom sheet (UISheetPresentationController, iOS 26 floating style), not a full-screen page.
   Two detents: medium (half the screen, the disc lifted clear above it) and large (to just under the top of the
   screen). It floats 8px in from the edges with a 38px corner, in a thick frosted material, with the iOS grabber
   (36 x 5) and the round grey close button. Drag the sheet: up from medium to large, down to medium, down again to
   dismiss; a flick carries it (velocity projected 200ms ahead). At medium a drag always moves the sheet; at large the
   text scrolls, and a drag down from its top moves the sheet. Tapping the grabber toggles the detents. Moves on the
   iOS sheet curve, cubic-bezier(.32, .72, 0, 1) over .5s (js/home-hexagon.js sets --sheet-m and .is-large) */
@media (max-width: 600px) {
  .mf-details {
    --sheet-gap: 8px;
    top: auto; left: var(--sheet-gap); right: var(--sheet-gap); bottom: var(--sheet-gap); width: auto;
    height: calc(100vh - 2 * var(--sheet-gap) - max(env(safe-area-inset-top), 10px) - 10px);
    height: calc(100svh - 2 * var(--sheet-gap) - max(env(safe-area-inset-top), 10px) - 10px);
    max-height: none; overflow: hidden; padding: 0; border: 0; border-radius: 38px;
    background: var(--sheet-bg); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 0 0 .5px var(--hairline), 0 -2px 41.89px rgba(1, 5, 21, .18);
    transform: translateY(var(--sheet-m, 50%));
    transition: transform .5s cubic-bezier(.32, .72, 0, 1), visibility 0s;
    touch-action: pan-y;
  }
  /* the text scrolls in an inner layer, so the grabber, the band and the close button stay put on the sheet */
  .mf-details-inner {
    height: 100%; box-sizing: border-box; overflow-y: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 34.22px 25.89px calc(25.89px + env(safe-area-inset-bottom));
  }
  .mf-details.is-large { transform: translateY(0); }
  .mf-details.is-peek { transform: translateY(var(--sheet-p, 80%)); }   /* peek (2026-11-10): the grabber, the title and the category */
  /* with the details open the switch and its line sit under the membrane, out of reach; at peek the sheet would cut them in half */
  .mf-home.has-details .mf-sky-controls { visibility: hidden; }
  .mf-details.is-large .mf-details-inner { overflow-y: auto; }
  .mf-details.is-dragging { transition: none; }
  .mf-details[hidden] { transform: translateY(calc(100% + var(--sheet-gap))); transition: transform .5s cubic-bezier(.32, .72, 0, 1), visibility 0s .5s; }
  /* the grabber, at the top of the sheet */
  .mf-details::before {
    content: ''; position: absolute; top: 5px; left: 50%; translate: -50% 0; z-index: 2; width: 36px; height: 5px;
    border-radius: 2.5px; background: var(--grabber);
  }
  /* large: a band at the top in the sheet's colour, so the text scrolls away under the grabber and the close button */
  .mf-details.is-large::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 72px; z-index: 1; pointer-events: none;
    background: linear-gradient(var(--sheet-solid) 62%, transparent);
  }
  .mf-details-close {
    position: absolute; top: 18px; right: 16px; margin: 0; z-index: 2;
    width: 30px; height: 30px; border-radius: 7.08px; background: var(--sheet-fill); color: var(--sheet-glyph);   /* a rounded square (2026-11-22, his ask; was a circle), H/phi^3 */
  }
  .mf-details-close svg { width: 10px; height: 10px; stroke-width: 2.964; }   /* a step heavier (2026-11-22, x phi^(1/2): 2.47px drawn, was 1.94) */
  .mf-details-close { padding: 0; border: 0; justify-content: center; }   /* the pressed-in look carries over (box-shadow above); lit, the solid fill */
  .mf-details-close .mf-dismiss-word { display: none; }
  .mf-details-close:hover, .mf-details-close:focus-visible, .mf-details-close:active { background: var(--shade); color: var(--on-shade); box-shadow: none; }
  .mf-details-label { margin-bottom: 25.89px; }
  .mf-details-body h2 { margin-top: 25.89px; }
  /* large: the page behind dims a little more, as behind an iOS sheet */
  .mf-home.sheet-large .mf-membrane { background: rgba(1, 5, 21, .32); }
  .mf-home.has-details .mf-membrane { transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s, background-color .5s cubic-bezier(.32, .72, 0, 1); }
}

/* the one-time guide (js/home-hexagon.js): a flash-blue pill where the Moonstone's title sits, with the instructions in
   near-white; it morphs into the right chevron's bean. The title and category are hidden meanwhile. */
.mf-guide-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mf-guide-layer path { fill: var(--flash); }
.mf-guide-text {
  position: absolute; margin: 0; translate: -50% -50%; pointer-events: none; white-space: nowrap;
  display: flex; align-items: center; gap: 5.26px; font-size: 12.58px; line-height: 1; color: var(--type-start);
  transition: opacity .2s ease;
}
.mf-guide-text.is-out { opacity: 0; }
.mf-guide-text kbd { display: inline-grid; place-items: center; box-sizing: border-box; width: 16px; height: 16px; padding: 0;
  border: 1px solid currentColor; border-radius: 4px; font: inherit; }
.mf-guide-text kbd svg { display: block; width: 8px; height: 6.4px; }
.mf-guide-text span { margin-left: 2.63px; }
.mf-guide-text .mf-key-return { margin-left: 12px; }
.mf-home.mf-guide-on .mf-project-title, .mf-home.mf-guide-on .mf-project-label { opacity: 0; }
/* the one-time Animate hint on desktop (js/home-hexagon.js): the guide's flash-blue pill in near-white, beside the switch;
   shown and gone at once, no fade. A small point toward the switch (left, or down when it sits above it) */
.mf-hint {
  position: absolute; z-index: 26; margin: 0; pointer-events: none; white-space: nowrap;
  padding: 6.99px 12.58px; border-radius: 999px; background: var(--flash); color: var(--type-start);
  font-size: 12.58px; line-height: 1;
}
.mf-hint::before { content: ''; position: absolute; left: -4px; top: 50%; translate: 0 -50%; border: 5px solid transparent; border-left: 0; border-right-color: var(--flash); }
.mf-hint.is-above::before { left: 50%; top: auto; bottom: -4px; translate: -50% 0; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--flash); }

/* hover handoff: one highlight at a time across the page. Whatever the pointer is on takes the highlight, and in the
   same frame every other lingering one steps down: a chevron's blue flash, PROJECTS lit while its list is open, a
   keyboard focus ring. Anywhere in the open list counts (its category headings too), so moving from
   one project to the next never hands the highlight back to PROJECTS. Nothing fades, so the two never share a frame. */
.mf-home:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) :is(.mf-next, .mf-prev):is(.is-pressed, .is-held-a, .is-held-b):not(:hover) .mf-next-hl { opacity: 0; }
.mf-home.lit:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) :is(.mf-next, .mf-prev):is(.is-pressed, .is-held-a, .is-held-b):not(:hover) svg { color: var(--navy); }
.mf-home.lit:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) .mf-nav-item[aria-expanded="true"]:not(:hover) { color: var(--navy); }
.mf-home:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) .mf-nav-item[aria-expanded="true"]:not(:hover) .mf-nav-hl { opacity: 0; }
.mf-home:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) .mf-nav-item[aria-expanded="true"]:not(:hover) .mf-caret { fill: none; }
.mf-home:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) :is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close):focus-visible:not(:hover) { outline: none; background: none; }
.mf-home:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) .mf-projects-menu button:focus-visible:not(:hover)::before { background: none; }
.mf-home.lit:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn, .mf-theme):hover, .mf-projects-menu:hover) .mf-projects-menu button:focus-visible:not(:hover) { color: inherit; }

/* the phone hamburger (index.html; js/home-hexagon.js): hidden above phone width. Option 5 from _preview/hamburger.html,
   30.89 x 23.40 px (the 21.53 x 16.31 drawing x phi^(3/4)), its middle on the wordmark's capitals, 18.64px in from the
   gutter on phones; the button reaches past the icon (10.31px above and below, 6.57px at the sides) for a 44 x 44 touch target (WCAG 2.5.5, Apple's minimum) without
   moving it. Open, it sits in the nav's near-black shape (padding 6.99, corner 5.08), lines white. */
.mf-burger-wrap { display: none; position: relative; }
.mf-burger {
  display: block; position: relative; isolation: isolate; box-sizing: content-box; width: 30.89px; height: 23.40px;
  padding: 10.31px 6.57px; margin: -10.31px -6.57px; border: 0; background: none; color: inherit; cursor: pointer;
}
.mf-burger svg { display: block; overflow: visible; width: 30.89px; height: 23.40px; }
.mf-burger::before { content: ''; position: absolute; z-index: -1; inset: calc(10.31px - 6.99px) calc(6.57px - 6.99px); border-radius: 5.08px; }
/* the hamburger highlights on hover, and while its menu is open, only where a pointer hovers (a desktop window made narrow);
   on touch screens it never lights (2026-11-20, his word: "menu icon should highlight on hover only on desktop"). Keys still
   light it (focus-visible) */
.mf-home.lit .mf-burger:focus-visible { color: var(--on-shade); outline: none; }
.mf-home.lit .mf-burger:focus-visible::before { background: var(--shade); }
@media (hover: hover) {
  .mf-home.lit .mf-burger:is(:hover, [aria-expanded="true"]) { color: var(--on-shade); outline: none; }
  .mf-home.lit .mf-burger:is(:hover, [aria-expanded="true"])::before { background: var(--shade); }
}
/* the drop-down: plain items, no card, right-aligned under the icon, 9.89px (16/phi) below it. ABOUT and CONTACT as in the
   nav (switched off); the projects as in the PROJECTS list, each lit in its disc's colours (data-projects "hl": ground, ink) */
.mf-burger-menu { text-align: right; overscroll-behavior: contain; max-height: calc(100vh - 100px); max-height: calc(100svh - 100px); overflow-y: auto; padding-right: 7.54px; margin-right: -7.54px;   /* never past the screen: a short (landscape) phone scrolls it; the padding keeps the highlights unclipped */ position: absolute; z-index: 30; top: calc(100% + 25.89px); right: 0;   /* 16 x phi under the hamburger */ min-width: max-content; font-size: var(--nav-size); }
.mf-burger-menu[hidden] { display: none; }
.mf-burger-menu { font-size: calc(var(--nav-size) * 1.1278); }   /* a step larger than the nav (x phi^(1/4): 19.75px), his ask 2026-11-20; rows stay 44px */
.mf-burger-menu ul { list-style: none; margin: 0; padding: 0; }
/* phones only (this menu is the hamburger's): ABOUT, CONTACT and the projects on one 44px rhythm, more open and a full
   tap target per row; each highlight stays the nav's 21.53px shape, centred in its row */
.mf-burger-nav { line-height: 44px; text-transform: uppercase; }
.mf-burger-projects .mf-menu-cat:first-child { padding-top: 14.19px; }   /* a gutter under CONTACT, as between the categories */
.mf-burger-nav span { cursor: default; }
.mf-burger-nav a { cursor: pointer; }   /* ABOUT, a link since 2026-11-20; CONTACT, an email link since 2026-11-21 */
/* PROJECTS: a button that opens the projects under it (collapsed until tapped); the desktop caret beside it, turning over
   while open; lit, while pressed, as the projects are */
.mf-burger-proj { font: inherit; color: inherit; text-transform: inherit; letter-spacing: 0; line-height: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: baseline; }
.mf-burger-proj .mf-caret { margin-left: 4.26px; position: relative; top: calc(-.3338em + 3.545px); transition: rotate .2s ease; }
.mf-burger-proj[aria-expanded="true"] .mf-caret { rotate: 180deg; fill: currentColor; }
.mf-burger-projects[hidden] { display: none; }
.mf-burger-projects button {
  font: inherit; color: inherit; text-transform: uppercase; letter-spacing: 0; line-height: 1; text-align: right;
  background: none; border: 0; cursor: pointer; position: relative; isolation: isolate;   /* right-aligned under the hamburger; the highlight reaches out to the right */
  display: block; box-sizing: border-box; width: calc(100% + 7.54px); margin-right: -7.54px; padding: 16.055px 7.54px;   /* rows a step more open (2026-11-22, his ask "increase the leading"): 44 x phi^(1/4) = 49.62px, was 44 */
}
.mf-burger-projects button::before { content: ''; position: absolute; z-index: -1; inset: 14.045px 0; border-radius: 5.08px; }   /* was 11.235px: the highlight keeps its size in the taller row */
.mf-home.lit .mf-burger-projects button:is(:hover, :active, :focus-visible) { color: var(--hl-ink, var(--on-shade)); outline: none; }
.mf-home.lit .mf-burger-projects button:is(:hover, :active, :focus-visible)::before { background: var(--hl, var(--shade)); }
/* hover handoff, as with PROJECTS: a lit project takes the highlight from the open icon */
.mf-home.lit .mf-burger-wrap:has(.mf-burger-projects button:hover) .mf-burger[aria-expanded="true"]:not(:hover) { color: inherit; }
.mf-home.lit .mf-burger-wrap:has(.mf-burger-projects button:hover) .mf-burger[aria-expanded="true"]:not(:hover)::before { background: none; }
/* open: the header rises over the circle and the chevrons, the membrane comes up behind it (the disc stays clear), and the
   title and category above the disc step out of the way, as with the details panel */
.mf-home.has-burger .mf-header { z-index: 25; }
.mf-home.has-burger .mf-membrane { opacity: 1; visibility: visible; transition: opacity .3s cubic-bezier(.215, .61, .355, 1), visibility 0s; }
.mf-home.has-burger .mf-project-title, .mf-home.has-burger .mf-project-label { opacity: 0; }
/* the menu fades in and out with the membrane, the title and category with them (2026-11-20, his word: "seamless fade in and
   out"); open on a touch screen (his word: mobile only), the membrane takes every tap (and closes the menu, js/home-hexagon.js)
   so nothing under it answers */
@media (hover: none), (pointer: coarse) { .mf-home.has-burger .mf-membrane { pointer-events: auto; } }
.mf-home.burger-fade .mf-project-title, .mf-home.burger-fade .mf-project-label { transition: opacity .3s cubic-bezier(.215, .61, .355, 1), color 1.8s cubic-bezier(.215, .61, .355, 1); }
.mf-burger-menu { opacity: 0; transition: opacity .3s cubic-bezier(.215, .61, .355, 1); }
.mf-burger-menu.is-open { opacity: 1; }
/* touch screens only (his word: mobile only); a desktop window made narrow keeps the nav's face, size and plain fade.
   2026-11-20 Poppins Bold ("make menu text bold on mobile only"); 2026-11-21 (his ask: "MF Ductus… bring it a step down and
   increase text size. It needs to animate when menu is tapped"): MF Ductus SemiBold at 22.27px; the same day, again ("bring the
   font weight a step down and increase text size"): MF Ductus Medium, one more step up (x phi^(1/4) twice: 25.12px), the rows
   still 44px; each row drops in from under the hamburger, one after the next, when the menu opens and when PROJECTS
   opens its list (a display: none -> shown restarts the animation; the close is the menu's fade, as before) */
@media (hover: none), (pointer: coarse) {
  /* Regular, tracked +0.04em between stems (his word, 2026-11-21: "reduce the weight and increase the tracking a bit"; was Medium,
     tracking 0); the other pairs spaced to match below (--track is the value site/tools/menu-kern.mjs was run with) */
  .mf-burger-menu { --track: .04em; font-family: 'MF Ductus', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 400;
    font-size: min(calc(var(--nav-size) * 1.1278 * 1.1278 * 1.1278), calc((100vw - 65.62px) / 14.87)); }   /* capped so the longest line
    (EPICRATES CENCHRIA, 13.32em optically spaced, + its number's circle and gap, 1.548em, since 2026-11-22: 14.87em) keeps as much room on its left as the menu has on its right (32.81px): 19.1px at 320 wide, 23.2 at 375, 24.35 at 390, full size from ~400px wide */
  /* optically even spacing (2026-11-21, his ask: "make sure characters are optically equidistantly spaced"): js/site-header.js
     wraps each letter in .mf-k with the pair's value as --k (site/tools/menu-kern.mjs: every gap made the white of two stems at
     --track by area); the font's own kerning off so the values are exact; nothing after the last letter, so the words stay flush */
  .mf-burger-nav, .mf-burger-proj, .mf-burger-projects button { letter-spacing: 0; font-kerning: none; }
  /* ABOUT, CONTACT and PROJECTS in the nav's own UI-face treatment (Atkinson Hyperlegible Next since 2026-11-22, his ask; was Poppins) (2026-11-21, his rule: "All navbars should maintain the same
     poppins treatment. Only projects text should remain mf ductus everywhere, mobile and desktop"): Poppins 400, uppercase,
     letter-spacing 0, the font's kerning off, as the desktop nav; at the phone menu's size. The project names keep MF Ductus */
  .mf-burger-nav { font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; font-weight: 400; }
  .mf-burger-menu .mf-menu-cat { font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; font-weight: 400; letter-spacing: 0; }   /* the category stays the nav's small label */
  .mf-burger-projects button { padding-block: calc((49.62px - 1em) / 2); }   /* 49.62px rows at the larger size (44 until 2026-11-22) */
  .mf-burger-nav > li, .mf-burger-projects > li { animation: mf-menu-row .382s cubic-bezier(.215, .61, .355, 1) backwards; }
  .mf-burger-nav > li:nth-child(2), .mf-burger-projects > li:nth-child(2) { animation-delay: .047s; }
  .mf-burger-nav > li:nth-child(3), .mf-burger-projects > li:nth-child(3) { animation-delay: .094s; }
  .mf-burger-projects > li:nth-child(4) { animation-delay: .141s; }
  .mf-burger-projects > li:nth-child(5) { animation-delay: .188s; }
  .mf-burger-projects > li:nth-child(n+6) { animation-delay: .235s; }
}
@keyframes mf-menu-row { from { opacity: 0; transform: translateY(-9.89px); } }
/* the project names, everywhere (his rule, 2026-11-21: "Only projects text should remain mf ductus everywhere, mobile and desktop"):
   MF Ductus Regular with the optical spacing (js/site-header.js wraps each letter in .mf-k with its pair's --k, site/tools/menu-kern.mjs),
   in the phone menu, a narrow desktop window's menu and the desktop PROJECTS list; the nav words and the category labels stay the UI face (Atkinson Hyperlegible Next since 2026-11-22) */
.mf-burger-projects button, .mf-projects-menu button { font-family: 'MF Ductus', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 400; letter-spacing: 0; font-kerning: none; }
.mf-burger-projects .mf-k, .mf-projects-menu .mf-k { margin-right: var(--k, 0); }
/* the open menu's words blend with the page (2026-11-21, his ask: "Apply a blend mode… Ensure high contrast", then "The text was
   supposed to have a blend mode. Not adding any layer under it"; his pick from a phone screenshot: plain difference, no halo): the
   hamburger and its list blend by difference with the membrane and the disc behind them, so the words invert what they cross
   (light on the night ground, dark over the pale disc). The blend sits on .mf-burger-wrap, not the words: the menu (positioned,
   z 30) is its own stacking context, so a blend inside it would only meet its own empty box; the wrap shares the home's context
   with the membrane while the menu is open on a phone (the header is no stacking context then). By day the navy ink would
   difference to almost the ground itself, so the words and the icon take the near-white #FFFAF8 while it's open and invert to
   dark. Touch screens only. Measured (worst word against the 3-8px round its strokes, four projects x two themes): it reads by
   inversion, so it holds on the grounds and the disc's middle and thins where the disc's blurred edge passes mid-grey */
@media (hover: none), (pointer: coarse) {
  .mf-home.has-burger .mf-burger-wrap { mix-blend-mode: difference; }
  :root[data-theme="light"] .mf-home.has-burger .mf-burger-wrap,
  :root[data-theme="light"] .mf-home.has-burger .mf-burger { color: #FFFAF8; }
  :root[data-theme="light"] .mf-home.has-burger .mf-burger-menu .mf-menu-cat { color: rgba(255, 250, 248, .6); }
}
@media (hover: none) and (prefers-color-scheme: light), (pointer: coarse) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mf-home.has-burger .mf-burger-wrap,
  :root:not([data-theme="dark"]) .mf-home.has-burger .mf-burger { color: #FFFAF8; }
  :root:not([data-theme="dark"]) .mf-home.has-burger .mf-burger-menu .mf-menu-cat { color: rgba(255, 250, 248, .6); }
}
/* forced (same day, his words with the phone screenshot of the 15% version: "Override any rules", "Force this"): on touch screens the
   open menu's look wins over every other rule. The blend and the inks are !important; nothing between the words and the membrane
   may isolate them (the header and the wrap's own context are the only stacking contexts allowed, and the header none while open);
   the membrane stays at 15% of the band so the disc shows through */
@media (hover: none), (pointer: coarse) {
  .mf-home.has-burger .mf-burger-wrap { mix-blend-mode: difference !important; isolation: auto !important; filter: none !important; opacity: 1 !important; }
  .mf-home.has-burger .mf-header { z-index: auto !important; isolation: auto !important; transform: none !important; filter: none !important; }
  .mf-home.has-burger .mf-membrane { background: radial-gradient(120% 160% at 50% 0%, rgba(65, 103, 167, .06), transparent 70%), rgba(var(--veil), .15) !important; }
  :root[data-theme="dark"] .mf-home.has-burger .mf-burger-wrap,
  :root[data-theme="dark"] .mf-home.has-burger .mf-burger { color: var(--navy) !important; }
  :root[data-theme="light"] .mf-home.has-burger .mf-burger-wrap,
  :root[data-theme="light"] .mf-home.has-burger .mf-burger { color: #FFFAF8 !important; }
}
@media (hover: none) and (prefers-color-scheme: dark), (pointer: coarse) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mf-home.has-burger .mf-burger-wrap,
  :root:not([data-theme="light"]) .mf-home.has-burger .mf-burger { color: var(--navy) !important; }
}
@media (hover: none) and (prefers-color-scheme: light), (pointer: coarse) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mf-home.has-burger .mf-burger-wrap,
  :root:not([data-theme="dark"]) .mf-home.has-burger .mf-burger { color: #FFFAF8 !important; }
}
/* phones and landscape phones (2026-11-11, his ask, mobile only): the open menu's membrane covers the whole screen, the disc
   included (no hole), the wordmark and the theme toggle too; only the hamburger and its list sit above it. The header stops
   being a stacking context so the hamburger can rise past the membrane on its own */
@media (max-width: 600px) {
  .mf-home.has-burger .mf-header { z-index: auto; }
  .mf-home.has-burger .mf-membrane { --hole: 0px; z-index: 26; }
  .mf-home.has-burger .mf-burger-wrap { z-index: 27; }
}
:root.mf-land .mf-home.has-burger .mf-header { z-index: auto; }
:root.mf-land .mf-home.has-burger .mf-membrane { --hole: 0px; z-index: 26; }
:root.mf-land .mf-home.has-burger .mf-burger-wrap { z-index: 27; }
/* phones and landscape phones (2026-11-11, his ask, mobile only): with a project's details open (the sheet, any detent) the
   wordmark hides, as the hamburger and the theme toggle do; at once, no fade, and back as soon as the details close */
@media (max-width: 600px) { .mf-home.has-details .mf-wordmark { visibility: hidden; } }
:root.mf-land .mf-home.has-details .mf-wordmark { visibility: hidden; }

/* phones: the hamburger takes the nav's place, and the wordmark shrinks by a gutter and the icon's width to make room */
@media (max-width: 600px) {
  .mf-nav { display: none; }
  .mf-burger-wrap { display: block; }
  /* the room beside the hamburger, then a little smaller (/ phi^(1/4), about 11%) */
  /* and a little smaller again (2026-11-20, his ask): the second and third / 1.1278 below */
  .mf-header { --wm-size: calc(min(calc(min(var(--wordmark-size), calc((100vw - 3 * var(--space-gutter) - 30.89px - 18.64px) / 8.26)) / 1.1278),
    calc((100vw - 128px) / 8.26)) / 1.1225 / 1.1278 / 1.1278); }   /* a step smaller on phones (2026-11-10, his ask): / phi^(1/4) */   /* and clear of the theme toggle left of the hamburger: its highlight starts 101.92px in from the right, plus 9.89, the 14.19 gutter and the ink's overhang (2026-11-10) */
  .mf-wordmark { font-size: var(--wm-size); }
  /* the icon's middle on the capitals' middle: the cap top sits on the gutter and the caps are .691em tall */
  .mf-burger-wrap { margin-top: calc(var(--wm-size) * .35 - 11.70px); margin-right: 18.64px; }   /* 4 x 16/phi^2 in from the gutter */
  /* the Animate / Live Sun switch x phi for a finger: 20.35px type (16 x sqrt(phi)), the padding and corner in step (34.2px tall) */
  .mf-sky-btn { font-size: 22.84px; --pv: 6.66px; --ph: 11.89px; border-radius: 9.23px; }   /* a step larger on phones (2026-11-11, his ask): x phi^(1/4), was 20.35px, 34.21px tall; now 38.40 */
  .mf-mode.is-alt { font-weight: 300; }   /* "Live Moon" / "Live Sun" (shown in Animate) in Atkinson Hyperlegible Next Light on phones */
}

/* a phone in landscape (2026-11-09, preview _preview/landscape-phones.html; :root.mf-land is set by js/home-hexagon.js):
   the phone's header, the hamburger in the nav's place and the wordmark sized to the short height, so the circle gets it */
:root.mf-land .mf-nav { display: none; }
:root.mf-land .mf-burger-wrap { display: block; }
:root.mf-land .mf-header { --wm-size: calc(min(calc(min(var(--wordmark-size), calc((100vw - 3 * var(--space-gutter) - 30.89px - 18.64px) / 8.26)) / 1.1278), 30px) / 1.1225 / 1.1278 / 1.1278); }   /* the same step smaller (2026-11-10), and two more (2026-11-20) */
:root.mf-land .mf-wordmark { font-size: var(--wm-size); }
:root.mf-land .mf-burger-wrap { margin-top: calc(var(--wm-size) * .35 - 11.70px); margin-right: 18.64px; }

/* ---- dark theme: the home at night. Since 2026-11-13 (his pick, the Synesthesia calm dark, whole site): what shows is
   #0A0408 (the ground #070105 under the video at 1.46%, solved from the old measurement), the ink the calm light #F9E6E7
   (16.9 : 1), the panel #160C13 (the same +5.0 L step), the hint grey #827F7E (5.11 : 1). The note below is the older night. Follows the device's setting (prefers-color-scheme), or ?theme=dark / ?theme=light
   (index.html sets data-theme from it). Near-black since 2026-11-07 (_preview/night.html, C; Michael: "almost black"):
   what shows is #040508, oklch(11.51% .0094 267), the ground #010205 under the water video turned down to 1.46%
   (0.0382 / phi^2; at the day's 3.82% the inverted footage alone lifts black to #0a0909), measured. The floor behind the
   page (Safari's bars, overscroll) and the top veil are #040508 itself; the panel #0D0E13 sits the old step (+5.1 L)
   above it on its hue; the word on a cream hover shape is #040508. The ink is the light theme's ground, warm white #FEF7F3 (was cream #FFE6D7)
   (17:1 on the ground, 16:1 on the panel). No color-scheme: dark (a frame whose scheme differs from the page's gets an
   opaque white canvas, a white square behind the stone). The selected disc keeps the bright flash-blue ring. On a
   load it mirrors the day's contrast change (2026-11-08): it opens bright, the overlay warm white (#FEF7F3) with the type
   near-black (#040508), and settles to the night as the overlay lifts. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #070105; --floor: #0A0408; --navy: #F9E6E7; --veil: 10, 4, 8; --bg-video-opacity: 0.0146;
    --shade: #F9E6E7; --on-shade: #0A0408; --landed: #827F7E; --on-landed: #0A0408; --landed-alt: #FFFAF8; --on-landed-alt: #0A0408; --hint-ink: #827F7E; --dim-ground: #F9E6E7; --intro-ink: #0A0408; --panel: #160C13; --hairline: rgba(249, 230, 231, .14); --mark: #F9E6E7;
    --sheet-bg: rgba(22, 12, 19, .86); --sheet-fill: rgba(118, 118, 128, .24); --sheet-glyph: rgba(235, 235, 245, .6); --grabber: rgba(235, 235, 245, .3); --sheet-solid: #160C13;
    --hex-stroke-fallback: #F9E6E7;
    --cast-sh1: #050204; --cast-sh2: #080205; --cast-ct: #030202; --cast-gc: #080205; --cast-gcm: #080204; --cast-gb: #0A050A;
  }
}
:root[data-theme="dark"] {
  --cream: #070105; --floor: #0A0408; --navy: #F9E6E7; --veil: 10, 4, 8; --bg-video-opacity: 0.0146;
  --shade: #F9E6E7; --on-shade: #0A0408; --landed: #827F7E; --on-landed: #0A0408; --landed-alt: #FFFAF8; --on-landed-alt: #0A0408; --hint-ink: #827F7E; --dim-ground: #F9E6E7; --intro-ink: #0A0408; --panel: #160C13; --hairline: rgba(249, 230, 231, .14); --mark: #F9E6E7;
    --sheet-bg: rgba(22, 12, 19, .86); --sheet-fill: rgba(118, 118, 128, .24); --sheet-glyph: rgba(235, 235, 245, .6); --grabber: rgba(235, 235, 245, .3); --sheet-solid: #160C13;
  --hex-stroke-fallback: #F9E6E7;
  --cast-sh1: #050204; --cast-sh2: #080205; --cast-ct: #030202; --cast-gc: #080205; --cast-gcm: #080204; --cast-gb: #0A050A;
}
/* the drawn sun, moon and "live" turn cream off the stone; over the pale stone they keep the deep blue's colour burn */
:root[data-theme="dark"] .mf-sky:not(.on-disc):not(.over-nav) g, :root[data-theme="dark"] .mf-sun:not(.on-disc):not(.over-nav) g { fill: var(--mark); stroke: var(--mark); }
:root[data-theme="dark"] :is(.mf-sky, .mf-sun):not(.on-disc):not(.over-nav) .mf-moon { fill: var(--mark); stroke: none; }   /* fill only: a stroke blunted the crescent's tips */
:root[data-theme="dark"] .mf-sky:not(.on-disc):not(.over-nav) .mf-core, :root[data-theme="dark"] .mf-sun:not(.on-disc):not(.over-nav) circle { stroke: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mf-sky:not(.on-disc):not(.over-nav) g, :root:not([data-theme="light"]) .mf-sun:not(.on-disc):not(.over-nav) g { fill: var(--mark); stroke: var(--mark); }
  :root:not([data-theme="light"]) :is(.mf-sky, .mf-sun):not(.on-disc):not(.over-nav) .mf-moon { fill: var(--mark); stroke: none; }   /* fill only: a stroke blunted the crescent's tips */
  :root:not([data-theme="light"]) .mf-sky:not(.on-disc):not(.over-nav) .mf-core, :root:not([data-theme="light"]) .mf-sun:not(.on-disc):not(.over-nav) circle { stroke: none; }
}

@keyframes mf-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mf-dim, .mf-header, .mf-next, .mf-prev, .mf-project, .mf-project-title, .mf-project-label, .mf-keys, .mf-details, .mf-details[hidden], .mf-membrane, .mf-burger-menu { transition: none; }
  .mf-burger-nav > li, .mf-burger-projects > li { animation: none; }
  /* the same, over the more specific rules (the stage, the menu, the sheet), and everything else that moves */
  .mf-home :is(.mf-project, .mf-membrane, .mf-stage, .mf-stage-pic, .mf-disc-glow, .mf-sky-controls, .mf-guide-text, .mf-caret, .mf-details),
  .mf-home:is(.has-details, .has-burger, .mf-staging, .pic-on, .stage-pic) :is(.mf-project, .mf-membrane, .mf-stage, .mf-stage-pic, .mf-disc-glow),
  :root.mf-shifting { transition: none !important; }
  .mf-preview:not([hidden]), .mf-recal-pulse { animation: none !important; }
  .mf-bg-video, .mf-hex-video { display: none; }
  .mf-hex-stroke { display: block; }
  .mf-home {
    background-image: url('/video/inverted/seascape-graded-inverted-still.jpg?v=cc912dfed4');
    background-size: cover; background-position: center; background-repeat: no-repeat;
  }
}


/* the light / dark toggle (2026-11-10, his pick: 2, _preview/light-dark-toggle.html; js/theme-toggle.js): the glyph of the mode
   it switches to, 21.53px (the nav highlight's height) in the nav's 1.443 stroke, optically centred in its button (js). Desktop:
   the top right corner, its box on the gutter from the top and the right edge. Phones: directly left of the hamburger (js,
   .by-burger). The button reaches past the glyph (11.235px all round, 44 x 44, WCAG 2.5.5) without moving it; hover and focus
   light it as the hamburger lights (the shade, 6.99px round the glyph, corner 5.08, the glyph in --on-shade), at once. While
   the theme swaps (.mf-theming, one frame) nothing transitions, so the whole page changes together */
:root.mf-theming *, :root.mf-theming *::before, :root.mf-theming *::after { transition: none !important; }
.mf-theme { position: absolute; z-index: 2; top: calc(var(--space-gutter) - 11.235px); right: calc(var(--space-gutter) - 11.235px);
  display: block; box-sizing: content-box; width: 27.38px; height: 27.38px; margin: 0; padding: 11.235px; border: 0; background: none;   /* desktop a step larger (2026-11-22, his ask: x phi^(1/2), 27.38px, was 21.53); phones below */
  color: inherit; cursor: pointer; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.mf-theme.by-burger { right: auto; }
.mf-theme::before { content: ''; position: absolute; z-index: -1; inset: calc(11.235px - 6.99px); background: var(--shade); opacity: .14;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M46.5 2.021A7 7 0 0 1 53.5 2.021L89.801 22.979A7 7 0 0 1 93.301 29.041L93.301 70.959A7 7 0 0 1 89.801 77.021L53.5 97.979A7 7 0 0 1 46.5 97.979L10.199 77.021A7 7 0 0 1 6.699 70.959L6.699 29.041A7 7 0 0 1 10.199 22.979Z' fill='%23010515'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M46.5 2.021A7 7 0 0 1 53.5 2.021L89.801 22.979A7 7 0 0 1 93.301 29.041L93.301 70.959A7 7 0 0 1 89.801 77.021L53.5 97.979A7 7 0 0 1 46.5 97.979L10.199 77.021A7 7 0 0 1 6.699 70.959L6.699 29.041A7 7 0 0 1 10.199 22.979Z' fill='%23010515'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* the toggle's shape a hexagon (2026-11-22, his ask: "a hexagon with slight rounded corner radius" in every state): pointy-top, regular, as tall
   as the old rounded square (41.36px desktop, 44.87 phones), corners rounded 7% of its height (2.9 / 3.1px). At rest it shows as a thin layer
   (the shade at 14%) under the glyph at half strength; hovered, focused or pressed, the full shade and glyph, as before */
.mf-theme svg { display: block; overflow: visible; width: 27.38px; height: 27.38px; stroke-width: .8917; }   /* desktop: the glyph at 27.38px, its line still drawn 1.134px (.8917 in the 21.53 grid) */
/* phones (2026-11-16, his ask): the sun / moon on the hamburger's own scale. Both are drawn on a 21.53-unit grid; the hamburger shows at
   1.4348x (30.89 x 23.40px), so the glyphs do too (a 30.89px box, line 2.07px against its 2.15px): as wide in ink, optically as large */
@media (max-width: 600px) { .mf-theme { width: 30.89px; height: 30.89px; } .mf-theme svg { width: 30.89px; height: 30.89px; stroke-width: 1.134; } }
:root.mf-land .mf-theme { width: 30.89px; height: 30.89px; }
:root.mf-land .mf-theme svg { width: 30.89px; height: 30.89px; stroke-width: 1.134; }
.mf-home.lit .mf-theme:focus-visible { outline: none; color: var(--on-shade); }
.mf-home.lit .mf-theme:focus-visible::before { opacity: 1; }
@media (hover: hover) { .mf-home.lit .mf-theme:hover { color: var(--on-shade); } .mf-home.lit .mf-theme:hover::before { opacity: 1; } }
/* at rest, a thin veil over the glyph so it reads as not in use (2026-11-22, his ask: "add a thin layer to the unhovered / untapped toggle"):
   the glyph at half strength; hovered, focused or pressed it's full, on its shape as before. Desktop and phones */
.mf-theme svg { opacity: .5; }
.mf-theme:is(:focus-visible, :active) svg { opacity: 1; }
.mf-home.lit .mf-theme:active { color: var(--on-shade); } .mf-home.lit .mf-theme:active::before { opacity: 1; }
@media (hover: hover) { .mf-theme:hover svg { opacity: 1; } }
.mf-home.has-details .mf-theme { visibility: hidden; }   /* as the hamburger: the panel / sheet has the page */
/* one highlight at a time: hovering anything else lets go of the toggle's keyboard focus highlight (it's in the handoff lists above) */
.mf-home.lit:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn):hover, .mf-projects-menu:hover) .mf-theme:focus-visible:not(:hover) { color: inherit; }
.mf-home:has(:is(.mf-nav-item, .mf-projects-menu button, .mf-next, .mf-prev, .mf-details-close, .mf-burger, .mf-burger-projects button, .mf-sky-btn):hover, .mf-projects-menu:hover) .mf-theme:focus-visible:not(:hover)::before { opacity: .14; }
/* desktop: the nav keeps clear of the corner (the glyph, its highlight and 25.89px), where it used to run to the edge on narrow windows */
@media (min-width: 601px) { .mf-nav { margin-right: clamp(60.26px, 100vw - 600px, var(--space-section)); } }
/* and the name gives a little in the narrowest desktop windows so the nav stays beside it, never under it (2026-11-20: the new kerning
   made it 8.37em wide): the room left of the nav (about 110px wide), its 60.26px clearance (54.41 until the toggle grew, 2026-11-22) and three gutters */
@media (min-width: 601px) { .mf-wordmark { font-size: min(calc(min(var(--wordmark-size), calc((100vw - 2 * var(--space-gutter)) / 8.26)) / 1.1278 / 1.1278),
  calc((100vw - 3 * var(--space-gutter) - 110px - 60.26px) / 8.37)); } }
/* phones held upright (js layout): .pp on all of them; .pl only for the ?pl=1/2 previews of 2026-11-19 (the chevrons at the bottom
   of the screen, in the switch's row or the bottom corners). His pick (2026-11-20): P0 closed (the layout as it was), P1 open: with
   the details open the disc takes the full-width size (.pp-open, --open-size) and is scaled to the room above the sheet (--fit, js
   mfLiftForCard); its ring glow and the membrane's hole follow; the chevrons go while the details are open */
@media (max-width: 600px) {
  .mf-home.pl :is(.mf-next, .mf-prev) { top: var(--chev-y); height: 44px; }   /* a 44px target; the highlight is the flat box (js bend) */
  .mf-home.pl .mf-next { left: var(--chev-r); }
  .mf-home.pl .mf-prev { left: var(--chev-l); }
  .mf-home.pp.has-details :is(.mf-next, .mf-prev) { visibility: hidden; }
  .mf-home.pp :is(.mf-project, .mf-disc-glow) { scale: var(--fit); }
  .mf-home.pp.pp-open :is(.mf-project:not(.is-rect), .mf-disc-glow) { width: var(--open-size); height: var(--open-size); }
  .mf-home.pp:not(.has-burger):not(.rect-open) .mf-membrane { --hole: calc(var(--project-size) / 2 * var(--fit)); }
  .mf-home.pp.pp-open:not(.has-burger):not(.rect-open) .mf-membrane { --hole: calc(var(--open-size) / 2 * var(--fit)); }
}
/* the x-axis title slide (js slideIn, ?titleSlide=1-3, previews): each title and category slides through a window, its own line
   (or, with --slide-pad, out to the circle's inner edge); the old copy slides out over the live one and is removed after */
.mf-project-title.mf-sliding, .mf-project-label.mf-sliding { clip-path: inset(-.6em calc(-1 * var(--slide-pad, 0px)) -.4em calc(-1 * var(--slide-pad, 0px))); }
.mf-sliding .mf-slide-in { display: inline-block; white-space: nowrap; }
.mf-slide-old { pointer-events: none; }
