/* ==========================================================
   Dominique Schleider — portfolio
   Palette: cool bone paper, ink, pewter, storm blue
   Type:    Syne (display) / Newsreader (body) / Plex Mono (labels)
   ========================================================== */

:root {
  --paper:   #e6e3da;
  --paper-2: #dedacf;
  --paper-3: #d5d0c3;
  --ink:     #14151a;
  --ink-2:   #2a2c33;
  --slate:   #5c626a;
  --pewter:  #a6abb0;
  --storm:   #1f3a5f;
  --dark:    #101216;

  --foil: linear-gradient(105deg, #8f979e, #e4e7e9 28%, #9ba3aa 52%, #f0f2f3 72%, #8a9299);

  /* One family throughout. Roles are separated by weight, size, and
     letter-spacing instead of by typeface. Helvetica on Mac, Arial on
     Windows — both are already installed, so nothing loads from the web. */
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gut: clamp(20px, 4.5vw, 64px);
  /* the row fills the screen minus the name, the label, and the padding */
  --tile-h: clamp(168px, calc(100svh - 336px), 820px);
  --spine-w: 96px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
  font-family: var(--mono);
  font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- shared label style ---------- */

.lab {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gut);
  mix-blend-mode: normal;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.topbar--over { color: #f2f0ea; }
.topbar--solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-3);
  color: var(--ink);
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { display: block; font-size: 10px; font-family: var(--mono); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.62; margin-top: 3px; }

.topnav { display: flex; gap: clamp(14px, 2vw, 28px); }
.topnav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.topnav a:hover { border-bottom-color: currentColor; }

/* ---------- stage: name + scrolling work icons ---------- */

.stage {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  color: #f2f0ea;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(14px, 2.4vh, 30px);
  padding: clamp(68px, 8.5vh, 92px) 0 clamp(18px, 3vh, 34px);
  overflow: hidden;
}
.stage__amb { position: absolute; inset: 0; pointer-events: none; }
.stage__amb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; filter: grayscale(0.4); }
.stage__amb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 85% at 72% 8%, rgba(35,48,63,0.75) 0%, rgba(16,18,22,0.9) 58%, #0d0f13 100%);
}
.stage > *:not(.stage__amb) { position: relative; }

.stage__head { padding: 0 var(--gut); margin-top: auto; }
.stage__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 6.6vw, 98px);
  line-height: 0.94;
  letter-spacing: -0.026em;
  margin: 0;
}
.stage__role {
  font-family: var(--mono);
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #aab4bd;
  margin: 12px 0 0;
}

.stage__rows { display: flex; flex-direction: column; gap: clamp(0px, 0.3vw, 6px); }

.stage__foot {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 var(--gut);
}
.stage__foot .lab { color: #9aa4ad; }
.stage__jump { text-decoration: none; border-bottom: 1px solid transparent; }
.stage__jump:hover { color: #f2f0ea; border-bottom-color: currentColor; }

/* ---------- marquee ---------- */

.mq { position: relative; }

.marquee {
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  scrollbar-width: none;
  padding: 12px 0;
  cursor: grab;
  scroll-behavior: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-drag { cursor: grabbing; }
.marquee.is-drag .tile { transform: none; }

.mq__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  width: max-content;
}

.mq__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(242,240,234,0.4);
  background: rgba(13,15,19,0.55);
  backdrop-filter: blur(6px);
  color: #f2f0ea;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.2s var(--ease);
}
.mq:hover .mq__arrow,
.mq__arrow:focus-visible { opacity: 1; }
.mq__arrow:hover { background: rgba(13,15,19,0.85); }
.mq__arrow--prev { left: clamp(10px, 2vw, 26px); }
.mq__arrow--next { right: clamp(10px, 2vw, 26px); }

/* ---------- touch affordances ---------- */

/* Hidden on desktop, where hover and a trackpad already make it obvious. */
.mq__hint,
.mq__bar { display: none; }

@media (hover: none) {
  .mq__arrow { display: none; }

  .mq__hint {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .mq__hint span {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark);
    background: #f2f0ea;
    border: 0;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    animation: nudge 1.8s var(--ease) infinite;
  }
  .mq__hint.is-gone { opacity: 0; transform: translateX(-50%) translateY(6px); }

  .mq__bar {
    display: block;
    position: relative;
    height: 3px;
    margin: 14px var(--gut) 0;
    background: rgba(242,240,234,0.16);
    overflow: hidden;
  }
  .mq__bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 34%;
    background: rgba(242,240,234,0.75);
  }
}

