@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Libre+Franklin:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap");

/* ============================================================
   Logan Miksche , portfolio
   Palette and type derived from the 2026 print portfolio colophon.
   ============================================================ */

:root {
  /* neutrals: biased very slightly cool, matching the book's paper */
  --paper:      #ffffff;
  --paper-2:    #f3f3f1;
  --paper-3:    #e9e9e6;
  --ink:        #121214;
  --ink-2:      #4a4a4d;
  --ink-3:      #7b7b7e;
  --rule:       #dcdcd8;
  --rule-soft:  #ececea;

  /* project accents , straight from the colophon */
  --c-zephyr:   #183c59;
  --c-cube:     #3c8ac9;
  --c-oculus:   #b398c8;
  --c-event:    #cd2027;
  --c-apex:     #63c4b1;
  --c-nodes:    #f4d047;
  --c-ghost:    #d9691f;
  --c-hotspot:  #0e6e80;
  --c-grbx:     #121214;
  --c-baynerve: #1b2f62;
  --c-pkt:      #8f1d28;

  --accent:     var(--ink);
  --accent-ink: #ffffff;

  --shadow: 0 1px 2px rgba(18,18,20,.04), 0 12px 32px rgba(18,18,20,.06);

  --radius:      7px;   /* buttons and chips */
  --radius-pill: 999px; /* carousel controls */

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1440px;

  --font-display: "Outfit", "Gilgan", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #0e0e10;
    --paper-2:   #161619;
    --paper-3:   #1e1e22;
    --ink:       #f2f2ef;
    --ink-2:     #b6b6b2;
    --ink-3:     #85858a;
    --rule:      #2c2c31;
    --rule-soft: #212125;

    --c-zephyr:  #6b9ecb;
    --c-cube:    #67a9df;
    --c-oculus:  #c6afd9;
    --c-event:   #f05159;
    --c-apex:    #63c4b1;
    --c-nodes:   #f4d047;
    --c-ghost:   #f0894a;
    --c-hotspot: #4fb3c9;
    --c-grbx:    #f2f2ef;
    --c-baynerve:#7d9ada;
    --c-pkt:     #e0707c;

    --accent:     var(--ink);
    --accent-ink: #0e0e10;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --paper:     #0e0e10;
  --paper-2:   #161619;
  --paper-3:   #1e1e22;
  --ink:       #f2f2ef;
  --ink-2:     #b6b6b2;
  --ink-3:     #85858a;
  --rule:      #2c2c31;
  --rule-soft: #212125;

  --c-zephyr:  #6b9ecb;
  --c-cube:    #67a9df;
  --c-oculus:  #c6afd9;
  --c-event:   #f05159;
  --c-apex:    #63c4b1;
  --c-nodes:   #f4d047;
  --c-ghost:   #f0894a;
  --c-hotspot: #4fb3c9;
  --c-grbx:    #f2f2ef;
  --c-baynerve:#7d9ada;
  --c-pkt:     #e0707c;

  --accent:     var(--ink);
  --accent-ink: #0e0e10;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- layout primitives ---------- */

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

.section { padding-block: clamp(64px, 9vw, 132px); }
.section + .section { border-top: 1px solid var(--rule-soft); }

/* the book's signature asymmetric spread: title parked left, content right */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.spread > .spread-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }

@media (max-width: 900px) {
  .spread { grid-template-columns: 1fr; }
  .spread > .spread-head { position: static; }
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.title-l { font-size: clamp(2.35rem, 6vw, 4.25rem); letter-spacing: -0.032em; }
.title-m { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.028em; }
.title-s { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -0.018em; }

.label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}
.label--accent { color: var(--accent); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}
.body { max-width: 62ch; color: var(--ink-2); }
.body p { margin: 0 0 1.1em; }
.body p:last-child { margin-bottom: 0; }
.small { font-size: 0.8125rem; line-height: 1.6; color: var(--ink-3); }

.stack { display: flex; flex-direction: column; }
.stack-4  { gap: 4px; }  .stack-8  { gap: 8px; }
.stack-12 { gap: 12px; } .stack-16 { gap: 16px; }
.stack-24 { gap: 24px; } .stack-32 { gap: 32px; }
.stack-48 { gap: 48px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 62px;
}
.nav-mark {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.nav-mark span { color: var(--ink-3); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  padding-block: 6px;
  border-bottom: 1.5px solid transparent;
  transition: color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--accent);
}
.nm-abbr { display: none; }
@media (max-width: 860px) {
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.04em; }
  .nav-mark { font-size: 0.92rem; }
  .nav-mark span:not(.nm-full):not(.nm-abbr) { display: none; }
}
@media (max-width: 620px) {
  .nav-in { gap: 10px; }
  .nav-links { gap: 9px; }
  .nav-links a { font-size: 0.62rem; letter-spacing: 0.01em; }
  .nm-full { display: none; }
  .nm-abbr { display: inline; }
  .nav-mark { font-size: 1rem; letter-spacing: 0.02em; }
}

