/* ==========================================================================
   Evan Curole, v4. One stylesheet for index, contact, thanks and 404.
   Contract: content/design/v4/DESIGN.md. Change a colour or a font in
   section 1 and the whole site follows. No italics anywhere, by rule.
   1 tokens · 2 base · 3 header · 4 hero · 5 sections · 6 components
   7 contact · 8 footer · 9 boxfight tab · 10 small screens
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #1b1b1b;
  --band: #161616;          /* alternate section ground */
  --raise: #242424;         /* panels, inputs */
  --raise-2: #2c2c2c;       /* panel hover */
  --line: #363636;
  --line-strong: #5e5e5e;
  --text: #ffffff;
  --soft: #ffffff;          /* body copy: same white as --text since 2026-09-17, Evan found any grey too dim */
  --muted: #b8b8b8;         /* small mono labels and captions only */
  --accent: #e0a952;        /* amber, Evan's pick 2026-10-19 */
  --accent-dim: rgba(224, 169, 82, 0.12);
  --on-accent: #1b1b1b;
  --glow: rgba(224, 169, 82, 0.06);
  /* Section tones (2026-10-25): amber's siblings at the same OKLCH lightness, one per home-page
     section, so no tone is louder than the amber. Each section sets --accent to one of them (section 5). */
  --tone-amber: #e0a952;
  --tone-lavender: #bda6ea;
  --tone-clay: #f39b78;
  --tone-sage: #9fc17e;
  --cine-accent: #e0a952;   /* the Boxfight hero is always dark, so it keeps the dark accent in light mode */
  --cine-on-accent: #1b1b1b;
  --dots: rgba(255, 255, 255, 0.035);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.32);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1280px;          /* was 1120px until 2026-10-19: Evan asked for a wider, shorter page */
  --gutter: clamp(16px, 3.5vw, 40px);
  --radius: 14px;
  --header: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f4f4;
    --band: #ebebeb;
    --raise: #ffffff;
    --raise-2: #ffffff;
    --line: #d6d6d6;
    --line-strong: #8a8a8a;
    --text: #1b1b1b;
    --soft: #1b1b1b;
    --muted: #4d4d4d;
    --accent: #8a5a12;      /* the amber, darkened to 5.4:1 on the light ground */
    --accent-dim: rgba(138, 90, 18, 0.08);
    --on-accent: #ffffff;
    --glow: rgba(138, 90, 18, 0.05);
    --tone-amber: #8a5a12;  /* each tone darkened to 4.7:1 or better on the band */
    --tone-lavender: #6d5a8e;
    --tone-clay: #945137;
    --tone-sage: #566f3b;
    --dots: rgba(0, 0, 0, 0.035);
    --shadow: 0 1px 2px rgba(20, 20, 20, 0.05), 0 20px 40px -24px rgba(20, 20, 20, 0.18);
  }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

