/* ==========================================================================
   Editorial portfolio — static stylesheet (hand-authored, no build step).
   Aesthetic: Swiss modernist, warm-paper monochrome with a single red accent.
   Hanken Grotesk everywhere (heavy for oversized display), JetBrains Mono for
   microtype. Mirrors the "Editorial Studio" design; edit this file to restyle.
   ========================================================================== */

:root {
  /* Warm paper base, near-black ink, one accent (#FF4E4E). */
  --background: oklch(0.962 0.008 92);
  --foreground: oklch(0.13 0 0);
  --secondary: oklch(0.925 0.013 91);
  --muted-foreground: oklch(0.24 0 0);
  --accent: oklch(0.668 0.215 19.9);
  --accent-foreground: oklch(0.962 0.008 92);
  --border: oklch(0.18 0 0);

  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --maxw: 1400px;
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}
* {
  /* Red accent dot cursor. */
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><circle cx="7" cy="7" r="5" fill="%23FF4E4E"/></svg>') 7 7, auto;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* ---- type utilities ---- */
.display-type {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-feature-settings: "kern" 1;
}
.label-type {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  line-height: 1.1;
}
.meta-type {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}
.mono-type {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.66rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* ---- layout primitives ---- */
.app {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }
}
.rule {
  border-bottom: 1px solid var(--border);
}
.accent {
  color: var(--accent);
}
.accent-square {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
}
.accent-dot {
  color: var(--accent);
}
.nowrap {
  white-space: nowrap;
}

/* ---- links ---- */
.link-underline {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.link-underline:hover {
  color: var(--accent);
}
.link-muted {
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  transition: color 0.2s ease;
}
.link-muted:hover {
  color: var(--accent);
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--foreground);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}
.site-header > .container {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .site-header > .container {
    height: 4rem;
  }
}
.logo {
  display: flex;
  align-items: baseline;
}
.logo-text {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
@media (min-width: 768px) {
  .logo-text {
    font-size: 0.8rem;
  }
}
.logo .accent-square {
  margin-left: 0.35rem;
}
.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}
.main-nav a {
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent);
}
.nav-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav .container {
  display: flex;
  flex-direction: column;
  padding-block: 0.5rem;
}
.mobile-nav a {
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a.is-active {
  color: var(--accent);
}

/* ---- hero (home) ---- */
.hero {
  border-bottom: 1px solid var(--foreground);
  padding-block: 1.5rem 2rem;
}
@media (min-width: 768px) {
  .hero {
    padding-block: 2rem 2.5rem;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 19rem;
    align-items: end;
    gap: 3rem;
  }
}
.hero-eyebrow {
  color: var(--accent);
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  font-size: 14vw;
}
@media (min-width: 768px) {
  .hero-name {
    font-size: 9vw;
  }
}
@media (min-width: 1024px) {
  .hero-name {
    font-size: 6.4rem;
  }
}
.hero-tagline {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}
@media (min-width: 768px) {
  .hero-tagline {
    font-size: 1.25rem;
  }
}
.hero-links {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.portrait-slot {
  max-width: 24rem;
}
@media (min-width: 1024px) {
  .portrait-slot {
    max-width: none;
  }
}

/* ---- generic section + section heading ---- */
.section {
  padding-block: 2.5rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 3.5rem;
  }
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-size: 13vw;
}
@media (min-width: 640px) {
  .section-heading {
    font-size: 3.75rem;
  }
}
@media (min-width: 768px) {
  .section-heading {
    font-size: 4.5rem;
  }
}
@media (min-width: 1024px) {
  .section-heading {
    font-size: 5.5rem;
  }
}
.section-body {
  margin-top: 2rem;
}
.viewall {
  display: flex;
  justify-content: flex-end;
}

/* ---- about preview (home) ---- */
.about-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.about-text {
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}
@media (min-width: 768px) {
  .about-text {
    font-size: 1.25rem;
  }
}

/* ---- index rows (static lists + card lists) ---- */
.index-list {
  border-bottom: 1px solid var(--foreground);
}
/* Two-column layout for text-only sections (no card / no detail page):
   CV, Research's static lists, Capacity Building. Cuts scroll length
   roughly in half on wider screens; stays single-column on mobile. */
@media (min-width: 768px) {
  .index-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    border-bottom: 0;
  }
  .index-list.two-col .index-row {
    border-bottom: 0;
  }
  /* An entry with an image still gets the full-width plate treatment,
     spanning both columns instead of being squeezed into one. */
  .index-list.two-col .index-row.has-plate {
    grid-column: 1 / -1;
  }
}
.index-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2.5rem;
  border-top: 1px solid var(--foreground);
  --row-pad: 2rem;
  padding-block: var(--row-pad);
}
@media (min-width: 768px) {
  .index-row {
    --row-pad: 2.5rem;
  }
}
.index-row.has-plate {
  align-items: start;
}
@media (min-width: 768px) {
  .index-row.has-plate {
    grid-template-columns: 1fr 30rem;
    align-items: stretch;
  }
}
@media (min-width: 1024px) {
  .index-row.has-plate {
    grid-template-columns: 1fr 36rem;
  }
}
.index-row-main {
  min-width: 0;
}
.index-row .period {
  color: var(--accent);
}
.index-row-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
  color: color-mix(in oklab, var(--foreground) 55%, var(--background));
  transition: color 0.4s ease;
}
.index-row-title.size-md {
  font-size: 1.5rem;
  line-height: 0.92;
}
@media (min-width: 768px) {
  .index-row-title.size-md {
    font-size: 1.875rem;
  }
}
@media (min-width: 1024px) {
  .index-row-title.size-md {
    font-size: 2.4rem;
  }
}
.index-row-title.size-lg {
  font-size: 10vw;
  line-height: 0.86;
}
@media (min-width: 640px) {
  .index-row-title.size-lg {
    font-size: 2.25rem;
  }
}
@media (min-width: 768px) {
  .index-row-title.size-lg {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .index-row-title.size-lg {
    font-size: 3.6rem;
  }
}
.index-row[data-active="true"] .index-row-title,
.index-row:hover .index-row-title,
.hcard:hover .index-row-title {
  color: var(--foreground);
}
.index-row .meta {
  margin-top: 0.75rem;
  color: var(--foreground);
}
.index-row .desc {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}
.index-row-foot {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}
/* Full colour, full opacity always — the plate image should read
   immediately, not fade in on hover. On mobile it sits inline below the
   text at its normal aspect ratio; from 768px up it bleeds past the row's
   own top/bottom padding so it almost touches the dividers above and
   below (see --row-pad, set on .index-row above). */
.index-row-plate {
  opacity: 1;
}
@media (min-width: 768px) {
  .index-row-plate {
    margin-block: calc(-1 * var(--row-pad));
  }
}
.index-row-plate .frame img {
  transition: transform 0.7s ease;
}
.index-row[data-active="true"] .index-row-plate .frame img,
.index-row:hover .index-row-plate .frame img,
.hcard:hover .index-row-plate .frame img {
  transform: scale(1.035);
}
.hcard {
  display: block;
}
.read-more {
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hcard:hover .read-more {
  opacity: 1;
}

/* ---- tags ---- */
.taglist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.taglist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  color: var(--foreground);
}
.tag-sep {
  color: var(--accent);
}

/* ---- image frames + placeholders ---- */
.frame {
  border: 1px solid var(--foreground);
  overflow: hidden;
}
.frame img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.frame.grayscale img {
  filter: grayscale(1);
}

/* ---- auto-changing hero gallery (detail pages) ---- */
.gallery-frame {
  position: relative;
}
.gallery-frame .slide {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.gallery-frame .slide.is-active {
  opacity: 1;
  z-index: 1;
}
.gallery-dots {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
.gallery-dots .dot {
  width: 0.4rem;
  height: 0.4rem;
  background: color-mix(in oklab, var(--background) 55%, transparent);
  border: 1px solid var(--background);
  transition: background 0.3s ease;
}
.gallery-dots .dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}
.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--foreground);
  background-color: var(--secondary);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    color-mix(in oklab, var(--foreground) 7%, transparent) 6px,
    color-mix(in oklab, var(--foreground) 7%, transparent) 7px
  );
  color: color-mix(in oklab, var(--foreground) 40%, transparent);
}
.placeholder .ph-tl {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
.placeholder .ph-br {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.6rem;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
}
.ratio-3x4 {
  aspect-ratio: 3 / 4;
  width: 100%;
}
.ratio-4x3 {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.ratio-4x5 {
  aspect-ratio: 4 / 5;
  width: 100%;
}
.ratio-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.ratio-16x10 {
  aspect-ratio: 16 / 10;
  width: 100%;
}
/* Index-row / card plate: fills whatever height .index-row-plate gives it
   (see the bleed rule above) so the image reads as a wide, attention-
   grabbing plate rather than a small 4:3 thumbnail. Same height as before
   at each breakpoint, but the wider column makes it read as a wide, cropped
   plate instead of a small 4:3 thumbnail. Stays 4:3 on mobile, where it's
   full-row-width, inline below the text. */
.ratio-plate {
  aspect-ratio: 4 / 3;
  width: 100%;
}
@media (min-width: 768px) {
  .ratio-plate {
    aspect-ratio: auto;
@media (min-width: 768px) {
  .ratio-plate {
    aspect-ratio: auto;
    height: 100%;
    width: 100%;
  }
}
@media (min-width: 1024px) {
  .ratio-plate {
    height: 15.75rem;
  }
}
  }
}

/* ---- page header ---- */
.page-header {
  border-bottom: 1px solid var(--foreground);
  padding-block: 2rem;
}
@media (min-width: 768px) {
  .page-header {
    padding-block: 3rem 2.5rem;
  }
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.5rem 3rem;
}
@media (min-width: 1024px) {
  .page-header-grid {
    grid-template-columns: 1fr auto;
  }
}
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.03em;
  font-size: 15vw;
}
@media (min-width: 640px) {
  .page-title {
    font-size: 11vw;
  }
}
@media (min-width: 768px) {
  .page-title {
    font-size: 8.5vw;
  }
}
@media (min-width: 1024px) {
  .page-title {
    font-size: 7rem;
  }
}
.page-intro {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}
@media (min-width: 1024px) {
  .page-intro {
    text-align: right;
    padding-bottom: 0.75rem;
    font-size: 1.125rem;
  }
}

/* ---- talks list (home) ---- */
.talks-list {
  margin-top: 1.5rem;
}
.talk-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
}
.talks-list .talk-row:first-child {
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .talk-row {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}
.talk-cat {
  color: var(--muted-foreground);
}
.talk-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
@media (min-width: 768px) {
  .talk-title {
    font-size: 1.125rem;
  }
}
.talk-row:hover .talk-title {
  color: var(--accent);
}

/* ---- contact ---- */
.contact-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: auto 1fr;
    gap: 4rem;
  }
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: lowercase;
  line-height: 0.86;
  letter-spacing: -0.03em;
  font-size: 12vw;
}
@media (min-width: 768px) {
  .contact-title {
    font-size: 4.5rem;
  }
}
.contact-lead {
  margin-bottom: 2rem;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .contact-lead {
    font-size: 1.125rem;
  }
}
.form {
  max-width: 42rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-block {
  margin-top: 1.5rem;
}
.form-field label {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding-block: 0.75rem;
  font-size: 1.125rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field textarea {
  resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-foreground);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.btn {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--foreground);
  color: var(--background);
  border: 0;
  padding: 1rem 2rem;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background: var(--accent);
}
.form-note {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

/* ---- detail page ---- */
.detail {
  padding-bottom: 5rem;
}
.detail-header {
  border-bottom: 1px solid var(--foreground);
  padding-block: 2rem;
}
@media (min-width: 768px) {
  .detail-header {
    padding-block: 3rem 2rem;
  }
}
.detail-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  transition: color 0.2s ease;
}
.back-link:hover {
  color: var(--foreground);
}
.detail-label {
  color: var(--foreground);
}
.detail-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.03em;
  margin-top: 1.5rem;
  font-size: 13vw;
}
@media (min-width: 768px) {
  .detail-title {
    font-size: 6rem;
  }
}
.detail-desc {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 75%, transparent);
}
.detail-hero {
  margin-top: 2rem;
}
.detail-body-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .detail-body-grid {
    grid-template-columns: 1fr 18rem;
    gap: 4rem;
  }
}
.detail-body {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}
@media (min-width: 768px) {
  .detail-body {
    font-size: 1.125rem;
  }
}
.detail-body p {
  margin-bottom: 1.25rem;
}
.detail-body .taglist {
  padding-top: 0.5rem;
}
.detail-link {
  display: inline-block;
  margin-top: 1.5rem;
}
.facts hr {
  border: 0;
  border-top: 1px solid var(--foreground);
}
.facts dl {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fact dt {
  color: var(--accent);
}
.fact dd {
  margin-top: 0.25rem;
  font-weight: 600;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--foreground);
  color: var(--background);
}
.site-footer .container {
  padding-block: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}
.footer-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
}
.footer-email {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  display: block;
  margin-top: 1rem;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}
@media (min-width: 768px) {
  .footer-email {
    font-size: 2.25rem;
  }
}
.footer-email:hover {
  color: var(--accent);
}
.footer-location {
  margin-top: 1rem;
  color: color-mix(in oklab, var(--background) 70%, transparent);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  color: color-mix(in oklab, var(--background) 80%, transparent);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid color-mix(in oklab, var(--background) 15%, transparent);
  padding-top: 2rem;
  color: color-mix(in oklab, var(--background) 60%, transparent);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-wordmark {
  overflow: hidden;
  border-top: 1px solid color-mix(in oklab, var(--background) 15%, transparent);
}
.footer-wordmark p {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.03em;
  white-space: nowrap;
  padding: 1rem 0.5rem;
  font-size: 13vw;
  color: color-mix(in oklab, var(--background) 15%, transparent);
}

/* ---- 404 ---- */
.notfound {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 0.9;
}
.notfound p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

/* ---- scroll reveal (progressive enhancement; no-JS shows everything) ---- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal-ready .reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal {
    transform: none;
    transition: opacity 300ms linear;
  }
}
