/* =====================================================================
   eddiekong.com — colorful theme
   Plain CSS, no build step, no external fonts or CDNs.

     1. Theme tokens + per-section colors   <- change colors here
     2. Base + background layers
     3. Header / tabs
     4. Shared pieces (cards, buttons, headings, reveals)
     5. Sections: home, facts, photos, opinions, dog, updates, contact
     6. Overlays: boot, lightbox, command palette, shortcuts, status bar
     7. Responsive
     8. Reduced motion
   ===================================================================== */

/* ---------- 1. Theme tokens ---------------------------------------- */

/* Registering the accents as real colors lets the background wash
   cross-fade between section themes instead of cutting. */
@property --accent   { syntax: '<color>'; inherits: true; initial-value: #a855f7; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #ec4899; }
@property --accent-3 { syntax: '<color>'; inherits: true; initial-value: #22d3ee; }

:root {
  --bg:        #08070f;
  --ink:       #f5f2ff;
  --muted:     #a9a3c4;
  --dim:       #6b6486;
  --card:      rgba(255, 255, 255, 0.045);
  --card-hi:   rgba(255, 255, 255, 0.085);
  --line:      rgba(255, 255, 255, 0.12);

  --accent:    #a855f7;
  --accent-2:  #ec4899;
  --accent-3:  #22d3ee;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-disp: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius:    18px;
  --shell:     1180px;
  --theme-ms:  700ms;
  --bar:       30px;   /* status bar height */

  color-scheme: dark;
}

/* ---------- EDIT ME: SECTION COLORS -------------------------------
   One trio per section. --accent is the primary, --accent-2 pairs with
   it in gradients, --accent-3 is the highlight. Change any hex here and
   that whole tab re-themes: background wash, constellation, headings,
   borders, button glows.
   ------------------------------------------------------------------ */
[data-section="home"]     { --accent:#a855f7; --accent-2:#ec4899; --accent-3:#22d3ee; }
[data-section="facts"]    { --accent:#22d3ee; --accent-2:#3b82f6; --accent-3:#a855f7; }
[data-section="photos"]   { --accent:#4f7cff; --accent-2:#7c3aed; --accent-3:#06b6d4; }
[data-section="opinions"] { --accent:#ff4d5a; --accent-2:#ff9a3d; --accent-3:#f43f5e; }
[data-section="dog"]      { --accent:#3ddc84; --accent-2:#a3e635; --accent-3:#14b8a6; }
[data-section="updates"]  { --accent:#fbbf24; --accent-2:#fb923c; --accent-3:#f59e0b; }
[data-section="contact"]  { --accent:#ec4899; --accent-2:#d946ef; --accent-3:#f472b6; }

/* The accents switch instantly — every element that uses them eases its
   own color/background/border/shadow, which is what you actually see.
   Only the wash below eases the raw values, because gradients can't
   transition any other way. */

/* ---------- 2. Base ------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: var(--bar);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* Constellation canvas, drawn in js/main.js. */
#net {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
}

/* Slow-drifting gradient wash behind the canvas, re-tinted per section. */
.bg-drift {
  position: fixed;
  inset: -20vmax;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 22% 18%, color-mix(in oklab, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(34vmax 34vmax at 78% 30%, color-mix(in oklab, var(--accent-2) 48%, transparent), transparent 70%),
    radial-gradient(30vmax 30vmax at 50% 88%, color-mix(in oklab, var(--accent-3) 42%, transparent), transparent 70%);
  filter: blur(30px) saturate(140%);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
  /* Easing the inherited accents here (not on :root) cross-fades the wash
     without holding back the rest of the page. */
  transition: --accent var(--theme-ms) ease,
              --accent-2 var(--theme-ms) ease,
              --accent-3 var(--theme-ms) ease;
}
@keyframes drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1);    }
  50%  { transform: translate3d( 4%,  3%, 0) scale(1.12); }
  100% { transform: translate3d(-2%,  5%, 0) scale(1.04); }
}

/* Faint texture so the big flat gradients don't band. */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- 3. Header / tabs --------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-dot {
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--accent));
  animation: pulse 2.6s ease-in-out infinite;
  transition: filter var(--theme-ms) ease;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%      { transform: scale(1.35); opacity: 0.75; }
}
.brand-text {
  background: linear-gradient(100deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  padding: 4px 2px;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 260ms ease, transform 260ms cubic-bezier(.34,1.56,.64,1);
}
.tab:hover  { color: var(--ink); transform: translateY(-2px); }
.tab[aria-current="page"] { color: #fff; }

/* The pill that slides between tabs. Position is set in js/main.js. */
.tab-glider {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 22px -6px var(--accent);
  opacity: 0;
  transition: transform 420ms cubic-bezier(.34,1.3,.5,1),
              width 420ms cubic-bezier(.34,1.3,.5,1),
              opacity 260ms ease,
              background var(--theme-ms) ease,
              box-shadow var(--theme-ms) ease;
}
.tab-glider.ready { opacity: 1; }

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.kbd-hint:hover {
  color: var(--ink);
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow: 0 0 20px -8px var(--accent);
}

/* ---------- 4. Shared pieces --------------------------------------- */

main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 54px 22px 80px;
}

/* Tab behaviour. Without JS every section just stacks into one page. */
.js .view { display: none; }
.js .view.is-active { display: block; animation: viewIn 520ms cubic-bezier(.22,1,.36,1) both; }
html:not(.js) .view[hidden] { display: block; }
html:not(.js) .view { margin-bottom: 80px; }
html:not(.js) .tab-glider,
html:not(.js) .boot { display: none; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(6px); }
  to   { opacity: 1; transform: none;                          filter: blur(0);   }
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
  min-height: 1.4em;          /* holds space while the line types itself */
  transition: color var(--theme-ms) ease;
}

.grad {
  background: linear-gradient(100deg, var(--accent-3), var(--accent), var(--accent-2));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweepText 8s linear infinite;
}
@keyframes sweepText { to { background-position: 200% 0; } }

.section-head { max-width: 720px; margin-bottom: 40px; }

.section-title {
  font-family: var(--font-disp);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 14px;
}

.section-lede {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Brief RGB-split when a section title lands. Deliberately no clip-path or
   opacity here: if a frame ever stalls, the heading is still fully legible. */
.glitching { animation: glitch 420ms steps(4, end) 1; }
@keyframes glitch {
  0%   { text-shadow: -3px 0 var(--accent-3),  3px 0 var(--accent-2); transform: translateX(-2px); }
  33%  { text-shadow:  3px 0 var(--accent-3), -3px 0 var(--accent-2); transform: translateX(2px); }
  66%  { text-shadow: -2px 0 var(--accent-2),  2px 0 var(--accent-3); transform: translateX(-1px); }
  100% { text-shadow: none; transform: none; }
}

/* Cards. --mx/--my (spotlight) and --rx/--ry (tilt) are set in js/main.js. */
.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: background 300ms ease, border-color 300ms ease,
              box-shadow 300ms ease, transform 300ms ease;
}
.panel:hover {
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%),
    var(--card-hi);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 22px 46px -24px var(--accent);
}

.tilt {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  will-change: transform;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.34,1.56,.64,1),
              background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.btn:hover {
  transform: translateY(-3px);
  background: var(--card-hi);
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow: 0 14px 34px -14px var(--accent);
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px -12px var(--accent);
}
.btn-primary:hover { box-shadow: 0 20px 44px -14px var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Scroll reveals. .in-view is added by js/main.js — scoped to .js so that
   without JavaScript nothing is left stranded at opacity 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms cubic-bezier(.22,1,.36,1),
              transform 620ms cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* Text + a photo column beside it. */
.with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 44px;
  align-items: start;
}
.side-photo { position: sticky; top: 104px; }
.side-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px #000, 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent);
  rotate: 2.5deg;
  animation: bob 9s ease-in-out infinite alternate;
  transition: box-shadow var(--theme-ms) ease;
}
@keyframes bob {
  from { transform: translateY(-10px); }
  to   { transform: translateY(12px);  }
}

/* ---------- 5a. Home ----------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: 66vh;
}

.display {
  font-family: var(--font-disp);
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
}
.display-line { display: block; }
.display .grad { display: block; }

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0 0 14px;
  color: var(--ink);
  min-height: 2.4em;          /* holds space while the line types itself */
}
.sub { margin: 0; color: var(--muted); max-width: 52ch; }

/* Floating collage. --px/--py come from the mouse, --d is per-image depth. */
.collage {
  position: relative;
  aspect-ratio: 1 / 1;
  --px: 0px;
  --py: 0px;
}
.collage-img {
  position: absolute;
  width: 46%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 70px -34px #000;
  object-fit: cover;
  translate: calc(var(--px) * var(--d)) calc(var(--py) * var(--d));
  transition: translate 380ms cubic-bezier(.22,1,.36,1);
  animation: float 12s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(-14px); }
  to   { transform: translateY(16px);  }
}
.c1 { --d: 1.0; top:  0%;  left:  6%; width: 44%; rotate: -6deg; animation-duration: 11s; }
.c2 { --d: 1.6; top: 10%;  left: 54%; width: 42%; rotate:  5deg; animation-duration: 13s; animation-delay: -3s; }
.c3 { --d: 0.6; top: 46%;  left:  0%; width: 38%; rotate:  8deg; animation-duration: 15s; animation-delay: -6s; }
.c4 { --d: 2.0; top: 60%;  left: 46%; width: 40%; rotate: -4deg; animation-duration: 10s; animation-delay: -2s; }
.c5 { --d: 1.2; top: 30%;  left: 28%; width: 32%; rotate:  3deg; animation-duration: 14s; animation-delay: -8s; }

