/* ============================================================
   cdmacquarrie.com — static site styles
   Palette borrows from fluorescence microscopy:
   GFP green + mCherry magenta on a dark field.
   ============================================================ */

:root {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- dark (default) ---- */
:root, :root[data-theme="dark"] {
  --bg:        #07090d;
  --bg-2:      #0b0f15;
  --surface:   rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --border:    rgba(255,255,255,.10);
  --text:      #e9edf3;
  --muted:     #8d99aa;
  --accent:    #42e2a4;
  --accent-2:  #f26bd0;
  --shadow:    0 24px 60px rgba(0,0,0,.55);
  --glow:      0 0 40px rgba(66,226,164,.18);
}

/* ---- light ---- */
:root[data-theme="light"] {
  --bg:        #fbfaf8;
  --bg-2:      #f2f0ea;
  --surface:   rgba(15,20,28,.028);
  --surface-2: rgba(15,20,28,.055);
  --border:    rgba(15,20,28,.12);
  --text:      #14181d;
  --muted:     #5b6473;
  --accent:    #0c8f60;
  --accent-2:  #b0288a;
  --shadow:    0 20px 50px rgba(20,24,29,.10);
  --glow:      0 0 40px rgba(12,143,96,.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.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: 50%; translate: -50% -120%;
  z-index: 200; background: var(--accent); color: #04140d;
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px; font-weight: 600; text-decoration: none;
  transition: translate .2s var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

:where(a, button, .chip, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav {
  max-width: var(--wrap); margin-inline: auto; padding: 1rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 600; letter-spacing: -.01em;
  margin-right: auto;
}
.brand-mark {
  width: 24px; height: 24px; flex: none;
  display: block;
}
.brand-text { font-size: .98rem; }

.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu > li > a {
  display: inline-block; padding: .5rem .8rem; border-radius: 999px;
  text-decoration: none; font-size: .93rem; color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu > li > a:hover { color: var(--text); background: var(--surface); }
.nav-menu > li > a.is-current { color: var(--text); background: var(--surface-2); }

.theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-left: .3rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: flex; align-items: center;
  margin-top: -73px; padding-top: 73px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 15% 10%, transparent 30%, var(--bg) 78%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.hero-inner { padding-block: clamp(4rem, 12vh, 8rem); }

.eyebrow {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4rem; font-weight: 500;
}

.hero-title {
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-lede {
  max-width: 60ch; font-size: clamp(1.05rem, .98rem + .4vw, 1.28rem);
  color: var(--muted); margin-bottom: 2.2rem;
}
.hero-lede a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04140d; }
:root[data-theme="light"] .btn-primary { color: #ffffff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }

.hero-links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.hero-links a {
  font-size: .88rem; color: var(--muted); text-decoration: none;
  padding-block: .35rem; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.hero-links a:hover { color: var(--text); border-bottom-color: var(--accent); }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0;
  width: 22px; height: 36px; border: 1px solid var(--border); border-radius: 999px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(11px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; opacity: .8; } }

/* ============ SECTIONS ============ */
.section { padding-block: clamp(4.5rem, 11vh, 8rem); position: relative; }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-kicker {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: .9rem;
}
.section-title { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem); margin-bottom: 1rem; }
.section-intro { color: var(--muted); font-size: 1.05rem; }
.section-intro a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ============ CARDS ============ */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  position: relative; padding: 2rem 1.7rem 1.7rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { transform: translateY(-4px); background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.card:hover::before { opacity: 1; }
.card-num {
  font-family: var(--serif); font-size: .85rem; color: var(--accent);
  letter-spacing: .1em; display: block; margin-bottom: .9rem;
}
.card h3 { font-size: 1.32rem; margin-bottom: .8rem; }
.card p { color: var(--muted); font-size: .96rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.tags li {
  font-size: .75rem; padding: .28rem .65rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: var(--bg);
}

/* ============ TIMELINE ============ */
.timeline { position: relative; display: grid; gap: 2.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 1px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent-2) 60%, transparent), transparent);
}
.tl-item { position: relative; padding-left: 2.6rem; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg-2);
}
.tl-when { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.tl-what h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.tl-org { color: var(--text); font-size: .95rem; margin-bottom: .7rem; }
.tl-org a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tl-what p { color: var(--muted); font-size: .96rem; max-width: 62ch; }
.tl-what p a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; white-space: nowrap; }
.tl-note {
  font-size: .88rem !important; padding-left: .9rem;
  border-left: 2px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
}

/* ============ PUBLICATIONS ============ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.6rem; }
.chip {
  font: inherit; font-size: .85rem; cursor: pointer;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #04140d; font-weight: 500; }
:root[data-theme="light"] .chip.is-active { color: #fff; }

.pub-year { margin-bottom: 2.8rem; }
.pub-year[hidden] { display: none; }
.year-label {
  font-size: .85rem; font-family: var(--sans); font-weight: 600;
  letter-spacing: .16em; color: var(--muted);
  padding-bottom: .7rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.pub-list { display: grid; gap: .4rem; }
.pub {
  padding: 1.1rem 1.1rem 1.1rem 1.3rem;
  border-radius: 10px; border-left: 2px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.pub:hover { background: var(--surface); border-left-color: var(--accent); }
.pub[hidden] { display: none; }
.pub-title { font-family: var(--serif); font-size: 1.16rem; line-height: 1.35; margin-bottom: .4rem; }
.pub-authors { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.pub-authors b { color: var(--text); font-weight: 600; }
.pub-meta { font-size: .85rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.venue { font-style: italic; }
.badge {
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 4px; font-style: normal;
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent);
  color: var(--accent-2);
}
.pub-link {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color .2s var(--ease);
}
.pub-link:hover { border-bottom-color: var(--accent); }
.pub-empty { color: var(--muted); font-style: italic; }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gal-item {
  position: relative; padding: 0; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: var(--bg); aspect-ratio: 4 / 3;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.gal-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.gal-item:hover img { scale: 1.04; }
.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem .9rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  color: #f2f5f8; font-size: .82rem; line-height: 1.4; text-align: left;
  opacity: 0; translate: 0 8px; transition: opacity .3s var(--ease), translate .3s var(--ease);
}
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; translate: 0 0; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, #05070a 92%, transparent);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; gap: 1rem; justify-items: center; min-width: 0; }
.lb-figure img { max-height: 78svh; width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.lb-figure figcaption { color: #cbd4de; font-size: .9rem; text-align: center; max-width: 60ch; }
.lb-close, .lb-nav {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #eef2f6; cursor: pointer; border-radius: 999px;
  display: grid; place-items: center; transition: background .2s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-nav { width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; }
.lb-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 40px; height: 40px; font-size: 1.5rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.mailto {
  font-family: var(--serif); font-size: clamp(1.15rem, .9rem + 1.1vw, 1.85rem);
  text-decoration: none; display: inline-block; margin-bottom: 1.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  overflow-wrap: anywhere;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.mailto:hover { color: var(--accent); border-bottom-color: var(--accent); }
.postal { font-style: normal; color: var(--muted); font-size: .95rem; line-height: 1.8; }

.contact-links { display: grid; gap: 0; border-top: 1px solid var(--border); }
.contact-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem .4rem; border-bottom: 1px solid var(--border);
  text-decoration: none; font-size: .95rem; color: var(--muted);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.contact-links a:hover { color: var(--text); padding-left: .9rem; }
.contact-links .arw { color: var(--accent); transition: translate .2s var(--ease); }
.contact-links a:hover .arw { translate: 4px 0; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: baseline; }
.footer-name { font-family: var(--serif); font-size: 1.05rem; margin: 0; }
.footer-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.footer-meta a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .card:hover, .btn:hover, .gal-item:hover { transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
  }
  .nav-toggle-bars { display: grid; gap: 5px; width: 18px; }
  .nav-toggle-bars i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .nav { flex-wrap: wrap; }
  .nav-menu {
    flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .1rem;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .35s var(--ease), opacity .25s var(--ease), padding .35s var(--ease);
  }
  .nav-menu.is-open { max-height: 380px; opacity: 1; padding-top: .8rem; }
  .nav-menu > li > a { display: block; padding: .7rem .9rem; border-radius: 10px; font-size: 1rem; }
  .nav-theme { padding: .5rem .3rem 0; }
  .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }

  .hero { min-height: auto; }
  .scroll-cue { display: none; }
  .tl-item { padding-left: 2rem; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-nav { position: absolute; bottom: 1.4rem; }
  .lb-prev { left: 25%; }
  .lb-next { right: 25%; }
}

/* ============ PRINT ============ */
@media print {
  .site-header, .hero-canvas, .hero-veil, .scroll-cue, .filters, .lightbox,
  .gallery-grid, .theme-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; page-break-inside: avoid; }
  .pub-link::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .reveal { opacity: 1 !important; translate: none !important; }
}

/* ============ LOOPING VIDEO ============ */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-grid:not(:empty) { margin-top: 1.2rem; }

/* ============ QUIET HERO ============
   The name is a label, not a monument, and nothing here is set at
   display size. The sentence underneath is the thing worth reading. */
.hero-title.is-name {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--text);
  margin-bottom: .9rem;
}
.hero-lede.is-lead {
  font-size: clamp(1.02rem, .97rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-lede.is-lead a { color: var(--text); text-decoration-color: var(--accent); }
.hero .hero-inner { padding-block: clamp(2.5rem, 8vh, 5rem); }
.hero { min-height: min(68svh, 620px); }

/* ============ ORGANISMS PER STAGE ============
   Silhouettes from Arcadia's organism illustration library (CC0),
   recoloured to the supergroup palette used by the logo. */
.organisms {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .9rem 1.3rem;
  margin: .8rem 0 .3rem; padding-left: 8.5rem; list-style: none;
}
.organisms li { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 62px; }
.organisms img { width: 30px; height: 30px; display: block; opacity: .92; }
.organisms span {
  font-family: var(--serif); font-style: italic; font-size: .68rem;
  color: var(--muted); text-align: center; line-height: 1.25;
}
@media (max-width: 760px) { .organisms { padding-left: 0; } }

/* ============ CAROUSEL ============ */
.carousel[hidden] { display: none; }
.carousel { margin-bottom: 2rem; }
.car-frame { position: relative; display: flex; align-items: center; gap: .8rem; }
.car-track {
  position: relative; flex: 1; min-width: 0;
  aspect-ratio: 1 / 1; max-height: 620px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); cursor: zoom-in;
}
.car-track img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  transition: opacity .6s var(--ease);
}
.car-track img.is-on { opacity: 1; }
.car-nav {
  flex: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.car-nav:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.car-caption {
  margin: .9rem 0 0; font-size: .84rem; color: var(--muted);
  text-align: center; min-height: 1.4em;
}
.car-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; }
.car-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--border);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.car-dots button.is-on { background: var(--accent); transform: scale(1.3); }
@media (max-width: 620px) {
  .car-nav { width: 34px; height: 34px; font-size: 1.2rem; }
}

/* ============ FOOTER MARK ============ */
.site-footer { padding-block: 3.25rem 2.75rem; }
.footer-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}
.footer-mark { width: 104px; height: 104px; margin: 0 0 1.3rem; display: block; }
.footer-name { margin: 0 0 .4rem; }
.footer-meta { margin: 0; }
@media (max-width: 760px) {
  .footer-mark { width: 88px; height: 88px; margin-bottom: 1.1rem; }
}
