/* ============================================================
   Alex Atienza — portfolio
   The Index, on the Slate · mineral e-ink
   Design tokens + base + shared chrome. One stylesheet for the
   whole site; each page links this file.
   ============================================================ */

:root {
  /* — color — */
  --ink:        #2C2B27;   /* graphite, headings, body        */
  --ink-soft:   #45433C;   /* secondary text                  */
  --muted:      #5F5C56;   /* metadata, captions, "shelved"   */
  --page:       #DBD9D2;   /* app shell / ground              */
  --sheet:      #E8E6DF;   /* raised surface                  */
  --line:       #C2BFB6;   /* hairlines                       */
  --dot:        #B7B4AB;   /* dots, faint rules               */
  --signal:     #3E5C7E;   /* single accent — active, links   */
  --slate:      #2E3A46;   /* dark chrome                     */
  --shipped:    #4E614F;   /* status: shipped                 */
  --marker:     #C9A227;   /* status: in progress — see README  */

  /* — type — */
  --display: 'Inter Tight', system-ui, sans-serif; /* display + UI headers */
  --body:    'Newsreader', Georgia, serif;         /* reading + italic notes */
  --mono:    'JetBrains Mono', ui-monospace, monospace; /* metadata */
  --ui:      'Inter', system-ui, sans-serif;       /* dense UI labels */

  /* --muted and --shipped are set to the lightest value that still
     clears WCAG AA (4.5:1) on --page, measured WITH maximum ghosting
     applied — metadata runs at 11–14px, so it has no margin to give.
     --marker fails badly (1.71:1) and is unfixed on purpose; see the
     note in README, it needs a markup change not a token change. */

  --measure: 1180px;      /* max content width */
  --pad: 80px;            /* horizontal page padding (desktop) */
}

/* — reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  /* Organic paper texture on the body so it fills the whole canvas —
     short pages included, no flat seam — and still scrolls with the
     content. Two layers: a fine tooth (overlay, blurred so it reads
     as paper rather than digital static) + a coarse cloudy mottle
     (multiply) for gentle organic shadowing. Dials noted inline. */
  background-color: var(--page);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='saturate' values='0' result='m'/%3E%3CfeComponentTransfer in='m'%3E%3CfeFuncR type='linear' slope='0.5' intercept='0.25'/%3E%3CfeFuncG type='linear' slope='0.5' intercept='0.25'/%3E%3CfeFuncB type='linear' slope='0.5' intercept='0.25'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeGaussianBlur stdDeviation='0.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='saturate' values='0' result='d'/%3E%3CfeComponentTransfer in='d'%3E%3CfeFuncR type='linear' slope='0.18' intercept='0.82'/%3E%3CfeFuncG type='linear' slope='0.18' intercept='0.82'/%3E%3CfeFuncB type='linear' slope='0.18' intercept='0.82'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-repeat: repeat, repeat;
  background-size: 320px 320px, 900px 900px;
  /* fine grain: overlay (balanced) · mottle: multiply (soft shadow clouds) */
  background-blend-mode: overlay, multiply;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }

/* — high-def e-ink grain, fixed over everything — */
/* The paper TEXTURE now lives on .page so it scrolls with the content
   (see .page below). This fixed layer is just a soft e-ink vignette —
   a gentle shadow toward the edges for depth, like light on a matte
   screen. Dial: raise the last rgba alpha for a deeper shadow. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: radial-gradient(135% 108% at 50% 20%,
    rgba(0, 0, 0, 0) 55%,
    rgba(44, 43, 39, 0.16) 100%);
}

/* ============================================================
   Chrome / nav
   ============================================================ */