.marquee {
  margin-top: 58px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: slide 26s linear infinite;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: color-mix(in oklab, var(--accent-3) 78%, var(--ink));
  transition: color var(--theme-ms) ease;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 5b. Facts ---------------------------------------------- */

.fact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 16px;
}
.fact {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 22px 20px 20px;
  overflow: hidden;
}
/* accent bar that wipes in across the top on hover */
.fact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
}
.fact:hover::before { transform: scaleX(1); }
.fact p { margin: 0; }
.fact-num {
  display: block;
  font-family: var(--font-disp);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5c. Photos --------------------------------------------- */

/* CSS columns give a masonry feel with mixed aspect ratios. */
.gallery { columns: 3; column-gap: 16px; }

.shot { margin: 0 0 16px; break-inside: avoid; }
.shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 380ms cubic-bezier(.22,1,.36,1),
              box-shadow 380ms ease, border-color 380ms ease;
}
.shot-btn img { transition: transform 620ms cubic-bezier(.22,1,.36,1); }
.shot-btn:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow: 0 26px 50px -22px var(--accent);
}
.shot-btn:hover img { transform: scale(1.06); }

/* metadata strip that slides up on hover */
.shot-btn::after {
  content: attr(data-meta);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--accent) 85%, transparent),
    color-mix(in oklab, var(--accent-2) 85%, transparent));
  transform: translateY(101%);
  transition: transform 300ms cubic-bezier(.22,1,.36,1);
}
.shot-btn:hover::after { transform: none; }

