/* ==========================================================================
   bassellawand.com — shared design system

   Colour leads. Bassel: "I want there to be lots more color because I want to
   express myself." The base is warm paper and deep ink; six saturated hues do
   the talking, each with a deep shade for text and a pale tint for surfaces.

     coral     Clinical, the heart          (About)
     cobalt    Research, science, the sea   (Home)
     marigold  Teaching                     (Tutoring)
     mint      Building                     (Projects)
     orchid    Joy: music, art, food, film  (Interests)
     violet    a spare, for contrast        (Contact)

   Paint with a hue in two steps:
     1. pick it:   .hue-coral / .hue-cobalt / ... (on <body> for the page's hue,
                   or on any section). The footer takes the body's hue.
     2. use it:    .tint  pale hue surface, ink text
                   .fill  full hue surface, text in the hue's own on-colour
                   or the tokens --hue, --hue-deep, --hue-tint, --on-hue.
   The raw swatches (--coral, --mint-deep, --orchid-tint ...) are always there.

   Type: Geologica for display, in its sharp instance (big, confident, a
   little odd: Google Fonts serves it with the sharpness axis fixed at 100,
   so no font-variation-settings are needed anywhere), Hanken Grotesk for
   reading and UI, DM Mono only for real data readouts.

   Still banned (BRIEF §0): italic or recoloured accent words inside a
   headline, numbered eyebrows, mono-caps labels, stat strips, purple-to-pink
   or rainbow gradients, neon glows, glassmorphism, gradient text.

   Pages own their composition. This file owns tokens, base type, atoms, the
   corner chrome and the footer. Don't edit it from a page folder.
   ========================================================================== */

:root {
  /* Paper and ink */
  --paper: #fcf8f1;             /* warm paper, the default ground */
  --paper-2: #f4ece0;           /* deeper paper for panels */
  --card: #ffffff;
  --ink-fixed: #1c1830;         /* deep violet-black ink */
  --ink-soft: #5e5873;          /* 6.2:1 on paper */
  --rule: #e7ddcf;

  /* Hues: base / deep (text on paper, 5:1 or better) / tint (surfaces) */
  --coral: #ff5b4f;    --coral-deep: #c4301e;    --coral-tint: #ffe3dc;
  --cobalt: #3c5bff;   --cobalt-deep: #2537c9;   --cobalt-tint: #e0e6ff;
  --marigold: #ffb81c; --marigold-deep: #8f5b00; --marigold-tint: #fff0c9;
  --mint: #22c38e;     --mint-deep: #087150;     --mint-tint: #d5f5e8;
  --orchid: #f25ca8;   --orchid-deep: #b0206b;   --orchid-tint: #ffe0ef;
  --violet: #6e4cff;   --violet-deep: #4b2bd6;   --violet-tint: #ebe5ff;
  /* On-colours: ink on coral, marigold, mint, orchid; white on cobalt, violet */

  /* Night: at most one deliberate moment per page (a cinema, a night sky) */
  --night-bg: #15112b;
  --night-surface: #241d47;
  --night-ink: #fff8ee;
  --night-muted: #bdb5da;       /* 8.9:1 on night */
  --night-line: #3a3266;

  /* The page hue (default coral; set .hue-* on <body>) */
  --hue: var(--coral); --hue-deep: var(--coral-deep); --hue-tint: var(--coral-tint); --on-hue: var(--ink-fixed);

  /* Film grain: only for dithering real scene gradients, never as decoration */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");

  /* Type */
  --font-display: "Geologica", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step-display: clamp(56px, 9vw, 152px);
  --step-h1: clamp(42px, 6.2vw, 100px);
  --step-h2: clamp(32px, 4.2vw, 64px);
  --step-h3: clamp(22px, 2.1vw, 30px);
  --step-h4: 19px;
  --step-lede: clamp(18px, 1.45vw, 22px);
  --step-body: 17px;
  --step-small: 14px;
  --step-label: 13px;
  --step-mono: 12px;
  --track-mono: .08em;
  --measure: 64ch;

  /* Space and shape */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;
  --gutter: clamp(16px, 4.4vw, 72px);
  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 28px;
  --pill: 999px;
  --chrome-h: 72px;
  --shadow-lift: 0 1px 2px rgba(28, 24, 48, .06), 0 14px 32px -12px rgba(28, 24, 48, .22);
  --shadow-float: 0 2px 6px rgba(28, 24, 48, .08), 0 34px 70px -24px rgba(28, 24, 48, .34);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-micro: 120ms;
  --dur-ui: 240ms;
  --dur-page: 300ms;
  --dur-scene: 700ms;
}