.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  /* full-bleed bar, but align its contents to the centred column */
  padding-inline: max(var(--pad), calc((100% - var(--measure)) / 2 + var(--pad)));
  background: var(--slate);
  color: #E4E1D9;
}
.chrome__mark { display: flex; align-items: center; gap: 14px; }
.chrome__glyph { width: 16px; height: 20px; border: 1.5px solid #8FA0AE; border-radius: 2px; }
.chrome__name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: #E4E1D9; white-space: nowrap; }
.chrome__crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: #7C8A97; }
.chrome__nav { display: flex; align-items: center; gap: 32px; }
.chrome__nav a { font-family: var(--ui); font-size: 13px; font-weight: 500; color: #A9B4BD; transition: color 0.15s; }
.chrome__nav a:hover { color: #E4E1D9; }
.chrome__nav a[aria-current="page"] { color: #E4E1D9; }

/* ============================================================
   Layout helpers
   ============================================================ */
.page {
  position: relative;
  overflow-x: clip;
}
.wrap {
  max-width: var(--measure);
  margin-inline: auto;         /* centre the column on wide viewports */
  padding-inline: var(--pad);
  position: relative;          /* anchor the mark + stack content above it */
}
/* everything except the mark sits above the drifting cloud */
.wrap > *:not(.mark) { position: relative; z-index: 1; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--signal); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ============================================================
   Home — "About, stacked"
   ============================================================ */
.statement { position: relative; padding-top: 72px; }
.statement h1 {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.16;
  color: var(--ink);
  max-width: 26ch;
  margin-top: 20px;
}
.statement .eyebrow { display: block; }

/* the soft, drifting mark — a large blurred cloud behind the hero
   (home only) */
.mark {
  position: absolute;
  top: -40px;
  right: -160px;
  width: 620px;
  height: 620px;
  z-index: 0;
  pointer-events: none;
}
.mark canvas { width: 100%; height: 100%; }

.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-top: 44px;
  position: relative;
  z-index: 1;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bio p { font-family: var(--body); font-size: 22px; line-height: 1.55; color: var(--ink); }
.bio p + p { color: var(--ink-soft); }

.experience { padding-top: 6px; }
.experience__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

.role {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.experience .role:last-child { border-bottom: 1px solid var(--line); }
.role__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.role__co { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.role__yr { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.role__title { font-family: var(--body); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.role__metric { font-family: var(--mono); font-size: 13px; color: var(--signal); padding-top: 2px; }

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 34px 0 56px;
  margin-top: 12px;
}
.contact__facts, .contact__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact span, .contact a { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.contact a { color: var(--signal); }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Work & Now — shared page header
   ============================================================ */
.page-head { padding-top: 72px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  margin: 14px 0 12px;
}
.page-head .dek {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ============================================================
   Work — index list
   ============================================================ */
.index { padding-top: 44px; padding-bottom: 72px; }
.index__cols,
.entry {
  display: grid;
  grid-template-columns: 44px 1fr 104px 92px 128px;
  gap: 24px;
}
.index__cols { padding: 0 8px 12px; border-bottom: 1.5px solid var(--ink); }
.index__cols span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.entry {
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background 0.15s;
}
.entry:hover { background: rgba(44, 43, 39, 0.035); }
.entry__num { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.entry__mid { display: flex; flex-direction: column; gap: 3px; }
.entry__title { font-family: var(--display); font-size: clamp(18px, 2.4vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.entry__abstract { font-family: var(--body); font-style: italic; font-size: 16px; color: var(--muted); }
.entry__type { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.entry__type.is-demo { color: var(--signal); }
.entry__year { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.entry__status { font-family: var(--mono); font-size: 13px; }
.is-shipped { color: var(--shipped); }
.is-progress { color: var(--marker); }
.is-shelved { color: var(--muted); }

/* ============================================================
   Work — the render queue
   ------------------------------------------------------------
   An e-ink controller holds a queue of pages waiting to be drawn.
   Until the case studies are written, Work *is* that queue: real
   projects, honest states, nothing invented. The bar on the
   drawing row advances one step per full refresh (see refresh.js),
   so it fills as you move around the site — and caps well short of
   done, because it isn't done.
   ============================================================ */
.queue { padding-top: 44px; }
.queue__cols,
.queue__row {
  display: grid;
  grid-template-columns: 48px 1fr 92px 158px;
  gap: 24px;
}
.queue__cols { padding: 0 8px 12px; border-bottom: 1.5px solid var(--ink); }
.queue__cols span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }

.queue__row {
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.queue__num { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.queue__mid { display: flex; flex-direction: column; gap: 3px; }
.queue__title {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.queue__sub { font-family: var(--body); font-style: italic; font-size: 16px; color: var(--muted); }
.queue__yr  { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.queue__state { display: flex; flex-direction: column; gap: 9px; }
.queue__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.is-drawing .queue__label { color: var(--signal); }

.queue__bar { height: 3px; background: var(--line); overflow: hidden; }
/* --drawn is set by refresh.js from the session's full-refresh count.
   No transition: the panel steps, it doesn't slide. */
.queue__bar i {
  display: block;
  height: 100%;
  width: var(--drawn, 8%);
  background: var(--signal);
}

.queue__note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  padding: 34px 0 72px;
}
.queue__note p { font-family: var(--body); font-size: 18px; color: var(--ink-soft); }
.queue__note a { font-family: var(--mono); font-size: 13px; color: var(--signal); }
.queue__note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Now — labelled rows
   ============================================================ */
.now-list { display: flex; flex-direction: column; gap: 26px; padding-top: 44px; padding-bottom: 72px; max-width: 66ch; }
.now-row { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.now-row__label { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 7px; }
.now-row__text { font-family: var(--body); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: var(--ink); }

/* ============================================================
   E-ink refresh
   ------------------------------------------------------------
   Modelled on what the hardware actually does on a page turn,
   because the panel is reflective and electrostatic, not emissive:

     1. the image goes NEGATIVE      (particles reverse polarity)
     2. hard cut to a CLEARED panel  (all particles to one pole)
     — navigate, while the screen is a cleared panel —
     3. the new page arrives NEGATIVE
     4. it snaps POSITIVE, through a moment of GHOSTING

   Two rules follow from the physics and both matter more than
   they look like they should:

     · No easing. E-ink can't interpolate — a frame is a frame.
       Every keyframe below is `step-end`, so values HOLD and CUT.
     · No glow, no colour, no blur. A reflective panel emits
       nothing. Anything luminous reads as CRT, not paper.

   Deliberately slow (~880ms door to door). That's the hardware's
   speed, and the point.
   ============================================================ */
:root {
  /* A cleared panel, not a black one. E-ink is reflective — the surface
     bounces ambient light, so it can never be the void a backlit screen
     produces; its darkest state is a graphite. This started at #171613, a
     flat near-black that landed like a slap, and has been lifted twice
     since. Note it is now lighter than the inverted page (~#24262D), so the
     darkest beat of the sequence is the negative, and the clear reads as a
     settle after it. Lighten further and that beat keeps softening — there
     is room left, but it is finite: past roughly #5A5750 the clear stops
     reading as a distinct state and just looks like a grey wash. */
  --eink-clear: #4A4740;
  --eink-out:   440ms;     /* full: negative + clear, then navigate */
  --eink-in:    380ms;     /* full: negative + ghost, then settle */
  --eink-p-out: 200ms;     /* partial: a local flick, no clear */
  --eink-p-in:  130ms;     /* partial: ghost only */
}

/* The negative pass. A white layer in `difference` is an exact
   photographic inverse of everything beneath it — paper turns to
   graphite, ink turns to bone — for one element and no repaint of
   the page itself.
   These two MUST stay direct children of <body>: mix-blend-mode
   composites an element into its PARENT stacking context, and any
   fixed-position wrapper would box the blend into itself, leaving
   a flat white rectangle instead of an inverted page. */
.eink-veil,
.eink-sheet {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.eink-veil {
  z-index: 98;
  background: #fff;
  mix-blend-mode: difference;
}
.eink-sheet {
  z-index: 99;
  /* a soft wash toward the top, as light falls on a matte panel */
  background:
    linear-gradient(to bottom, rgba(236, 234, 227, 0.05), rgba(236, 234, 227, 0) 62%),
    var(--eink-clear);
}
/* Grain on the cleared panel. Without it this is a flat rectangle — the most
   screen-like thing on the site, which is exactly why the old black felt like
   a slap. With it, it's a surface. */
.eink-sheet::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* — leaving — */
html.is-leaving .eink-veil  { animation: eink-negative-out var(--eink-out) step-end both; }
html.is-leaving .eink-sheet { animation: eink-clear-out    var(--eink-out) step-end both; pointer-events: auto; }

@keyframes eink-negative-out {
  0%  { opacity: 0; }
  24% { opacity: 1; }   /* 120ms — the page reverses polarity */
  64% { opacity: 0; }   /* 320ms — handed over to the cleared panel */
}
/* Two steps, not one. A waveform drives through intermediate greys on its way
   to a cleared panel, and stepping down reads far gentler than one slam while
   staying just as mechanical. */
@keyframes eink-clear-out {
  0%  { opacity: 0; }
  56% { opacity: 0.55; }  /* 280ms — the clear ghosting in over the negative */
  72% { opacity: 1; }     /* 360ms — cleared, and held to the navigate */
}

/* — arriving —
   Armed by the inline script in each <head>, so the incoming page
   is a cleared panel from its very first frame. Pure CSS: if
   refresh.js never loads, this still finishes and hands the page
   over rather than stranding a dark screen. */
html.is-arriving .eink-veil  { animation: eink-negative-in var(--eink-in) step-end both; }
html.is-arriving .eink-sheet { animation: eink-clear-in    var(--eink-in) step-end both; }

@keyframes eink-negative-in {
  0%  { opacity: 0; }
  37% { opacity: 1; }   /* 140ms — the new page draws in negative first */
  76% { opacity: 0; }   /* 290ms — snaps positive */
}
@keyframes eink-clear-in {
  0%  { opacity: 1;    background: var(--eink-clear); }  /* still cleared */
  24% { opacity: 0.55; }                                 /* step back up through grey */
  37% { opacity: 0; }
  /* the residue of the previous image, still settling */
  76% { opacity: 0.45; background: var(--page); }
  100%{ opacity: 0; }
}

/* Selection on a device is an inverted block — a hard state change,
   never a fade. Two grounds, so two inversions. */
.is-jumping,
.is-jumping:hover {
  background: var(--ink) !important;
  color: var(--page) !important;
  box-shadow: 0 0 0 3px var(--ink);
  /* .chrome__nav a and .entry both carry a 150ms transition, which
     would ease this on instead of cutting to it. A panel can't fade. */
  transition: none !important;
}
.chrome .is-jumping,
.chrome .is-jumping:hover {
  background: #E4E1D9 !important;
  color: var(--slate) !important;
  box-shadow: 0 0 0 3px #E4E1D9;
}

/* — the slow-load status —
   Held back until 700ms, well past a normal jump. A real refresh
   has no text on it at all, so on a healthy connection none of
   this is ever seen; it appears only when there is genuinely
   something to wait for. Monochrome, because the panel is. */
.eink-status {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40px);
}
html.is-leaving .eink-status { animation: eink-status 1ms step-end 700ms both; }
@keyframes eink-status { from { opacity: 0; } to { opacity: 1; } }

.eink-status__line {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: #D8D5CD;
  margin-right: -0.42em;   /* letter-spacing leaves a trailing gap; re-centre */
}
.eink-status__bar {
  width: 200px;
  height: 3px;
  background: rgba(216, 213, 205, 0.18);
  overflow: hidden;
}
.eink-status__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #D8D5CD;
  /* steps, not a slide — progress on a panel advances a cell at a time */
  animation: eink-fill 4s steps(14, end) 700ms both;
}
/* creeps, never arrives — only the next page can finish it */
@keyframes eink-fill {
  0%   { width: 0; }
  12%  { width: 58%; }
  100% { width: 94%; }
}

/* ============================================================
   Refresh policy — partial vs. full
   ------------------------------------------------------------
   The part that makes this a device rather than a costume.

   A real panel does NOT full-flash every page turn. Most turns are
   fast PARTIAL refreshes that update in place and leave residue
   behind; the controller spends a slow FULL flash only now and
   then, to clear accumulated ghosting.

   So: four fast partials, then one full — and because the residue
   is visible and building the whole time, the slow one arrives as
   a relief instead of an interruption. That inversion is the whole
   idea. The full flash has to stay rare to stay worth watching.
   ============================================================ */

/* — partial: a local flick, chrome untouched, no cleared panel —
   Skipping the chrome is what sells it as a partial update: the
   frame holds still while only the content region redraws. */
html.is-leaving.is-partial .eink-veil {
  /* refresh.js sets --chrome-h at click time. The fallback is 0, not the
     chrome's height: a wrong offset would leave a band of un-inverted page
     across the top, whereas flicking the whole viewport is always valid. */
  top: var(--chrome-h, 0px);
  animation: eink-partial-out var(--eink-p-out) step-end both;
}
html.is-leaving.is-partial .eink-sheet,
html.is-leaving.is-partial .eink-status { animation: none; }

@keyframes eink-partial-out {
  0%  { opacity: 0; }
  30% { opacity: 1; }   /* 60ms — the content region flicks negative */
  75% { opacity: 0; }   /* 150ms */
}

html.is-arriving.is-partial .eink-veil { animation: none; }
html.is-arriving.is-partial .eink-sheet {
  animation: eink-partial-in var(--eink-p-in) step-end both;
}
/* no cleared panel on the way in — just the residue of the last image */
@keyframes eink-partial-in {
  0%   { opacity: 0.5; background: var(--page); }
  100% { opacity: 0; }
}

/* — accumulated ghosting —
   Residue reads as texture, not fog: a coarse multiply mottle, so
   the page gets fractionally dirtier each partial without ever
   touching text contrast. Legibility is not negotiable, so this
   tops out deliberately low — it should be felt before it's seen. */
.eink-ghost {
  position: fixed;
  inset: 0;
  z-index: 51;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.42' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='saturate' values='0' result='d'/%3E%3CfeComponentTransfer in='d'%3E%3CfeFuncR type='linear' slope='0.28' intercept='0.72'/%3E%3CfeFuncG type='linear' slope='0.28' intercept='0.72'/%3E%3CfeFuncB type='linear' slope='0.28' intercept='0.72'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeGaussianBlur stdDeviation='0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}
html[data-ghost="1"] .eink-ghost { opacity: 0.22; }
html[data-ghost="2"] .eink-ghost { opacity: 0.45; }
html[data-ghost="3"] .eink-ghost { opacity: 0.70; }
html[data-ghost="4"] .eink-ghost { opacity: 0.92; }

/* — the tell —
   The glyph beside the wordmark was already a little page. Now it
   is the residue gauge: it fills as ghosting builds and empties
   when the panel clears itself. Nothing announces this; it's there
   for whoever looks twice. Stepped, never eased. */
.chrome__glyph { position: relative; overflow: hidden; }
.chrome__glyph::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: #8FA0AE;
}
html[data-ghost="1"] .chrome__glyph::after { height: 25%; }
html[data-ghost="2"] .chrome__glyph::after { height: 50%; }
html[data-ghost="3"] .chrome__glyph::after { height: 75%; }
html[data-ghost="4"] .chrome__glyph::after { height: 100%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  :root { --pad: 28px; }
  .chrome { padding-block: 14px; }
  .chrome__nav { gap: 18px; }
  .mark { width: 520px; height: 520px; right: -180px; top: -20px; opacity: 0.9; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .experience { padding-top: 0; }
  .bio p { font-size: 19px; }
  .role__co { font-size: 21px; }
}
@media (max-width: 560px) {
  .chrome { flex-wrap: wrap; gap: 10px 16px; padding-block: 12px; }
  .chrome__crumb { display: none; }
  .chrome__nav { gap: 16px; width: 100%; }
  .chrome__nav a { font-size: 12px; white-space: nowrap; }
  .mark { display: none; }
  .role__head { flex-direction: column; gap: 2px; }
  .index__cols { display: none; }
  .entry { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .entry__num, .entry__type, .entry__year { display: none; }
  .queue__cols { display: none; }
  .queue__row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .queue__num, .queue__yr { display: none; }
  .queue__bar { max-width: 180px; }
  .now-row { grid-template-columns: 1fr; gap: 4px; }
  .now-row__label { padding-top: 0; }

}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  /* refresh.js opts out entirely here, but belt-and-braces: with
     animations off these layers would otherwise sit and cover the
     page instead of clearing off it. */
  .eink-veil, .eink-sheet, .eink-status, .eink-ghost { display: none !important; }
  .chrome__glyph::after { display: none !important; }
  .is-jumping, .is-jumping:hover,
  .chrome .is-jumping, .chrome .is-jumping:hover {
    background: none !important;
    color: inherit !important;
    box-shadow: none;
  }
}