em, i, cite, address, blockquote { font-style: normal; }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: 6px; text-decoration: none; }
.skip:focus { left: 8px; color: var(--on-accent); }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* 3. Header ---------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: clamp(4px, 1.5vw, 10px); }
.nav a { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav a:hover { color: var(--text); background: var(--raise); }
.nav a[aria-current="page"] { color: var(--text); background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; }

/* 4. Hero ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 6vw, 84px) clamp(40px, 5vw, 64px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 90% at 88% -10%, var(--glow), transparent 62%), radial-gradient(40% 60% at 0% 110%, var(--accent-dim), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 0); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, transparent 92%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raise); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-top: 22px; font-size: clamp(50px, 8.6vw, 100px); line-height: 0.98; font-weight: 600; letter-spacing: -0.04em; }
.hero__sub { margin-top: 24px; font-size: clamp(22px, 2.7vw, 30px); line-height: 1.28; font-weight: 500; letter-spacing: -0.015em; }
.hero__sub span { color: var(--accent); }
.hero__lede { margin-top: 22px; max-width: 58ch; color: var(--soft); }
/* The recruiter line as its own callout (Evan, 2026-10-20: "make that bold… make that stand out"). */
.seek { display: grid; gap: 2px; width: fit-content; max-width: 100%; margin-top: 22px; padding: 10px 16px 11px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: linear-gradient(90deg, var(--accent-dim), transparent 85%), var(--raise); }
.seek__label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.seek__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.seek strong { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.seek__note { font-size: 14px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.glance { background: linear-gradient(180deg, var(--raise-2), var(--raise)); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; box-shadow: var(--shadow); }
.glance__row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding-block: 13px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.glance__row:first-child { border-top: 0; }
.glance dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }

/* The headshot (Evan's own, 2026-10-19) beside the hero text, and the at-a-glance panel as a
   four-across strip under it. */
.hero__grid--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.portrait { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #4a4a4a; box-shadow: var(--shadow); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.glance--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.12fr) minmax(0, 0.88fr); margin-top: clamp(40px, 5vw, 64px); padding: 4px 0; }
.glance--row .glance__row { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 20px 24px 22px; border-top: 0; border-left: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.glance--row dt { padding-top: 0; font-size: 12.5px; letter-spacing: 0.08em; white-space: nowrap; }
.glance--row dd { color: var(--text); }
.glance--row .glance__row:first-child { border-left: 0; }
.glance__shop { display: flex; justify-content: center; width: 100%; max-width: 220px; margin-top: 12px; padding: 10px 18px; font-size: 15px; }
.glance__shop::after { content: "\2197"; color: var(--accent); }

/* 5. Sections -------------------------------------------------------------- */
.sec { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
.sec--band { background: var(--band); }
/* One tone per section (Evan, 2026-10-25: "have the colors switch throughout the page so it's not
   stale"). Header, hero and footer stay amber. The tint and glow are re-derived here because a
   custom property inherits its value, not its formula. */
#building-with-ai { --accent: var(--tone-lavender); }
[id="3d-printing"] { --accent: var(--tone-clay); }
#career { --accent: var(--tone-sage); }
.sec { --accent-dim: color-mix(in srgb, var(--accent) 12%, transparent); --glow: color-mix(in srgb, var(--accent) 6%, transparent); }
@media (prefers-color-scheme: light) {
  .sec { --accent-dim: color-mix(in srgb, var(--accent) 8%, transparent); --glow: color-mix(in srgb, var(--accent) 5%, transparent); }
}
.sec__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.5vw, 32px); align-items: start; }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.sec__head .sub { margin-left: auto; font-size: 15.5px; }
.sec__num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); }
.sec__num::after { content: ""; width: 32px; height: 1px; background: var(--accent); opacity: 0.6; }
.sec h2 { margin-top: 0; font-size: clamp(27px, 3.2vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.prose > p { max-width: 64ch; color: var(--soft); }
.prose > p:first-child { color: var(--text); font-size: 1.08em; }
.prose > p + p { margin-top: 18px; }
.prose > p.sub { margin-top: 44px; color: var(--muted); }

/* 6. Components ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--raise); color: var(--text); font: 500 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.6); }
.btn--primary:hover { color: var(--on-accent); filter: brightness(1.07); }

.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.link::after { content: " \2192"; display: inline-block; transition: transform 0.15s; }
.link:hover::after { transform: translateX(3px); }

/* tiles: the "built this way" grid */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tile { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raise); transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.tile:hover { border-color: var(--line-strong); background: var(--raise-2); transform: translateY(-2px); }
.tile__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); }
.tile__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 16px; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.tile p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--soft); }