/* ---------- glyphs (the book's project marks) ---------- */

.glyph { display: block; width: 34px; height: 44px; flex: none; }
.glyph line { stroke-width: 3.4; stroke-linecap: butt; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(56px, 11vw, 150px) clamp(48px, 7vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

.hero .display { margin-block: 0.06em 0.18em; }
.hero-rule {
  height: 3px; width: 100%;
  background: linear-gradient(90deg,
    var(--c-zephyr) 0 12.5%, var(--c-cube) 12.5% 25%, var(--c-oculus) 25% 37.5%,
    var(--c-event) 37.5% 50%, var(--c-apex) 50% 62.5%, var(--c-nodes) 62.5% 75%,
    var(--c-ghost) 75% 87.5%, var(--c-hotspot) 87.5% 100%);
  margin-block: clamp(28px, 4vw, 48px);
}
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 32px; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.22,.7,.28,1) backwards; }
  .rise-1 { animation-delay: .04s } .rise-2 { animation-delay: .12s }
  .rise-3 { animation-delay: .2s }  .rise-4 { animation-delay: .28s }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- project cards ---------- */

.work-list { display: flex; flex-direction: column; }
.work-item {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 4.5vw, 56px);
  border-top: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
}
.work-list .work-item:last-child { border-bottom: 1px solid var(--rule); }
.work-item:nth-child(even) .work-fig { order: 2; }
@media (max-width: 800px) {
  .work-item { grid-template-columns: 1fr; gap: 20px; }
  .work-item:nth-child(even) .work-fig { order: 0; }
}

.work-fig {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  background: var(--paper-2);
}
.work-fig img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.7,.28,1), filter .4s ease;
}
.work-item:hover .work-fig img, .work-item:focus-visible .work-fig img { transform: scale(1.035); }
.work-fig::after {
  content: ""; position: absolute; inset: 0;
  background: var(--proj, var(--ink));
  mix-blend-mode: multiply; opacity: 0;
  transition: opacity .4s ease;
}
.work-item:hover .work-fig::after { opacity: .1; }

.work-idx {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--proj, var(--ink-3));
}
.work-title { transition: color .2s ease; }
.work-item:hover .work-title { color: var(--proj, var(--ink)); }
.work-more {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--proj, var(--ink));
  display: inline-flex; align-items: center; gap: 8px;
}
.work-more::after { content: "→"; transition: transform .25s ease; }
.work-item:hover .work-more::after { transform: translateX(5px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-display);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--rule); color: var(--ink-3);
  border-radius: var(--radius);
  white-space: nowrap;
}
.tag--on { border-color: var(--proj, var(--ink)); color: var(--proj, var(--ink)); }

/* ---------- resume ---------- */

.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.res-block { display: flex; flex-direction: column; gap: 22px; }
.res-entry { display: flex; flex-direction: column; gap: 3px; }
.res-entry-top { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; }
.res-role { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.res-when { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-sub { font-size: 0.82rem; color: var(--ink-3); }
.res-entry ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.res-entry li { font-size: 0.875rem; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.55; }
.res-entry li::before { content: "+"; position: absolute; left: 0; color: var(--ink-3); }

.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills span {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 500;
  padding: 5px 11px; background: var(--paper-2); color: var(--ink-2);
  border-radius: var(--radius);
}

/* ---------- portrait ---------- */

.portrait {
  aspect-ratio: 4 / 5; width: 100%; background: var(--paper-2);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-mono {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.5rem, 8vw, 6rem); letter-spacing: -0.05em; color: var(--ink);
  line-height: 1;
}
.portrait::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--c-zephyr) 0 12.5%, var(--c-cube) 12.5% 25%, var(--c-oculus) 25% 37.5%,
    var(--c-event) 37.5% 50%, var(--c-apex) 50% 62.5%, var(--c-nodes) 62.5% 75%,
    var(--c-ghost) 75% 87.5%, var(--c-hotspot) 87.5% 100%);
}

/* ---------- pedagogy / chronology ---------- */

