:root {
  color-scheme: dark;

  --mauve: #765D67;
  --berry: #6D3C52;
  --plum: #4B2138;
  --night: #1B0C1A;
  --aubergine: #2D222F;
  --blush: #FADCD5;
  --text: var(--blush);
  --muted: #C9AAB8;
  --border: rgba(250, 220, 213, 0.24);
  --page-width: 1120px;
  --gutter: clamp(20px, 4.5vw, 64px);

  --space-1: clamp(8px, 0.75vw, 12px);
  --space-2: clamp(12px, 1.2vw, 18px);
  --space-3: clamp(18px, 2vw, 28px);
  --space-4: clamp(28px, 3.4vw, 48px);
  --space-5: clamp(40px, 5.8vw, 80px);

  --type-small: clamp(12px, 0.18vw + 11.5px, 13px);
  --type-body: clamp(14px, 0.3vw + 13px, 15px);
  --type-pill: clamp(12px, 0.25vw + 11px, 14px);

  --type-display: clamp(2.65rem, 3.8vw + 0.8rem, 4.8rem);
  --type-subheading: clamp(1.3rem, .8vw + .9rem, 1.7rem);
  --type-subtitle: var(--type-small);

  --type-icon: clamp(20px, 1.3vw + 14px, 24px);

  --ease: cubic-bezier(.65, 0, .25, 1);
  --dur: .85s;
  --interval: 6500ms;
}

* {
  box-sizing: border-box;
}

/* Screen-reader-only text (also used for form labels). */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

::selection {
  background: var(--berry);
  color: var(--blush);
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
}

@supports (-moz-appearance: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--berry) var(--night);
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--night);
}

::-webkit-scrollbar-thumb {
  background: var(--berry);
  border-radius: 999px;
  border: 2px solid var(--night);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mauve);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    var(--night) 0%,
    var(--aubergine) 35%,
    var(--plum) 68%,
    var(--mauve) 100%
  );
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blush);
}

button {
  -webkit-tap-highlight-color: transparent;
}

.starfield {
  position: fixed;
  inset: -30px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.starfield-star {
  position: absolute;
  width: var(--dot-size, 2px);
  height: var(--dot-size, 2px);
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 4px rgba(250, 220, 213, 0.45);
  animation: twinkle var(--twinkle-speed, 3s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s);
}

@keyframes twinkle {
  0%, 100% {
    opacity: var(--min-opacity, 0.15);
    transform: scale(0.8);
  }
  50% {
    opacity: var(--max-opacity, 0.8);
    transform: scale(1.4);
  }
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
  text-align: center;
  background: transparent;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0 0 var(--space-3);
}

.portrait-stack {
  position: relative;
  width: clamp(150px, 46vw, 218px);
  aspect-ratio: 1;
  flex: none;
  margin-bottom: var(--cat-space, 0px);
}

.portrait,
.cat-portrait {
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: var(--aubergine);
}

.portrait {
  width: 100%;
  height: 100%;
  box-shadow: 0 8px 28px rgba(0,0,0,.24), 0 0 0 1px var(--plum);
}

.cat-portrait {
  position: absolute;
  width: 50%;
  height: 50%;
  left: var(--cat-x, 87.5%);
  top: var(--cat-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1px solid var(--plum);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.display {
  max-width: 100%;
  font-size: var(--type-display);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--type-subtitle);
  font-weight: 400;
  letter-spacing: .035em;
}

.subtitle a {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}

.subtitle a:hover,
.subtitle a:focus-visible {
  color: var(--blush);
}

.subtitle a span {
  color: var(--blush);
}

.intro-copy {
  width: min(calc(100% - var(--gutter) * 2), 34rem);
  margin: var(--space-3) auto 0;
  color: color-mix(in srgb, var(--blush) 88%, transparent);
  line-height: 1.85;
  text-wrap: pretty;
}

.intro .site-header,
.intro #intro-title,
.intro .subtitle,
.intro-copy {
  opacity: 0;
  animation: intro-rise .75s ease both;
}

.intro .site-header { animation-delay: .1s; }
.intro #intro-title { animation-delay: .2s; font-weight: 700; letter-spacing: -.005em; }
.intro .subtitle { animation-delay: .3s; }
.intro-copy { animation-delay: .4s; }

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: var(--type-small);
  letter-spacing: .035em;
}

.slide, .case, footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 5vh, 64px) 0;
}