/* blocks: one role or degree inside Career and education, on a rail */
.rail { position: relative; padding-left: 34px; }
.rail::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--accent), var(--line-strong) 22%, var(--line-strong)); }
.block { position: relative; }
.block::before { content: ""; position: absolute; left: -34px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.block + .block { margin-top: 52px; }
.block h3 { font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.block__meta { margin-top: 8px; font-family: var(--mono); font-size: 13px; line-height: 1.5; letter-spacing: 0.03em; color: var(--muted); }
.block__meta b { font-weight: 500; color: var(--accent); }
.block p:not(.block__meta) { margin-top: 16px; max-width: 64ch; color: var(--soft); }
.block .quote { margin-top: 28px; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cards--wide { margin-top: clamp(40px, 5vw, 60px); }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.25s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card__img { overflow: hidden; background: #e8e6e1; }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card__img img { transform: scale(1.035); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px 26px 26px; }
.card__cat { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin-top: 10px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.card__text { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--soft); }
.card .link { margin-top: 18px; font-size: 16px; }
.card__cap { width: 100%; margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.quote { max-width: 34ch; padding: 22px 26px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--raise); color: var(--text); font-size: clamp(20px, 2.3vw, 24px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }

/* 7. Contact, thanks, 404 -------------------------------------------------- */
.page { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 8vw, 96px); min-height: calc(100vh - var(--header) - 70px); }
.page::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -2; background: radial-gradient(60% 90% at 88% -10%, var(--glow), transparent 62%); }
.page::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; z-index: -1; background-image: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 0); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, transparent 92%); }
.page h1 { margin-top: 20px; max-width: 18ch; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; }
.page h1.page__title--first { margin-top: 0; }
.page__sub { margin-top: 18px; max-width: 52ch; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; font-weight: 500; }
.page__body { margin-top: 18px; max-width: 60ch; color: var(--soft); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 6vw, 72px); margin-top: 48px; align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: var(--raise); box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.topics li { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raise); font-size: 16px; font-weight: 500; }
.topics li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.field label span { margin-left: 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.input { display: block; width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: 400 17px/1.4 var(--font); transition: border-color 0.15s, box-shadow 0.15s; }
.input:hover { border-color: var(--muted); }
.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
textarea.input { resize: vertical; min-height: 150px; }
.form .btn { justify-self: start; min-width: 150px; justify-content: center; }

.side { background: linear-gradient(180deg, var(--raise-2), var(--raise)); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; box-shadow: var(--shadow); }
.side__row { padding-block: 15px; border-top: 1px solid var(--line); }
.side__row:first-child { border-top: 0; }
.side dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.side dd { margin-top: 4px; font-size: 16.5px; overflow-wrap: anywhere; }

/* 8. Footer ---------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--band); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 22px; font-size: 14.5px; color: var(--muted); }
.footer__links { display: flex; gap: 22px; }
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }


/* 2026-10-19 wider-and-shorter pass ---------------------------------------- */
.prose--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.prose--split > p { max-width: none; }
.prose--split > p + p { margin-top: 0; }
.prose--split > p:first-child, .prose--split > p:nth-child(2) { font-size: 1.04em; color: var(--text); }
.prose--split > :nth-child(n+3) { grid-column: 1 / -1; }
.prose--split > p.sub { margin-top: 36px; }
.tiles--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature:has(.feature__mosaic) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.feature__mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #111111; }
.feature__mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: filter 0.3s; }
.feature__mosaic .feature__big { grid-row: 1 / -1; aspect-ratio: 16 / 10; }
.feature__mosaic:hover img { filter: brightness(1.08); }
.feature__body { justify-content: center; }

.shop { display: grid; grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin-top: clamp(20px, 2.5vw, 32px); }
.shop__intro { align-self: start; }
.shop__intro > p { max-width: none; }
.shop__intro .printer { margin-top: 24px; }