/* ---------------------------------------------------------------------------
   Hues: pick one for a page (<body>) or a section
   --------------------------------------------------------------------------- */
.hue-coral    { --hue: var(--coral);    --hue-deep: var(--coral-deep);    --hue-tint: var(--coral-tint);    --on-hue: var(--ink-fixed); }
.hue-cobalt   { --hue: var(--cobalt);   --hue-deep: var(--cobalt-deep);   --hue-tint: var(--cobalt-tint);   --on-hue: #ffffff; }
.hue-marigold { --hue: var(--marigold); --hue-deep: var(--marigold-deep); --hue-tint: var(--marigold-tint); --on-hue: var(--ink-fixed); }
.hue-mint     { --hue: var(--mint);     --hue-deep: var(--mint-deep);     --hue-tint: var(--mint-tint);     --on-hue: var(--ink-fixed); }
.hue-orchid   { --hue: var(--orchid);   --hue-deep: var(--orchid-deep);   --hue-tint: var(--orchid-tint);   --on-hue: var(--ink-fixed); }
.hue-violet   { --hue: var(--violet);   --hue-deep: var(--violet-deep);   --hue-tint: var(--violet-tint);   --on-hue: #ffffff; }

/* ---------------------------------------------------------------------------
   Surfaces: the working tokens
   --------------------------------------------------------------------------- */
/* Day (warm paper) is the default; Night is for one deliberate moment. */
:root, .day {
  --bg: var(--paper);
  --surface: var(--card);
  --ink: var(--ink-fixed);
  --ink-muted: var(--ink-soft);
  --line: var(--rule);
  --focus: var(--cobalt-deep);
}
.night {
  --bg: var(--night-bg);
  --surface: var(--night-surface);
  --ink: var(--night-ink);
  --ink-muted: var(--night-muted);
  --line: var(--night-line);
  --focus: var(--marigold);
}
.day   { background-color: var(--bg); color: var(--ink); color-scheme: light; }
.night { background-color: var(--bg); color: var(--ink); color-scheme: dark; }

/* Painting with the hue. Put these after .day/.night so they win. */
.tint {
  --bg: var(--hue-tint);
  background-color: var(--bg); color: var(--ink);
}
.fill {
  --bg: var(--hue);
  --ink: var(--on-hue);
  --ink-muted: color-mix(in srgb, var(--on-hue) 93%, var(--hue));   /* 4.6:1 on cobalt and violet */
  --line: color-mix(in srgb, var(--on-hue) 24%, transparent);
  --focus: var(--on-hue);
  background-color: var(--bg); color: var(--ink);
}

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); background-size: 180px 180px;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--chrome-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, h5, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 600; }
b, strong { font-weight: 600; }
em, i { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--hue); color: var(--on-hue); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: var(--s-3); top: var(--s-3); z-index: 100;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px;
  border-radius: var(--pill); background: var(--ink-fixed); color: var(--paper);
  font: 500 15px/1 var(--font-body); text-decoration: none;
  clip-path: inset(50%);
}
.skip-link:focus { clip-path: none; }

/* ---------------------------------------------------------------------------
   Type: Geologica for display, Hanken for reading
   --------------------------------------------------------------------------- */
.display { font: 700 var(--step-display)/.9 var(--font-display); letter-spacing: -.035em; }
.h1      { font: 700 var(--step-h1)/.94 var(--font-display); letter-spacing: -.03em; }
.h2      { font: 650 var(--step-h2)/1 var(--font-display); letter-spacing: -.025em; }
.h3      { font: 600 var(--step-h3)/1.12 var(--font-display); letter-spacing: -.012em; }
.h4      { font: 600 var(--step-h4)/1.3 var(--font-body); letter-spacing: -.01em; }
/* One colour per headline: no accent words. Colour a whole headline, or set it
   on a coloured surface, instead. */