/* a small sideways drift on the hint, so it reads as a gesture */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@keyframes nudge {
  0%, 100% { transform: translateX(-6px); }
  50%      { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .mq__hint span,
  .stage__jump { animation: none; }
}

/* ---------- icon tile ---------- */

.tile {
  position: relative;
  flex: 0 0 auto;
  width: min(calc(var(--tile-h) * 3 / 2), 88vw);
  text-decoration: none;
  color: inherit;
  transform-origin: center center;
  transition: transform 0.4s var(--ease);
}
.tile:hover,
.tile:focus-visible {
  transform: scale(1.035);
  z-index: 3;
}
.tile__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #1a1d23;
  overflow: hidden;
  border: 1px solid rgba(242,240,234,0.13);
  transition: border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.tile__frame img,
.tile__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile:hover .tile__frame,
.tile:focus-visible .tile__frame {
  border-color: rgba(242,240,234,0.55);
  box-shadow: 0 18px 46px rgba(0,0,0,0.5);
}

.tile__code {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 3px 6px;
  background: rgba(13,15,19,0.78);
  color: #dfe3e6;
}
.tile__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(242,240,234,0.045) 8px 9px);
}
.tile__ph-code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--pewter); }
.tile__ph-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e7e4dc;
}
.tile__frame .tile__ph ~ .tile__code { display: none; }

.tile__cap { display: block; padding-top: 10px; }
.tile__cap strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(13px, 1.15vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile__cap em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b949c;
}
.tile:hover .tile__cap strong { color: #fff; }

/* ---------- featured band: one show, four ways in ---------- */

.was { padding: clamp(60px, 9vw, 120px) var(--gut) 0; }

.was__head { max-width: 62ch; }
.was__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 92px);
  line-height: 0.93;
  text-transform: uppercase;
  letter-spacing: -0.022em;
  margin: 10px 0 0;
}
.was__sub { font-size: clamp(17px, 1.8vw, 22px); color: var(--slate); margin: 12px 0 0; }
.was__blurb { font-size: clamp(17px, 1.6vw, 21px); max-width: 46ch; margin: 18px 0 0; }
.was__link { margin-top: 26px; }

.was__parts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 26px);
  margin-top: clamp(32px, 4.5vw, 56px);
}
.part { text-decoration: none; display: block; }
.part__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
  overflow: hidden;
}
.part__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.part:hover .part__frame img { transform: scale(1.04); }
.part__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--paper-3);
  margin-top: 11px;
}
.part__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.part:hover .part__label { color: var(--storm); }

/* ---------- spine ---------- */

.spine {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: var(--spine-w);
  z-index: 90;
  padding-left: 22px;
  display: none;
}
.spine { transition: opacity 0.4s var(--ease); }
body.is-top .spine { opacity: 0; pointer-events: none; }
.spine ol { list-style: none; margin: 0; padding: 0; }
.spine li { margin: 0 0 14px; }
.spine a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pewter);
  transition: color 0.3s var(--ease);
}
.spine a::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.spine a:hover { color: var(--slate); }
.spine a[aria-current="true"] { color: var(--storm); }
.spine a[aria-current="true"]::before { width: 30px; }

/* ---------- work section ---------- */

.work { padding: clamp(64px, 10vh, 120px) var(--gut) 0; }

.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.work__head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  margin: 0;
}

.toggle { display: flex; border: 1px solid var(--paper-3); }
.toggle button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--slate);
  padding: 9px 16px;
  cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- discipline blocks ---------- */

.disc { padding: clamp(52px, 7vw, 96px) 0 0; scroll-margin-top: 80px; }

.disc__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  align-items: baseline;
  margin-bottom: 26px;
}
.disc__code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--storm);
}
.disc__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 62px);
  letter-spacing: -0.038em;
  line-height: 1;
  margin: 0;
}
.disc__note {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--slate);
  max-width: 44ch;
}
.disc__rule {
  grid-column: 1 / -1;
  height: 2px;
  margin-top: 20px;
  background: var(--foil);
  opacity: 0.85;
}