.rail--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 4vw, 56px); padding-left: 0; }
.rail--grid::before, .rail--grid .block::before { display: none; }
.rail--grid .block + .block { margin-top: 0; }
.rail--grid .block { padding-top: 22px; border-top: 2px solid var(--accent); }
.rail--grid .block h3 { font-size: 21px; }
.rail--grid .block p:not(.block__meta) { margin-top: 12px; }
.block__list { display: grid; gap: 7px; margin-top: 14px; }
.block__list li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.5; color: var(--soft); }
.block__list li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 8px; height: 2px; background: var(--accent); }
.rail--grid .block--lead { grid-row: span 3; }
.rail--grid .block .quote { margin-top: 22px; font-size: clamp(18px, 1.9vw, 21px); padding: 16px 20px; }

/* 9. Boxfight tab ---------------------------------------------------------- */
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--raise-2); }

.hero__grid--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.shot { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: 12px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.meta-line { margin-top: 18px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 5vw, 60px); }
.jump a { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raise); font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.jump a:hover { border-color: var(--accent); }

/* The cinematic hero: the game's own start-screen pictures (Resources/MapCards), cross-fading
   with the same slow 1.04 to 1.10 drift MenuBackdrop gives them in game. CSS only. Five slides,
   7 s each; the first is already in at load (negative delay). Always dark, whatever the
   visitor's theme, because the words sit on a photograph. */
.cine { --slide: 7s; --cycle: calc(var(--slide) * 5); position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(86vh, 820px); padding-block: clamp(96px, 14vw, 180px) clamp(40px, 6vw, 72px); background: #111111; color: #ffffff; }
.cine__reel { position: absolute; inset: 0; z-index: -2; }
.cine__reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform-origin: 62% 45%; animation: cine-fade var(--cycle) linear infinite both; }
.cine__reel img:nth-child(1) { animation-delay: calc(var(--slide) * 0 - 1.4s); }
.cine__reel img:nth-child(2) { animation-delay: calc(var(--slide) * 1 - 1.4s); }
.cine__reel img:nth-child(3) { animation-delay: calc(var(--slide) * 2 - 1.4s); }
.cine__reel img:nth-child(4) { animation-delay: calc(var(--slide) * 3 - 1.4s); }
.cine__reel img:nth-child(5) { animation-delay: calc(var(--slide) * 4 - 1.4s); }
@keyframes cine-fade {
  0%   { opacity: 0; transform: scale(1.04); }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.10); }
}
.cine::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 14, 14, 0.9) 0%, rgba(14, 14, 14, 0.72) 38%, rgba(14, 14, 14, 0.15) 75%, rgba(14, 14, 14, 0.05) 100%), linear-gradient(0deg, rgba(14, 14, 14, 0.85) 0%, rgba(14, 14, 14, 0) 45%); }
.cine__body { position: relative; }
.cine .pill { border-color: rgba(255, 255, 255, 0.35); background: rgba(14, 14, 14, 0.55); color: #ffffff; }
.cine .pill::before { background: var(--cine-accent); }
.cine h1 { margin-top: 22px; font-size: clamp(56px, 10vw, 128px); line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45); }
.cine .hero__sub span { color: var(--cine-accent); }
.cine .hero__lede { color: #ffffff; max-width: 52ch; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.cine .btn { border-color: rgba(255, 255, 255, 0.5); background: rgba(14, 14, 14, 0.55); color: #ffffff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cine .btn:hover { border-color: var(--cine-accent); color: #ffffff; }
.cine .btn--primary { background: var(--cine-accent); border-color: var(--cine-accent); color: var(--cine-on-accent); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.7); }
.cine .btn--primary:hover { color: var(--cine-on-accent); }
.cine .btn--big { padding: 16px 28px; font-size: 18px; }
.cine .meta-line { color: #b8b8b8; }
.cine__note { position: absolute; right: var(--gutter); bottom: 14px; margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); }
.cine + .jump-bar { border-top: 1px solid var(--line); }
.jump-bar .jump { margin-top: 0; padding-block: 20px; }