.display em, .h1 em, .h2 em, .h3 em, .display i, .h1 i, .h2 i, .h3 i { font-style: normal; color: inherit; }
.lede    { font-size: var(--step-lede); line-height: 1.5; letter-spacing: -.005em; }
.small   { font-size: var(--step-small); }
.muted   { color: var(--ink-muted); }
.measure { max-width: var(--measure); }
.num     { font-variant-numeric: tabular-nums; }
.in-hue  { color: var(--hue-deep); }       /* a whole element in the hue's text shade */
.fill .in-hue { color: inherit; }
/* A small plain label, only where a label is functional (a field, a table
   column, a figure). Not an eyebrow over every heading. */
.label { font: 500 var(--step-label)/1.4 var(--font-body); color: var(--ink-muted); }
/* Data readouts only: a scale, a clock, coordinates, code. */
.mono { font: 400 var(--step-mono)/1.45 var(--font-mono); letter-spacing: var(--track-mono); }

/* ---------------------------------------------------------------------------
   Stickers: one drawing per domain (a stethoscope, a flask, a whiteboard, a
   browser, music notes) wherever a list names them (Home's list, About's
   skills, Contact's topics, which add a speech bubble for "Just saying hi").
   Flat, in the domain's hue with its deep shade for lines (.w: white), on a
   white die-cut edge that lifts off the page. The edge is the same drawing
   drawn fat underneath (.cut), shadowed by #sticker-lift, which a page using
   stickers defines once (Bassel's pick, round 3).
   --------------------------------------------------------------------------- */
.sticker { display: block; flex: none; overflow: visible; }
.sticker path { stroke-linecap: round; stroke-linejoin: round; }
.sticker .b { fill: var(--hue); stroke: var(--hue-deep); stroke-width: 1.8; }
.sticker .f { fill: var(--card); stroke: var(--hue-deep); stroke-width: 1.8; }
.sticker .l { fill: none; stroke: var(--hue-deep); stroke-width: 3; }
.sticker .lf { fill: var(--hue-deep); }
.sticker .lf.w { fill: var(--card); }
.sticker .l.w { stroke: var(--card); }
.sticker .cut path { fill: var(--card); stroke: var(--card); stroke-width: 7; }
.sticker .cut .l { fill: none; stroke-width: 9; }
.sticker .cut .lf { stroke: none; }

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 136px); }

/* ---------------------------------------------------------------------------
   Atoms: buttons, links, chips, figures
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--pill);
  font: 600 15px/1 var(--font-body); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) ease-out, color var(--dur-micro) ease-out,
              border-color var(--dur-micro) ease-out, transform var(--dur-micro) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--hue     { background: var(--hue); color: var(--on-hue); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn--hue:hover     { background: color-mix(in srgb, var(--hue) 88%, var(--ink-fixed)); }
.btn--ghost:hover   { border-color: var(--ink); }
.fill .btn--hue { background: var(--on-hue); color: var(--hue-deep); }

.link {
  color: var(--hue-deep);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--dur-micro) ease-out;
}
.fill .link, .night .link { color: inherit; }
.link:hover { text-decoration-color: currentColor; }

.chip {
  position: relative; display: inline-flex; align-items: center; gap: .45em;
  min-height: 36px; padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: var(--pill);
  background: transparent;
  font: 500 14px/1 var(--font-body); letter-spacing: 0;
  color: var(--ink);
  transition: color var(--dur-micro) ease-out, border-color var(--dur-micro) ease-out, background-color var(--dur-micro) ease-out;
}
.chip::before { content: ""; position: absolute; inset: -4px; }   /* 44 px hit area */
button.chip:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.chip[aria-pressed="true"], .chip[aria-checked="true"],
button.chip[aria-pressed="true"]:hover, button.chip[aria-checked="true"]:hover { color: var(--on-hue); background: var(--hue); border-color: var(--hue); }