/* ---------- plates grid ---------- */

.plates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(22px, 3vw, 44px);
}
.plates--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }

.card { text-decoration: none; display: block; }
.card__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
  overflow: hidden;
}
.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.card:hover .card__frame img { transform: scale(1.035); }

.card__num {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  background: var(--paper);
  color: var(--ink);
  padding: 4px 8px;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-3);
  margin-top: 12px;
}
.card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}
.card__sub { display: block; font-weight: 400; font-size: 14px; color: var(--slate); letter-spacing: 0; margin-top: 2px; }
.card:hover .card__title { color: var(--storm); }

/* placeholder frame for missing images */
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
  border: 1px dashed var(--pewter);
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(166,171,176,0.13) 9px 10px);
  color: var(--slate);
}
.ph b { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.ph code { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); word-break: break-all; line-height: 1.5; }

/* ---------- index (list) view ---------- */

.index { border-top: 1px solid var(--paper-3); }
.row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 15px 4px;
  border-bottom: 1px solid var(--paper-3);
  text-decoration: none;
  transition: background 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.row:hover { background: var(--paper-2); padding-left: 12px; }
.row__code { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--storm); }
.row__title { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.9vw, 20px); text-transform: uppercase; letter-spacing: 0.03em; }
.row__title em { text-transform: none; font-style: normal; font-weight: 400; font-size: 0.82em; color: var(--slate); margin-left: 10px; }
.row__year { font-family: var(--mono); font-size: 11px; color: var(--slate); }

/* ---------- about ---------- */

.about {
  margin-top: clamp(80px, 12vw, 150px);
  padding: clamp(56px, 8vw, 110px) var(--gut);
  background: var(--ink);
  color: var(--paper);
  scroll-margin-top: 60px;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.about h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: -0.038em;
  margin: 0 0 22px;
}
.about p { font-size: clamp(16px, 1.4vw, 20px); max-width: 52ch; margin: 0 0 18px; color: #d9d5ca; }
.about .lab { color: var(--pewter); }
.about__contact { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.about__mail {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--pewter);
  padding-bottom: 3px;
}
.about__mail:hover { color: #fff; border-bottom-color: currentColor; }
.about__links { display: flex; flex-wrap: wrap; gap: 18px; }
.about__links a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pewter); text-decoration: none; border-bottom: 1px solid transparent; }
.about__links a:hover { color: var(--paper); border-bottom-color: currentColor; }
/* PORTRAIT SIZE — the two numbers to change.
   Phone: half the width of the page. Desktop: see the media query near
   the bottom of this file, where the second column is set to 25%. */
.about__portrait {
  width: 50%;
  aspect-ratio: 4/5;
  background: #1b1d23;
  position: relative;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }

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

.footer {
  padding: 26px var(--gut) 34px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================
   PROJECT PAGE
   ========================================================== */

.proj { padding: clamp(96px, 14vh, 150px) var(--gut) 0; }

.proj__back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
}
.proj__back:hover { color: var(--ink); }

.proj__head {
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--ink);
  max-width: 62ch;
}
.proj__code { color: var(--storm); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; display: block; margin-bottom: 14px; }
.proj__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 7.4vw, 96px);
  line-height: 0.93;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}
.proj__sub { font-size: clamp(18px, 2vw, 25px); color: var(--slate); margin: 12px 0 0; }
.proj__meta { display: block; margin: 16px 0 0; }
.proj__desc { margin: 20px 0 0; }
.proj__desc p { font-size: clamp(16px, 1.45vw, 19px); margin: 0 0 14px; }
.proj__desc p:last-child { margin-bottom: 0; }
.proj__link { display: inline-block; margin-top: 22px; }

/* ---------- carousel ---------- */

/* One height for everything, natural widths — a tall portrait and a wide
   landscape sit in the same strip without either being cropped. */