/* light sweeping down the tile on hover */
.shot-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0;
}
.shot-btn:hover::before { opacity: 1; animation: sweep 1.6s linear infinite; }
@keyframes sweep {
  from { transform: translateY(-110%); }
  to   { transform: translateY(300%); }
}

.shot figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- 5d. Opinions ------------------------------------------- */

.takes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.take {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border-left: 4px solid color-mix(in oklab, var(--accent) 70%, transparent);
}
.take:hover { border-left-color: var(--accent-2); }
.take-num {
  font-family: var(--font-disp);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* A take that holds a ranked list rather than a single paragraph. */
.take-wide { display: block; padding: 26px 28px; }
.take-wide .take-num { display: block; margin-bottom: 4px; }

.ranking {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rank:first-child { padding-top: 0; border-top: 0; }
.rank-num {
  font-family: var(--font-disp);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank h4 {
  margin: 0 0 6px;
  font-family: var(--font-disp);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.rank p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.take h3 {
  margin: 0 0 6px;
  font-family: var(--font-disp);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.take p { margin: 0; color: var(--muted); }

/* ---------- 5e. Dog ------------------------------------------------ */

.paws::after {
  content: " 🐾";
  display: inline-block;
  animation: trot 3.2s ease-in-out infinite;
}
@keyframes trot {
  0%   { transform: translate(0, 0)       rotate(0deg);   opacity: 0.35; }
  35%  { transform: translate(14px, -8px) rotate(14deg);  opacity: 1;    }
  70%  { transform: translate(28px, 2px)  rotate(-8deg);  opacity: 0.6;  }
  100% { transform: translate(0, 0)       rotate(0deg);   opacity: 0.35; }
}

.dog-card {
  padding: 26px;
  margin-bottom: 30px;
  background: linear-gradient(140deg,
      color-mix(in oklab, var(--accent) 14%, transparent),
      color-mix(in oklab, var(--accent-3) 10%, transparent));
  transition: background var(--theme-ms) ease, border-color var(--theme-ms) ease;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin: 0 0 18px;
}
.stat dt {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat dd {
  margin: 0;
  font-family: var(--font-disp);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dog-note { margin: 0; color: var(--muted); }

.dog-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
/* Uniform tiles here so the row stays tidy whatever shape your photos are.
   (The main gallery deliberately keeps each photo's own proportions.) */
.dog-strip .shot-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Embedded video. The frame holds the 16:9 shape so the iframe can simply
   fill it, whatever the player decides to report as its own size. */
.dog-video {
  margin: 0 0 30px;
  padding: 14px;
  overflow: hidden;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
/* Vertical clips (YouTube Shorts) — keep the 9:16 frame centred and as wide
   as it can be. The last term is the width of a 9:16 box that stands 110vh
   tall (110 x 9/16), so on a short screen the player slightly overhangs the
   fold rather than shrinking to a thumbnail. */
.video-frame--portrait {
  aspect-ratio: 9 / 16;
  width: min(600px, 100%, 62vh);
  margin-inline: auto;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.dog-video figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- 5f. Life updates --------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  position: relative;
  display: grid;
  gap: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  transition: background var(--theme-ms) ease;
}
.entry { position: relative; }
.entry::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent);
  animation: ping 3s ease-out infinite;
  transition: background var(--theme-ms) ease;
}
@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 5px  color-mix(in oklab, var(--accent) 22%, transparent); }
  50%      { box-shadow: 0 0 0 11px color-mix(in oklab, var(--accent)  6%, transparent); }
}
.entry-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 8px;
  transition: color var(--theme-ms) ease;
}
.entry-body { padding: 20px 22px; }
.entry-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-disp);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.entry-body p { margin: 0; color: var(--muted); }

/* ---------- 5g. Contact -------------------------------------------- */

.link-stack { display: grid; gap: 12px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  text-decoration: none;
}
.link-icon { font-size: 1.5rem; }
.link-text { display: flex; flex-direction: column; }
.link-text strong { font-family: var(--font-disp); font-size: 1.1rem; }
.link-text em { font-style: normal; color: var(--muted); font-size: 0.92rem; }
.link-arrow {
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 300ms cubic-bezier(.34,1.56,.64,1), color var(--theme-ms) ease;
}
.link-card:hover .link-arrow { transform: translateX(8px); }

/* ---------- 6. Overlays -------------------------------------------- */

/* Boot splash */
.boot {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60vmax 60vmax at 50% 45%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%),
    var(--bg);
  cursor: pointer;
}
.boot[hidden] { display: none; }
.boot.done { animation: bootOut 320ms ease both; }
@keyframes bootOut { to { opacity: 0; visibility: hidden; } }

.boot-inner { text-align: center; padding: 24px; width: min(520px, 86vw); }
.boot-name {
  font-family: var(--font-disp);
  font-size: clamp(2.4rem, 9vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 26px;
  background: linear-gradient(100deg, var(--accent-3), var(--accent), var(--accent-2));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweepText 3s linear infinite;
}
.boot-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--card-hi);
  overflow: hidden;
}
.boot-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  box-shadow: 0 0 18px var(--accent);
  transition: width 1250ms cubic-bezier(.3,.9,.4,1);
}
.boot-hint {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--dim);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 5vh 6vw;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: fadeIn 240ms ease both;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-figure { margin: 0; max-height: 90vh; display: grid; gap: 12px; justify-items: center; }
.lb-img {
  max-height: 76vh;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px #000, 0 0 60px -30px var(--accent);
  animation: popIn 320ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.lb-caption { color: var(--muted); text-align: center; }

.lightbox button {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--card-hi);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(.34,1.56,.64,1), background 240ms ease;
}
.lightbox button:hover { transform: scale(1.12); background: var(--accent); }
.lb-close { top: 22px;  right: 22px; }
.lb-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.12); }