/* Boxfight feature card on the home page: picture left, words right. */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); box-shadow: var(--shadow); }
.feature__img { position: relative; min-height: 260px; background: #111111; }
.feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 28px; }
.feature__body h3 { margin-top: 10px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.feature__body p { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--soft); }
.feature__body .actions { margin-top: 22px; }

.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card__badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border: 1px solid var(--accent); border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile__tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--accent); }
.tile__tag + h3 { margin-top: 12px; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
a.card { color: inherit; text-decoration: none; }
a.card:hover { color: inherit; border-color: var(--accent); }
.card__img--wide img { aspect-ratio: 16 / 10; }
.card__body h3:first-child { margin-top: 0; }
.prose > .actions { margin-top: 24px; }
.prose > .steps + p { margin-top: 28px; }

.steps { counter-reset: step; margin-top: 36px; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 20px 0 20px 58px; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 23px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); }
.steps h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.steps p { margin-top: 6px; font-size: 16.5px; line-height: 1.55; }

.guides { margin-top: 16px; }
.guide { border: 1px solid var(--line); border-radius: var(--radius); background: var(--raise); }
.guide + .guide { margin-top: 12px; }
.guide[open] { border-color: var(--line-strong); }
.guide summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--accent); }
.guide summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; line-height: 1; color: var(--accent); }
.guide[open] summary::after { content: "\2212"; }
.guide__body { padding: 0 22px 22px; font-size: 16.5px; line-height: 1.6; }
.guide__body ol, .guide__body ul { display: grid; gap: 10px; padding-left: 24px; }
.guide__body ol { list-style: decimal; }
.guide__body ul { list-style: disc; }
.guide__body li::marker { color: var(--accent); }
.guide__body p { margin-top: 14px; }
.guide__body > p:first-child { margin-top: 0; margin-bottom: 14px; }
.guide__note { padding-left: 14px; border-left: 2px solid var(--accent); }
.port { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 16px; }
.port caption { padding-bottom: 8px; text-align: left; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.port th, .port td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.port th { width: 45%; font-weight: 500; color: var(--muted); }

.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: clamp(32px, 4vw, 48px); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raise); color: var(--text); font: 500 15px/1.2 var(--font); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.gallery-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; margin-top: 24px; }
.gallery-card { min-width: 0; }
.gallery-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); transition: border-color 0.2s; }
.gallery-image:hover { border-color: var(--accent); }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery-image:hover img { transform: scale(1.04); }
.gallery-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 15.5px; font-weight: 500; }
.gallery-card figcaption span { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }

