/* ============================================================
   Nestor Salamon — Luminous Dark redesign
   Swap --accent to re-theme the whole site.
   ============================================================ */
:root {
  --bg:        #08090c;
  --bg-alt:    #0c0e13;
  --surface:   #12141b;
  --surface-2: #171a22;
  --card:       rgba(255, 255, 255, .016);
  --card-hover: rgba(255, 255, 255, .035);
  --line:      rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .05);

  --ink:       #f4f5f7;
  --ink-mid:   #b7bcc6;
  --ink-dim:   #767c88;

  /* accent — try #7aa2ff (cool) or #ff9f5e (warm) */
  --accent:      #63e6be;
  --accent-2:    #4fd1c5;
  --glow:        rgba(99, 230, 190, .16);
  --accent-line: rgba(99, 230, 190, .40);
  --accent-tint: rgba(99, 230, 190, .10);
  --accent-edge: rgba(99, 230, 190, .28);

  --radius:    0px;
  --radius-sm: 0px;
  --shell:     1180px;

  /* Gap between a subpage hero and the block under it. .subpage-hero only pads
     20–40px beneath itself and leaves the rest to whatever follows, so this is
     the knob for that seam. Smaller than a full --section gap on purpose: the
     hero and the block below it are one thought, not two sections. */
  --hero-gap:  clamp(46px, 6.5vw, 80px);

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp:  "Space Grotesk", var(--sans);
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -8%, var(--glow), transparent 60%),
    radial-gradient(45% 40% at 0% 40%, rgba(122,162,255,.06), transparent 60%);
  pointer-events: none;
}
/* subtle grain / grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #111; padding: 10px 16px;
  border-radius: 10px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ============================ HEADER ============================ */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.header.is-stuck {
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--disp); font-weight: 600; font-size: 1.05rem;
  letter-spacing: -.01em; color: var(--ink);
}
.wordmark .dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: .92rem;
  color: var(--ink-mid); border-radius: 8px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--accent); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-ext { color: var(--ink) !important; }
.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }

.burger {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero-screen { min-height: calc(100vh - 72px); display: flex; flex-direction: column; }
.hero {
  flex: 1;
  display: grid; grid-template-columns: 1.7fr .72fr; gap: 44px;
  align-items: center; padding: clamp(40px, 6vw, 80px) 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim); margin: 0 0 22px;
}
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; left: -26px; top: 8px;
  width: 3px; height: clamp(120px, 22vh, 220px);
  background: linear-gradient(var(--accent), transparent);
  border-radius: 3px;
}
.hero-title {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(2.9rem, 7.6vw, 6.4rem); line-height: 0.98;
  letter-spacing: -.035em; margin: 0 0 32px;
}
.accented {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.16rem; color: var(--ink-mid); max-width: 56ch; margin: 0 0 34px; }
.lead strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 0; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #04241c; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-text { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); padding: 4px 2px; }
.btn-text span { color: var(--accent); }
.btn-text:hover { color: var(--ink); border-color: var(--ink-mid); transform: none; }

/* portrait */
.portrait { position: relative; justify-self: center; text-align: left; }
.portrait-frame {
  position: relative; width: clamp(220px, 24vw, 300px); aspect-ratio: 1;
  border-radius: 50%; margin: 0 auto;
}
.portrait-frame::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid var(--line);
  transform: translate(22px, -22px);
}
.portrait-frame img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .14);
}
/* ============================ NOW STRIP ============================ */
.now {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 42px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-mid);
}
.now-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.now i { color: var(--accent); font-style: normal; }

/* ============================ SECTIONS ============================ */
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section-alt {
  padding: clamp(72px, 11vw, 130px) 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.section-head {
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 28px;
  align-items: end; margin-bottom: clamp(40px, 6vw, 70px);
}
.section-head.compact { grid-template-columns: auto 1fr; }
.section-head.stacked { display: block; }
.section-head.stacked h2 { margin-top: 0; }
.section-head.stacked .section-head-cols { position: relative; }
.section-head.stacked .section-head-cols h2 { max-width: 60%; }
.section-head.stacked .section-head-cols .section-desc {
  position: absolute; top: 2px; right: 0; width: 42%;
}
.section-no {
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
  border: 1px solid var(--line); border-radius: 0; padding: 8px 12px;
  align-self: start;
}
.section-head h2 {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.06;
  letter-spacing: -.02em; margin: 6px 0 0;
}
.section-desc { color: var(--ink-mid); font-size: 1rem; max-width: 40ch; }
.text-link {
  display: inline-block; margin-top: 14px; color: var(--ink-mid);
  font-weight: 600; border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s;
}
.text-link:hover { color: var(--ink); border-color: var(--ink-mid); }
.text-link span { color: var(--accent); }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.tag-row span {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-mid);
  background: var(--surface); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 0;
}