/* Command palette + shortcut sheet */
.palette, .sheet {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 14vh 20px 20px;
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 160ms ease both;
}
.palette[hidden], .sheet[hidden] { display: none; }

.palette-box, .sheet-box {
  width: min(560px, 100%);
  background: #12101d;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px #000, 0 0 60px -24px var(--accent);
  overflow: hidden;
  animation: popIn 200ms cubic-bezier(.22,1,.36,1) both;
}

.palette-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.palette-prompt { font-size: 1.1rem; }
#palette-input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}
#palette-input::placeholder { color: var(--dim); }

.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 46vh; overflow-y: auto; }
.palette-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.palette-list li[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(100deg,
    color-mix(in oklab, var(--accent) 65%, transparent),
    color-mix(in oklab, var(--accent-2) 55%, transparent));
}
.palette-list .pl-key {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  opacity: 0.7;
}
.palette-list .pl-empty { color: var(--dim); cursor: default; font-weight: 500; }

.palette-foot, .sheet-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.sheet-box { width: min(430px, 100%); }
.sheet-title {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-disp);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.sheet-list { list-style: none; margin: 0; padding: 12px 18px 16px; }
.sheet-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.sheet-list kbd {
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.78rem;
}

/* Status bar */
.statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.statusbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  transition: background var(--theme-ms) ease;
}
.sb-item { display: inline-flex; align-items: center; gap: 6px; }
.sb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
  transition: background var(--theme-ms) ease;
}
.sb-key { color: var(--accent); transition: color var(--theme-ms) ease; }
.sb-right { margin-left: auto; }
.statusbar a { color: inherit; text-decoration: none; }
.statusbar a:hover { color: var(--accent); }