.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.method { background: var(--paper); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.method-bar { height: 4px; width: 46px; background: var(--ink); }

.chron { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 1100px) { .chron { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .chron { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chron-col { background: var(--paper); padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.chron-when { font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.chron-proj { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.chron-proj .glyph { width: 20px; height: 26px; }
.chron-proj span { font-family: var(--font-display); font-size: 0.86rem; font-weight: 500; line-height: 1.2; }
.chron-proj:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- filters (work index) ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  border-radius: var(--radius);
  cursor: pointer; transition: all .18s ease;
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- project page ---------- */

.proj-hero { position: relative; overflow: hidden; background: var(--paper-2); }
.proj-hero img { width: 100%; height: clamp(300px, 62vh, 700px); object-fit: cover; }
.proj-num {
  position: absolute; right: -0.055em; bottom: -0.2em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(7rem, 21vw, 19rem); line-height: .72;
  color: var(--proj); letter-spacing: -0.05em;
  pointer-events: none; user-select: none;
}
.proj-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .proj-head { grid-template-columns: 1fr; } }

.facts { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
.fact { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(0, 2.4fr); gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--rule-soft); }
.fact dt { font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin: 0; padding-top: 3px; }
.fact dd { margin: 0; font-size: 0.9rem; color: var(--ink); }

.plates { display: grid; gap: clamp(20px, 3vw, 40px); }
.plate figcaption { margin-top: 12px; display: flex; gap: 12px; align-items: baseline; }
.plate-no { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--proj); font-variant-numeric: tabular-nums; flex: none; }
.plate img { width: 100%; background: var(--paper-2); }
.plate-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 40px); }
/* paired plates read as one spread: cap tall figures so both sit on a shared baseline */
.plate-2 > .plate img, .plate-3 > .plate img {
  max-height: min(620px, 78vh);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}
.plate-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(16px, 2vw, 28px); }

.proj-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }

/* ---------- contact / footer ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 32px; }
.contact-link {
  font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500;
  text-decoration: none; letter-spacing: -0.01em;
  border-bottom: 1.5px solid var(--rule); padding-bottom: 5px; display: inline-block;
  transition: border-color .2s ease;
  overflow-wrap: anywhere;
}
.contact-link:hover { border-bottom-color: var(--ink); }

.foot { border-top: 1px solid var(--rule-soft); padding-block: 36px 44px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: baseline; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 22px; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: opacity .18s ease;
}
.btn:hover { opacity: .84; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }


/* ---------- carousel panels + video plates ---------- */

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.panels img {
  width: 100%;
  height: auto;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
}
.panels-cap { margin: 12px 0 0; display: flex; gap: 10px; align-items: baseline; }
.panels-wrap { display: block; }
.empty { display: none; }

.plate video.vid {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  max-height: min(620px, 78vh);
  margin-inline: auto;
}
.plate-2 > .plate video.vid, .plate-3 > .plate video.vid { width: auto; max-width: 100%; }


/* ---------- typographic cover and hero, for projects without imagery yet ---------- */

.work-fig--type {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--proj, var(--ink));
  overflow: hidden;
}
.work-fig--type span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}
.proj-hero--type {
  background: var(--proj, var(--ink));
  min-height: clamp(260px, 40vh, 440px);
  display: grid;
  place-items: center;
}
.hero-mono {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}


/* ---------- framed plate: a light artboard that needs an edge and a ceiling ---------- */

.plate-framed { display: block; }
.plate-framed > .plate img,
.plate-framed > .plate figcaption {
  max-width: min(100%, 940px);
  margin-inline: auto;
}
.plate-framed > .plate img {
  border: 1px solid var(--rule);
  background: var(--paper);
}


/* ---------- drawing plate: a tall line drawing that needs a ceiling, not an edge ---------- */

.plate-drawing { display: block; }
.plate-drawing > .plate img {
  max-height: min(760px, 82vh);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}
.plate-drawing > .plate figcaption {
  justify-content: center;
}


/* ---------- carousel: click or swipe through a campaign panel by panel ---------- */

.car-wrap { display: block; }

.carousel { display: flex; flex-direction: column; gap: 16px; }

.car-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.car-slide {
  margin: 0;
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 28px);
}
.car-slide img {
  width: auto;
  max-width: 100%;
  max-height: min(660px, 72vh);
}

.car-bar {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.car-nav { display: flex; align-items: center; gap: 10px; flex: none; }

.car-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.car-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.car-btn:disabled { opacity: .28; cursor: default; }

.car-count {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  min-width: 4.5em;
  text-align: center;
}
.car-cap { margin: 0; display: flex; gap: 10px; align-items: baseline; flex: 1 1 260px; }

.car-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.car-dot {
  width: 30px; height: 3px;
  padding: 0; border: 0;
  border-radius: var(--radius-pill);
  background: var(--rule);
  cursor: pointer;
  transition: background .18s ease;
}
.car-dot:hover { background: var(--ink-3); }
.car-dot[aria-current="true"] { background: var(--proj, var(--ink)); }
.car-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 560px) {
  .car-dot { width: 22px; }
  .car-bar { gap: 12px; }
}


/* the portrait column must not stretch to the height of the text beside it,
   or its caption drifts to the bottom of the section */
.about-portrait {
  margin: 0;
  display: grid;
  gap: 10px;
  align-self: start;
  align-content: start;
}