.slide-inner {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
}

.solid {
  background: var(--section-background);
}

.slide .section-heading {
  margin-bottom: var(--space-3);
  text-align: center;
}

.section-heading h2 {
  /* Match project titles (.case h2), which use --type-display. */
  font-size: var(--type-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
  line-height: 1.4;
}

.section-enjoy {
  --section-background: var(--aubergine);
  isolation: isolate;
}

.section-contact {
  --section-background: var(--plum);
}

.stars-paused .starfield-star {
  animation-play-state: paused;
}

.pill-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-1) 0;
}

.pill-band .pill-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  width: 100%;
  min-width: 0;
}

.pill-band:nth-child(even) .pill-row {
  width: 88%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 100%;
  padding: clamp(7px, 0.7vw, 9px) clamp(11px, 1.4vw, 17px);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  color: var(--blush);
  background: rgba(250, 220, 213, 0.035);
  font-size: var(--type-pill);
  line-height: 1.7;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

button.pill:hover,
button.pill[aria-expanded="true"] {
  background: rgba(250, 220, 213, 0.12);
  border-color: rgba(250, 220, 213, 0.6);
}

button.pill::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: 10px;
  font-size: 1.25em;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

button.pill[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.pill-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1);
}

.pill-panel.open {
  grid-template-rows: 1fr;
}

.pill-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.subs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  max-height: min(30svh, 240px);
  overflow-y: auto;
  padding: var(--space-2) 4px 4px;
  opacity: 0;
  transition: opacity .35s ease;
}

.pill-panel.open .subs {
  opacity: 1;
}

.pill.sub-pill {
  color: var(--muted);
  border-color: rgba(250, 220, 213, 0.16);
  background: rgba(250, 220, 213, 0.025);
  cursor: default;
}

.pill.peek {
  animation: peek 1.1s ease-in-out var(--peek-delay, 0s) both;
}

@keyframes peek {
  40%, 60% { background: rgba(250, 220, 213, .08); border-color: rgba(250, 220, 213, .5); }
}

.timeline-slide {
  --dw: clamp(84px, 24%, 190px);
  --mid: clamp(32px, 4vw, 48px);
  --tl-h: clamp(60px, 8svh, 76px);
  --yr-gap: clamp(8px, 2.4svh, 24px);
  justify-content: flex-start;
  padding: clamp(48px, 10svh, 104px) var(--gutter) clamp(24px, 5svh, 56px);
  background: transparent;
  text-align: left;
}

.timeline-slide .section-heading {
  flex: none;
  margin-bottom: 0;
  text-align: center;
}

.timeline {
  flex: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: var(--space-3) 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tl {
  position: relative;
  min-height: var(--tl-h);
  display: grid;
  align-items: center;
  text-align: left;
  grid-template-columns: var(--dw) var(--mid) minmax(0, 1fr);
}

.tl::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--dw) + var(--mid) / 2);
  width: 1px;
  background: var(--border);
}

.tl:first-child::before { top: 50%; }
.tl:last-child::before { bottom: 50%; }
.tl.year-start { padding-top: var(--yr-gap); min-height: calc(var(--tl-h) + var(--yr-gap)); }
.tl:first-child.year-start { padding-top: 0; min-height: var(--tl-h); }

.tl-date {
  padding-right: var(--space-1);
  text-align: right;
  color: var(--muted);
  font-size: var(--type-small);
  font-variant-numeric: tabular-nums;
}

.node {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--blush);
  background: var(--aubergine);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.tl:hover .node { transform: scale(1.35); background: var(--blush); }

.tl-body {
  padding-left: var(--space-1);
  min-width: 0;
}

.tl-mobile-date {
  display: none;
}

.tl-h {
  margin: 0;
  font-size: inherit;
  line-height: 1.2;
  font-weight: 700;
}