.car {
  position: relative;
  padding: clamp(30px, 5vw, 62px) 0 0;
  /* The exact box a home page row tile uses, worked out the same way:
     a tile is min(tile height x 3/2, 88vw) wide, and this is that width
     expressed as a height. So project images scale with the window in
     lockstep with the icons on the home page.
     Multiply by 1.2 to make project images larger than the icons. */
  --car-w: min(calc(var(--tile-h) * 3 / 2), 88vw);
  --car-h: calc(var(--car-w) * 2 / 3);
}
.car__strip {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.4vw, 20px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.car__strip::-webkit-scrollbar { display: none; }
.car__item {
  flex: 0 0 auto;
  margin: 0;
  height: var(--car-h);
  scroll-snap-align: start;
  background: var(--paper-2);
}
.car__item img,
.car__item video {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
.car__count {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pewter);
  margin: 12px 0 0;
}
.car__nav {
  position: absolute;
  top: calc(clamp(30px, 5vw, 62px) + var(--car-h) / 2);
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.car__nav:hover { background: var(--ink); color: var(--paper); }
.car__nav[hidden] { display: none; }
.car__nav--prev { left: 10px; }
.car__nav--next { right: 10px; }

.car__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  height: clamp(220px, 40vh, 380px);
  padding: 20px;
  border: 1px dashed var(--pewter);
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(166,171,176,0.13) 9px 10px);
  color: var(--slate);
}
.car__empty b { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.car__empty code { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.car__empty span { font-size: 14px; }

.proj__gallery {.proj__gallery { padding: clamp(36px, 6vw, 76px) 0 0; }
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}
.gal figure { margin: 0; }
.gal .frame { position: relative; aspect-ratio: 4/5; background: var(--paper-2); overflow: hidden; }
.gal .frame img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--pewter); padding-top: 8px; }

/* Two fixed columns rather than flex, so the links sit at opposite ends
   whether there are two of them or only one. Change the gap to spread
   them further apart. */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 8vw, 120px);
  align-items: start;
  margin-top: clamp(60px, 9vw, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}
.pager a { text-decoration: none; display: block; }
.pager .lab { display: block; margin-bottom: 8px; }
.pager strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 2.1vw, 23px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pager a:hover strong { color: var(--storm); }
.pager .prev { grid-column: 1; }
.pager .next { grid-column: 2; text-align: right; }

.notice {
  max-width: 640px;
  margin: 20vh auto;
  padding: 0 var(--gut);
  text-align: center;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* ---------- phones ----------
   On a narrow screen the tile is limited by width, not height, so its
   height has to be derived from the width — otherwise the stage reserves
   space for a tall tile that never renders and leaves a dead band. */
@media (max-width: 719px) {
  :root { --tile-h: calc(88vw * 2 / 3); }

  /* stack tight: row, then name straight underneath, then the scroll cue.
     No stretching to fill the screen — that's what left the dead band. */
  .stage {
    min-height: auto;
    justify-content: flex-start;
    gap: 14px;
    padding: 72px 0 26px;
  }
  .stage__head { margin-top: 0; }
  .stage__name { font-size: clamp(32px, 11.5vw, 62px); }
  .stage__role { font-size: 10px; letter-spacing: 0.3em; margin-top: 8px; }
  .stage__foot { margin-top: 4px; }

  /* an obvious tap target rather than a quiet line of text */

  .stage__jump {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(242,240,234,0.4);
    border-radius: 999px;
    padding: 11px 18px;
    color: #f2f0ea;
    animation: bob 1.9s var(--ease) infinite;
  }

  .was { padding-top: 54px; }
  .work { padding-top: 54px; }
  .disc { padding-top: 42px; }
  .about { margin-top: 64px; padding-top: 52px; padding-bottom: 52px; }
  .proj { padding-top: 92px; }
}

@media (min-width: 720px) {
  /* your name on one line, sized so it always fits the width available */
  .stage__name { white-space: nowrap; font-size: min(5.4vw, 92px); }

  /* second number = how much of the row the portrait takes on a computer */
  .about__grid { grid-template-columns: minmax(0, 1fr) 25%; }
  .about__portrait { width: 100%; }
  .was__parts { grid-template-columns: repeat(4, 1fr); }
  .proj__head { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

@media (min-width: 1100px) {
  .spine { display: block; }
  .work, .about, .proj, .footer, .was { padding-left: calc(var(--gut) + var(--spine-w)); }
  .stage__head, .stage__foot { padding-left: calc(var(--gut) + var(--spine-w)); }
  .topbar { padding-left: calc(var(--gut) + 8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover .card__frame img { transform: none; }
  .tile:hover, .tile:focus-visible { transform: none; }
}