/* A number inside the component it belongs to (never a decorative stats band) */
.fact__n { display: block; font: 700 clamp(34px, 3.6vw, 52px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact__l { display: block; margin-top: 8px; font: 400 var(--step-small)/1.4 var(--font-body); color: var(--ink-muted); }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Form fields (Contact page and anywhere else a form lives) */
.field { display: grid; gap: 6px; }
.field > span { font: 500 var(--step-label)/1.4 var(--font-body); color: var(--ink-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--card); border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 12px;
  font: 400 17px/1.5 var(--font-body); color: var(--ink-fixed);
  transition: border-color var(--dur-micro) ease-out, box-shadow var(--dur-micro) ease-out;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--hue-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hue) 22%, transparent);
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Brand marks for the three profiles (white badge, brand-coloured glyph) */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 1px 2px rgba(28, 24, 48, .12);
  transition: transform var(--dur-micro) var(--ease-out);
}
.social a:hover { transform: translateY(-2px); }
.social svg { width: 21px; height: 21px; }
.social .linkedin svg { fill: #0a66c2; }
.social .github svg   { fill: #181717; }
.social .youtube svg  { fill: #ff0000; width: 23px; }

/* ---------------------------------------------------------------------------
   Corner chrome: fixed header that reads the ground beneath it.
   chrome.js measures the colour under the header and sets [data-ground] to
   "night" (light text) on dark or saturated-dark grounds, "day" otherwise.
   --------------------------------------------------------------------------- */
.chrome {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: var(--chrome-h); padding: 0 var(--gutter);
  color: var(--ink-fixed);
  transition: color var(--dur-ui) var(--ease-out);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome[data-ground="night"] { color: #ffffff; }
/* Clear at the top; once scrolled, a near-solid band in the colour of the
   section underneath (chrome.js sets --chrome-bg and data-scrolled), fading
   out over its last 14 px. No backdrop blur or mask: both cost a GPU pass on
   every scrolled frame, which hitched integrated GPUs and Safari. */
.chrome::before {
  content: ""; position: absolute; inset: 0 0 -14px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--chrome-bg, #fcf8f1) 95%, transparent) calc(100% - 14px),
    color-mix(in srgb, var(--chrome-bg, #fcf8f1) 0%, transparent));
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.chrome[data-scrolled="true"]::before { opacity: 1; }
/* Without JS nothing tracks the scroll, so keep the band on */
@media (scripting: none) { .chrome::before { opacity: 1; } }
.chrome[data-chrome="clear"]::before { display: none; }

.chrome__brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.chrome__name { font: 700 19px/1 var(--font-display); letter-spacing: -.02em; }

/* Each page has its colour. In the nav it's a highlighter stroke behind the
   word, on hover and on the current page (Bassel's pick, round 3): ink with
   a little pooled at the chisel ends and along the bottom, swept in left to
   right (clip-path, so the ends never squash). The word over it is always
   ink. The stroke is a 60% wash, like real highlighter ink: at full
   strength the ink was hard to read on coral and orchid (Bassel's pick,
   2026-10-05); washed it's 8.4:1 or better on the nav's four hues. On a
   ground of the tab's own colour (chrome.js marks the tab .is-match) the
   stroke goes pale, so it still shows. */
.nav-about     { --dot: var(--coral);    --dot-deep: var(--coral-deep); }
.nav-projects  { --dot: var(--mint);     --dot-deep: var(--mint-deep); }
.nav-tutoring  { --dot: var(--marigold); --dot-deep: var(--marigold-deep); }
.nav-interests { --dot: var(--orchid);   --dot-deep: var(--orchid-deep); }
.nav-contact   { --dot: var(--violet);   --dot-deep: var(--violet-deep); }
.chrome__nav ul { display: flex; gap: clamp(22px, 2.6vw, 38px); }
.chrome__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font: 500 15.5px/1 var(--font-body); letter-spacing: -.005em;
  text-decoration: none;
  transition: color var(--dur-ui) var(--ease-out);
}
.chrome__nav .hl {
  /* an SVG doesn't stretch between left and right like a box: its width is
     set. The ink is 70% of its height, centred 53% down, so 1.9em of SVG
     lays about 1.33em of ink centred on the word: over the capitals and the
     descenders with a little to spare (Bassel wanted the whole word covered) */
  position: absolute; z-index: -1; left: -.5em; top: calc(50% - 1.01em); width: calc(100% + .95em); max-width: none; height: 1.9em;
  pointer-events: none;
  clip-path: inset(0 100% 0 0); transition: clip-path 380ms var(--ease-out);
}
.chrome__nav a:hover .hl, .chrome__nav a[aria-current="page"] .hl { clip-path: inset(0 -1px 0 -1px); }
.chrome__nav a:hover, .chrome__nav a[aria-current="page"] { color: var(--ink-fixed); }
.chrome__nav .hl__ink { fill: var(--dot); fill-opacity: .6; }
.chrome__nav .hl__pool { fill: var(--dot-deep); fill-opacity: .17; }
.chrome__nav a.is-match .hl__ink { fill: var(--paper); fill-opacity: .62; }
.chrome__nav a.is-match .hl__pool { fill-opacity: .2; }
@media (prefers-reduced-motion: reduce) { .chrome__nav .hl { transition: none; } }

.chrome__menu {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0;
  font: 600 15px/1 var(--font-body);
}
.chrome__bars { position: relative; width: 20px; height: 8px; border-block: 1.5px solid currentColor; }
.chrome__sheet {
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-6);
  padding: calc(var(--chrome-h) + 24px) var(--gutter) 40px;
  background: var(--paper); color: var(--ink-fixed);
}
.chrome__sheet[hidden] { display: none; }
.chrome__sheet ol { display: grid; gap: 6px; }
.chrome__sheet ol a {
  display: flex; align-items: center; gap: 16px; min-height: 56px; text-decoration: none;
  font: 700 clamp(38px, 10vw, 54px)/1.05 var(--font-display); letter-spacing: -.03em;
}
.chrome__sheet ol a::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--dot); }
.chrome__sheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.chrome__sheet__foot > a { font: 600 16px/1 var(--font-body); min-height: 44px; display: inline-flex; align-items: center; }
html.menu-open .chrome { color: var(--ink-fixed); }
html.menu-open .chrome::before { opacity: 0; }

@media (max-width: 820px) {
  .chrome__nav { display: none; }
  .chrome__menu { display: inline-flex; }
}

/* Optional readout, bottom-left: a real data readout (scale, clock), so mono */
.readout {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 14px; pointer-events: none;
  font: 400 11px/1 var(--font-mono); letter-spacing: var(--track-mono);
  color: var(--ink-fixed); opacity: .85;
  transition: color var(--dur-ui) var(--ease-out);
}
.readout[data-ground="night"] { color: #ffffff; }
.readout__bar { position: relative; width: 120px; height: 2px; border-radius: 2px; background: color-mix(in srgb, currentColor 22%, transparent); }
.readout__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: var(--hue); }
@media (max-width: 820px) { .readout { display: none; } }

/* ---------------------------------------------------------------------------
   Footer: one slim band in the page's hue. © on the left; Contact (it lives
   here, not in the top nav) and the three profiles on the right. No form, no
   repeated nav (Bassel, round 2).
   --------------------------------------------------------------------------- */
.foot {
  --bg: var(--hue); --ink: var(--on-hue);
  position: relative; padding: 22px 0;
  background: var(--bg); color: var(--ink);
}
/* The footer spans the same margins as the header, whatever width a page's content uses */
.foot .wrap { width: auto; margin-inline: var(--gutter); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot__copy { font: 600 15px/1.4 var(--font-body); }
.foot__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.foot__contact {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border-radius: var(--pill); background: var(--ink); color: var(--bg);
  font: 600 15px/1 var(--font-body); text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out);
}
.foot__contact:hover { transform: translateY(-2px); }

/* Round-1 footer markup (big name + repeated nav), kept only until every page
   is re-synced from partials.html */
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot__name { font: 700 20px/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px/1 var(--font-body); text-decoration: none; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 14px; font: 500 var(--step-small)/1.5 var(--font-body); }