.tl-desc {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case {
  --left: 75%;
  position: relative;
  display: grid;
  grid-template-columns: var(--left) minmax(0, 1fr);
  overflow: hidden;
  text-align: left;
  height: 100vh;
  height: 100svh;
  contain: layout paint;
  transition: grid-template-columns var(--dur) var(--ease);
}

.case.is-open {
  --left: 25%;
}

.case-left {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--c);
  color: var(--ink);
}

.case-right {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--night);
}

.ov, .cx {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 9vh, 96px) clamp(24px, 5vw, 72px) clamp(24px, 5vh, 56px);
  overflow-y: auto;
}

.ov {
  justify-content: space-between;
  gap: var(--space-4);
  transition: opacity .4s ease .5s;
}

.case.is-open .ov {
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.cx {
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.case.is-open .cx {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease .5s, visibility 0s linear .5s;
}

.ov-top { padding-top: clamp(20px, 4vh, 48px); }
.ov-bottom { max-width: 36rem; }

.case .eyebrow {
  color: inherit;
  margin: 0 0 6px;
}

.case h2 {
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
  font-size: var(--type-display);
  text-wrap: balance;
}

.case h3 {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  margin-bottom: var(--space-2);
}

.case-sub {
  margin: var(--space-1) 0 0;
  font-size: var(--type-subheading);
  line-height: 1.4;
}

.case p {
  margin-block: 0;
}

.lede {
  max-width: 34rem;
  margin-top: var(--space-3) !important;
  line-height: 1.6;
  font-size: var(--type-body);
}

.cx p {
  line-height: 1.6;
  font-size: clamp(.92rem, .3vw + .84rem, 1rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-3) 0 0;
  padding: var(--space-2) 0 0;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

.meta dt {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.meta dd {
  margin: 3px 0 0;
  font-size: var(--type-small);
}

.case .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.case .project-tags li {
  /* Keep the chip outline and leave the text on the case colour: tinting
     the background lowers the ink contrast below 4.5:1 on some palettes. */
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 6px;
  padding: 2px 8px;
  color: inherit;
  cursor: default;
  font-size: var(--type-small);
  line-height: 1.6;
}

.case .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.link-button {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--c);
  text-decoration: none;
  font-size: var(--type-small);
  line-height: 1.6;
  font-weight: 400;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.case-left :focus-visible { outline-color: var(--ink); }

.case-left a.link-button:hover,
.case-left a.link-button:focus-visible {
  background: var(--c);
  color: var(--ink);
  border-color: var(--ink);
}

.stage {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.track {
  display: flex;
  height: 100%;
  transition: transform .9s var(--ease);
}

.shot {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--plum);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  transform: scale(1.12);
  opacity: 0;
  transition: opacity .7s ease, transform 1.1s var(--ease);
}

.shot img.loaded {
  opacity: 1;
}

.case.is-open .shot img {
  transform: none;
}

.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  background: linear-gradient(90deg, var(--night) 0%, rgba(27, 12, 26, .55) 55%, rgba(27, 12, 26, .3) 100%);
}

.case.is-open .veil {
  opacity: 0;
}

.chev {
  position: absolute;
  z-index: 6;
  left: var(--left);
  top: 50%;
  translate: -50% -50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--blush);
  border-radius: 50%;
  background: var(--night);
  color: var(--blush);
  cursor: pointer;
  transition: left var(--dur) var(--ease), color .2s ease;
}

/* 9px + 2px border = 11px box; the arrow's tip sits ~3px off the box
   center, so each state shifts it back by 3px to look optically centered. */
.chev::before,
.gbar .carousel-control::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.chev::before {
  transform: translateX(3px) rotate(-135deg);
  transition: transform var(--dur) var(--ease);
}

.case.is-open .chev::before {
  transform: translateX(-3px) rotate(45deg);
}

.chev:hover {
  color: var(--muted);
}

.chev-label {
  position: absolute;
  z-index: 5;
  left: calc(var(--left) + 36px);
  top: 50%;
  translate: 0 -50%;
  color: var(--blush);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: left var(--dur) var(--ease), opacity .4s ease;
}

.case.is-open .chev-label {
  opacity: 0;
}

.chev.nudge {
  animation: nudge-x 1.4s ease-in-out 1;
}

@keyframes nudge-x {
  0%, 100% { transform: none; }
  30% { transform: translateX(-9px); }
  60% { transform: translateX(-3px); }
}

@keyframes nudge-y {
  0%, 100% { transform: none; }
  30% { transform: translateY(9px); }
  60% { transform: translateY(3px); }
}

.gbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-2);
  background: linear-gradient(to top, rgba(27, 12, 26, .92), rgba(27, 12, 26, .55) 45%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.case.is-open .gbar {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease .6s, visibility 0s linear .6s;
}

.gbar .carousel-control {
  position: relative;
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(250, 220, 213, .32);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.gbar .carousel-control::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.gbar .carousel-control[data-direction="-1"]::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.gbar .carousel-control[data-direction="1"]::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.gbar .carousel-control:hover,
.gbar .carousel-control:focus-visible {
  color: var(--blush);
  border-color: var(--blush);
}

.dots {
  display: flex;
  order: -1;
  flex: 1 1 100%;
  gap: 8px;
  min-width: 0;
}

.dot {
  position: relative;
  flex: 1;
  max-width: 90px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dot::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: rgba(250, 220, 213, .35);
}

.dot i {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 0;
  background: var(--blush);
}

.dot.past i { width: 100%; }
.dot.on i { animation: fill var(--interval) linear forwards paused; }

.case.is-open.is-active:not(.is-paused):not(.is-hold) .dot.on i {
  animation-play-state: running;
}

@keyframes fill {
  to { width: 100%; }
}

.gcount {
  min-width: 3.5em;
  text-align: center;
  color: var(--muted);
  font-size: var(--type-small);
  font-variant-numeric: tabular-nums;
}

.gbar .link-button {
  background: transparent;
  cursor: pointer;
  font-size: var(--type-small);
  color: var(--blush);
  border-color: var(--blush);
}

.gbar .link-button:hover,
.gbar .link-button:focus-visible {
  background: var(--blush);
  color: var(--night);
  border-color: var(--blush);
}

.cx.fresh h3,
.cx.fresh p {
  animation: fade-in .5s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: clamp(12px, 1.2vw, 15px) clamp(13px, 1.4vw, 17px);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: rgba(27, 12, 26, 0.12);
  color: var(--blush);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input {
  min-height: clamp(48px, 4.5vw, 54px);
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: clamp(180px, 18vw, 220px);
  resize: none;
  overflow-y: auto;
  /* Still scrollable, but without a visible scrollbar. */
  scrollbar-width: none;
}

.contact-form textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #C9AAB8;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(250, 220, 213, 0.1);
}

.send-button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: clamp(130px, 13vw, 150px);
  padding: clamp(9px, 1vw, 11px) clamp(18px, 2vw, 22px);
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: transparent;
  color: var(--blush);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.send-button:hover {
  background: var(--blush);
  color: var(--night);
}

.form-note {
  grid-column: 1 / -1;
  min-height: 1em;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
}

footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.footer-top, .footer-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--gutter);
}

.footer-bottom {
  background: var(--aubergine);
}

.footer-top h2 {
  max-width: 18ch;
  font-size: var(--type-subheading);
  text-wrap: balance;
}

.footer-bottom h2 {
  /* Match the main section headings. */
  font-size: var(--type-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7px, 0.7vw, 9px) clamp(12px, 1.4vw, 17px);
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: transparent;
  color: var(--blush);
  font-size: var(--type-pill);
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--blush);
  color: var(--night);
  border-color: var(--blush);
}

