/* ==========================================================================
   Dennis Lawrence: parallax portfolio
   Themes are driven by body[data-theme]; registered custom properties let the
   whole page cross-fade colours as you move between scenes.
   ========================================================================== */

@property --bg     { syntax: "<color>"; inherits: true; initial-value: #F4EDE1; }
@property --ink    { syntax: "<color>"; inherits: true; initial-value: #14284B; }
@property --name   { syntax: "<color>"; inherits: true; initial-value: #14284B; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #E4572E; }
@property --shapeA { syntax: "<color>"; inherits: true; initial-value: #E4572E; }
@property --shapeB { syntax: "<color>"; inherits: true; initial-value: #14284B; }
@property --card   { syntax: "<color>"; inherits: true; initial-value: rgb(255 255 255 / .55); }

:root {
  --gutter: clamp(20px, 4vw, 56px);
  --fig-ratio: 0.5;                         /* width / height of the layout box Dennis stands in */
  --fig-h: min(84svh, 980px);
  --fig-w: calc(var(--fig-h) * var(--fig-ratio));
  --centre: calc(var(--fig-w) + 80px);      /* clear column reserved for Dennis */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mx: 0; --my: 0;                         /* pointer position, -1 → 1, set by JS */

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
}

/* ---------- Scene themes ---------- */
body[data-theme="home"]      { --bg:#F4EDE1; --ink:#14284B; --name:#14284B; --accent:#E4572E; --shapeA:#E4572E; --shapeB:#14284B; --card:rgb(255 255 255 / .6); }
body[data-theme="about"]     { --bg:#FFE1C2; --ink:#2A1A12; --name:#F9CB9C; --accent:#BF3F1C; --shapeA:#F4A65F; --shapeB:#BF3F1C; --card:rgb(255 255 255 / .55); }
body[data-theme="personal"]  { --bg:#102B57; --ink:#F4EDE1; --name:#183A70; --accent:#FFD34D; --shapeA:#1E4783; --shapeB:#F4EDE1; --card:rgb(255 255 255 / .08); }
body[data-theme="education"] { --bg:#1B5853; --ink:#F2EEE6; --name:#226760; --accent:#FFC65C; --shapeA:#247068; --shapeB:#F2EEE6; --card:rgb(255 255 255 / .08); }
body[data-theme="business"]  { --bg:#B4421E; --ink:#FFF5EA; --name:#C2522B; --accent:#FFD34D; --shapeA:#CA5D35; --shapeB:#FFF5EA; --card:rgb(0 0 0 / .14); }
body[data-theme="contact"]   { --bg:#F7C548; --ink:#14284B; --name:#EEB431; --accent:#B93C1A; --shapeA:#F3B52E; --shapeB:#14284B; --card:rgb(255 255 255 / .5); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: clip;
  transition: --bg .9s var(--ease), --ink .9s var(--ease), --name .9s var(--ease),
              --accent .9s var(--ease), --shapeA .9s var(--ease), --shapeB .9s var(--ease), --card .9s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
p { margin: 0 0 1em; }
h2, h3, h4 { margin: 0; }
mark { background: none; color: inherit; box-shadow: inset 0 -0.42em 0 color-mix(in srgb, var(--accent) 38%, transparent); padding: 0 .1em; }
::selection { background: var(--accent); color: var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Header
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
}
.nav__logo {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font: 1.35rem/1 var(--f-display); letter-spacing: .02em; text-decoration: none;
  /* small backing so headings scrolling underneath don't touch the logo */
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--bg) 88%, transparent), 0 0 22px 12px color-mix(in srgb, var(--bg) 70%, transparent);
  transition: transform .4s var(--ease);
}
.nav__logo:hover { transform: rotate(-12deg) scale(1.06); }
.nav__menu { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__menu a {
  position: relative; padding: 9px 16px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav__menu a:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.nav__menu a.is-active { background: var(--ink); color: var(--bg); }
.nav__toggle { display: none; }

/* ==========================================================================
   Stage (fixed)
   ========================================================================== */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Parallax shapes */
.shape { position: absolute; display: block; will-change: transform; translate: calc(var(--mx) * -14px) calc(var(--my) * -10px); }
.shape--disc {
  width: 52vmax; aspect-ratio: 1; border-radius: 50%;
  right: -14vmax; top: -18vmax; background: var(--shapeA);
}
.shape--ring {
  width: 30vmax; aspect-ratio: 1; border-radius: 50%;
  left: -9vmax; top: 48svh; border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.shape--stripes {
  width: 26vmax; height: 14vmax; left: 6vw; bottom: -6vmax; rotate: -14deg;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--shapeB) 16%, transparent) 0 22px, transparent 22px 44px);
}
.shape--dots {
  width: 18vmax; height: 18vmax; right: 6vw; bottom: 8svh;
  background: radial-gradient(color-mix(in srgb, var(--ink) 30%, transparent) 1.6px, transparent 2px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%); mask: radial-gradient(circle, #000 40%, transparent 70%);
}
.shape--half {
  width: 24vmax; height: 12vmax; border-radius: 24vmax 24vmax 0 0;
  right: 22vw; bottom: -12vmax; background: color-mix(in srgb, var(--accent) 70%, transparent);
}

/* Giant name: fitted to the full viewport width by JS (CSS value is the fallback) */
.bigname {
  position: absolute; left: 1.5vw; right: 1.5vw; top: 41svh; translate: calc(var(--mx) * -10px) calc(var(--my) * -6px);
  transform: translateY(-50%);
  font: 400 12.4vw/0.86 var(--f-display); text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--name); white-space: nowrap; text-align: center;
}
.bigname__inner { display: inline-block; }
.bigname .char { display: inline-block; will-change: transform; }

/* Dennis */
.dennis {
  position: absolute; margin: 0; left: 0; right: 0; bottom: 2svh; margin-inline: auto;
  width: var(--fig-w); height: var(--fig-h);
  translate: calc(var(--mx) * 8px) 0;
}
.dennis__media { position: absolute; inset: 0; transform-origin: 50% 100%; }
.dennis__frame {
  /* bottom-centred; wide poses can spill past the layout box */
  position: absolute; bottom: 0; left: -60%; right: -60%; margin-inline: auto;
  width: auto; height: calc(var(--s, 1) * 100%); max-width: none;
  opacity: 0; transition: opacity .5s var(--ease);
  transform-origin: 50% 100%; animation: idle 5s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / .14));
}
.dennis__frame.is-in { opacity: 1; }
.dennis__shadow {
  position: absolute; left: 8%; right: 8%; bottom: -1.2%; height: 5%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .28), transparent); filter: blur(2px);
}
@keyframes idle {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50%      { transform: rotate(.8deg) scaleY(1.008); }
}

/* "Waving" motion lines by his hand, home only */
.dennis__waves {
  position: absolute; left: -8%; top: 4%; width: 16%; color: var(--accent); stroke-width: 3.2;
  opacity: 0; transition: opacity .4s;
}
.dennis__waves path { animation: wave-line 1.4s ease-in-out infinite; }
.dennis__waves path + path { animation-delay: .18s; }
body[data-theme="home"] .dennis__waves { opacity: 1; }
@keyframes wave-line { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* Speech bubble: sits above his cap so it never collides with the text columns */
.bubble {
  position: absolute; left: calc(50% + var(--hx, 0) * var(--fig-h)); top: calc(var(--head, 0) * 100%);
  translate: -50% calc(-100% - 14px);
  padding: 11px 18px; border-radius: 22px;
  background: var(--ink); color: var(--bg);
  font: 500 italic clamp(.95rem, 1.2vw, 1.15rem)/1.2 var(--f-serif); white-space: nowrap;
  transform-origin: 50% 120%;
  transition: transform .45s var(--ease), opacity .3s, top .5s var(--ease), left .5s var(--ease);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; top: calc(100% - 1px); width: 18px; height: 12px; translate: -50% 0;
  background: inherit; clip-path: polygon(0 0, 100% 0, 30% 100%);
}
.bubble.is-hidden { transform: scale(.4) translateY(20px); opacity: 0; }

/* Floating props */
.props { display: none; }  /* hidden for review: delete this line to bring the floating icons back */
.props__set { position: absolute; inset: 0; }
.prop {
  position: absolute; left: var(--x); top: var(--y);
  display: grid; place-items: center; width: clamp(44px, 4.4vw, 64px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  translate: calc(var(--mx) * 16px * var(--d)) calc(var(--my) * 12px * var(--d));
  transform: scale(0) rotate(-40deg); opacity: 0;
  transition: transform .6s var(--ease) calc(var(--i) * 90ms), opacity .4s calc(var(--i) * 90ms);
  box-shadow: 0 10px 24px rgb(0 0 0 / .18);
}
.prop svg { width: 52%; height: 52%; stroke-width: 2; animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
.props__set.is-active .prop { transform: scale(1) rotate(0deg); opacity: 1; }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ==========================================================================
   Panels (scrolling content)
   ========================================================================== */
main { position: relative; z-index: 2; overflow-x: clip; }
.panel {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--centre) minmax(0, 1fr);
  align-items: center; column-gap: 0;
  padding: 120px var(--gutter) 90px;
}
.col { position: relative; max-width: 500px; }
.col--left  { grid-column: 1; justify-self: start; }
.col--right { grid-column: 3; justify-self: end; }

.panel--hero { align-items: end; padding-bottom: 9svh; }
.hero__roles {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .35em;
  font: 400 clamp(1.6rem, 2.6vw, 2.6rem)/1.05 var(--f-display); text-transform: uppercase;
}
.hero__roles i { font-style: normal; color: var(--accent); }
.letters { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 10px; justify-content: flex-end; }
.letters li {
  padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: .9rem; letter-spacing: .12em;
}
.letters li:last-child { background: var(--ink); color: var(--bg); }
.scrollcue {
  display: inline-flex; align-items: center; gap: 10px; float: right;
  font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.scrollcue svg { width: 22px; height: 22px; rotate: 90deg; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

/* Type */
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kicker span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--bg); letter-spacing: 0; }
.display { margin-bottom: 22px; font: 400 clamp(2.6rem, 4.8vw, 4.6rem)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
.display em { font: 500 italic 1em/1 var(--f-serif); text-transform: none; color: var(--accent); }
.subhead { margin-bottom: 18px; font: 400 clamp(1.8rem, 2.8vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; }
.lead { font-size: 1.2rem; line-height: 1.55; }
strong { font-weight: 800; }

/* Cards & bits */
/* Body text sits on a frosted panel so it reads clearly over the shapes and giant name */
.col > p:not(.kicker):not(.hero__roles),
.col > .timeline {
  padding: 20px 24px; border-radius: 22px;
  background: var(--card); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.col > .timeline { padding: 24px 24px 24px 52px; }  /* room for the timeline rail and dots */
.card {
  margin-bottom: 18px; padding: 22px 24px; border-radius: 22px;
  background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card p:last-child { margin-bottom: 0; }
.chip {
  display: inline-block; margin: 3px 1px; padding: 2px 11px; border-radius: 999px;
  background: var(--accent); color: var(--bg); font-weight: 700; font-size: .92em; white-space: nowrap;
  rotate: calc((var(--r, 0) * 1deg)); transition: rotate .3s var(--ease);
}
.chip:nth-child(odd) { --r: -2; } .chip:nth-child(even) { --r: 2; }
.chip:hover { --r: 0; }
.card--note { border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; }
.stamp {
  display: inline-block; margin-top: 6px; padding: 6px 14px; rotate: -3deg;
  border: 2px solid var(--accent); border-radius: 8px; color: var(--accent);
  font: 400 1.05rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em;
}

.card--albion {
  position: relative; overflow: hidden; padding-left: 64px;
  background: rgb(255 255 255 / .96); color: #102B57;
}
.card--albion::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40px;
  background: repeating-linear-gradient(90deg, #102B57 0 10px, #fff 10px 20px);
}
.bignum { margin: 0 0 6px; font: 400 clamp(5rem, 9vw, 8rem)/.85 var(--f-display); color: #102B57; }

.route { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: .85rem; font-weight: 700; }
.route li { display: flex; align-items: center; }
.route li:not(:last-child)::after { content: ""; width: 18px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px); opacity: .55; }
.route li.route__now { padding: 2px 10px; border-radius: 999px; border: 2px solid var(--accent); }
.names { display: flex; gap: 8px; flex-wrap: wrap; }
.names span { padding: 6px 16px; border-radius: 999px; background: var(--accent); color: var(--bg); font: 400 1.2rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }

.tiles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--card);
  transition: transform .35s var(--ease);
}
.tiles li:hover { transform: translateY(-4px) rotate(-1deg); }
.tiles svg { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--accent); color: var(--bg); stroke-width: 2; }
.tiles b { font-size: .98rem; line-height: 1.2; }
.tiles span { font-size: .8rem; line-height: 1.3; opacity: .75; }
.tiles__wide { grid-column: span 2; }

.badges { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.badges li { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--card); }
.badges b {
  flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent); color: var(--bg); font: 400 1.2rem/1 var(--f-display); letter-spacing: .04em;
}
.badges li:nth-child(2) b { rotate: -8deg; } .badges li:nth-child(3) b { rotate: 6deg; }
.badges span { font-size: .92rem; line-height: 1.35; }

.timeline { position: relative; list-style: none; margin: 0; padding: 24px 24px 24px 52px; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.timeline li { position: relative; margin-bottom: 24px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.timeline__years { display: block; font: 400 1.5rem/1 var(--f-display); color: var(--accent); letter-spacing: .02em; }
.timeline h4 { margin: 6px 0 2px; font-size: 1.08rem; line-height: 1.3; }
.timeline__org { margin: 0 0 6px; font-size: .9rem; font-weight: 700; opacity: .75; }
.timeline li p:last-child { margin-bottom: 0; }
.timeline--cont { margin-top: 64px; }

.stat {
  margin-bottom: 16px; padding: 26px 28px; border-radius: 26px; background: var(--card);
  display: flex; align-items: center; gap: 22px;
}
.stat__num { margin: 0; font: 400 clamp(4rem, 7vw, 6.4rem)/.85 var(--f-display); color: var(--accent); }
.stat__num small { font-size: .32em; margin-left: 4px; }
.stat__label { margin: 0; font-weight: 700; line-height: 1.35; }
.stat--now { background: var(--accent); color: var(--bg); }
.stat--now .stat__num { color: var(--bg); }

.cta {
  display: flex; align-items: center; gap: 18px; margin-bottom: 14px; padding: 18px 22px;
  border-radius: 22px; background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cta:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 14px 30px rgb(0 0 0 / .18); }
.cta svg { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--accent); color: var(--bg); stroke-width: 2; }
.cta span { font-weight: 700; font-size: clamp(1rem, 1.35vw, 1.2rem); overflow-wrap: anywhere; line-height: 1.3; }
.cta small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

.panel--contact { padding-bottom: 120px; }
.footer { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* HUD: vertical section label in the left margin + progress rail on the right */
.hud {
  position: fixed; left: calc(var(--gutter) / 2); bottom: 28px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl; rotate: 180deg; translate: -50% 0;
  font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.hud__num { color: var(--accent); }
.hud__num::after { content: ""; display: inline-block; width: 1.5px; height: 28px; margin-top: 10px; background: currentColor; opacity: .6; vertical-align: middle; }
.progress { position: fixed; right: 18px; top: 50%; z-index: 40; width: 3px; height: 120px; translate: 0 -50%; border-radius: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; }
.progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-height: 720px) and (min-width: 861px) {
  :root { --fig-h: 76svh; }
}

@media (max-width: 1180px) {
  :root { --fig-h: min(74svh, 860px); --centre: calc(var(--fig-w) + 40px); }
  .col { max-width: 420px; }
}

@media (max-width: 860px) {
  :root { --fig-h: 60svh; }

  .nav__toggle {
    display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
    background: var(--ink); color: var(--bg); cursor: pointer; position: relative; z-index: 2;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--bg) 88%, transparent), 0 0 22px 12px color-mix(in srgb, var(--bg) 70%, transparent);
  }
  .nav__burger, .nav__burger::before, .nav__burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), background .3s; }
  .nav__burger { position: relative; }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
  .nav__burger::before { top: -6px; } .nav__burger::after { top: 6px; }
  .nav.is-open .nav__burger { background: transparent; }
  .nav.is-open .nav__burger::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 80px var(--gutter);
    border-radius: 0; background: var(--bg); backdrop-filter: none;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav__menu a { padding: 8px 0; font: 400 2.6rem/1.1 var(--f-display); letter-spacing: .01em; background: none !important; color: var(--ink) !important; }
  .nav__menu a.is-active { color: var(--accent) !important; }

  .dennis { bottom: 0; }
  .bubble { font-size: .95rem; }
  .dennis__waves { left: -12%; }
  .prop { width: 40px; }
  .bigname { top: 52svh; }

  .panel { display: block; padding: 96px var(--gutter) 56px; }
  .col, .col--left, .col--right { max-width: none; justify-self: normal; }
  .col + .col { margin-top: 18px; }
  .panel:not(.panel--hero) .col {
    padding: 22px; border-radius: 24px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .card { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .col > p:not(.kicker):not(.hero__roles), .col > .timeline { padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .col > .timeline { padding-left: 28px; }
  .timeline::before { left: 7px; top: 8px; bottom: 8px; }
  .card--albion { background: #fff; }
  .card--note { background: transparent; }

  .panel--hero { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding-top: 100px; }
  .hero__roles i { color: var(--ink); opacity: .45; }  /* the orange circle sits behind this line here */
  .panel--hero .col + .col { margin-top: 16px; }
  .letters li { padding: 6px 12px; font-size: .8rem; }
  .letters { justify-content: flex-start; }
  .scrollcue { float: none; }
  .timeline--cont { margin-top: 0; }
  .hud, .progress { display: none; }
  .footer { position: static; margin-top: 24px; }
}

/* Tablet portrait: Dennis stands to the right so the text can sit beside him */
@media (min-width: 600px) and (max-width: 860px) {
  :root { --fig-h: 58svh; }
  .dennis { left: auto; right: 6vw; margin: 0; }
  .panel:not(.panel--hero) .col { max-width: 58%; }
  .panel:not(.panel--hero) .col + .col { margin-top: 18px; }
}

@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles__wide { grid-column: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .shape, .bigname, .dennis, .prop { translate: none; }
}
