:root {
  color-scheme: dark;
  --bg: #05030f;
  --text: #eef0fb;
  --muted: #97a0c4;
  --line: rgba(190, 200, 255, 0.14);
  --line-strong: rgba(190, 200, 255, 0.3);
  --signal: #8ff6ff;
  --cyan: #5fd2e6;
  --violet: #a863f0;
  --magenta: #dd8fe4;
  --acid: #e6b063;
  --panel: rgba(255, 255, 255, 0.03);
  --control-text: #071015;
  --max: 1160px;
  --header: 76px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
}

body.detail-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient canvas sits above content, blended with "screen" so it lights
   whatever is beneath rather than covering it. */
#fluid-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  pointer-events: none;
  mix-blend-mode: screen;
}

.signal-cursor {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 38;
  width: 0;
  height: 0;
  pointer-events: none;
}

.signal-cursor .cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(114, 246, 255, 0.85), 0 0 22px rgba(114, 246, 255, 0.35);
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0);
  transition: width 160ms ease, height 160ms ease, margin 160ms ease, background 160ms ease;
}

.signal-cursor.is-hover .cursor-dot {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 0 30px rgba(114, 246, 255, 0.45);
}

@media (hover: none) {
  .signal-cursor {
    display: none;
  }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  height: var(--header);
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-elevated {
  border-color: var(--line);
  background: rgba(3, 3, 6, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-glyph {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(238, 240, 251, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(238, 240, 251, 0.16), transparent 60%);
}

.brand-glyph::before {
  position: absolute;
  content: "";
  top: 14px;
  right: 5px;
  left: 5px;
  height: 1px;
  background: var(--acid);
  transform: rotate(-18deg);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 30px);
  color: rgba(238, 240, 251, 0.66);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: color 150ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a:hover,
.nav a:focus-visible {
  color: rgba(238, 240, 251, 0.96);
}

.language-switch {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  border: 1px solid rgba(238, 240, 251, 0.3);
  background: rgba(190, 200, 255, 0.08);
  backdrop-filter: blur(14px);
}

.lang-button {
  min-width: 32px;
  height: 28px;
  color: rgba(238, 240, 251, 0.7);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 800;
  transition: color 140ms ease, background 140ms ease;
}

.lang-button.active {
  color: var(--control-text);
  background: linear-gradient(180deg, #ffffff, #cfd8dd);
}

.lang-button:hover:not(.active) {
  color: #fff;
}

.sound-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px 0 10px;
  color: rgba(238, 240, 251, 0.78);
  border: 1px solid rgba(238, 240, 251, 0.3);
  border-radius: 999px;
  background: rgba(190, 200, 255, 0.06);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.icon-button.is-active {
  color: #fff;
  border-color: rgba(143, 246, 255, 0.6);
  background: rgba(95, 210, 230, 0.16);
}

.sound-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
}

.sound-icon-play {
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  margin: auto;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  transition: opacity 140ms ease;
}

.sound-icon-stop {
  position: absolute;
  inset: 0;
  width: 10px;
  height: 10px;
  margin: auto;
  background: currentColor;
  opacity: 0;
  transition: opacity 140ms ease;
}

.icon-button.is-active .sound-icon-play {
  opacity: 0;
}

.icon-button.is-active .sound-icon-stop {
  opacity: 1;
}

.sound-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-volume {
  width: 58px;
  accent-color: var(--signal);
  cursor: pointer;
}

@media (max-width: 640px) {
  .sound-volume {
    display: none;
  }
}

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

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(820px, 92svh);
  padding: calc(var(--header) + 58px) clamp(18px, 5vw, 70px) 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(95, 210, 230, 0.08), transparent 42%),
    radial-gradient(ellipse at 15% 85%, rgba(168, 99, 240, 0.07), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
}

.kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.gel-title {
  display: block;
  margin: 4px 0 24px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: rgba(238, 240, 251, 0.94);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 680;
  color: var(--text);
  letter-spacing: -0.01em;
}

main section h2 + * {
  margin-top: 22px;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 34px;
  color: rgba(238, 240, 251, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-link,
.ghost-link {
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid rgba(238, 240, 251, 0.28);
  color: rgba(238, 240, 251, 0.85);
  background: rgba(190, 200, 255, 0.05);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-link {
  color: #05030f;
  border-color: transparent;
  background: linear-gradient(180deg, #a8f0fb, var(--cyan));
  font-weight: 700;
}

.primary-link:hover,
.primary-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(95, 210, 230, 0.22);
}

.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: #fff;
}

/* ---------- section shell ---------- */

section:not(.hero) {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: clamp(44px, 7vw, 82px) auto;
  border: 1px solid var(--line);
  background: var(--panel);
  scroll-margin-top: calc(var(--header) + 20px);
}

.intro-section,
.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(88px, 11vw, 132px) clamp(18px, 3.2vw, 42px) clamp(64px, 8vw, 100px);
}

.intro-section {
  min-height: 100svh;
  align-items: center;
}

.privacy-section {
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
}

.intro-text {
  color: rgba(238, 240, 251, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

.intro-text p,
.privacy-copy p {
  margin-bottom: 1.1em;
}

.intro-text p:last-child,
.privacy-copy p:last-child {
  margin-bottom: 0;
}

.identity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.identity-chip {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(190, 200, 255, 0.04);
  cursor: default;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease;
}

button.identity-chip {
  cursor: pointer;
}

button.identity-chip:hover,
button.identity-chip:focus-visible {
  color: #fff;
  border-color: var(--cyan);
}

/* ---------- archive ---------- */

.archive-section {
  padding: clamp(92px, 11vw, 132px) clamp(18px, 3.2vw, 42px) clamp(70px, 8vw, 108px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-top {
  margin-bottom: clamp(30px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 24px;
}

.archive-top .eyebrow {
  grid-column: 1 / -1;
}

.archive-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

main section h2 + .archive-count {
  margin-top: 0;
}

.archive-index {
  counter-reset: works;
  border-top: 1px solid var(--line-strong);
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 3.4rem minmax(0, 1fr) 1.6rem;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  padding: clamp(20px, 2.6vw, 30px) clamp(6px, 1vw, 14px);
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: color 240ms ease;
}

/* light sweep from the left on hover */
.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(95, 210, 230, 0.1), rgba(168, 99, 240, 0.06) 60%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-row:hover::before,
.work-row:focus-visible::before,
.work-row:hover::after,
.work-row:focus-visible::after {
  transform: scaleX(1);
}

.work-row:focus-visible {
  outline: none;
}

.work-row-index,
.work-row-year,
.work-row-kind {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-row-index {
  color: rgba(238, 240, 251, 0.32);
  transition: color 240ms ease;
}

.work-row:hover .work-row-index,
.work-row:focus-visible .work-row-index {
  color: var(--signal);
}

.work-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-row-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.9vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-row:hover .work-row-title,
.work-row:focus-visible .work-row-title {
  transform: translateX(10px);
}

.work-row-location {
  margin-top: 8px;
  font-size: 0.86rem;
  color: rgba(238, 240, 251, 0.6);
}

.work-row-kind {
  justify-self: start;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  font-size: 0.62rem;
  white-space: nowrap;
  transition: border-color 240ms ease, color 240ms ease;
}

.work-row:hover .work-row-kind,
.work-row:focus-visible .work-row-kind {
  border-color: rgba(95, 210, 230, 0.55);
  color: var(--text);
}

.work-row-arrow {
  justify-self: end;
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), color 240ms ease;
}

.work-row:hover .work-row-arrow,
.work-row:focus-visible .work-row-arrow {
  color: var(--signal);
  transform: translateX(6px);
}

/* Listed works without a detail page: no hover sweep, no motion */
.work-row.is-static {
  cursor: default;
}

.work-row.is-static:hover::before,
.work-row.is-static:hover::after {
  transform: scaleX(0);
}

.work-row.is-static:hover .work-row-title {
  transform: none;
}

.work-row.is-static:hover .work-row-index {
  color: rgba(238, 240, 251, 0.32);
}

@media (max-width: 900px) {
  .work-row {
    grid-template-columns: 2.4rem 3.4rem minmax(0, 1fr) 1.6rem;
    grid-template-areas:
      "index year . arrow"
      "main main main main";
    row-gap: 14px;
  }

  .work-row-index { grid-area: index; }
  .work-row-year { grid-area: year; }
  .work-row-kind { grid-area: kind; justify-self: end; }
  .work-row-arrow { grid-area: arrow; }
  .work-row-main { grid-area: main; }

  .work-row-title {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
  }

  .work-row:hover .work-row-title,
  .work-row:focus-visible .work-row-title {
    transform: none;
  }
}

@media (max-width: 480px) {
  .archive-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- work detail overlay ---------- */

.work-detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background: rgba(4, 3, 12, 0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.work-detail[hidden] {
  display: none;
}

.work-detail.is-visible {
  opacity: 1;
}

.work-detail-close {
  position: fixed;
  top: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 3, 15, 0.7);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.work-detail-close:hover,
.work-detail-close:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.work-detail-inner {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(90px, 12vw, 128px) 0 100px;
}

.work-detail-eyebrow {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Same serif as the works list and hero title, so the page reads as one voice */
.work-detail-title {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: rgba(238, 240, 251, 0.94);
  text-wrap: balance;
  margin-bottom: 26px;
}

/* Same reading rhythm as the Bio text; blank lines in the copy become paragraphs */
.work-detail-body {
  max-width: 640px;
  color: rgba(238, 240, 251, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.65;
  white-space: pre-line;
  text-wrap: pretty;
  margin-bottom: 44px;
}

.work-detail-note {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.work-detail-note[hidden] {
  display: none;
}

.work-audio {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  margin-bottom: 32px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(190, 200, 255, 0.05);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.work-audio[hidden] {
  display: none;
}

.work-audio-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.work-audio-label,
.work-audio-time {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.work-audio-time {
  font-variant-numeric: tabular-nums;
  color: rgba(238, 240, 251, 0.78);
}

.work-audio-seek {
  --progress: 0%;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.work-audio-seek::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)) 0 / var(--progress) 100% no-repeat, rgba(238, 240, 251, 0.16);
}

.work-audio-seek::-moz-range-track {
  height: 3px;
  background: rgba(238, 240, 251, 0.16);
}

.work-audio-seek::-moz-range-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.work-audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(143, 246, 255, 0.7);
}

.work-audio-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(143, 246, 255, 0.7);
}

.work-audio-seek:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
}

.work-audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-audio-toggle,
.work-audio-btn {
  position: relative;
  flex: 0 0 auto;
  height: 40px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.work-audio-toggle {
  width: 48px;
  height: 48px;
  border-color: rgba(95, 210, 230, 0.55);
}

.work-audio-btn {
  min-width: 48px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(238, 240, 251, 0.8);
}

.work-audio-toggle:hover,
.work-audio-toggle:focus-visible,
.work-audio-btn:hover,
.work-audio-btn:focus-visible {
  border-color: var(--cyan);
  background: rgba(95, 210, 230, 0.1);
  color: #fff;
}

.work-audio-stop span {
  display: block;
  width: 11px;
  height: 11px;
  margin: auto;
  background: currentColor;
}

.work-audio-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--text);
  transform: translateX(2px);
}

.work-audio.is-playing .work-audio-icon {
  width: 3px;
  height: 14px;
  border: 0;
  background: var(--text);
  box-shadow: 7px 0 0 var(--text);
  transform: translateX(-3px);
}

[dir="rtl"] .work-audio-controls,
[dir="rtl"] .work-audio-seek {
  direction: ltr;
}

.work-gallery {
  position: relative;
  margin-bottom: 12px;
  padding: 36px 0 8px;
}

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

.work-gallery-track {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  perspective: 1300px;
  padding: 44px calc(50% - 90px);
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.work-gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.work-gallery-track::-webkit-scrollbar {
  display: none;
}

.work-gallery-card {
  position: relative;
  flex: 0 0 auto;
  width: min(46vw, 180px);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: center;
  cursor: zoom-in;
  background: #05030f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  will-change: transform;
}

.work-gallery-card img,
.work-gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.work-gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(238, 240, 251, 0.55);
  border-radius: 50%;
  background: rgba(5, 3, 15, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.work-gallery-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--text);
  transform: translate(-50%, -50%);
}

.work-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 55%);
  pointer-events: none;
}

@media (max-width: 680px) {
  .work-gallery-card {
    width: min(58vw, 200px);
  }
  .work-gallery-track {
    padding: 44px calc(50% - 100px);
  }
}

/* ---------- image lightbox ---------- */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
  background: rgba(2, 1, 6, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img,
.image-lightbox video {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}

.image-lightbox img[hidden],
.image-lightbox video[hidden] {
  display: none;
}

.image-lightbox-count {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(238, 240, 251, 0.66);
}

.image-lightbox-close,
.image-lightbox-prev,
.image-lightbox-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(238, 240, 251, 0.3);
  background: rgba(5, 3, 15, 0.7);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.image-lightbox-close:hover,
.image-lightbox-prev:hover,
.image-lightbox-next:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.image-lightbox-close {
  top: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
}

.image-lightbox-prev {
  left: clamp(10px, 2.4vw, 26px);
  top: 50%;
  transform: translateY(-50%);
}

.image-lightbox-next {
  right: clamp(10px, 2.4vw, 26px);
  top: 50%;
  transform: translateY(-50%);
}

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

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  width: min(var(--max), calc(100% - 36px));
  margin: clamp(44px, 7vw, 82px) auto 40px;
  padding: clamp(88px, 9vw, 108px) clamp(18px, 3.2vw, 42px) 40px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.site-footer h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(238, 240, 251, 0.94);
}

.footer-copy {
  width: min(520px, 100%);
  margin: 18px 0 0;
  color: rgba(238, 240, 251, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.contact-chip {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  color: rgba(238, 240, 251, 0.8);
  background: rgba(190, 200, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: #fff;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .intro-section,
  .privacy-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .intro-section {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --header: 64px;
  }

  .site-header {
    gap: 10px;
    padding: 0 16px;
  }

  .brand span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-switch {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .hero {
    min-height: 86svh;
    padding: calc(var(--header) + 40px) 18px 82px;
  }

  .hero-copy {
    font-size: 1.06rem;
  }

  section:not(.hero),
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .intro-section,
  .privacy-section,
  .archive-section {
    padding: 74px 16px 52px;
  }

  .site-footer {
    padding: 74px 16px 40px;
  }
}

/* ---------- language / direction ---------- */

html[lang="fa"] body {
  font-size: 0.94rem;
}

html[lang="fa"] .gel-title {
  font-size: clamp(2.3rem, 6.4vw, 4.8rem);
}

html[lang="fa"] h2 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

[dir="rtl"] body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

[dir="rtl"] .nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .footer-links,
[dir="rtl"] .identity-strip {
  direction: rtl;
}

[dir="rtl"] .work-row {
  text-align: right;
}

[dir="rtl"] .work-row::before,
[dir="rtl"] .work-row::after {
  transform-origin: right center;
}

[dir="rtl"] .work-row-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .work-row:hover .work-row-arrow,
[dir="rtl"] .work-row:focus-visible .work-row-arrow {
  transform: scaleX(-1) translateX(6px);
}

[dir="rtl"] .work-row:hover .work-row-title,
[dir="rtl"] .work-row:focus-visible .work-row-title {
  transform: translateX(-10px);
}



/* ---------- full-screen frames ----------
   Every section fills the viewport edge to edge: 16:9 on desktop,
   9:16 on phones. Content stays on the --max column via padding. */

:root {
  --gutter: max(clamp(18px, 5vw, 70px), calc((100% - var(--max)) / 2));
}

html {
  scroll-snap-type: y proximity;
}

.hero,
section:not(.hero),
.site-footer {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
  scroll-margin-top: 0;
}

.hero {
  padding: calc(var(--header) + 40px) var(--gutter) clamp(56px, 9vh, 96px);
}

.intro-section,
.privacy-section {
  align-items: center;
  align-content: center;
  padding: calc(var(--header) + 32px) var(--gutter) clamp(40px, 7vh, 80px);
}

.archive-section {
  justify-content: center;
  padding: calc(var(--header) + 24px) var(--gutter) clamp(32px, 5vh, 64px);
}

.archive-top {
  margin-bottom: clamp(18px, 3.2vh, 40px);
}

.archive-section h2,
.intro-section h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.9rem, min(3.8vw, 5.6vh), 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: rgba(238, 240, 251, 0.94);
}

/* rows scale with viewport height so the index reads as one frame */
.work-row {
  padding-block: clamp(10px, 1.7vh, 22px);
}

.work-row-title {
  font-size: clamp(1.25rem, min(2.6vw, 3.5vh), 2.2rem);
}

.work-row-location {
  margin-top: 6px;
}

.site-footer {
  align-items: end;
  align-content: end;
  padding: calc(var(--header) + 40px) var(--gutter) clamp(32px, 6vh, 60px);
}

@media (max-width: 980px) {
  .intro-section {
    min-height: 100svh;
  }
}

@media (max-width: 680px) {
  .hero,
  section:not(.hero),
  .site-footer {
    width: 100%;
  }

  .hero {
    padding: calc(var(--header) + 32px) 18px clamp(48px, 8vh, 80px);
  }

  .intro-section,
  .privacy-section,
  .archive-section {
    padding: calc(var(--header) + 28px) 18px clamp(36px, 6vh, 60px);
  }

  .site-footer {
    padding: calc(var(--header) + 28px) 18px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