footer .star {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--type-icon);
  line-height: 1;
}

.copyright {
  margin: 0;
  padding-top: var(--space-3);
  color: var(--muted);
  font-size: var(--type-small);
  letter-spacing: 0.03em;
}

.dots-nav {
  position: fixed;
  right: clamp(4px, 1.2vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.dots-nav a {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.dots-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  border: 1px solid var(--blush);
  box-shadow: 0 0 0 1px rgba(27, 12, 26, .45);
  transition: background .3s ease, transform .3s ease;
}

.dots-nav a:hover::before { transform: scale(1.35); }
.dots-nav a.on::before { background: var(--blush); }

:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  :root {
    --gutter: clamp(24px, 5vw, 40px);
  }

  html {
    /* Sections can be taller than one screen here; mandatory snapping
       traps the scroll instead of letting people read the content. */
    scroll-snap-type: y proximity;
  }

  /* Stacked layout: the copy sizes itself, the photo strip gets a fixed
     height. No nested scrollers and no clipped project text. */
  .case {
    --stage-h: clamp(140px, 25svh, 280px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(min-content, 1fr) var(--stage-h);
    height: auto;
    min-height: 100svh;
  }

  .case.is-open {
    --stage-h: clamp(340px, 56svh, 560px);
  }

  .ov,
  .cx {
    position: static;
    inset: auto;
    overflow: visible;
    padding: var(--space-4) var(--gutter) var(--space-2);
    justify-content: flex-start;
    gap: var(--space-3);
  }

  .case-left {
    display: flex;
    flex-direction: column;
  }

  .ov {
    display: flex;
    flex: 1;
    justify-content: space-between;
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  /* .ov already supplies the top spacing on this layout. */
  .ov-top {
    padding-top: 0;
  }

  .cx {
    display: none;
  }

  .case.is-open .ov {
    display: none;
  }

  .case.is-open .cx {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .chev,
  .case.is-open .chev {
    left: 50%;
    top: calc(100% - var(--stage-h));
    width: 46px;
    height: 46px;
  }

  .chev::before {
    transform: translateY(3px) rotate(-45deg);
  }

  .case.is-open .chev::before {
    transform: translateY(-3px) rotate(135deg);
  }

  .chev-label,
  .case.is-open .chev-label {
    left: 50%;
    top: calc(100% - var(--stage-h) + 34px);
    translate: -50% 0;
  }

  .chev.nudge {
    animation: nudge-y 1.4s ease-in-out 1;
  }

  /* The seam is horizontal now, so blend the photo in from the top. */
  .veil {
    background: linear-gradient(to bottom, var(--night) 0%, rgba(27, 12, 26, .45) 28%, transparent 60%);
  }

  .gbar {
    padding: var(--space-3) var(--space-2) var(--space-2);
  }

  /* Comfortable touch target; the 2px progress line is unchanged. */
  .dot {
    height: 24px;
  }

  .timeline-slide { --dw: 56px; --mid: 36px; }
  .timeline { width: fit-content; max-width: 100%; }
  .tl-body { padding-left: var(--space-2); }
}

@media (max-width: 700px) {
  .dots-nav { right: 0; }
}

@media (max-width: 560px) {
  :root {
    --gutter: 30px;
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form input,
  .contact-form textarea,
  .send-button,
  .form-note {
    grid-column: 1;
  }

  .pill-band:nth-child(even) .pill-row {
    width: 94%;
  }

  .timeline-slide { --mid: 36px; padding-inline: max(var(--gutter), 28px); }
  .timeline { width: 100%; max-width: 420px; }
  .tl { grid-template-columns: var(--mid) minmax(0,1fr); min-height: 82px; }
  .tl::before { left: calc(var(--mid) / 2); }
  .tl-date { display: none; }
  .tl-desc { -webkit-line-clamp: 2; line-clamp: 2; }
  .tl-body { grid-column: 2; padding-left: var(--space-2); }
  .tl-mobile-date {
    display: inline;
    color: var(--muted);
    font-family: "DM Sans", sans-serif;
    font-size: var(--type-small);
    font-weight: 400;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    margin-right: 8px;
    white-space: nowrap;
  }
  .tl-mobile-date::after {
    content: "•";
    margin-left: 8px;
    color: var(--muted);
  }
}

@media (max-width: 380px) {
  .pill-band:nth-child(even) .pill-row {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .starfield-star {
    animation: none;
    opacity: 0.4;
  }

  /* If someone opts into the slideshow, keep it at a readable pace. */
  .dot.on i {
    animation-duration: var(--interval) !important;
  }

  .chev.nudge { animation: none; }
  .intro .site-header, .intro #intro-title, .intro .subtitle, .intro-copy { opacity: 1; transform: none; animation: none; }
}