/* ============================ APPROACH ============================ */
.approach-top { max-width: 720px; }
.approach-kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim); margin: 0 0 24px;
}
.approach-title {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.2;
  letter-spacing: -.01em; margin: 0 0 30px;
}
.approach-body p { color: var(--ink-mid); font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.6; margin: 0 0 26px; }
.approach-body p:last-child { margin-bottom: 0; }
.approach-body strong { color: var(--ink); font-weight: 600; }
.approach-main { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.approach-top { max-width: none; }
.approach-quote {
  position: relative; align-self: stretch; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(150deg, var(--accent-tint), transparent 75%);
  border: 1px solid var(--accent-edge);
  padding: clamp(30px, 3.5vw, 44px);
}
.approach-quote::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 40%; height: 3px; background: var(--accent);
}
.approach-quote p {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.24;
  letter-spacing: -.015em; margin: 0;
}
/* ============================ THE QUESTIONS ============================ */
.qblock { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: start; margin-bottom: clamp(64px, 9vw, 120px); }
.contrast-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim); margin: 0 0 16px;
}
.q-new .contrast-label { color: var(--accent); }
.q-text {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.08;
  letter-spacing: -.02em; margin: 0 0 18px;
}
.q-old .q-text { color: var(--ink-mid); }
.q-new .q-text { color: var(--ink); }
.contrast-note { color: var(--ink-dim); font-size: 1rem; margin: 0; }
.q-arrow { color: var(--accent); font-size: 2rem; align-self: center; }

/* ============================ TIMELINE ============================ */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), var(--line) 30%, var(--line));
}
.tl-item { position: relative; padding-left: 44px; padding-bottom: 22px; }
.tl-marker {
  position: absolute; left: 0; top: 26px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  display: grid; place-items: center;
}
.tl-marker span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tl-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px;
  transition: transform .25s, border-color .25s, background .25s;
}
.tl-card:hover { transform: translateX(6px); border-color: var(--accent-line); background: var(--card-hover); }
.tl-logo {
  display: grid; place-items: center; min-height: 64px;
  padding-right: 26px; border-right: 1px solid var(--line);
}
.tl-logo img { max-height: 46px; width: auto; opacity: .95; }
.tl-logo-sm img { max-height: 68px; }
.tl-logo-pmweb img { max-height: 51px; }
.tl-years { font-family: var(--mono); font-size: .78rem; color: var(--ink-mid); margin: 0 0 4px; letter-spacing: .04em; }
.tl-body h3 { font-family: var(--disp); font-size: 1.25rem; margin: 0; letter-spacing: -.01em; }
.tl-org { color: var(--ink-mid); font-size: .92rem; margin: 2px 0 8px; }
.tl-focus { color: var(--ink-mid); font-size: .95rem; margin: 0; }

/* ============================ EDUCATION ============================ */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.edu-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px; position: relative;
  transition: transform .25s, border-color .25s;
}
.edu-card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 34%; height: 3px; background: var(--accent);
}
.edu-card:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.edu-head { display: flex; align-items: center; gap: 30px; margin-bottom: 32px; }
.edu-mark { display: flex; align-items: center; flex: none; }
.edu-mark img { max-height: 52px; width: auto; opacity: .92; }
.edu-year { font-family: var(--mono); font-size: .78rem; color: var(--accent); margin: 0 0 6px; }
.edu-card h3 { font-family: var(--disp); font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.edu-card p { color: var(--ink-mid); font-size: .95rem; margin: 0; }
.edu-card .tag-row { margin-top: 22px; }

/* ============================ PUBLICATIONS ============================ */
.papers { display: grid; gap: 16px; }
.paper {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px;
  transition: transform .25s, border-color .25s, background .25s;
}
.paper:hover { border-color: var(--accent-line); background: var(--card-hover); }
.paper-venue { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mid); margin: 0 0 6px; }
.paper-main h3 { font-family: var(--disp); font-size: 1.22rem; margin: 0 0 8px; line-height: 1.25; letter-spacing: -.01em; }
.paper-authors { color: var(--ink-mid); font-size: .92rem; margin: 0; }
.paper-authors strong { color: var(--ink); }
.paper-actions { display: flex; gap: 10px; }
.chip {
  font-family: var(--sans); font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 0; white-space: nowrap;
  background: var(--accent-tint); border: 1px solid var(--accent-edge); color: var(--accent);
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { background: rgba(99, 230, 190, .16); border-color: var(--accent); }
.chip-link { background: transparent; border-color: var(--line); color: var(--ink); }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }
.chip-link span { color: var(--accent); }