/* ---------- 7. Responsive ------------------------------------------ */

@media (max-width: 1080px) {
  .with-side { grid-template-columns: minmax(0, 1fr); }
  .side-photo { display: none; }
  .gallery { columns: 2; }
  .fact-grid { columns: 2; }
}

@media (max-width: 860px) {
  .header-inner { padding: 10px 16px; gap: 10px; }
  .tabs { margin-left: 0; width: 100%; order: 3; }
  .kbd-hint { margin-left: auto; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    min-height: 0;
    padding-top: 8px;
  }
  .collage { order: -1; aspect-ratio: 4 / 3; max-width: 460px; margin: 0 auto; width: 100%; }
  main { padding: 34px 16px 64px; }
  .take { flex-direction: column; gap: 6px; }
  .sb-hide { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { columns: 1; }
  .fact-grid { columns: 1; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .palette, .sheet { padding-top: 9vh; }
}

/* ---------- 8. Reduced motion --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-drift, .brand-dot, .collage-img, .side-photo img, .marquee-track,
  .grad, .paws::after, .entry::before, .sb-dot, .shot-btn::before,
  .boot-name, .boot {
    animation: none !important;
  }
  .collage-img { translate: none !important; }
  .glitching { animation: none !important; }
  .js .reveal { transition-delay: 0ms !important; transform: none; }
  .js .view.is-active { animation: fadeIn 200ms ease both; }
  * { transition-duration: 120ms !important; }
}