.lightbox { width: min(1180px, 94vw); max-height: 94vh; overflow: auto; padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--raise); color: var(--text); }
.lightbox::backdrop { background: rgba(16, 16, 16, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox-top, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lightbox-top { margin-bottom: 14px; }
.lightbox-bottom { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lightbox-title { font-size: 17px; font-weight: 600; }
.lightbox-image { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; background: #000; }
.lightbox-controls { display: flex; gap: 8px; }
.icon-button { display: grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }

/* 10. Small screens -------------------------------------------------------- */
@media (max-width: 1100px) {
  .glance--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance--row .glance__row:nth-child(3) { border-left: 0; }
  .glance--row .glance__row:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero__grid, .hero__grid--media, .sec__grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .cards--three, .tiles--three { grid-template-columns: minmax(0, 1fr); }
  .cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose--split, .rail--grid { grid-template-columns: minmax(0, 1fr); }
  .prose--split > p + p { margin-top: 18px; }
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop__intro { grid-column: 1 / -1; }
  .shop__intro .printer { max-width: 560px; }
  .sec__head .sub { margin-left: 0; width: 100%; }
  .feature, .feature:has(.feature__mosaic) { grid-template-columns: minmax(0, 1fr); }
  .feature__img { min-height: 0; aspect-ratio: 16 / 9; }
  .cine { min-height: 0; }
  .cine::before { background: linear-gradient(0deg, rgba(14, 14, 14, 0.94) 0%, rgba(14, 14, 14, 0.7) 55%, rgba(14, 14, 14, 0.25) 100%); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { align-items: start; }
  .hero__grid--photo .portrait-wrap { order: -1; width: 100%; max-width: 280px; }
  .glance--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance--row .glance__row:nth-child(3) { border-left: 0; }
  .glance--row .glance__row:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec__head { position: static; }
}

@media (max-width: 680px) {
  .cards, .cards--four, .tiles, .tiles--four, .shop, .form__row, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .glance--row { grid-template-columns: minmax(0, 1fr); }
  .glance--row .glance__row { border-left: 0; border-top: 1px solid var(--line); padding: 14px 20px; }
  .glance--row .glance__row:first-child { border-top: 0; }
  .cine__note { position: static; margin: 28px var(--gutter) 0; }
  .guide summary { padding: 16px 18px; }
  .guide__body { padding: 0 18px 18px; }
  .steps li { padding-left: 46px; }
  .cards { gap: 22px; }
  .card__body { padding: 20px 20px 22px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .nav a { padding: 7px 9px; }
  .rail:not(.rail--grid) { padding-left: 28px; }
  .block::before { left: -28px; }
}

/* Keep every navigation link visible on narrow phones without stacking. */
@media (max-width: 400px) {
  .header__row { gap: 8px; }
  .brand { gap: 6px; font-size: 15px; }
  .brand::before { width: 6px; height: 6px; }
  .nav { gap: 2px; }
  .nav a { padding: 10px 5px; font-size: 13px; }
}

/* 12. Emphasis and color (2026-10-20, Evan: "a little bit dull… make better use of bold, color, and
   text formatting… not too busy"). Words unchanged; only weight and color. Rules: white bold for the
   phrase a skimmer should catch, amber for numbers and a few standout facts, one amber phrase per section
   heading, the company in amber on each career title, and the tools as small inline chips. */
strong, b { font-weight: 600; color: var(--text); }
.hl { color: var(--accent); font-weight: 600; }
.sec h2 .hl, .hero h1 .hl { font-weight: inherit; }
.co { color: var(--accent); }
/* Tools: plain bold (Evan, 2026-10-20: keep it bold, no highlight). Boxed chips, an underline marker
   and a soft highlight were all tried and dropped. */
.tool { font-weight: 600; }
.glance--row dd strong { display: inline; }
.block__list strong { color: var(--text); }
.block h3 { letter-spacing: -0.02em; }

/* Warmth: each section gets a faint amber glow in its top corner, and tiles a warm wash at the top,
   so the dark page has depth without adding anything to read. */
.sec { background-image: radial-gradient(720px 340px at 0% 0%, var(--glow), transparent 70%); }
.sec--band { background-image: radial-gradient(720px 340px at 100% 0%, var(--glow), transparent 70%); }
.tile { background-image: linear-gradient(180deg, var(--accent-dim), transparent 46%); }
.tile h3 { font-size: 18.5px; }
.sec__num { font-size: 14px; font-weight: 500; }
.sec__num::after { opacity: 1; }
.prose > p.sub, .shop .sub { color: var(--accent); letter-spacing: 0.1em; }

/* Photo wrapper (hero and Contact). The LinkedIn pill that sat under the photos moved to a hero button on
   2026-10-20; .btn--out marks a button that leaves the site. */
.portrait-wrap { display: grid; justify-items: center; }
.portrait-wrap .portrait { width: 100%; }
.btn--out::after { content: "\2197"; margin-left: 2px; color: var(--accent); }

/* Contact header: heading, line, topics and the recruiter callout on the left, the headshot with its
   LinkedIn pill on the right, mirroring the home hero (Evan, 2026-10-20: the page was "a little too
   barren"). The form and the email/LinkedIn/location box keep their row below. */
/* Same columns and gap as .contact below, so the photo sits exactly over the details box. */
.contact-head { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-head .page__body { margin-top: 14px; max-width: 58ch; }
.contact-head .seek { margin-top: 28px; }
.contact-head .topics { margin-top: 24px; }
.contact__side { display: grid; gap: 18px; }
@media (max-width: 900px) {
  .contact-head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-head__photo { order: -1; justify-items: start; width: 160px; }
}
@media (max-width: 680px) {
  .contact-head__photo { width: 120px; }
  .contact-head__photo .portrait { border-radius: 14px; }
}

/* A quiet credit after a project's name, e.g. "Boxfight by Evan Curole" on the home card. */
.byline { margin-left: 8px; font-size: 0.5em; font-weight: 400; letter-spacing: 0.01em; color: var(--muted); white-space: nowrap; }

/* Photo color (Evan, 2026-10-20): his PC runs NVIDIA Digital Vibrance and the site looked flatter on his
   phone, so the photographs get +15% saturation in the page itself. CSS has no true "vibrance", and
   saturate() is the closest. It only touches photos: the gray UI, the amber and the text stay as they are,
   and the Boxfight game screenshots stay as the game renders them. Remove this rule to undo. */
.portrait img, .card__img img { filter: saturate(1.15); }

/* Etsy reviews in section 02 (2026-10-21), filled by tools/fetch_etsy_reviews.py from the Etsy API
   before each push ("pull and refresh"). Three at a time, rotating. A page with a buyer photo shows that
   review as a feature card, photo beside the text at about the size Etsy shows it, with the other two
   stacked beside it; a page without one is three across. Evan: not cluttered, not empty. */
.reviews { margin-top: clamp(36px, 4.5vw, 56px); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.reviews__head .sub { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.reviews__score { font-size: 16px; color: var(--soft); }
.reviews__score .review__stars { margin-right: 6px; }
.reviews__head .link { margin-left: auto; font-size: 15px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; transition: opacity 0.25s; }
.reviews__grid:has(.review--feature:not([hidden])) { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.reviews__grid.is-fading { opacity: 0; }
.review { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raise); background-image: linear-gradient(180deg, var(--accent-dim), transparent 40%); }
.review[hidden] { display: none; }
.review__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 18px; }
.review__stars { margin: 0; font-size: 15px; letter-spacing: 0.12em; color: var(--tone-amber); }  /* stars stay gold in the clay section */
.review__name { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.review__text { flex: 1; margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.review__meta { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
/* The feature card spans both rows; its photo fills the card's height beside the text. */
.review--feature { grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.review--feature .review__body { padding: 26px 28px 24px; }
.review--feature .review__text { font-size: 17px; }
.review__photo { position: relative; display: block; min-height: 300px; overflow: hidden; background: #111111; }
.review__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15); transition: transform 0.4s; }
.review__photo:hover img { transform: scale(1.04); }
.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.reviews__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.reviews__dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
.footer__note { flex-basis: 100%; order: 3; font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .reviews__grid, .reviews__grid:has(.review--feature:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review--feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 680px) {
  .reviews__grid, .reviews__grid:has(.review--feature:not([hidden])) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .review--feature { grid-template-columns: minmax(0, 1fr); }
  .review__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .reviews__head .link { margin-left: 0; }
  .review__body, .review--feature .review__body { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .reviews__grid { transition: none; } }
/* About 20% smaller all round (Evan, 2026-10-21: "reduce the size of it by 20%… still proportionate"):
   type, padding, gaps and the photo column all step down together. Delete this block to undo. */
.reviews { margin-top: clamp(30px, 3.6vw, 44px); }
.reviews__grid { gap: 13px; margin-top: 14px; }
.reviews__grid:has(.review--feature:not([hidden])) { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.review__body { padding: 16px 18px 14px; }
.review--feature .review__body { padding: 20px 22px 18px; }
.review--feature { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
.review__stars { font-size: 13px; }
.review__name { margin-top: 3px; font-size: 14.5px; }
.review__text { margin-top: 8px; font-size: 14.5px; line-height: 1.5; }
.review--feature .review__text { font-size: 15px; }
.review__meta { margin-top: 11px; font-size: 11px; }
.review__photo { min-height: 240px; }
.reviews__score { font-size: 15px; }
.reviews__head .link { font-size: 14px; }
@media (max-width: 1000px) {
  .reviews__grid, .reviews__grid:has(.review--feature:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .reviews__grid, .reviews__grid:has(.review--feature:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .review--feature { grid-template-columns: minmax(0, 1fr); }
  .review__photo { min-height: 0; }
  .review__body, .review--feature .review__body { padding: 14px 16px; }
}

/* No one-word last lines: short headings balance, body text avoids orphans (2026-10-20). */
h1, h2, h3, .hero__sub, .seek strong { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* 11. Phones (2026-10-20, Evan: "optimize the website for viewability on mobile… I'm not really
   liking the proportions"). Measured at 390 px before: the hero ran 1,704 px with a 280 px photo
   alone on its row, the facts strip stacked four tall boxes, each tile spent a row on its icon, and the
   career grid sat 28 px in from the gutter. */
@media (max-width: 680px) {
  body { font-size: 16.5px; line-height: 1.6; }
  .hero { padding-block: 28px 40px; }
  /* Photo beside the pill and name, like a profile header; everything else runs full width under it. */
  .hero__grid--photo { grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; row-gap: 0; align-items: center; }
  .hero__grid--photo > div:not(.portrait-wrap) { display: contents; }
  .hero__grid--photo .portrait-wrap { order: 0; grid-column: 1; grid-row: 1 / span 2; width: 104px; max-width: none; align-self: center; }
  .hero__grid--photo .portrait { border-radius: 14px; }
  .hero__grid--photo .pill { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; padding: 5px 11px 5px 10px; font-size: 11.5px; }
  .hero__grid--photo h1 { grid-column: 2; grid-row: 2; align-self: start; margin-top: 10px; font-size: clamp(36px, 10.4vw, 44px); line-height: 1; }
  .hero__grid--photo > div:not(.portrait-wrap) > :not(.pill):not(h1) { grid-column: 1 / -1; }
  .hero__sub { margin-top: 22px; font-size: 21px; }
  .hero__lede { margin-top: 14px; }
  .seek { width: auto; margin-top: 20px; }
  .seek strong { font-size: 16.5px; }
  .seek__note { font-size: 13.5px; }
  .hero .actions { margin-top: 22px; }
  /* Facts strip: label over value, tighter. A label column beside the value was tried first and made the
     degree wrap to five ragged lines, so the label stays on top. */
  .glance--row { margin-top: 32px; }
  .glance--row .glance__row { gap: 4px; padding: 13px 18px 14px; font-size: 15px; line-height: 1.55; }
  .glance--row dt { font-size: 11px; }
  .glance__shop { max-width: none; margin-top: 10px; padding: 8px 16px; }
  /* Tiles: icon beside the title instead of above it. */
  .tile { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 16px 16px 18px; }
  .tile__icon { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 9px; }
  .tile__icon svg { width: 18px; height: 18px; }
  .tile h3 { margin-top: 5px; font-size: 17px; }
  .tile p { grid-column: 2; font-size: 15px; }
  .tiles { gap: 10px; }
  .sec h2 { font-size: 26px; }
  .rail--grid { gap: 32px; }
  .block__list li { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile, .card, .card__img img, .link::after, .nav a, .gallery-image img, .filter, .jump a { transition: none; }
  .btn:hover, .tile:hover, .card:hover, .card:hover .card__img img, .gallery-image:hover img { transform: none; }
  .cine__reel img { animation: none; transform: none; }
  .cine__reel img:first-child { opacity: 1; }
}