/* ============================ LIFE MOSAIC ============================ */
.life-head { grid-template-columns: auto 1fr auto; align-items: end; }
.life-head-side { text-align: right; }
.life-head-side p { color: var(--ink-mid); font-size: .95rem; margin: 0 0 14px; }
[data-shuffle] { font-weight: 400; }
[data-shuffle] span { color: var(--accent); }
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 15vw, 190px); gap: 12px;
}
.mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .tile:nth-child(6) { grid-column: span 2; }
.tile {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  position: relative;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s, filter .5s; filter: grayscale(.25) brightness(.92);
}
.tile:hover img { transform: scale(1.06); filter: none; }

/* ============================ CONTACT ============================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-intro .eyebrow { margin-top: 14px; }
.contact-intro h2 { font-family: var(--disp); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 16px; }
.contact-intro p { color: var(--ink-mid); max-width: 40ch; }
.contact-links { display: grid; border-top: 1px solid var(--line); }
.contact-item {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 4px; background: transparent;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s, background .2s;
}
a.contact-item:hover { padding-left: 12px; background: rgba(255, 255, 255, .02); }
a.contact-item:hover strong { color: var(--accent); }
a.contact-item:hover b { transform: translate(3px, -3px); }
.contact-item img { width: 44px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.contact-item div { display: flex; flex-direction: column; }
.contact-item span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.contact-item strong { font-size: 1.05rem; font-weight: 600; transition: color .2s; }
.contact-item b { margin-left: auto; color: var(--accent); font-size: 1.1rem; transition: transform .2s; }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .88rem; color: var(--ink-dim);
}
.footer-inner a:hover { color: var(--accent); }

/* ============================ CITE DIALOG ============================ */
.cite-dialog {
  width: min(92vw, 640px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); padding: 28px;
}
.cite-dialog::backdrop { background: rgba(4, 5, 7, .72); backdrop-filter: blur(4px); }
.cite-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.cite-head h2 { font-family: var(--disp); margin: 4px 0 0; font-size: 1.4rem; }
.dialog-close {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  width: 38px; height: 38px; border-radius: 10px; font-size: 1.3rem; cursor: pointer;
}
.dialog-close:hover { border-color: var(--accent); color: var(--accent); }
.cite-dialog pre {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; overflow-x: auto; margin: 0 0 18px;
}
.cite-dialog code { font-family: var(--mono); font-size: .82rem; color: var(--ink-mid); white-space: pre-wrap; }

/* ============================ SUBPAGES (Concerts / Labs) ============================ */
.subpage-hero { padding: clamp(52px, 8vw, 110px) 0 clamp(20px, 3vw, 40px); }
/* The block right after a subpage hero gets --hero-gap instead of a full
   .section gap (Labs, and anything else that follows the same pattern). */
.subpage-hero + .section { padding-top: var(--hero-gap); }
.subpage-hero .approach-kicker { margin-bottom: 20px; }
.subpage-title {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 4.8rem); line-height: 1.0;
  letter-spacing: -.03em; margin: 0 0 26px;
}
.subpage-hero .lead { margin-bottom: 0; }
.is-hidden { display: none !important; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 16px 20px 24px; background: rgba(8,9,12,.97);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav a.is-active::after { display: none; }
  .nav-sep { display: none; }

  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-copy::before { display: none; }
  .portrait { order: 1; text-align: center; }
  .now { justify-content: center; }
  .eyebrow, .hero-actions { justify-content: center; }
  .lead { margin-inline: auto; }

  .section-head, .section-head.compact, .life-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head.stacked .section-head-cols h2 { max-width: none; }
  .section-head.stacked .section-head-cols .section-desc { position: static; width: auto; margin-top: 18px; }
  .life-head-side { text-align: left; }
  .approach-main { grid-template-columns: 1fr; gap: 40px; }
  .qblock { grid-template-columns: 1fr; gap: 26px; }
  .q-arrow { transform: rotate(90deg); justify-self: start; }
  .contact-wrap { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .edu-grid { grid-template-columns: 1fr; }
  .tl-card { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .tl-logo { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; justify-content: flex-start; }
  .tl-card:hover { transform: none; }
  .paper { grid-template-columns: 1fr; gap: 16px; }
  .paper-actions { justify-content: flex-start; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic .tile:nth-child(6) { grid-column: span 1; }
  /* one fewer photo on mobile so the 2-col grid ends flush (no lone tile) */
  .mosaic .tile:nth-child(8) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
