@font-face {
  font-family: "Nimbus Sans";
  src: url("./assets/NimbusSans-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Sans";
  src: url("./assets/NimbusSans-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Sans Narrow";
  src: url("./assets/NimbusSansNarrow-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Sans Narrow";
  src: url("./assets/NimbusSansNarrow-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #050607;
  --ink-soft: #0a0b0c;
  --paper: #f1f0ed;
  --muted: #a7a8a7;
  --accent: #e1ff73;
  --hairline: rgba(255, 255, 255, 0.09);
  --rail-width: clamp(7.4rem, 8.55vw, 9.6rem);
  --hero-height: 60.4svh;
  --worlds-height: 39.6svh;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  background: var(--ink);
}

/* Profile sections extend the homepage without altering its opening composition. */
html.home-document { height:auto; overflow-x:clip; overflow-y:auto; }
body.home-page { display:block; height:auto; place-items:initial; }
.home-page .site-shell { width:100%; height:auto; grid-template-rows:60.4svh 39.6svh auto auto auto auto; overflow:clip; }
.profile-section { display:grid; grid-template-columns:minmax(0, .85fr) minmax(0, 1.15fr); gap:clamp(2rem,6vw,7rem); padding:clamp(4rem,7vw,8rem) clamp(1.5rem,8vw,10rem); border-top:1px solid var(--hairline); scroll-margin-top:2rem; }
.profile-heading h2 { margin:1rem 0 1.8rem; font-family:Manrope, sans-serif; font-size:clamp(2rem,3.4vw,4rem); font-weight:600; line-height:1.15; letter-spacing:-.04em; }
.profile-section .eyebrow { color:var(--muted); font-size:.8rem; letter-spacing:.14em; }
.profile-content { max-width:46rem; }
.profile-content p { font-size:1rem; line-height:1.8; color:var(--muted); margin:0 0 1.4rem; }
.profile-content .profile-lead { color:var(--paper); font-size:clamp(1.15rem,1.5vw,1.6rem); line-height:1.55; }
.profile-links { display:flex; flex-wrap:wrap; gap:1rem 1.8rem; margin-top:1.5rem; }
.profile-links a,.profile-links button,.contact-email,.profile-footer a { font:inherit; font-size:.9rem; text-decoration:none; background:none; border:0; border-bottom:1px solid #ffffff40; padding:.4rem 0; cursor:pointer; color:var(--paper); }
.profile-links a:hover,.profile-links button:hover,.profile-footer a:hover { border-color:var(--accent); }
.resume-card { padding:1.8rem 0; border-top:1px solid var(--hairline); }
.resume-card:first-child { padding-top:0; border:0; }
.resume-card h3 { font:600 1.3rem Manrope,sans-serif; margin:0 0 .7rem; }
.resume-card p { margin-bottom:0; }
.contact-email { display:inline-block; overflow-wrap:anywhere; }
.contact-form label { display:flex; flex-direction:column; gap:.7rem; font-size:.875rem; }
.contact-fields { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; margin-bottom:1.2rem; }
.contact-form input,.contact-form textarea { width:100%; min-width:0; padding:1rem; background:#0b0d0f; border:1px solid #ffffff25; border-radius:.5rem; font:inherit; font-size:1rem; color:var(--paper); }
.contact-form textarea { resize:vertical; }
.contact-form .contact-honey { display:none; }
.contact-form .contact-note { font-size:.8rem; margin:1rem 0; }
.profile-action { padding:.9rem 1.5rem; border:1px solid #ffffff40; border-radius:.5rem; background:#15191c; color:var(--paper); cursor:pointer; min-height:44px; }
.profile-action:hover { background:#242a2e; }
.profile-footer { display:flex; justify-content:space-between; gap:1rem; padding:2rem clamp(1.5rem,8vw,10rem); border-top:1px solid var(--hairline); color:var(--muted); font-size:.8rem; }
.resume-viewer { width:min(76rem,94vw); height:90dvh; max-height:90dvh; padding:0; background:#0b0d0f; color:var(--paper); border:1px solid #ffffff30; border-radius:1rem; }
.resume-viewer::backdrop { background:#000b; backdrop-filter:blur(8px); }
.resume-viewer header { display:flex; align-items:center; gap:1.2rem; padding:1rem 1.4rem; height:5rem; }
.resume-viewer h2 { margin:0; margin-right:auto; font:600 1rem Manrope,sans-serif; }
.resume-viewer header a { font-size:.875rem; }
.resume-viewer header button { border:0; background:none; font-size:1.8rem; cursor:pointer; width:44px; height:44px; }
.resume-viewer object { display:block; width:100%; height:calc(100% - 5rem); }
@media(max-width:900px) { .profile-section { grid-template-columns:1fr; gap:1.8rem; } .profile-heading h2 { margin-bottom:0; } .profile-footer { flex-wrap:wrap; } .home-page .scroll-cue { display:flex; bottom:1rem; right:1rem; } }
@media(max-width:500px) { .contact-fields { grid-template-columns:1fr; } .resume-viewer header { padding:.8rem; gap:.6rem; } }
@media(prefers-reduced-motion:reduce) { html.home-document { scroll-behavior:auto; } }

.profile-section { background:radial-gradient(ellipse at 0 0,rgba(225,255,115,.025),transparent 55%); }
.profile-section .eyebrow { color:var(--accent); font-weight:600; }
.profile-heading h2 { font-weight:800; font-size:clamp(2.6rem,4.1vw,5rem); line-height:1.08; }
.profile-heading h2 span { color:var(--accent); }
.profile-signature { max-width:25rem; margin:2rem 0; color:var(--muted); font-size:.8rem; line-height:1.7; letter-spacing:.1em; }
.profile-experience { display:flex; align-items:center; gap:1rem; max-width:20rem; font-size:.875rem; line-height:1.5; color:var(--muted); }
.profile-experience strong { font:700 2.8rem Manrope,sans-serif; color:var(--paper); letter-spacing:-.05em; }
#about .profile-content { padding-top:.3rem; }
.profile-content .profile-lead { font:500 clamp(1.5rem,2vw,2.3rem)/1.4 Manrope,sans-serif; letter-spacing:-.025em; margin-bottom:2rem; }
.profile-content .profile-lead strong { color:var(--accent); font-weight:600; }
.profile-content p strong { color:var(--paper); font-weight:500; }
.profile-content .profile-credits { padding-top:1.5rem; border-top:1px solid var(--hairline); font-size:.8rem; color:var(--accent); }
.profile-credits span { display:block; margin-top:.75rem; font-size:.9rem; line-height:1.7; color:var(--muted); }
.profile-method { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #ffffff20; border-radius:1rem; overflow:hidden; background:#0c0e0e; }
.profile-method article { padding:clamp(1.5rem,2.5vw,3rem); }
.profile-method article + article { border-left:1px solid #ffffff20; }
.profile-method article > span { color:var(--accent); font-size:.75rem; letter-spacing:.07em; }
.profile-method h3 { font:600 clamp(1.2rem,1.6vw,1.8rem)/1.3 Manrope,sans-serif; letter-spacing:-.03em; margin:1.5rem 0 1rem; }
.profile-method p { margin:0; font-size:1rem; color:var(--muted); line-height:1.75; }
.resume-card { border:1px solid #ffffff20; border-radius:1rem; padding:1.8rem; background:#0c0e0e; }
.resume-card:first-child { padding:1.8rem; border:1px solid #e1ff7350; }
.resume-card + .resume-card { margin-top:1rem; }
.resume-card h3 { font-size:1.5rem; }
.resume-card:first-child h3 { color:var(--accent); }
.profile-action { background:var(--accent); border-color:var(--accent); color:#10120a; font-weight:600; }
.profile-action:hover { background:#edffa6; }
.contact-intro { color:var(--muted); font-size:1.1rem; line-height:1.6; }
.contact-email { margin-top:.5rem; color:var(--accent); border-color:#e1ff7360; font-size:1rem; }
.contact-form input:focus,.contact-form textarea:focus { border-color:var(--accent); }
@media(max-width:900px) { .profile-method { grid-template-columns:1fr; } .profile-method article + article { border-left:0; border-top:1px solid #ffffff20; } .profile-heading h2 { font-size:clamp(2.5rem,7vw,4rem); } }

body {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
  min-width: 20rem;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.site-shell {
  display: grid;
  grid-template-rows: 60.4% 39.6%;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  height: auto;
  min-height: 0;
  border-bottom: 1px solid var(--hairline);
}

.rail {
  position: relative;
  z-index: 5;
  min-width: 0;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.025), transparent 34%),
    #050607;
  border-right: 1px solid var(--hairline);
}

.brand-block {
  height: 7.95rem;
  padding: 1.85rem 1.9rem 0;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 2.55rem;
  height: 2.15rem;
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand span {
  margin-top: 1rem;
  white-space: nowrap;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2.1rem 1.9rem 0;
}

.rail-link {
  position: relative;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  align-items: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8d8e8e;
  text-align: left;
  text-decoration: none;
  cursor: default;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.rail-link::before {
  content: "";
  position: absolute;
  left: -0.72rem;
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.rail-link.is-active {
  color: var(--paper);
  cursor: pointer;
}

.rail-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -0.02rem;
  left: 0;
  width: 4.45rem;
  height: 1px;
  background: var(--accent);
}

a.rail-link { cursor:pointer; transition:color 180ms ease, background 180ms ease; border-radius:.35rem; }
a.rail-link:hover,a.rail-link:focus-visible { color:var(--accent); background:rgba(225,255,115,.08); }
a.rail-link:hover .rail-number,a.rail-link:focus-visible .rail-number { color:var(--accent); }
.resume-actions { display:flex; align-items:center; flex-wrap:wrap; gap:1rem 1.5rem; margin-top:2rem; }
.resume-download { display:inline-flex; align-items:center; justify-content:center; gap:1.5rem; min-height:60px; padding:1.1rem 1.7rem; border-radius:.65rem; background:var(--accent); color:#111508; text-decoration:none; font:700 1.1rem Manrope,sans-serif; transition:background 180ms ease; }
.resume-download:hover { background:#edffa6; }
.resume-download span { font:600 .75rem Inter,sans-serif; border-left:1px solid #11150840; padding-left:1rem; }
.resume-preview { min-height:44px; border:0; border-bottom:1px solid #ffffff50; padding:.5rem 0; background:none; color:var(--paper); cursor:pointer; font-size:1rem; }
.resume-preview:hover { color:var(--accent); border-color:var(--accent); }
@media(max-width:500px) { .resume-download { width:100%; } }

.rail-number {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hero-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0a0b0c;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-stage::before {
  background:
    linear-gradient(90deg, rgba(2, 4, 6, 0.76) 0%, rgba(2, 4, 6, 0.57) 14%, rgba(2, 4, 6, 0.27) 29%, rgba(2, 4, 6, 0.05) 43%, transparent 52%),
    linear-gradient(0deg, rgba(3, 4, 5, 0.35) 0%, transparent 30%);
}

.hero-stage::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent 20%, transparent 76%, rgba(0, 0, 0, 0.13));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.96) brightness(0.91) contrast(1.03);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 27.5%;
  left: clamp(3.25rem, 4vw, 4.75rem);
  width: min(25rem, 38vw);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38);
}

.eyebrow,
.hero-statement {
  margin: 0;
  font-size: clamp(0.88rem, 0.88vw, 1rem);
  font-weight: 400;
  line-height: 1.27;
  letter-spacing: 0.105em;
}

.hero-copy h1 {
  margin: 1rem 0 0.9rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(4.5rem, 5vw, 5.55rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.055em;
}

.hero-statement {
  font-size: clamp(0.82rem, 0.84vw, 0.96rem);
  line-height: 1.32;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.75rem;
  padding: .42rem .48rem .42rem 1.2rem;
  border: 1px solid rgba(241, 240, 237, .32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 12, 14, .68), rgba(10, 12, 14, .28));
  box-shadow: 0 .7rem 2rem rgba(0, 0, 0, .16);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.circle-arrow,
.carousel-next {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.circle-arrow {
  width: 2.85rem;
  height: 2.85rem;
  border-color: rgba(225, 255, 115, .72);
  background: rgba(255, 255, 255, .035);
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.explore-link:hover .circle-arrow,
.explore-link:focus-visible .circle-arrow {
  transform: translateX(0.16rem);
  border-color: var(--accent);
  background: rgba(225, 255, 115, .1);
}

.explore-link:hover,
.explore-link:focus-visible {
  border-color: rgba(241, 240, 237, .58);
  background: linear-gradient(135deg, rgba(15, 17, 19, .78), rgba(15, 17, 19, .4));
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  color: rgba(255, 255, 255, 0.77);
  text-decoration: none;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
}

.mouse {
  position: relative;
  display: block;
  width: 0.82rem;
  height: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.73);
  border-radius: 0.5rem;
}

.mouse i {
  position: absolute;
  top: 0.27rem;
  left: 50%;
  width: 1px;
  height: 0.25rem;
  background: currentColor;
  transform: translateX(-50%);
}

.worlds {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 1.18rem 2rem 2.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 18%),
    #050607;
}

.worlds h2 {
  margin: 0 0 0.72rem;
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.worlds-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.72rem;
}

.worlds-heading h2 { margin: 0; }

.worlds-all {
  color: rgba(241, 240, 237, 0.7);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  transition: color 160ms ease;
}

.worlds-all span { color: var(--accent); font-size: 0.92rem; }
.worlds-all:hover { color: var(--paper); }

.carousel-frame {
  position: relative;
  height: calc(100% - 2.25rem);
}

.world-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(8.3rem, 8.75vw, 10.2rem);
  gap: 0.62rem;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: inline mandatory;
}

.world-track::-webkit-scrollbar {
  display: none;
}

.world-card {
  position: relative;
  height: 100%;
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  background: #121416;
  scroll-snap-align: start;
  isolation: isolate;
  padding: 0;
  color: inherit;
  text-align: left;
}

.world-card::before,
.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.world-card::before {
  background: linear-gradient(180deg, rgba(3, 5, 8, 0.28) 0%, rgba(3, 5, 8, 0.1) 25%, transparent 46%);
  opacity: 1;
  transition: opacity 260ms ease;
}

.world-card::after {
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: inherit;
  transition: opacity 180ms ease;
}

.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50%) center;
  filter: none;
  transform: scale(1.01);
  transition: filter 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.world-card:hover img,
.world-card:focus-within img {
  filter: none;
  transform: scale(1.025);
}

.world-card:hover::after,
.world-card:focus-within::after {
  opacity: 1;
}

.card-number,
.world-card h3 {
  position: absolute;
  z-index: 2;
  left: 0.78rem;
  right: 0.66rem;
  margin: 0;
}

.card-number {
  top: 0.78rem;
  font-size: 0.73rem;
  line-height: 1;
  letter-spacing: 0.11em;
  text-shadow: 0 1px 0.35rem rgba(0, 0, 0, 0.68);
}

.world-card h3 {
  top: 2.45rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.03rem, 1.13vw, 1.28rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 1px 0.4rem rgba(0, 0, 0, 0.72);
}

.carousel-next {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: -1.15rem;
  width: 2.58rem;
  height: 2.58rem;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(5, 6, 7, 0.9);
  color: var(--paper);
  cursor: pointer;
  font-size: 1rem;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease;
}

.carousel-next:hover,
.carousel-next:focus-visible {
  border-color: var(--paper);
  background: #111315;
}

@media (min-width: 901px) {
  .carousel-frame {
    overflow: hidden;
  }

  .world-track {
    display: flex;
    grid-auto-flow: unset;
    grid-template-columns: none;
    grid-auto-columns: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: none;
  }

  .world-card {
    flex: 0 0 calc((100% - 5.58rem) / 10);
    min-width: 0;
    cursor: pointer;
    transition:
      flex-basis 340ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 220ms ease;
  }

  .world-card.is-expanded {
    z-index: 2;
    flex-basis: calc((100% - 5.58rem) / 8);
    border-color: rgba(255, 255, 255, 0.52);
  }

  .world-card.is-expanded::before {
    opacity: 0.58;
  }

  .world-card.is-expanded::after {
    opacity: 1;
  }

  .world-card.is-expanded img {
    filter: none;
    transform: scale(1.02);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.22rem;
}

@media (max-height: 780px) and (min-width: 901px) {
  :root {
    --hero-height: 62svh;
    --worlds-height: 38svh;
  }

  .worlds { padding-bottom: 1.35rem; }

  .hero-copy {
    top: 22%;
  }

  .hero-copy h1 { font-size: clamp(3.8rem, 4.7vw, 4.8rem); }

  .circle-arrow { width: 2.65rem; height: 2.65rem; }
}

@media (max-width: 900px) {
  :root {
    --hero-height: auto;
    --worlds-height: auto;
  }

  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    display: block;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-shell {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
    aspect-ratio: auto;
    overflow: visible;
  }

  .hero {
    display: block;
    height: auto;
    min-height: 0;
    border-bottom: 0;
  }

  .rail {
    position: absolute;
    inset: 0 0 auto;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.6rem;
    padding: 0 1.15rem;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    background: linear-gradient(180deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.28));
  }

  .brand-block {
    height: auto;
    padding: 0;
    border: 0;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 1.8rem;
  }

  .brand span {
    margin: 0;
    font-size: 0.62rem;
  }

  .rail-nav {
    display: none;
  }

  .hero-stage {
    height: 72svh;
    min-height: 34rem;
  }

  .hero-image {
    object-fit: cover;
    object-position: 50% center;
  }

  .hero-stage::before {
    background:
      linear-gradient(180deg, rgba(3, 4, 5, 0.12) 0%, rgba(3, 4, 5, 0.08) 35%, rgba(3, 4, 5, 0.86) 100%),
      linear-gradient(90deg, rgba(3, 4, 5, 0.45), transparent 72%);
  }

  .hero-copy {
    top: auto;
    bottom: 2.3rem;
    left: 1.25rem;
    width: min(22rem, calc(100vw - 2.5rem));
  }

  .hero-copy h1 {
    margin-top: 0.8rem;
    font-size: clamp(4rem, 19vw, 6.2rem);
  }

  .scroll-cue {
    display: none;
  }

  .worlds {
    height: auto;
    min-height: 0;
    padding: 1.3rem 1.25rem 2.1rem;
  }

  .carousel-frame {
    height: 20rem;
  }

  .world-track {
    grid-auto-columns: minmax(9rem, 43vw);
  }

  .carousel-next {
    right: -0.25rem;
  }
}

@media (max-width: 520px) {
  .hero-stage {
    height: 78svh;
    min-height: 37rem;
  }

  .hero-image {
    object-position: 50% center;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  .hero-statement {
    font-size: 0.76rem;
  }

  .explore-link {
    margin-top: 1.25rem;
  }

  .circle-arrow {
    width: 3.3rem;
    height: 3.3rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Complete archive gallery */
html.gallery-document {
  height: auto;
  overflow: auto;
  scrollbar-gutter: stable;
}

body.gallery-page {
  display: block;
  width: 100vw;
  height: auto;
  min-width: 0;
  overflow: auto;
  place-items: initial;
  background: #050607;
}

body.is-project-locked {
  position: fixed;
  top: var(--locked-scroll-y, 0);
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

body.home-page.is-project-locked {
  height: 100svh;
}

.gallery-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  width: 100vw;
  max-width: none;
  margin: 0;
  min-height: 100svh;
  background: #050607;
}

.gallery-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
}

.gallery-rail-statement {
  margin: auto 1.9rem 1.85rem;
  color: rgba(241, 240, 237, 0.85);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.12em;
}

.gallery-content {
  min-width: 0;
  padding: 0 clamp(1.3rem, 1.7vw, 1.95rem) 4.5rem;
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 7;
  min-height: 5.55rem;
  margin: 0 calc(clamp(1.3rem, 1.7vw, 1.95rem) * -1) 1.15rem;
  padding: 1.35rem clamp(2.35rem, 2.8vw, 3rem) .82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 7, 0.95);
  backdrop-filter: blur(12px);
}

.gallery-title-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.gallery-back {
  display: none;
  color: rgba(241, 240, 237, 0.58);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 160ms ease;
}

.gallery-back span { margin-right: 0.42rem; color: var(--accent); }
.gallery-back:hover { color: var(--paper); }

.gallery-kicker {
  display: none;
  color: rgba(241, 240, 237, 0.5);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.gallery-title-row h1 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2.55rem, 3.2vw, 3.35rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -0.055em;
}

.gallery-count {
  margin: 0;
  color: rgba(241, 240, 237, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.gallery-filters {
  position: absolute;
  top: 2.7rem;
  right: clamp(1.65rem, 2.1vw, 2.55rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.75vw, 2.3rem);
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-filters::-webkit-scrollbar { display: none; }

.gallery-filters button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 0.55rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(241, 240, 237, 0.52);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: color 160ms ease, border-color 160ms ease;
}

.gallery-filters button:hover,
.gallery-filters button.is-active {
  border-color: var(--accent);
  color: var(--paper);
}

.gallery-grid {
  display: grid;
  gap: clamp(3rem, 4.3vw, 5.2rem);
}

.project-set {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .72rem;
  background: #0a0c0e;
  scroll-margin-top: 7rem;
}

.project-set__lead {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(17.5rem, .72fr);
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0e1012;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.project-set__visual {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #15181b;
}

.project-set__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,4,6,.05), transparent 70%, rgba(2,4,6,.12));
  content: "";
}

.project-set__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.001);
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}

.project-set__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 3.1vw, 3.6rem);
  border-left: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(145deg, #121519, #0b0d0f);
}

.project-set__identity {
  display: grid;
  gap: clamp(.8rem, 1vw, 1.1rem);
}

.project-set__identity small {
  max-width: 34ch;
  color: rgba(241,240,237,.48);
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .12em;
}

.project-set__identity strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2.6rem, 3.8vw, 4.5rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.project-set__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  color: rgba(241,240,237,.56);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.project-set__action i {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(241,240,237,.42);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
  transition: border-color .25s ease, background .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}

.project-set__lead:hover .project-set__visual img,
.project-set__lead:focus-visible .project-set__visual img { transform: scale(1.02); }
.project-set__lead:hover .project-set__action i,
.project-set__lead:focus-visible .project-set__action i { border-color: var(--accent); background: rgba(201,255,50,.07); transform: translate(2px,-2px); }
.project-set__lead:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.project-set__mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 1.8vw, 2rem) clamp(.7rem, 1vw, 1.15rem);
  padding: clamp(1rem, 1.7vw, 1.8rem) clamp(1rem, 1.7vw, 1.8rem) clamp(1.6rem, 2.5vw, 2.8rem);
  border-top: 1px solid rgba(255,255,255,.08);
}

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  isolation: isolate;
  text-align: left;
  transition: border-color .25s ease, transform .35s cubic-bezier(.22,1,.36,1), background .25s ease;
}

.gallery-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .48rem;
  background: #111416;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.001);
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}

.gallery-card__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,4,6,.08), transparent 32%, transparent 78%, rgba(2,4,6,.12));
  transition: background .3s ease;
}

.gallery-card__copy {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 0;
  align-content: center;
  gap: .38rem;
  padding: .78rem .12rem 0;
  background: transparent;
}

.gallery-card__copy small,
.gallery-card__copy em {
  color: rgba(241,240,237,.76);
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
}

.gallery-card__copy small { display: none; color: var(--accent); }

.gallery-card__copy strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.12rem, 1.35vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.gallery-card__copy em {
  display: block;
  overflow: hidden;
  color: var(--accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card__open {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: transparent;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  transform: translateY(-.25rem);
  transition: color .22s ease, transform .3s cubic-bezier(.22,1,.36,1);
}

.gallery-card__open i {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid rgba(241,240,237,.58);
  border-radius: 50%;
  color: var(--paper);
  font-size: .78rem;
  font-style: normal;
}

.gallery-card:hover,
.gallery-card:focus-visible { background: transparent; transform: translateY(-2px); }
.gallery-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery-card:hover img,
.gallery-card:focus-visible img { filter: none; transform: scale(1.025); }
.gallery-card:hover .gallery-card__shade,
.gallery-card:focus-visible .gallery-card__shade { background: linear-gradient(180deg, rgba(2,4,6,.22), transparent 38%, transparent 72%, rgba(2,4,6,.18)); }
.gallery-card:hover .gallery-card__open,
.gallery-card:focus-visible .gallery-card__open { color: rgba(241,240,237,.9); transform: translateY(0); }

@media (hover: none) {
  .gallery-card:hover { transform: none; }
}

.project-viewer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 82vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .18);
  background: #080a0c;
  color: var(--paper);
  box-shadow: -1.5rem 0 5rem rgba(0, 0, 0, .52);
  opacity: 1;
  transform: translateX(100%);
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
}

.project-viewer[open] { display: block; }
.project-viewer.is-open { transform: translateX(0); }
.project-viewer.is-closing { transform: translateX(100%); }

.project-viewer::backdrop {
  background: rgba(0, 0, 0, .69);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 500ms ease, backdrop-filter 500ms ease;
}

body.is-project-locked > .site-shell,body.is-project-locked > .gallery-shell { filter:blur(5px); }
.viewer-scroll { scroll-behavior:auto !important; overflow-anchor:none; }
.project-viewer .viewer-expand { display:none; }
.viewer-back svg { width:22px; height:22px; }
.viewer-back > span { font-size:1.9rem; line-height:1; }
.gallery-page .gallery-grid.is-filtered { display:flex; flex-direction:column; gap:clamp(.6rem,1vw,1rem); }
.filtered-row { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:clamp(.6rem,1vw,1rem); }
.gallery-page .filtered-row .editorial-card { grid-column:span var(--filtered-span); grid-row:auto; height:clamp(19rem,28vw,34rem); }
.contact-form [type=submit]:disabled { opacity:.65; cursor:wait; }
#contact-confirmation { margin-top:1rem; font-size:.9rem; line-height:1.6; }
#contact-confirmation a { color:var(--accent); }
@media(max-width:700px) { .filtered-row { grid-template-columns:1fr; } .gallery-page .filtered-row .editorial-card { grid-column:1; height:clamp(17rem,60vw,25rem); } }

.project-viewer.is-closing::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
}

.viewer-scroll {
  width: 100%;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}

.viewer-content {
  width: min(100%, 94rem);
  margin: 0 auto;
  padding: clamp(2.6rem, 4.2vw, 4.8rem) clamp(40px, 5vw, 88px) clamp(4rem, 7vw, 7rem);
  box-sizing: border-box;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 150ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.viewer-content.is-changing {
  opacity: .36;
  transform: translateY(.35rem);
}

.viewer-back,
.viewer-dismiss {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(8, 10, 12, .94);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.viewer-back {
  top: 50%;
  left: 0;
  width: 3.6rem;
  height: 3.6rem;
  transform: translate(-50%, -50%);
}

.viewer-back__arrow {
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

.viewer-back__label {
  position: absolute;
  left: calc(100% + .9rem);
  color: rgba(241, 240, 237, .78);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-.4rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.viewer-back:hover .viewer-back__label,
.viewer-back:focus-visible .viewer-back__label {
  opacity: 1;
  transform: translateX(0);
}

.viewer-dismiss {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1;
}

.viewer-back:hover,
.viewer-back:focus-visible,
.viewer-dismiss:hover,
.viewer-dismiss:focus-visible {
  border-color: var(--accent);
  background: #121619;
}

.viewer-header { margin-bottom: 1.25rem; }

.viewer-breadcrumb {
  display: flex;
  align-items: center;
  gap: .62rem;
  margin: 0 0 1.25rem;
  color: rgba(241, 240, 237, .82);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.viewer-breadcrumb i { color: rgba(241, 240, 237, .36); font-style: normal; }
.viewer-breadcrumb strong { color: var(--accent); }

.viewer-header h2 {
  max-width: 16ch;
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(3rem, 5vw, 5.9rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.viewer-kicker {
  margin: .62rem 0 0;
  color: rgba(241, 240, 237, .64);
  font-size: clamp(.78rem, 1vw, .96rem);
  line-height: 1.45;
  letter-spacing: .04em;
}

.viewer-hero {
  display: grid;
  min-height: 10rem;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .55rem;
  background: #050607;
}

.viewer-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: none;
  transform: none;
}

.viewer-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.15rem 0 0;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.viewer-metadata > div {
  min-width: 0;
  padding: 0 clamp(.7rem, 1.7vw, 1.5rem);
}

.viewer-metadata > div:first-child { padding-left: 0; }
.viewer-metadata > div + div { border-left: 1px solid rgba(255, 255, 255, .15); }

.viewer-metadata dt,
.viewer-section h3 {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.viewer-metadata dd {
  margin: .5rem 0 0;
  overflow-wrap: anywhere;
  color: rgba(241, 240, 237, .92);
  font-size: clamp(.82rem, 1.05vw, 1rem);
  line-height: 1.35;
}

.viewer-section {
  margin-top: clamp(1.7rem, 2.6vw, 2.65rem);
}

.viewer-section h3 { margin: 0 0 .8rem; }

.viewer-contributions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viewer-contributions li {
  padding: .68rem 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .42rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  color: rgba(241, 240, 237, .84);
  font-size: .76rem;
  line-height: 1;
}

.viewer-overview p {
  max-width: 74ch;
  margin: 0;
  color: rgba(241, 240, 237, .7);
  font-size: clamp(.95rem, 1.22vw, 1.12rem);
  line-height: 1.65;
}

.viewer-world {
  margin-top: clamp(2rem, 3.2vw, 3.3rem);
  padding-top: clamp(1.6rem, 2.4vw, 2.4rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.viewer-world > h3 {
  margin: 0 0 1.2rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.viewer-tabs {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3.4rem);
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  scrollbar-width: none;
}

.viewer-tabs::-webkit-scrollbar { display: none; }

.viewer-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 .85rem;
  border: 0;
  background: transparent;
  color: rgba(241, 240, 237, .38);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  transition: color 180ms ease;
}

.viewer-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(.3);
  transform-origin: left;
  transition: opacity 180ms ease, transform 220ms ease;
}

.viewer-tabs button span { margin-left: .48rem; }
.viewer-tabs button:hover,
.viewer-tabs button:focus-visible,
.viewer-tabs button.is-active { color: var(--paper); }
.viewer-tabs button.is-active::after { opacity: 1; transform: scaleX(1); }

.viewer-tab-panel { padding-top: 1.3rem; }

.viewer-tab-copy {
  display: grid;
  grid-template-columns: minmax(12rem, .65fr) minmax(18rem, 1.35fr);
  gap: clamp(1.2rem, 3vw, 3.4rem);
  margin-bottom: 1.35rem;
}

.viewer-tab-copy:empty { display: none; }

.viewer-tab-copy h4 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.25vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.viewer-tab-copy p {
  margin: 0;
  color: rgba(241, 240, 237, .68);
  font-size: .92rem;
  line-height: 1.62;
}

.viewer-tab-copy ul {
  grid-column: 2;
  display: grid;
  gap: .45rem;
  margin: -.4rem 0 0;
  padding-left: 1rem;
  color: rgba(241, 240, 237, .58);
  font-size: .78rem;
  line-height: 1.45;
}

.viewer-tab-copy li::marker { color: var(--accent); }

.viewer-breakdowns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.35vw, 1.2rem);
  align-items: start;
}

.viewer-breakdowns figure {
  min-width: 0;
  margin: 0;
}

.viewer-breakdowns img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .42rem;
  background: #050607;
  filter: none;
}

.viewer-breakdowns figcaption {
  display: grid;
  gap: .25rem;
  padding-top: .62rem;
}

.viewer-breakdowns figcaption strong {
  color: rgba(241, 240, 237, .86);
  font-size: .76rem;
  line-height: 1.25;
}

.viewer-breakdowns figcaption span {
  overflow: hidden;
  color: rgba(241, 240, 237, .42);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-empty {
  margin: 0;
  padding: 2rem 0;
  color: rgba(241, 240, 237, .5);
  font-size: .88rem;
}

.viewer-empty[hidden] { display: none; }

.viewer-project-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 5vw, 5rem);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}

.viewer-project-nav button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .25rem .85rem;
  align-items: center;
  min-width: 0;
  padding: 1.2rem 1.35rem;
  border: 0;
  background: #0b0e10;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease;
}

.viewer-project-nav button:last-child {
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: right;
}

.viewer-project-nav button:hover,
.viewer-project-nav button:focus-visible { background: #121619; }
.viewer-project-nav button > span { grid-row: 1 / span 2; color: var(--accent); font-size: 1.2rem; }
.viewer-project-nav button:last-child > span { grid-column: 2; }

.viewer-project-nav small {
  color: rgba(241, 240, 237, .4);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .11em;
}

.viewer-project-nav strong {
  overflow: hidden;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1200px) and (min-width: 701px) {
  .project-viewer { width: 90vw; }
}

@media (max-width: 900px) {
  html.gallery-document,
  body.gallery-page { height: auto; overflow: auto; }

  .gallery-shell { display: block; min-height: 100svh; }
  .gallery-rail { position: relative; display: flex; height: 4.6rem; }
  .gallery-rail .brand-block { display: flex; align-items: center; }
  .gallery-rail .rail-nav, .gallery-rail-statement { display: none; }
  .gallery-content { padding: 1.25rem 1rem 2rem; }
  .gallery-header { position: static; margin: -1.25rem -1rem 1rem; padding: 1.1rem 1rem .85rem; }
  .gallery-title-row { grid-template-columns: 1fr auto; align-items: start; gap: .7rem 1rem; }
  .gallery-back { grid-column: 1 / -1; }
  .gallery-kicker { display: none; }
  .gallery-title-row h1 { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .gallery-count { padding-top: .7rem; font-size: .63rem; }
  .gallery-filters { position: static; gap: 1.3rem; margin-top: 1.2rem; }
  .gallery-filters button { font-size: .62rem; }
  .gallery-grid { gap: 2.5rem; }
  .project-set__lead { grid-template-columns: 1fr; }
  .project-set__visual { aspect-ratio: 16 / 9; }
  .project-set__info { padding: 1.4rem; border-top: 1px solid rgba(255,255,255,.09); border-left: 0; }
  .project-set__identity { gap: .65rem; }
  .project-set__identity strong { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .project-set__action { margin-top: 1.35rem; }
  .project-set__mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .75rem; padding: .8rem .8rem 1.6rem; }
  .gallery-card__media { aspect-ratio: 16 / 9; }
  .gallery-card__copy { gap: .28rem; padding: .72rem .1rem 0; }
  .gallery-card__copy strong { display: -webkit-box; overflow: hidden; font-size: clamp(1rem, 4vw, 1.2rem); line-height: 1.05; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .gallery-card__copy em { font-size: .55rem; }
  .gallery-card__open { display: none; }
  .project-viewer { width: 100vw; height: 100dvh; border: 0; }
  .viewer-scroll { height: 100dvh; }
  .viewer-content { padding: 5.15rem 1rem 3rem; }
  .viewer-back { top: 1rem; left: 1rem; width: 2.8rem; height: 2.8rem; transform: none; }
  .viewer-back__label { display: none; }
  .viewer-dismiss { top: 1rem; right: 1rem; }
  .viewer-header h2 { max-width: 13ch; font-size: clamp(2.65rem, 12vw, 4.2rem); }
  .viewer-breadcrumb { margin-bottom: 1rem; font-size: .6rem; }
  .viewer-kicker { font-size: .74rem; }
  .viewer-hero { border-radius: .42rem; }
  .viewer-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; }
  .viewer-metadata > div { padding: 0 1rem; }
  .viewer-metadata > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .viewer-metadata dd { font-size: .82rem; }
  .viewer-contributions { gap: .45rem; }
  .viewer-contributions li { padding: .58rem .72rem; font-size: .68rem; }
  .viewer-overview p { font-size: .9rem; line-height: 1.58; }
  .viewer-tabs { gap: 1.4rem; }
  .viewer-tab-copy { display: block; margin-bottom: 1.1rem; }
  .viewer-tab-copy h4 { margin-bottom: .7rem; }
  .viewer-tab-copy ul { margin-top: .8rem; }
  .viewer-breakdowns { grid-template-columns: 1fr; gap: 1.35rem; }
  .viewer-project-nav { grid-template-columns: 1fr; }
  .viewer-project-nav button { min-height: 5rem; }
}

@media (max-width: 560px) {
  .gallery-content { padding-right: .75rem; padding-left: .75rem; }
  .gallery-header { margin-right: -.75rem; margin-left: -.75rem; padding-right: .75rem; padding-left: .75rem; }
  .gallery-grid { gap: 1.25rem; }
  .project-set { border-radius: .62rem; }
  .project-set__info { padding: 1.25rem; }
  .project-set__identity small { font-size: .58rem; }
  .project-set__identity strong { font-size: clamp(2.35rem, 11vw, 3.15rem); }
  .project-set__mosaic { grid-template-columns: 1fr; gap: 1.65rem; padding: .65rem .65rem 1.55rem; }
  .gallery-card__media { border-radius: .42rem; }
  .gallery-card__copy { padding: .72rem .15rem 0; }
  .gallery-card__copy strong { font-size: 1.28rem; }
  .gallery-card__copy em { font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .project-viewer,
  .project-viewer::backdrop,
  .viewer-content { transition: none; }
}

.hero-copy {
  width: min(26rem, 41vw);
}

.hero-copy .eyebrow {
  color: var(--accent);
  font-size: clamp(.68rem, .69vw, .78rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .145em;
  text-shadow: 0 1px .7rem rgba(0, 0, 0, .72);
}

.hero-copy .eyebrow i {
  margin: 0 .22em;
  color: rgba(241, 240, 237, .58);
  font-style: normal;
}

.hero-copy h1 {
  display: grid;
  margin: .85rem 0 .95rem;
  font-weight: 800;
  line-height: .89;
  letter-spacing: -.055em;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:last-child {
  color: rgba(241, 240, 237, .64);
}

.hero-statement {
  color: rgba(241, 240, 237, .83);
  font-weight: 500;
  line-height: 1.42;
}

.worlds-heading {
  align-items: center;
}

.worlds-heading h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.018em;
}

.worlds-heading h2 span {
  color: var(--accent);
}

.worlds-all {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
}

.worlds-all__arrow {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid rgba(241, 240, 237, .32);
  border-radius: 50%;
  color: var(--accent);
  transition: border-color 180ms ease, transform 180ms ease;
}

.worlds-all:hover .worlds-all__arrow,
.worlds-all:focus-visible .worlds-all__arrow {
  border-color: var(--accent);
  transform: translate(2px, -2px);
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.15rem, 1.55vw, 1.8rem) clamp(.75rem, 1vw, 1.15rem);
}

.gallery-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .68rem;
  background: #0d0f12;
  transition: border-color .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.gallery-card__media {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
}

.gallery-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 4, 6, .025), transparent 72%, rgba(3, 4, 6, .16));
  content: "";
  pointer-events: none;
}

.gallery-card__index {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: grid;
  min-width: 2.7rem;
  height: 2.2rem;
  padding: 0 .7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 6, 7, .7);
  color: var(--paper);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  backdrop-filter: blur(8px);
}

.gallery-card__copy {
  min-height: clamp(8.5rem, 9vw, 10rem);
  align-content: start;
  gap: .78rem;
  padding: clamp(1rem, 1.25vw, 1.35rem);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(145deg, #121519 0%, #0b0d0f 100%);
}

.gallery-card__copy small {
  display: block;
  max-width: 52ch;
  color: rgba(241, 240, 237, .54);
  font-size: clamp(.56rem, .58vw, .64rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .145em;
}

.gallery-card__copy strong {
  font-size: clamp(1.25rem, 1.45vw, 1.75rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.052em;
}

.gallery-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.gallery-card__footer em {
  color: rgba(241, 240, 237, .58);
  font-size: .66rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-card__footer i {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(241, 240, 237, .42);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
  transition: border-color .25s ease, background .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: rgba(241, 240, 237, .3);
  background: #0d0f12;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .22);
  transform: translateY(-3px);
}

.gallery-card:hover .gallery-card__footer i,
.gallery-card:focus-visible .gallery-card__footer i {
  border-color: var(--accent);
  background: rgba(225, 255, 115, .07);
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .hero-copy {
    width: min(24rem, calc(100vw - 2.5rem));
  }

  .hero-copy .eyebrow {
    max-width: none;
    font-size: .68rem;
  }

  .hero-copy h1 {
    font-size: clamp(4rem, 18.5vw, 6rem);
  }

  .worlds-heading h2 {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .gallery-card__copy {
    min-height: 10.25rem;
    padding: 1.35rem;
  }

  .gallery-card__copy strong {
    display: block;
    overflow: visible;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: .98;
    -webkit-line-clamp: unset;
  }

  .gallery-card__copy small {
    font-size: .64rem;
  }

  .gallery-card__footer i {
    width: 2.65rem;
    height: 2.65rem;
  }
}

@media (max-width: 560px) {
  .explore-link {
    padding: .38rem .42rem .38rem 1.05rem;
  }

  .circle-arrow {
    width: 2.7rem;
    height: 2.7rem;
  }

  .gallery-card {
    border-radius: .58rem;
  }

  .gallery-card__copy {
    min-height: 10.8rem;
    padding: 1.25rem;
  }

  .gallery-card__index {
    top: .8rem;
    left: .8rem;
  }

  .gallery-card__copy strong {
    font-size: clamp(1.85rem, 9.4vw, 2.65rem);
  }

  .worlds-all__label {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 1380px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 1.8rem) clamp(.85rem, 1.4vw, 1.2rem);
  }

  .gallery-card__copy {
    min-height: 10rem;
    padding: clamp(1.15rem, 1.8vw, 1.55rem);
  }

  .gallery-card__copy small {
    font-size: .61rem;
  }

  .gallery-card__copy strong {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
  }

  .gallery-card__footer i {
    width: 2.55rem;
    height: 2.55rem;
  }
}

/* Grouped gallery — one visual universe at a time */
.gallery-page .gallery-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.4rem, 4.2vw, 5.4rem);
}

.gallery-page .project-set {
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .8rem;
  background: #090b0d;
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, .22);
}

.project-set__summary {
  display: grid;
  grid-template-columns: minmax(0, 2.18fr) minmax(12.5rem, .62fr);
  gap: .62rem;
  padding: .62rem;
  background: #090b0d;
}

.gallery-page .project-set__lead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(19rem, 1fr) auto;
  min-height: clamp(31rem, 44vw, 45rem);
  overflow: hidden;
  border-radius: .48rem;
  background: #0d0f12;
}

.gallery-page .project-set__visual {
  aspect-ratio: auto;
  min-height: 0;
}

.gallery-page .project-set__visual::after {
  background: linear-gradient(180deg, transparent 65%, rgba(3, 4, 5, .2));
}

.gallery-page .project-set__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  padding: clamp(1.4rem, 2.1vw, 2.25rem);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-left: 0;
  background: linear-gradient(145deg, #13161a, #0b0d0f 78%);
}

.gallery-page .project-set__identity {
  gap: .7rem;
}

.gallery-page .project-set__identity small {
  color: rgba(241, 240, 237, .56);
  font-size: clamp(.64rem, .66vw, .75rem);
}

.gallery-page .project-set__identity strong {
  font-size: clamp(2.55rem, 4.25vw, 5.1rem);
}

.gallery-page .project-set__action {
  min-width: 8.5rem;
  margin: 0;
}

.gallery-page .project-set__action i {
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.project-set.is-open .project-set__action i {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.project-set__previews {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: .62rem;
  min-width: 0;
}

.project-set__preview {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: .46rem;
  background: #121519;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
}

.project-set__preview::after {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(3, 4, 5, .88));
  content: "";
  pointer-events: none;
}

.project-set__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

.project-set__preview-index,
.project-set__preview-title {
  position: absolute;
  z-index: 1;
}

.project-set__preview-index {
  top: .75rem;
  left: .75rem;
  padding: .38rem .48rem;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(5, 6, 7, .58);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  backdrop-filter: blur(8px);
}

.project-set__preview-title {
  right: .85rem;
  bottom: .8rem;
  left: .85rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(.84rem, 1.05vw, 1.18rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.project-set__preview:hover img,
.project-set__preview:focus-visible img {
  transform: scale(1.045);
}

.project-set__preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.project-set__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .52s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

.project-set__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.project-set.is-open .project-set__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.gallery-page .project-set__mosaic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(1rem, 1.7vw, 1.8rem);
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.gallery-page .project-set__mosaic .gallery-card {
  border-radius: .56rem;
}

.gallery-page .project-set__mosaic .gallery-card__copy {
  min-height: 8.6rem;
}

@media (max-width: 1380px) and (min-width: 901px) {
  .project-set__summary {
    grid-template-columns: minmax(0, 1.9fr) minmax(11rem, .62fr);
  }

  .gallery-page .project-set__lead {
    min-height: clamp(27rem, 48vw, 38rem);
  }

  .gallery-page .project-set__mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gallery-page .gallery-grid {
    gap: 2rem;
  }

  .gallery-page .project-set {
    border-radius: .68rem;
  }

  .project-set__summary {
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: .5rem;
  }

  .gallery-page .project-set__lead {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .gallery-page .project-set__visual {
    aspect-ratio: 16 / 9;
  }

  .gallery-page .project-set__info {
    grid-template-columns: 1fr auto;
    padding: 1.25rem;
  }

  .gallery-page .project-set__identity strong {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .gallery-page .project-set__action {
    min-width: 0;
  }

  .gallery-page .project-set__action > span {
    display: none;
  }

  .project-set__previews {
    grid-template-rows: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }

  .project-set__preview {
    aspect-ratio: 1 / 1;
  }

  .project-set__preview-title {
    right: .55rem;
    bottom: .55rem;
    left: .55rem;
    font-size: clamp(.68rem, 2.7vw, .9rem);
  }

  .project-set__preview-index {
    top: .5rem;
    left: .5rem;
    font-size: .5rem;
  }

  .gallery-page .project-set__mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem .7rem;
    padding: .7rem .7rem 1.4rem;
  }
}

@media (max-width: 560px) {
  .gallery-page .project-set__info {
    padding: 1.15rem;
  }

  .gallery-page .project-set__identity small {
    font-size: .56rem;
  }

  .gallery-page .project-set__identity strong {
    font-size: clamp(2rem, 10.5vw, 2.85rem);
  }

  .gallery-page .project-set__action i {
    width: 2.55rem;
    height: 2.55rem;
  }

  .project-set__previews {
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(8.3rem, 1fr));
    scrollbar-width: none;
  }

  .project-set__previews::-webkit-scrollbar {
    display: none;
  }

  .gallery-page .project-set__mosaic {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-set__panel,
  .project-set__preview img,
  .gallery-page .project-set__visual img,
  .gallery-page .project-set__action i {
    transition: none;
  }
}

/* Closed category pairs with a shared, full-width reveal below each row. */
.gallery-page .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.gallery-page .project-set { display: contents; }
.gallery-page .project-set__summary { grid-column: var(--group-column); grid-row: var(--group-row); display: block; padding: 0; border: 1px solid #ffffff20; border-radius: .7rem; overflow: hidden; }
.gallery-page .project-set__lead { min-height: 0; height: 100%; grid-template-rows: auto 1fr; }
.gallery-page .project-set__visual { aspect-ratio: 16/9; }
.gallery-page .project-set__info { padding: clamp(1.1rem,2vw,2rem); gap: 1rem; }
.gallery-page .project-set__identity strong { font-size: clamp(1.8rem,3vw,3.4rem); line-height: 1.05; }
.gallery-page .project-set__action { min-width: 0; flex-direction: column-reverse; gap: .65rem; font-size: .7rem; }
.gallery-page .project-set__action > span { display: block; white-space: nowrap; }
.gallery-page .project-set__panel { display: none; grid-column: 1/-1; grid-row: calc(var(--group-row) + 1); }
.gallery-page .project-set.is-open .project-set__panel { display: grid; animation: group-reveal .45s cubic-bezier(.22,1,.36,1); }
.gallery-page .project-set.is-open .project-set__summary { border-color: #ffffff75; }
.gallery-page .project-set__mosaic { border: 1px solid #ffffff18; border-radius: .7rem; background: #0a0c0e; }
@keyframes group-reveal { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:700px) {
 .gallery-page .gallery-grid { grid-template-columns: minmax(0,1fr); gap: 1.2rem; }
 .gallery-page .project-set__summary, .gallery-page .project-set__panel { grid-column: 1; grid-row: auto; }
 .gallery-page .project-set__identity strong { font-size: clamp(1.8rem,7vw,2.7rem); }
}
@media(prefers-reduced-motion:reduce) { .gallery-page .project-set.is-open .project-set__panel { animation: none; } }

/* Three category columns on large desktops; keep the reveal on its own row. */
.gallery-page .project-set__info { padding: clamp(1rem,1.4vw,1.4rem); gap: .8rem; }
.gallery-page .project-set__identity { gap: .5rem; }
.gallery-page .project-set__identity strong { line-height: 1.08; }
@media (min-width:1600px) {
 .gallery-page .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .gallery-page .project-set__summary { grid-column: var(--group-column-wide); grid-row: var(--group-row-wide); }
 .gallery-page .project-set__panel { grid-row: calc(var(--group-row-wide) + 1); }
 .gallery-page .project-set__identity strong { font-size: clamp(1.8rem,2.1vw,2.8rem); }
}

/* Direct project browsing, retaining the approved category-card proportions. */
.gallery-page .gallery-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.universe-projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.gallery-page .individual-project { border: 1px solid #ffffff20; border-radius: .7rem; height: 100%; }
.gallery-page .individual-project:hover, .gallery-page .individual-project:focus-visible { border-color: #ffffff75; }
.gallery-page .individual-project .project-set__identity strong { font-size: clamp(1.6rem,2.1vw,2.8rem); }
@media(min-width:1600px) { .universe-projects { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .universe-projects { grid-template-columns: minmax(0,1fr); gap: 1.2rem; } .gallery-page .individual-project .project-set__identity strong { font-size: clamp(1.7rem,7vw,2.7rem); } }

.gallery-filters[hidden] { display: none; }

.gallery-filters button[hidden] { display: none; }
.gallery-page .individual-project .project-set__identity small { font-size: clamp(.7rem,.7vw,.82rem); letter-spacing: .12em; line-height: 1.5; color: rgba(241,240,237,.62); font-weight: 600; }

/* Continuous gallery: themes stay adjacent without starting incomplete rows. */
.gallery-page .gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; align-items: stretch; }
.gallery-page .individual-project .project-set__info { padding: clamp(1.1rem,1.5vw,1.6rem); align-items: center; min-height: 7rem; }
.gallery-page .individual-project .project-set__identity { gap: .65rem; }
.gallery-page .individual-project .project-set__identity strong { font-family: 'Manrope',system-ui,sans-serif; font-weight: 700; font-size: clamp(1.6rem,2.1vw,2.8rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: pretty; }
.gallery-page .individual-project .project-set__identity small { font-size: clamp(.68rem,.7vw,.82rem); line-height: 1.4; letter-spacing: .1em; font-weight: 600; }
@media(min-width:1600px) { .gallery-page .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .gallery-page .gallery-grid { grid-template-columns: minmax(0,1fr); gap: 1.2rem; } .gallery-page .individual-project .project-set__identity strong { font-size: clamp(1.5rem,6vw,2rem); } }

.gallery-editor { display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; margin-top:1rem; font-size:.8rem; }
.gallery-editor[hidden], .gallery-editor [hidden] { display:none; }
.gallery-editor button { padding:.7rem 1rem; border:1px solid #ffffff44; background:#16191b; color:#fff; border-radius:2rem; cursor:pointer; }
.gallery-editor-actions { display:flex; gap:.5rem; }
.gallery-editor [role=status] { color:#bfc0c1; }
.gallery-editor button:disabled { opacity:.5; cursor:wait; }
.gallery-edit-link { display:inline-block; margin-top:2rem; color:#999; font-size:.75rem; }
.gallery-page .is-reorderable { touch-action:none; cursor:grab; user-select:none; }
.gallery-page .is-reorderable img { pointer-events:none; }
.gallery-page .is-dragging { outline:2px solid var(--accent); opacity:.65; cursor:grabbing; }
/* Editorial case studies: chapters grow with the available project material. */
.viewer-world[hidden], .viewer-project-nav[hidden], #case-study-chapters[hidden] { display:none; }
.chapter-links { display:flex; gap:1.3rem; flex-wrap:wrap; padding:1.5rem 0; border-block:1px solid #ffffff20; }
.chapter-links a { font-size:.85rem; color:#bbb; text-decoration:none; }
.chapter-links a:hover { color:var(--paper); }
.case-chapter { padding-top:3.5rem; scroll-margin-top:2rem; }
.case-chapter header { max-width:44rem; margin-bottom:1.5rem; }
.chapter-index { font-size:.75rem; color:var(--accent); }
.case-chapter h3 { font-size:clamp(1.4rem,2vw,2rem); margin:.5rem 0; }
.case-chapter p { color:#aaa; line-height:1.7; font-size:1rem; }
.chapter-images { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; align-items:start; }
.chapter-images figure { margin:0; }
.chapter-images figure:first-child { grid-column:1/-1; }
.image-enlarge { width:100%; display:block; padding:0; border:0; background:transparent; cursor:zoom-in; }
.chapter-images img { display:block; width:100%; height:auto; border-radius:.5rem; }
.chapter-images figcaption { color:#999; font-size:.8rem; padding:.6rem 0; }
#viewer-image { cursor:zoom-in; }
.image-lightbox { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:4rem 3vw; border:0; background:transparent; overflow:hidden; }
.image-lightbox[open] { display:flex; justify-content:center; align-items:center; }
.image-lightbox::backdrop { background:#030405cc; backdrop-filter:blur(22px); }
.image-lightbox img { max-width:100%; max-height:100%; object-fit:contain; }
.image-lightbox > button { position:absolute; top:1rem; right:1rem; width:2.8rem; height:2.8rem; border:1px solid #ffffff66; border-radius:50%; background:#111; color:white; font-size:1.5rem; cursor:pointer; }
@media(max-width:700px) { .chapter-images { grid-template-columns:1fr; }.case-chapter { padding-top:2.5rem; }.chapter-links { gap:1rem; } }
/* Seedworld split introduction, followed by focused production stages. */
.has-case-study { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); column-gap:clamp(1.5rem,3vw,3rem); align-items:start; }
.has-case-study .viewer-header { grid-column:1; grid-row:1; }
.has-case-study .viewer-header h2 { font-size:clamp(2rem,3.2vw,3.6rem); line-height:1.1; }
.has-case-study .viewer-kicker { font-size:.85rem; line-height:1.7; }
.has-case-study .viewer-hero { grid-column:2; grid-row:1 / 5; align-self:stretch; border:0; }
.has-case-study .viewer-hero img { height:100%; min-height:28rem; object-fit:cover; object-position:50% 45%; }
.has-case-study .viewer-metadata { grid-column:1; grid-row:2; grid-template-columns:repeat(2,minmax(0,1fr)); }
.has-case-study .viewer-section:has(#viewer-contributions) { grid-column:1; grid-row:3; }
.has-case-study .viewer-overview { grid-column:1; grid-row:4; }
.has-case-study .viewer-contributions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.has-case-study .viewer-contributions li { background:none; padding:0; border:0; font-size:.85rem; }
.has-case-study #case-study-chapters { grid-column:1 / -1; margin-top:2.5rem; border-top:1px solid #ffffff22; padding-top:1.5rem; }
.case-world-title, .case-finale h3 { font-size:1.2rem; font-weight:600; }
.chapter-links { border-top:0; padding:1rem 0; gap:1.3rem; }
.chapter-links button { border:0; padding:.7rem 0; background:none; color:#999; font-size:.8rem; cursor:pointer; border-bottom:2px solid transparent; }
.chapter-links button span { margin-right:.5rem; color:#777; }
.chapter-links button[aria-selected="true"] { color:white; border-color:var(--accent); }
.case-chapter { padding-top:.5rem; }
.case-chapter > p { max-width:50rem; }
.chapter-images { grid-template-columns:repeat(3,minmax(0,1fr)); }
.chapter-images figure:first-child { grid-column:auto; }
.chapter-images img { aspect-ratio:16/10; object-fit:contain; background:#141617; }
.case-chapter video { display:block; width:100%; max-height:65vh; margin-top:1.5rem; background:#090a0b; border-radius:.5rem; }
.case-finale { margin-top:3rem; }
.case-finale img { display:block; width:100%; height:auto; border-radius:.6rem; }
@media(max-width:1000px) { .has-case-study { display:block; }.has-case-study .viewer-hero img { height:auto; min-height:0; object-fit:contain; }.chapter-images { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .chapter-images { grid-template-columns:1fr; }.chapter-links { gap:.5rem 1rem; }.chapter-images img { aspect-ratio:auto; } }

/* Seedworld: concise introduction, intact artwork, adaptable process boards. */
.has-case-study { grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); }
.has-case-study .viewer-header { margin-bottom:1rem; }
.has-case-study .viewer-header h2 { max-width:none; letter-spacing:-.025em; }
.has-case-study .viewer-overview { grid-row:2; margin:0 0 1.5rem; }
.has-case-study .viewer-overview h3 { display:none; }
.has-case-study .viewer-metadata { grid-row:3; margin:0 0 1.5rem; }
.has-case-study .viewer-section:has(#viewer-contributions) { grid-row:4; margin:0; }
.has-case-study .viewer-hero { margin:0; align-self:center; border-radius:.65rem; overflow:hidden; }
.has-case-study .viewer-hero img { width:100%; height:auto; min-height:0; object-fit:contain; }
.has-case-study .viewer-contributions li { font-size:.875rem; line-height:1.6; }
.has-case-study .chapter-links button { font-size:.875rem; }
.has-case-study .chapter-images:has(figure:only-child) { grid-template-columns:minmax(0,1fr); }
.has-case-study .chapter-images:has(figure:only-child) img { max-height:60vh; aspect-ratio:auto; object-fit:contain; }
.has-case-study .chapter-images figcaption { font-size:.875rem; line-height:1.5; }
@media(max-width:1000px) { .has-case-study .viewer-hero { margin:1.5rem 0; }.has-case-study .viewer-overview { margin-top:1.5rem; } }

/* Seedworld: original narrative, sequential stages and an animated introduction. */
.project-viewer.is-wide { width:calc(100vw - 2rem); }
.viewer-expand { position:absolute; top:1.3rem; right:4.75rem; z-index:5; min-height:2.65rem; padding:.4rem .9rem; border:1px solid #ffffff38; border-radius:2rem; background:#080a0cee; color:var(--paper); font:inherit; font-size:.875rem; cursor:pointer; }
.viewer-expand[hidden], .case-skills[hidden] { display:none; }
.has-case-study { padding-top:5.3rem; }
.has-case-study .viewer-hero { position:relative; align-self:stretch; margin-left:-2rem; width:calc(100% + 2rem); min-height:35rem; isolation:isolate; }
.has-case-study .viewer-hero > img { width:100%; height:100%; min-height:35rem; object-fit:cover; object-position:55% center; }
.has-case-study .viewer-section:has(#viewer-contributions) { position:relative; z-index:2; width:calc(100% + 3rem); box-sizing:border-box; background:#080a0c; border-radius:0 1rem 0 0; padding:1rem 3rem 0 0; }
.case-hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scale(1.32); transform-origin:center; background:#080a0c; opacity:0; transition:opacity .7s ease; pointer-events:none; }
.is-playing .case-hero-video { opacity:1; }
.case-hero-vimeo { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); border:0; opacity:0; transition:opacity .7s ease; pointer-events:none; }
.is-playing .case-hero-vimeo { opacity:1; }
.hero-motion-toggle { position:absolute; bottom:1rem; right:1rem; z-index:3; border:1px solid #ffffff60; border-radius:2rem; background:#080a0ccf; color:white; font:inherit; font-size:.875rem; padding:.65rem 1rem; cursor:pointer; }
.case-skills { display:flex; flex-wrap:wrap; gap:.5rem 1rem; margin-top:1.15rem; padding-top:1rem; border-top:1px solid #ffffff1a; color:#b2b8bb; font-size:.875rem; }
.case-skills span { white-space:nowrap; }
#case-study-chapters { scroll-margin-top:1.5rem; }
.stage-composition { display:grid; grid-template-columns:minmax(15rem,.7fr) minmax(0,1.3fr); gap:clamp(1.5rem,3vw,3rem); align-items:start; padding:1.3rem 0; }
.stage-copy { position:sticky; top:1rem; }
.case-chapter .stage-eyebrow { font-size:.8rem; letter-spacing:.06em; color:var(--accent); margin:0 0 1rem; text-transform:uppercase; }
.stage-copy > p { margin:0 0 1.5rem; }
.stage-points { margin:0; display:grid; gap:1.2rem; }
.stage-points div { border-top:1px solid #ffffff1c; padding-top:1rem; }
.stage-points dt { color:#e2e3e3; font-size:1rem; font-weight:600; line-height:1.5; }
.stage-points dd { margin:.35rem 0 0; color:#aab0b4; font-size:1rem; line-height:1.65; }
.case-chapter .stage-credit { font-size:.875rem; color:#b8babc; margin-top:1.5rem; padding-left:1rem; border-left:2px solid var(--accent); }
.stage-media { min-width:0; display:flex; flex-direction:column; gap:1.5rem; }
.has-case-study .stage-media .chapter-images { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.has-case-study .stage-media .chapter-images figure:first-child { grid-column:1 / -1; }
.has-case-study .stage-media .chapter-images img { aspect-ratio:auto; max-height:50vh; object-fit:contain; }
.has-case-study .stage-media video { order:-1; margin:0; width:100%; max-height:48vh; }
.stage-navigation { display:flex; justify-content:space-between; align-items:center; gap:1rem; border-top:1px solid #ffffff25; margin-top:1.5rem; padding-top:1.5rem; }
.stage-navigation button { font:inherit; font-size:.875rem; padding:.75rem 1rem; color:#eee; border:1px solid #ffffff35; background:transparent; border-radius:.4rem; cursor:pointer; }
.stage-navigation button:disabled { opacity:.3; cursor:default; }
.stage-count { font-size:.875rem; color:#969da2; }
.image-lightbox figure { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1rem; margin:0; width:100%; height:100%; }
.image-lightbox figure img { max-width:100%; max-height:calc(100dvh - 15rem); min-height:0; object-fit:contain; }
.image-lightbox figcaption { color:#eee; max-width:75ch; text-align:center; }
.image-lightbox figcaption strong { font-size:1rem; font-weight:600; }
.image-lightbox figcaption p { font-size:.95rem; line-height:1.55; color:#bfc2c4; margin:.4rem 0 0; }
.image-lightbox figcaption p:empty { display:none; }
@media(max-width:1100px) {
  .stage-composition { grid-template-columns:1fr; }
  .stage-copy { position:static; }
  .stage-points { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 1.5rem; }
}
@media(max-width:1000px) {
  .has-case-study .viewer-hero { margin:1.5rem 0; width:100%; min-height:0; }
  .has-case-study .viewer-hero > img { height:auto; min-height:0; aspect-ratio:16/10; object-fit:cover; }
  .has-case-study .viewer-section:has(#viewer-contributions) { width:100%; padding:0; border-radius:0; }
}
@media(max-width:600px) {
  .viewer-expand { display:none; }
  .project-viewer.is-wide { width:100vw; }
  .stage-points { grid-template-columns:1fr; }
  .has-case-study .stage-media .chapter-images { grid-template-columns:1fr; }
  .image-lightbox { padding:4rem 1rem 1.5rem; }
  .image-lightbox figure img { max-height:calc(100dvh - 18rem); }
  .image-lightbox figcaption p { font-size:.875rem; }
}
@media(prefers-reduced-motion:reduce) { .case-hero-video, .case-hero-vimeo { transition:none; } }

/* Aligned chapter opening; supporting boards span the full composition. */
.has-case-study .viewer-section:has(#viewer-contributions) { border-radius:1.1rem; padding:1.25rem 2rem 1.25rem 1.25rem; margin-left:-1.25rem; width:calc(100% + 3rem); }
.has-case-study .viewer-contributions { grid-template-columns:1fr; gap:.85rem; }
.has-case-study .viewer-contributions li { font-size:1rem; line-height:1.6; }
.has-case-study .viewer-hero { border-radius:1.1rem; }
.stage-composition { align-items:stretch; padding-bottom:0; }
.stage-copy { position:static; }
.stage-copy > :last-child { margin-bottom:0; }
.stage-primary { position:relative; min-width:0; min-height:0; border-radius:.65rem; }
.stage-primary figure { position:absolute; inset:0; margin:0; }
.stage-primary .image-enlarge { height:100%; border-radius:.65rem; overflow:hidden; background:#141617; }
.stage-primary img { display:block; width:100%; height:100%; object-fit:contain; }
.stage-primary figcaption { position:absolute; top:100%; left:0; right:0; padding-top:.55rem; color:#999; font-size:.875rem; line-height:1.4; }
.case-chapter .stage-primary video { position:absolute; inset:0; display:block; width:100%; height:100%; max-height:none; margin:0; object-fit:contain; border-radius:.65rem; background:#141617; }
.stage-supporting { display:grid; grid-template-columns:repeat(var(--media-count),minmax(0,1fr)); gap:1.5rem; margin-top:3rem; align-items:stretch; }
.stage-supporting figure { display:flex; flex-direction:column; margin:0; min-width:0; }
.stage-supporting .image-enlarge { flex:1; display:grid; place-items:center; border-radius:.65rem; overflow:hidden; background:#141617; }
.stage-supporting img { display:block; width:100%; max-height:42rem; height:auto; object-fit:contain; }
.stage-supporting figcaption { color:#999; font-size:.875rem; line-height:1.5; padding-top:.6rem; }
.case-finale { margin-top:3.5rem; }
.stage-navigation { margin-top:3rem; }
@media(max-width:1100px) {
  .stage-primary figure { position:static; }
  .stage-primary .image-enlarge { height:auto; }
  .stage-primary img { height:auto; max-height:65vh; }
  .stage-primary figcaption { position:static; }
  .case-chapter .stage-primary video { position:static; height:auto; max-height:65vh; }
  .stage-supporting { margin-top:1.5rem; }
}
@media(max-width:1000px) {
  .has-case-study .viewer-section:has(#viewer-contributions) { width:100%; margin-left:0; padding:1.25rem; border-radius:1.1rem; }
}
@media(max-width:700px) { .stage-supporting { grid-template-columns:1fr; } }

/* Reference hierarchy and a continuous, rounded media contour. */
.has-case-study .viewer-header { grid-row:1; }
.case-intro { color:#b9bdc0; font-size:1rem; line-height:1.7; margin:1.2rem 0 0; }
.case-intro[hidden] { display:none; }
.has-case-study .viewer-metadata { grid-row:2; margin:1.25rem 0 0; padding:1.25rem 0; border-top:1px solid #ffffff20; gap:1rem; }
.has-case-study .viewer-metadata > div { padding:0; border-left:0; }
.has-case-study .viewer-metadata > div:first-child { grid-column:1 / -1; }
.has-case-study .viewer-section:has(#viewer-contributions) { grid-row:3; width:100%; margin:0; padding:1.5rem 0; border-radius:0; background:transparent; }
.has-case-study .viewer-overview { grid-row:4; width:calc(100% + 3rem); position:relative; z-index:2; padding:1.25rem 1.5rem 0 0; margin:0; box-sizing:border-box; border-top:1px solid #ffffff20; background:transparent; }
.has-case-study .viewer-overview h3 { display:block; margin:0 0 1rem; }
.has-case-study .viewer-overview p { margin:0; }
.has-case-study .viewer-hero { margin:0; width:100%; border-radius:22px; overflow:hidden; }
.has-case-study .viewer-hero > img { border-radius:inherit; }
.stage-primary, .stage-primary .image-enlarge, .case-chapter .stage-primary video, .stage-supporting .image-enlarge, .case-finale .image-enlarge { border-radius:16px; overflow:hidden; }
.stage-primary img, .stage-supporting img, .case-finale img { border-radius:16px; }
@media(max-width:1000px) {
  .has-case-study .viewer-hero { margin:1.5rem 0; }
  .has-case-study .viewer-overview { width:100%; padding:1.25rem 0 0; }
}

/* Quiet introduction; scale the original letterboxed video inside its existing mask. */
.has-case-study .viewer-overview h3 { color:#aab0b4; font-weight:400; font-size:.8rem; letter-spacing:.07em; }
.has-case-study .viewer-overview p { font-size:.95rem; line-height:1.65; color:#aab0b4; }
.has-case-study .viewer-contributions li { font-size:.95rem; line-height:1.6; }
.has-case-study .viewer-metadata dt { color:#aab0b4; }

/* Preview-only framing: the lightbox continues to use each complete original. */
.has-case-study .stage-primary .image-enlarge img { object-fit:cover; object-position:50% 50%; }
.has-case-study .stage-supporting .image-enlarge { position:relative; aspect-ratio:4 / 3; flex:none; width:100%; }
.has-case-study .stage-supporting .image-enlarge img { position:absolute; inset:0; width:100%; height:100%; max-height:none; object-fit:cover; object-position:50% 50%; }
.has-case-study .image-enlarge[data-preview-file="16.jpg"] img { object-position:68% 50%; }
.has-case-study .image-enlarge[data-preview-file="13.jpg"] img { object-position:50% 60%; }
@media(max-width:1100px) {
  .has-case-study .stage-primary .image-enlarge { aspect-ratio:4 / 3; }
  .has-case-study .stage-primary .image-enlarge img { height:100%; max-height:none; }
}

/* Visible viewport and safe-area protection for mobile browser chrome. */
.viewer-content { padding-bottom:calc(clamp(4rem,7vw,7rem) + env(safe-area-inset-bottom,0px)); }
.viewer-dismiss { top:calc(1.25rem + env(safe-area-inset-top,0px)); right:calc(1.25rem + env(safe-area-inset-right,0px)); }
.viewer-expand { top:calc(1.3rem + env(safe-area-inset-top,0px)); }
.image-lightbox > button { top:calc(1rem + env(safe-area-inset-top,0px)); right:calc(1rem + env(safe-area-inset-right,0px)); }
@media(max-width:900px) {
  .viewer-content, .has-case-study { padding-top:calc(5.3rem + env(safe-area-inset-top,0px)); padding-left:max(1rem,env(safe-area-inset-left,0px)); padding-right:max(1rem,env(safe-area-inset-right,0px)); padding-bottom:calc(3rem + env(safe-area-inset-bottom,0px)); }
  .viewer-back { top:calc(1rem + env(safe-area-inset-top,0px)); left:calc(1rem + env(safe-area-inset-left,0px)); }
  .home-page .rail { padding-top:env(safe-area-inset-top,0px); height:calc(4.6rem + env(safe-area-inset-top,0px)); }
  .home-page .worlds { padding-bottom:calc(2.1rem + env(safe-area-inset-bottom,0px)); }
  .chapter-links button, .stage-navigation button { min-height:44px; }
}
@media(max-height:500px) and (min-width:601px) {
  .image-lightbox { padding:1rem max(4.5rem,env(safe-area-inset-right,0px)) max(1rem,env(safe-area-inset-bottom,0px)) max(1rem,env(safe-area-inset-left,0px)); }
  .image-lightbox figure { display:grid; grid-template-columns:minmax(0,3fr) minmax(10rem,1fr); gap:1.25rem; align-items:center; }
  .image-lightbox figure img { width:100%; max-width:100%; max-height:calc(100dvh - 2rem - env(safe-area-inset-bottom,0px)); }
  .image-lightbox figcaption { max-height:calc(100dvh - 2rem); overflow:auto; text-align:left; }
}
@media(max-width:900px) {
  .viewer-expand { display:none; }
  .project-viewer.is-wide { width:100vw; }
}

/* Finished work precedes the shared production breakdown. */
.case-showcase { margin:2rem 0 4rem; }
.case-showcase-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
.case-showcase-grid figure { margin:0; min-width:0; }
.case-showcase-grid figure:first-child { grid-column:1 / -1; }
.case-showcase-grid .image-enlarge { display:block; width:100%; overflow:hidden; border-radius:16px; }
.case-showcase-grid img { display:block; width:100%; height:auto; }
.case-showcase-grid figcaption { color:#999; font-size:.875rem; line-height:1.5; padding-top:.6rem; }
@media(max-width:700px) { .case-showcase-grid { grid-template-columns:1fr; } }

/* All production stages are visible; navigation only scrolls to them. */
.has-case-study .chapter-links { position:sticky; top:0; z-index:3; display:flex; flex-wrap:nowrap; overflow-x:auto; background:rgba(9,11,12,.96); backdrop-filter:blur(12px); border-bottom:1px solid #ffffff18; padding:.6rem 0; }
.has-case-study .chapter-links button { flex:0 0 auto; min-height:44px; }
.has-case-study .chapter-links button:hover, .has-case-study .chapter-links button:focus-visible { color:#fff; border-color:var(--accent); }
.has-case-study .case-chapter { padding-top:2rem; padding-bottom:3.5rem; scroll-margin-top:6rem; }
.has-case-study .case-chapter + .case-chapter { border-top:1px solid #ffffff18; }
.has-case-study .case-chapter h3.stage-eyebrow { font-size:.875rem; font-weight:500; line-height:1.5; }

.case-films {display:grid;grid-template-columns:1fr;gap:2rem;margin:2rem 0 3rem}.case-films figure{margin:0}.case-films video{display:block;width:100%;max-height:75vh;border-radius:16px;background:#090a0b}.case-films figcaption{font-size:.875rem;color:#aaa;padding-top:.6rem}
.case-feature-films:has(figure:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}.case-feature-films:has(figure:nth-child(3)) figure:first-child{grid-column:1/-1}@media(max-width:700px){.case-feature-films:has(figure:nth-child(3)){grid-template-columns:1fr}.case-feature-films:has(figure:nth-child(3)) figure:first-child{grid-column:auto}}

.film-player{position:relative}.film-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:1rem 1.5rem;border:1px solid #ffffff55;border-radius:999px;background:#090b0de6;color:white;cursor:pointer}.film-play[hidden]{display:none}.case-embed{margin:2rem 0}.case-embed iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:16px}.case-embed figcaption{color:#aaa;font-size:.875rem;margin-top:.6rem}

/* Technical boards keep their complete composition; detail opens at source size. */
.has-case-study .process-boards .stage-composition { display:block; }
.has-case-study .process-boards .stage-copy { max-width:52rem; margin-bottom:1.5rem; }
.has-case-study .process-boards .stage-primary figure { position:static; }
.has-case-study .process-boards .stage-primary .image-enlarge { display:block; height:auto; width:100%; }
.has-case-study .process-boards .stage-primary .image-enlarge img,
.has-case-study .process-boards .stage-supporting .image-enlarge img { position:static; display:block; width:100%; height:auto; max-height:none; object-fit:contain; }
.has-case-study .process-boards .stage-supporting { align-items:start; }
.has-case-study .process-boards .stage-supporting .image-enlarge { aspect-ratio:auto; height:auto; }
.has-case-study .process-boards .stage-supporting:has(>figure:only-child) { grid-template-columns:1fr; }
.case-finale > p { color:#999; font-size:.8rem; margin-top:.75rem; }
.film-play[hidden] { display:none; }

/* Architecture case studies: final imagery first, then a calm two-column
   production grid. This keeps narrow source boards readable and visually
   separates finished renders from references and technical breakdowns. */
.case-architecture .case-hero-video { transform:none; object-fit:cover; }
.case-architecture .case-featured-media { margin:2rem 0 4rem; padding-bottom:3rem; border-bottom:1px solid #ffffff18; }
.case-architecture .case-featured-media > .case-world-title { margin-bottom:1.25rem; }
.case-architecture .case-featured-media .case-films,
.case-architecture .case-featured-media .case-embed { margin-top:0; }
.case-architecture .case-showcase { padding-bottom:1rem; }
.case-architecture .case-showcase-grid { gap:clamp(.8rem,1.2vw,1.35rem); }
.case-architecture .case-showcase-grid figure { display:flex; min-width:0; flex-direction:column; }
.case-architecture .case-showcase-grid .image-enlarge { flex:1; background:#121516; }
.case-architecture .case-showcase-grid img { width:100%; height:100%; min-height:18rem; max-height:62vh; object-fit:cover; }
.case-architecture .case-showcase-grid figure:first-child img { min-height:clamp(24rem,46vw,44rem); }
.case-architecture .case-chapter { padding-bottom:clamp(4rem,7vw,7rem); }
.case-architecture .case-chapter + .case-chapter { padding-top:clamp(3rem,5vw,5rem); }
.case-architecture .stage-supporting,
.case-architecture .process-boards .stage-supporting { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1rem,1.5vw,1.5rem); }
.case-architecture .stage-supporting figure:nth-last-child(1):nth-child(odd) { grid-column:1 / -1; }
.case-architecture .process-boards .stage-supporting .image-enlarge { display:grid; min-height:16rem; place-items:center; padding:.5rem; background:#121516; }
.case-architecture .process-boards .stage-supporting .image-enlarge img { width:100%; max-height:68vh; object-fit:contain; }
.case-architecture .process-boards .stage-primary .image-enlarge { background:#121516; }
.case-architecture .process-boards .stage-primary .image-enlarge img { max-height:72vh; object-fit:contain; }
@media(max-width:700px) {
  .case-architecture .case-showcase-grid,
  .case-architecture .stage-supporting,
  .case-architecture .process-boards .stage-supporting { grid-template-columns:1fr; }
  .case-architecture .stage-supporting figure { grid-column:auto!important; }
  .case-architecture .case-showcase-grid img,
  .case-architecture .case-showcase-grid figure:first-child img { min-height:0; max-height:none; height:auto; object-fit:contain; }
  .case-architecture .process-boards .stage-supporting .image-enlarge { min-height:0; }
}

.layout-editor[hidden],.layout-editor [hidden]{display:none!important}
.layout-editor{position:sticky;top:0;z-index:10;padding:12px;margin:0 0 16px;background:#101315f5;border:1px solid #ffffff24;border-radius:12px;color:#eee;font:14px Inter,sans-serif}
.layout-editor__heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.7rem;padding-bottom:.7rem;border-bottom:1px solid #ffffff18}
.layout-editor__heading>div{display:flex;min-width:0;flex-direction:column;gap:.22rem}.layout-editor__heading strong{color:var(--accent);font-size:.72rem;letter-spacing:.16em}.layout-editor__heading span{color:#bbc1c6;font-size:.82rem;line-height:1.4}
.layout-editor__exit{flex:0 0 auto;padding:.55rem .7rem;border:1px solid #ffffff35;border-radius:6px;color:#fff;text-decoration:none;font-size:.78rem}
.layout-editor [data-controls]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.layout-editor button,.layout-editor select{padding:10px;border:1px solid #ffffff44;border-radius:6px;background:#202426;color:#fff;font:inherit}
.layout-editor button:disabled{opacity:.45}.layout-editor [role=status]{display:block;margin-top:8px;color:#bbc1c6}
.gallery-page.has-floating-nav .layout-editor{top:calc(var(--persistent-nav-height) + var(--safe-top))}
.gallery-page .gallery-grid.has-custom-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:clamp(9.2rem,12.1vw,14.6rem);grid-auto-flow:dense;gap:clamp(.48rem,.6vw,.7rem)}
.gallery-page .has-custom-layout .editorial-card{grid-column:span var(--tile-w,4);grid-row:span var(--tile-h,1)}
.is-layout-editing .editorial-card{touch-action:none;cursor:grab}
.is-layout-editing .editorial-card.layout-selected{outline:3px solid #dac181;outline-offset:-3px}
.is-layout-editing .editorial-card:hover .project-set__visual img{transform:none}
@media(max-width:700px){.gallery-page .gallery-grid.has-custom-layout{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:9rem}.gallery-page .has-custom-layout .editorial-card{grid-column:span var(--tile-mobile-w,2);grid-row:span min(var(--tile-h,1),2)}.layout-editor{top:0}.layout-editor__heading{align-items:flex-start}.layout-editor__heading span{max-width:17rem}.layout-editor__exit{padding:.5rem;font-size:.7rem}}
/* Editorial gallery — project-specific composition from the approved mockups. */
.gallery-page .gallery-content {
  padding-right: clamp(.75rem,1vw,1.25rem);
  padding-left: clamp(.75rem,1vw,1.25rem);
}
.gallery-page .gallery-header {
  min-height: 4.2rem;
  margin-right: calc(clamp(.75rem,1vw,1.25rem) * -1);
  margin-left: calc(clamp(.75rem,1vw,1.25rem) * -1);
  padding: 1.15rem clamp(1rem,1.5vw,1.65rem) .7rem;
}
.gallery-page .gallery-title-row h1,
.gallery-page .gallery-kicker,
.gallery-page .gallery-back { display:none; }
.gallery-page .gallery-title-row { min-height:1.9rem; }
.gallery-page .gallery-count { margin-left:auto; align-self:center; }
.gallery-page .gallery-filters {
  top:1.25rem;
  right:auto;
  left:clamp(1rem,1.5vw,1.65rem);
  gap:clamp(1.2rem,2.2vw,2.6rem);
}
.gallery-page .gallery-filters button {
  padding-bottom:.7rem;
  font-size:clamp(.68rem,.72vw,.82rem);
  font-weight:500;
  letter-spacing:.01em;
}
.gallery-page .gallery-grid { display:block; }
.gallery-page .editorial-group { margin:0 0 clamp(3.8rem,6vw,7.5rem); }
.gallery-page .editorial-group h2 {
  margin:0 0 .8rem .15rem;
  color:#c5c7c9;
  font-size:.78rem;
  font-weight:600;
  line-height:1;
  letter-spacing:.25em;
}
.gallery-page .editorial-layout {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-auto-flow:dense;
  grid-auto-rows:clamp(9.2rem,12.1vw,14.6rem);
  gap:clamp(.48rem,.6vw,.7rem);
}
.gallery-page .editorial-card {
  position:relative;
  display:block;
  min-width:0;
  min-height:0;
  height:100%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:.66rem;
  background:#101316;
}
.gallery-page .editorial-card .project-set__visual {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto;
}
.gallery-page .editorial-card .project-set__visual::after {
  background:linear-gradient(180deg,rgba(3,5,7,.02) 42%,rgba(3,5,7,.78) 100%);
}
.gallery-page .editorial-card .project-set__info {
  position:absolute;
  z-index:2;
  right:0;
  bottom:0;
  left:0;
  display:flex;
  min-height:0;
  flex-direction:row;
  align-items:end;
  padding:clamp(.8rem,1.25vw,1.35rem);
  border:0;
  background:transparent;
  pointer-events:none;
}
.gallery-page .editorial-card .project-set__identity { gap:.28rem; }
.gallery-page .editorial-card .project-set__identity strong {
  font-size:clamp(1rem,1.35vw,1.5rem);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.035em;
}
.gallery-page .slot-feature-right .project-set__identity strong,
.gallery-page .slot-lords-fairy .project-set__identity strong,
.gallery-page .slot-lords-altar .project-set__identity strong,
.gallery-page .slot-lords-army .project-set__identity strong,
.gallery-page .slot-archive-hero .project-set__identity strong { font-size:clamp(1.2rem,1.55vw,1.75rem); }
.gallery-page .editorial-card .project-set__identity small {
  order:2;
  color:rgba(255,255,255,.72);
  font-size:clamp(.58rem,.62vw,.7rem);
  font-weight:600;
  line-height:1.2;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.gallery-page .editorial-card .project-set__action {
  margin-left:auto;
  opacity:0;
  transform:translateY(.4rem);
  transition:opacity .25s ease,transform .35s cubic-bezier(.22,1,.36,1);
}
.gallery-page .editorial-card .project-set__action i {
  display:grid;
  width:2.35rem;
  height:2.35rem;
  place-items:center;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  background:rgba(5,6,7,.42);
  font-style:normal;
  backdrop-filter:blur(8px);
}
.gallery-page .editorial-card:hover .project-set__action,
.gallery-page .editorial-card:focus-visible .project-set__action { opacity:1; transform:none; }
.gallery-page .editorial-card:hover .project-set__visual img,
.gallery-page .editorial-card:focus-visible .project-set__visual img { transform:scale(1.035); }

/* Fortnite / Seedworld */
.slot-hero-left { grid-column:span 7; grid-row:span 2; }
.slot-hero-right { grid-column:span 5; grid-row:span 2; }
.slot-wide-left { grid-column:span 5; grid-row:span 2; }
.slot-portrait { grid-column:span 3; grid-row:span 2; }
.slot-quarter { grid-column:span 2; grid-row:span 1; }

/* Smurfs */
.slot-stack-left { grid-column:span 4; grid-row:span 1; }
.slot-feature-right { grid-column:5 / span 8; grid-row:1 / span 2; }
.slot-half { grid-column:span 6; grid-row:span 1; }

/* Mavia */
.slot-feature-left { grid-column:span 6; grid-row:span 2; }
.slot-small { grid-column:span 3; grid-row:span 1; }

/* Lords Mobile: three major moments across six full editorial rows. */
.slot-lords-fairy { grid-column:span 8; grid-row:span 2; }
.slot-lords-side { grid-column:span 4; grid-row:span 1; }
.slot-lords-support-left { grid-column:span 4; grid-row:span 1; }
.slot-lords-altar { grid-column:5 / span 8; grid-row:3 / span 2; }
.slot-lords-army { grid-column:span 8; grid-row:span 2; }
.slot-lords-tower { grid-column:span 4; grid-row:span 2; }

/* Personal work and material studies. */
.slot-archive-hero { grid-column:span 8; grid-row:span 2; }
.slot-archive-side { grid-column:span 4; grid-row:span 1; }
.slot-archive-sport { grid-column:span 6; grid-row:span 1; }
.slot-archive-horizon { grid-column:span 4; grid-row:span 1; }
.slot-archive-elarium { grid-column:span 2; grid-row:span 1; }
.slot-material-third { grid-column:span 4; grid-row:span 1; }
.slot-material-half { grid-column:span 6; grid-row:span 1; }

/* Architecture closes the gallery with generous, consistently sized views. */
.slot-arch-feature { grid-column:span 8; grid-row:span 2; }
.slot-arch-side { grid-column:span 4; grid-row:span 2; }
.slot-arch-half { grid-column:span 6; grid-row:span 2; }
.slot-arch-wide { grid-column:span 7; grid-row:span 2; }
.slot-arch-narrow { grid-column:span 5; grid-row:span 2; }
.slot-arch-product { grid-column:span 12; grid-row:span 2; }

@media (max-width:1100px) {
  .gallery-page .editorial-layout { grid-template-columns:repeat(6,minmax(0,1fr)); grid-auto-rows:clamp(9rem,20vw,13rem); }
  .gallery-page .editorial-card { grid-column:span 3; grid-row:span 1; }
  .gallery-page .slot-hero-left,.gallery-page .slot-hero-right,.gallery-page .slot-feature-right,.gallery-page .slot-feature-left,
  .gallery-page .slot-lords-fairy,.gallery-page .slot-lords-altar,.gallery-page .slot-lords-army,.gallery-page .slot-archive-hero,
  .gallery-page .slot-arch-feature,.gallery-page .slot-arch-product { grid-column:span 6; grid-row:span 2; }
  .gallery-page .slot-wide-left,.gallery-page .slot-portrait,.gallery-page .slot-lords-tower,
  .gallery-page .slot-arch-side,.gallery-page .slot-arch-half,.gallery-page .slot-arch-wide,.gallery-page .slot-arch-narrow { grid-column:span 3; grid-row:span 2; }
}
@media (max-width:700px) {
  .gallery-page .gallery-header { position:sticky; min-height:4.6rem; overflow:hidden; }
  .gallery-page .gallery-count { display:none; }
  .gallery-page .gallery-filters { right:.8rem; left:.8rem; padding-right:1rem; }
  .gallery-page .editorial-group { margin-bottom:3rem; }
  .gallery-page .editorial-layout { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:clamp(8.5rem,43vw,11rem); }
  .gallery-page .editorial-card { grid-column:span 1; grid-row:span 1; }
  .gallery-page .slot-hero-left,.gallery-page .slot-hero-right,.gallery-page .slot-wide-left,.gallery-page .slot-feature-right,
  .gallery-page .slot-feature-left,.gallery-page .slot-lords-fairy,.gallery-page .slot-lords-altar,.gallery-page .slot-lords-army,
  .gallery-page .slot-archive-hero,.gallery-page .slot-arch-feature,.gallery-page .slot-arch-side,.gallery-page .slot-arch-half,
  .gallery-page .slot-arch-wide,.gallery-page .slot-arch-narrow,.gallery-page .slot-arch-product { grid-column:span 2; grid-row:span 2; }
  .gallery-page .slot-portrait,.gallery-page .slot-lords-tower { grid-column:span 1; grid-row:span 2; }
  .gallery-page .editorial-card .project-set__info { padding:.72rem; }
  .gallery-page .editorial-card .project-set__identity strong { font-size:.95rem; }
  .gallery-page .editorial-card .project-set__identity small { font-size:.52rem; }
  .gallery-page .editorial-card .project-set__action { display:none; }
}

/* Project sheet editor: the saved content reflows in the same responsive grid. */
.home-page .scroll-cue { left:50%; right:auto; transform:translateX(-50%); }
.project-editor { position:sticky; top:0; z-index:12; padding:.6rem 1rem; background:#101416f5; border-bottom:1px solid #ffffff25; }
.project-editor[hidden],.project-editor [hidden] { display:none!important; }
.project-editor button,.project-editor select { min-height:40px; padding:.5rem .75rem; color:#f1f1ed; background:#202629; border:1px solid #ffffff35; border-radius:7px; font:inherit; font-size:14px; }
.project-editor [data-tools] { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.project-editor label { display:flex; align-items:center; gap:.4rem; font-size:13px; }
.project-editor select { max-width:240px; }
.project-editor [role=status] { display:block; font-size:13px; color:#c8cec7; margin-top:.35rem; }
.project-editor [data-save] { background:var(--accent); color:#121614; }
.editable-project-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); align-items:start; gap:1.5rem; }
.editable-project-grid > [data-edit-block] { grid-column:span var(--block-span,6); min-width:0; margin:0; }
.editable-project-grid figure img,.editable-project-grid > .image-enlarge img { width:100%; height:auto; max-height:650px; object-fit:contain; border-radius:16px; }
.editable-project-grid .image-enlarge { width:100%; }
.editable-project-grid > video { width:100%; border-radius:16px; }
.is-project-editing [data-edit-block] { outline:1px dashed #ffffff40; outline-offset:4px; border-radius:12px; }
.is-project-editing .project-block-selected { outline:2px solid var(--accent); }
[data-edit-text][hidden] { display:none!important; }
.viewer-hero > #viewer-image[hidden] { display:none!important; }
.viewer-content.has-case-study:has(.viewer-hero > #viewer-image[hidden]):not(:has(.viewer-hero video)) { display:block; }
.viewer-hero:has(> #viewer-image[hidden]):not(:has(video)) { display:none; }
.is-project-editing [contenteditable=true] { cursor:text; outline:1px dashed #e1ff7355; outline-offset:3px; min-height:1em; }
.is-project-editing [contenteditable=true]:focus { outline:2px solid var(--accent); }
@media(max-width:900px) { .editable-project-grid { gap:1rem; } .editable-project-grid > [data-edit-block] { grid-column:1/-1; } .project-editor { position:relative; } .project-editor select { max-width:180px; } }

/* Fine sheet grid: 12 columns and 56 px rows, with 16 px gutters. */
.project-frame-tools { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; flex-basis:100%; }
.project-frame-tools input[type=number] { width:5rem; color:var(--paper); background:#202629; border:1px solid #ffffff35; border-radius:7px; padding:.5rem; font:inherit; }
.project-frame-tools fieldset { display:flex; flex-wrap:wrap; gap:.6rem; border:1px solid #ffffff25; border-radius:8px; padding:.5rem; min-width:0; }
.project-frame-tools legend { color:var(--accent); font-size:13px; padding:0 .3rem; }
.project-frame-tools fieldset:disabled { opacity:.4; }
.project-frame-tools input[type=range] { width:100px; accent-color:var(--accent); }
.project-frame-tools output { min-width:3rem; font-size:13px; }
.project-frame-tools [data-pan][aria-pressed=true] { border-color:var(--accent); color:var(--accent); }
.editable-project-grid.fine-project-grid { grid-auto-rows:56px; gap:16px; align-items:start; }
.fine-project-grid > [data-edit-block] { align-self:start; min-width:0; }
.fine-project-grid > .project-media-block { height:var(--frame-height); display:flex; flex-direction:column; }
.fine-project-grid > .stage-copy { height:auto; }
.fine-project-grid .project-preview-frame { display:block!important; flex:none!important; position:relative!important; width:100%!important; height:calc(var(--frame-height) - var(--caption-height,0px))!important; aspect-ratio:auto!important; overflow:hidden!important; border-radius:16px; background:#141617; padding:0; }
.fine-project-grid .project-preview-frame img { display:block!important; position:absolute!important; inset:0!important; width:100%!important; height:100%!important; max-height:none!important; border-radius:0!important; transition:none; }
.fine-project-grid figcaption { flex:none; position:static; padding-top:8px; margin:0; font-size:14px; line-height:1.4; color:#aaa; }
.fine-project-grid > video { height:var(--frame-height); object-fit:contain; }
.is-project-editing .fine-project-grid { background-image:linear-gradient(to right,#ffffff0d 1px,transparent 1px),linear-gradient(to bottom,#ffffff0d 1px,transparent 1px); background-size:calc((100% + 16px)/12) 72px; }
.is-image-panning .project-preview-frame { cursor:move; touch-action:none; }
.is-image-panning .project-preview-frame img { pointer-events:none; }
@media(max-width:900px) {
 .editable-project-grid.fine-project-grid { grid-template-columns:minmax(0,1fr); grid-auto-rows:auto; }
 .fine-project-grid > [data-edit-block] { grid-column:1/-1!important; grid-row:auto!important; }
 .fine-project-grid > .project-media-block { --mobile-height:min(var(--frame-height),65svh); height:var(--mobile-height); }
 .fine-project-grid .project-preview-frame { height:calc(var(--mobile-height) - var(--caption-height,0px))!important; }
 .is-project-editing .fine-project-grid { background:none; }
 .project-frame-tools fieldset { width:100%; }
}

/* Release 68 — shared navigation, persistent access and iPhone sheet fixes. */
:root { --persistent-nav-height: 4.25rem; --safe-top: env(safe-area-inset-top, 0px); }
html { scroll-padding-top: calc(var(--persistent-nav-height) + var(--safe-top) + 1rem); }
.rail-link,
.floating-site-nav__link { transition: color .2s ease, opacity .2s ease; }
.rail-link[aria-current="location"],
.floating-site-nav__link[aria-current="location"] { color: var(--accent); }

.floating-site-nav {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: calc(var(--persistent-nav-height) + var(--safe-top));
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: calc(.65rem + var(--safe-top)) clamp(1rem, 2.8vw, 2.8rem) .65rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(5,6,7,.9);
  box-shadow: 0 .8rem 2.2rem rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.floating-site-nav.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.floating-site-nav__brand { display: flex; flex: 0 0 auto; align-items: center; gap: .75rem; color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-decoration: none; }
.floating-site-nav__brand .brand-mark { width: 2.5rem; height: auto; }
.floating-site-nav__links { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: flex-end; gap: clamp(1rem, 3.4vw, 3.5rem); }
.floating-site-nav__link { display: inline-flex; align-items: center; gap: .42rem; color: rgba(241,240,237,.68); font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.floating-site-nav__link:hover,
.floating-site-nav__link:focus-visible { color: var(--white); }
.is-project-locked .floating-site-nav { visibility: hidden; opacity: 0; pointer-events: none; }
.gallery-page.has-floating-nav .gallery-header { top: calc(var(--persistent-nav-height) + var(--safe-top)); }

@media (max-width: 900px) {
  .home-page .rail,
  .gallery-page .gallery-rail { min-height: calc(4.75rem + var(--safe-top)); height: auto; padding-top: var(--safe-top); }
  .home-page .rail-nav,
  .gallery-page .gallery-rail .rail-nav { display: flex; min-width: 0; margin-left: auto; flex-direction: row; align-items: center; gap: clamp(.72rem, 3.4vw, 1.35rem); }
  .home-page .rail-link,
  .gallery-page .rail-link { display: inline-flex; width: auto; min-height: 2.75rem; align-items: center; padding: .45rem 0; font-size: clamp(.58rem, 2.4vw, .68rem); letter-spacing: .08em; writing-mode: horizontal-tb; transform: none; }
  .home-page .rail-link .rail-number,
  .gallery-page .rail-link .rail-number { display: none; }
  .gallery-page .gallery-rail .brand-block { flex: 0 0 auto; }
  .gallery-page .gallery-rail-statement { display: none; }
  .gallery-page .gallery-header { z-index: 30; transition: top .25s ease; }
  .project-viewer { max-height: 100dvh; overflow: hidden; overscroll-behavior: contain; }
  .viewer-scroll { height: 100%; max-height: 100dvh; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .project-viewer .viewer-back { display: none !important; }
  .project-viewer .viewer-dismiss { top: calc(1rem + var(--safe-top)); }
  .home-page .scroll-cue { display: none !important; }
}

@media (max-width: 700px) {
  .floating-site-nav { gap: .75rem; padding-right: .8rem; padding-left: .8rem; }
  .floating-site-nav__brand { gap: .45rem; }
  .floating-site-nav__brand .brand-mark { width: 2.2rem; }
  .floating-site-nav__brand > span { display: none; }
  .floating-site-nav__links { justify-content: space-between; gap: clamp(.55rem, 3vw, 1rem); }
  .floating-site-nav__link { font-size: clamp(.55rem, 2.55vw, .66rem); letter-spacing: .045em; }
  .floating-site-nav__link .rail-number { display: none; }
  .home-page .rail,
  .gallery-page .gallery-rail { gap: .75rem; padding-right: .85rem; padding-left: .85rem; }
  .home-page .brand,
  .gallery-page .brand { gap: .45rem; }
  .home-page .brand > span,
  .gallery-page .brand > span { display: none; }
}
