/* Soon Works — dark cinema. Green and pink are sparks, never a wash. */
:root {
  --bg: #0B0C0B;
  --ink: #F3F0E8;
  --ink-dim: rgba(243, 240, 232, 0.62);
  --ink-mute: rgba(243, 240, 232, 0.38);
  --hair: rgba(243, 240, 232, 0.12);
  --hair-strong: rgba(243, 240, 232, 0.22);
  --green: #02692B;
  --pink: #E45A9A;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --display: "Outfit", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.1rem, 3.8vw, 2.6rem);
  --radius: 0.9rem;
  --nav-h: 3.4rem;
  --max: 92rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  hanging-punctuation: first last;
}

html[lang="cs"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="cs"] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--pink); color: var(--bg); }

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

.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;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.5rem;
  z-index: 90;
  padding: 0.4rem 0.7rem;
  background: var(--pink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ——— Nav: glass bar + white lockup on the left ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(var(--nav-h) + 1.6rem);
  padding: 1.15rem var(--pad) 0.85rem;
  background: transparent;
  overflow: visible;
}
.nav-shell {
  position: relative;
  width: min(50%, 38rem);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.nav-glow {
  position: absolute;
  left: 0.05rem;
  top: 50%;
  width: 4.35rem;
  height: 2.95rem;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(
    circle at 40% 48%,
    rgba(255, 214, 232, 0.98) 0%,
    rgba(228, 90, 154, 0.88) 38%,
    rgba(228, 90, 154, 0.32) 68%,
    rgba(228, 90, 154, 0) 100%
  );
  opacity: 0.95;
  filter: blur(0.2px) saturate(1.2);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 0 28px rgba(228, 90, 154, 0.35);
}
.nav-logo {
  --logo-size: 4.05rem;
  position: relative;
  z-index: 2;
  flex: none;
  margin: calc((var(--logo-size) - 3.1rem) / -2) 0.15rem calc((var(--logo-size) - 3.1rem) / -2) 0;
  display: grid;
  place-items: center;
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 0.85rem;
  overflow: visible;
  transition: transform 0.35s var(--ease);
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo img {
  width: var(--logo-size);
  height: var(--logo-size);
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(228, 90, 154, 0.45));
  pointer-events: none;
}
.nav-logo:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.nav-glass {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem 0.85rem;
  min-height: 3.1rem;
  padding: 0.28rem 0.85rem 0.28rem 0.2rem;
  border-radius: 999px;
  overflow: visible;
  isolation: isolate;
  background: color-mix(in srgb, var(--bg) 38%, transparent);
  backdrop-filter: saturate(1.7) blur(36px) brightness(1.05);
  -webkit-backdrop-filter: saturate(1.7) blur(36px) brightness(1.05);
  border: 0;
  box-shadow:
    0 12px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(243, 240, 232, 0.14),
    inset 0 0 0 1px rgba(243, 240, 232, 0.06);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-transform: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-dim);
  border-radius: 35px;
  padding: 7px 15px;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.nav-links a[aria-current="page"] {
  color: var(--pink);
  background: color-mix(in srgb, var(--pink) 18%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--pink) 35%, transparent),
    0 4px 18px rgba(228, 90, 154, 0.18);
}
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.32rem;
  background: var(--green);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  border-radius: 999px;
}

.lang {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lang button { color: var(--ink-mute); letter-spacing: 0.1em; }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:hover { color: var(--pink); }
.lang .pipe { color: var(--ink-mute); user-select: none; }

@media (max-width: 820px) {
  .nav {
    padding: 0.85rem var(--pad) 0.55rem;
    min-height: calc(var(--nav-h) + 0.9rem);
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }
  .nav-shell {
    width: 100%;
    max-width: 100%;
  }
  .nav-glass {
    gap: 0.25rem 0.4rem;
    min-height: 2.65rem;
    padding: 0.18rem 0.45rem 0.18rem 0.12rem;
    width: 100%;
    max-width: 100%;
  }
  .nav-logo {
    --logo-size: 2.55rem;
    margin: calc((var(--logo-size) - 2.65rem) / -2) 0.05rem calc((var(--logo-size) - 2.65rem) / -2) 0;
  }
  .nav-glow {
    width: 2.85rem;
    height: 2.2rem;
    left: 0;
  }
  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.1rem;
    font-size: 0.82rem;
    justify-content: flex-start;
  }
  .nav-links a {
    padding: 5px 8px;
    gap: 0.28rem;
  }
  .nav-count {
    min-width: 1.05rem;
    height: 1.05rem;
    font-size: 9px;
    padding: 0 0.22rem;
  }
  .lang {
    flex: none;
    gap: 0.22rem;
    font-size: 10px;
    margin-left: 0.15rem;
    padding-right: 0.15rem;
  }
}

/* ——— Type + layout ——— */
.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.kicker {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.05rem, 8.2vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}
.lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-dim);
}
.lede p { margin: 0 0 0.7em; }
.lede p:last-child { margin-bottom: 0; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  margin: 1.15rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.meta-row b { color: var(--ink-dim); font-weight: 400; }

.credits {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.55rem 1.25rem;
  margin: 2rem 0 0;
  max-width: 36rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.credits dt { color: var(--ink-mute); }
.credits dd { margin: 0; color: var(--ink-dim); }

/* ——— Motion ——— */
html.js .rise {
  opacity: 0;
  transform: translateY(1.1rem);
}
html.js.is-ready .rise {
  animation: rise 1s var(--ease) both;
}
html.js.is-ready .d1 { animation-delay: 0.07s; }
html.js.is-ready .d2 { animation-delay: 0.16s; }
html.js.is-ready .d3 { animation-delay: 0.26s; }
html.js.is-ready .d4 { animation-delay: 0.38s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ——— Home hero claim ——— */
.home-hero {
  padding-block: clamp(2.4rem, 9vh, 6rem) 1.85rem;
}
.home-name {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}
.home-role {
  margin: 0 0 1.15rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-dim);
}
.home-hero .display {
  max-width: 16ch;
}
.home-cats {
  margin: 1.35rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.home-soon {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--pink, #E45A9A);
  font-weight: 500;
}

@media (max-width: 700px) {
  .home-hero .display { max-width: none; }
}

/* ——— Home: work first ——— */
.home-work {
  padding-block: 1.1rem 3.5rem;
}
.home-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.home-kicker .kicker { margin: 0; }
.home-kicker a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
}
.home-kicker a:hover { color: var(--pink); border-color: var(--pink); }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: start;
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  display: grid;
  color: inherit;
  isolation: isolate;
}
.card-media {
  position: relative;
  overflow: hidden;
  background: #111;
  line-height: 0;
  border-radius: var(--radius);
}
.card-media img,
.card-media video {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
  transition: transform 1.05s var(--ease);
}
.card-media video {
  background: #000;
}
.card:hover .card-media img,
.card:hover .card-media video,
.card:focus-visible .card-media img,
.card:focus-visible .card-media video { transform: scale(1.03); }

.card-body { padding: 0.95rem 0.05rem 0.35rem; }
@media (max-width: 820px) {
  .card-body { padding: 0.55rem 0.05rem 0.85rem; }
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card h2 {
  margin: 0.4rem 0 0.12rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.card .one { margin: 0; color: var(--ink-dim); }
.explore {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  opacity: 0.7;
  transition: opacity 0.35s var(--ease), color 0.35s var(--ease);
}
.explore::after { content: "→"; }
.card:hover .explore,
.card:focus-visible .explore { opacity: 1; color: var(--ink); }

.strip {
  padding-block: 4rem 5rem;
  border-top: 1px solid var(--hair);
}
.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem 5rem;
  align-items: end;
}
.strip h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.2vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.strip p { margin: 0.75rem 0 0; color: var(--ink-dim); max-width: 34rem; }
.names {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  letter-spacing: -0.02em;
}
.names li + li { margin-top: 0.1rem; }
.more {
  display: inline-block;
  margin-top: 1.35rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  border-bottom: 1px solid transparent;
}
.more:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 820px) {
  .strip-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ——— Work index ——— */
.page-head {
  padding-block: clamp(2.2rem, 7vh, 4.5rem) 1.35rem;
}
.page-head .display { max-width: 16ch; }

.work-index { padding-bottom: 4.5rem; }

/* ——— Case ——— */
.case-hero { padding-block: clamp(2rem, 6vh, 4rem) 1.4rem; }
.case-hero .display { max-width: 18ch; }

.bleed {
  width: auto;
  margin-inline: var(--pad);
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius);
}
.bleed img,
.bleed video {
  width: 100%;
  height: min(86svh, 980px);
  object-fit: cover;
  border-radius: var(--radius);
}
.bleed img { object-position: center center; }

.prose-wrap { padding-block: 3.5rem 2.25rem; }
.prose {
  max-width: 36rem;
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.018em;
}
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.player-block { padding-block: 0.5rem 2.25rem; }
.loop-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding-block: 0 2.25rem;
}
.loop-pair .player { width: 100%; }
@media (max-width: 700px) {
  .loop-pair { grid-template-columns: 1fr; }
}
.player-block + .player-block { padding-top: 0; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius);
}
.player.is-43 { aspect-ratio: 4 / 3; }
.player.is-34 { aspect-ratio: 3 / 4; }
.player iframe,
.player video,
.player .gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player video,
.player .gif { object-fit: cover; }
.player[data-playing] video {
  object-fit: contain;
  background: #000;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  z-index: 2;
}
.play-mark {
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.play-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.play-btn:hover .play-mark,
.player:hover .play-mark {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 12px 32px rgba(228, 90, 154, 0.35));
}
.play-btn:hover .play-mark path[fill="#E45A9A"] {
  fill: #02692B;
}

/* Card / next thumb: Soon play mark over video */
.card-media,
.next-media {
  position: relative;
}
.vid-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 2;
  width: 3.1rem;
  height: 3.1rem;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.vid-play svg { width: 100%; height: 100%; display: block; }
.card:hover .vid-play,
.next:hover .vid-play {
  opacity: 0;
  transform: scale(1.15) rotate(-4deg);
}
@media (hover: none) {
  .vid-play { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .play-mark, .vid-play { transition: none; }
}
.player.is-on .play-btn,
.player.is-on .gif { display: none; }
.player-title {
  margin: 0.7rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.player-ext {
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.player-ext a { color: var(--ink-dim); }
.player-ext a:hover { color: var(--pink); }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  align-items: stretch;
  padding-block: 0 3rem;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  background: #111;
  border-radius: var(--radius);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.05s var(--ease);
}
.gallery figure:hover img { transform: scale(1.045); }
.gallery .portrait { aspect-ratio: 4 / 5; }
.gallery .full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.gallery .full img {
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.gallery .land {
  grid-column: 1 / -1;
  aspect-ratio: auto;
}
.gallery .port {
  aspect-ratio: auto;
}
.gallery .land img,
.gallery .port img {
  height: auto;
  object-fit: contain;
}

.gallery > .portrait:nth-child(odd):has(+ .full),
.gallery > .portrait:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .full { grid-column: auto; }
  .gallery > .portrait:nth-child(odd):has(+ .full),
  .gallery > .portrait:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.process {
  padding-block: 2.25rem 3.5rem;
  border-top: 1px solid var(--hair);
}
.process .prose { margin-top: 1.1rem; }
.process .gallery { padding-block: 1.25rem 0; }
.process .player { margin-top: 1.1rem; }

.next {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 1.5rem;
  align-items: stretch;
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--hair);
}
.next-copy .kicker { margin-bottom: 0.55rem; }
.next h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.next:hover h2 { color: var(--pink); }
.next .one { margin: 0.55rem 0 0; color: var(--ink-dim); }
.next-media {
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}
.next-media img,
.next-media .next-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.05s var(--ease);
}
.next:hover .next-media img,
.next:hover .next-media .next-video { transform: scale(1.05); }
@media (max-width: 700px) {
  .next { grid-template-columns: 1fr; }
}

/* ——— Studio ——— */
.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.4rem;
  padding-block: 3.25rem 4.25rem;
  border-top: 1px solid var(--hair);
}
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 0.65rem;
}
.approach h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.approach p { margin: 0; color: var(--ink-dim); }
@media (max-width: 800px) {
  .approach { grid-template-columns: 1fr; gap: 1.6rem; }
}

.do { padding-block: 0 4.25rem; }
.do ol { list-style: none; margin: 0; padding: 0; }
.do li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--hair);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.do li:last-child { border-bottom: 1px solid var(--hair); }
.do li .n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-top: 0.45rem;
}

.people { padding-block: 0 5rem; }
.people ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

/* ——— Contact ——— */
.hello {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hello span:nth-child(1) { color: var(--pink); }
.hello span:nth-child(2) { color: var(--ink-dim); }
.hello span:nth-child(3) { color: var(--green); }

.mail-lg {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  word-break: break-all;
}
.mail-lg:hover { color: var(--pink); }

.contact-page {
  padding-block: clamp(3rem, 12vh, 8rem) 6rem;
  min-height: calc(100svh - var(--nav-h) - 8rem);
}
.contact-form {
  margin-top: 2.75rem;
  max-width: 28rem;
  display: grid;
  gap: 0.95rem;
  padding: 1.25rem 1.3rem 1.4rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(243, 240, 232, 0.14);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  box-shadow: 0 0 36px rgba(228, 90, 154, 0.08);
  backdrop-filter: saturate(1.25) blur(18px);
  -webkit-backdrop-filter: saturate(1.25) blur(18px);
}
.contact-form .kicker { margin: 0 0 0.15rem; color: var(--pink); }
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid var(--hair);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--pink) 65%, var(--hair));
  box-shadow: 0 0 0 3px rgba(228, 90, 154, 0.18);
}
.contact-submit {
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pink) 88%, #fff);
  color: #14060c;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.contact-submit:hover { filter: brightness(1.06); }
.contact-hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: none;
}

/* ——— Footer ——— */
.foot {
  padding: 2.1rem var(--pad) 1.5rem;
  border-top: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-mute);
}
.foot a:hover { color: var(--pink); }
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  align-items: baseline;
}
.services { color: var(--ink-dim); }
.foot-follow { color: var(--ink-dim); }
.foot-follow a { color: var(--ink); }
.to-top { color: var(--ink-dim); }
.foot-bottom {
  margin-top: 1.8rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.foot-bottom p { margin: 0; }

/* ——— 404 ——— */
.miss {
  min-height: calc(100svh - var(--nav-h) - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(3rem, 12vh, 8rem) 5rem;
}
.miss a { color: var(--pink); }
.miss a:hover { color: var(--ink); }

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rise,
  html.js .reveal,
  html.js.is-ready .rise {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .card-media img,
  .card-media video,
  .gallery img,
  .next-media img, .next-media .next-video { transition: none; }
  .nav-logo { transition: none; }
}


/* ——— Gallery snap (mobile + desktop) ——— */
.gallery.is-snap {
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0 0.5rem;
  grid-template-columns: none;
}
.gallery.is-snap::-webkit-scrollbar { display: none; }
.gallery.is-snap > figure {
  flex: 0 0 min(42%, 22rem);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-width: 0;
  aspect-ratio: auto;
  height: auto;
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 0.32rem;
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.gallery.is-snap > figure.land {
  flex: 0 0 min(48%, 26rem);
  aspect-ratio: 3 / 2;
}
.gallery.is-snap > figure.port,
.gallery.is-snap > figure.portrait {
  flex: 0 0 min(28%, 18rem);
  aspect-ratio: 2 / 3;
}
.gallery.is-snap > figure.is-active {
  background: color-mix(in srgb, var(--pink) 22%, transparent);
  border-color: color-mix(in srgb, var(--pink) 55%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pink) 25%, transparent),
    0 12px 32px rgba(228, 90, 154, 0.22);
}
.gallery.is-snap > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery.is-snap .full,
.gallery.is-snap .land,
.gallery.is-snap > .portrait:nth-child(odd):has(+ .full),
.gallery.is-snap > .portrait:last-child:nth-child(odd) {
  grid-column: auto;
}
.gallery-land.is-snap > figure { flex-basis: min(48%, 26rem); }
.gallery-port.is-snap > figure { flex-basis: min(28%, 18rem); }
.snap-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.35rem 0 1.8rem;
}
.snap-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hair-strong);
  transition: background 0.25s, transform 0.25s;
}
.snap-dot[aria-current="true"] {
  background: var(--pink);
  transform: scale(1.25);
}

/* ——— Case pages, small screens ——— */
@media (max-width: 700px) {
  .case-hero { padding-block: 1.35rem 1rem; }
  .case-hero .display,
  .page-head .display { max-width: none; }
  .credits {
    display: none;
  }
  .credit-rail {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    margin: 1.35rem calc(var(--pad) * -1) 0;
    padding: 0.15rem var(--pad) 0.55rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .credit-rail::-webkit-scrollbar { display: none; }
  .credit-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0.95rem 1rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg) 55%, rgba(243, 240, 232, 0.06));
    border: 1px solid var(--hair);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .credit-card-label {
    margin: 0 0 0.45rem;
    color: var(--ink-mute);
  }
  .credit-card-value {
    color: var(--ink-dim);
    line-height: 1.55;
  }
  .gallery.is-snap > figure.land {
    flex: 0 0 min(88%, 22rem);
  }
  .gallery.is-snap > figure.port,
  .gallery.is-snap > figure.portrait {
    flex: 0 0 min(72%, 16.5rem);
  }
  .gallery-land.is-snap > figure { flex-basis: min(88%, 22rem); }
  .gallery-port.is-snap > figure { flex-basis: min(72%, 16.5rem); }
  .bleed {
    width: auto;
    margin-inline: var(--pad);
    background: transparent;
  }
  .bleed img,
  .bleed video {
    height: min(58svh, 26rem);
    border-radius: var(--radius);
  }
  .prose-wrap { padding-block: 1.7rem 1.15rem; }
  .player-block { padding-block: 0.25rem 1.5rem; }
  .play-mark { width: 3.5rem; height: 3.5rem; }
  .vid-play { width: 2.55rem; height: 2.55rem; }
  .gallery { gap: 0.5rem; padding-block: 0 2rem; }
  .gallery.is-snap { padding-block: 0 0.35rem; }
  .next { padding-block: 1.5rem 3rem; gap: 1rem; }
  .home-hero { padding-block: 1.5rem 1rem; }
  .home-work { padding-block: 0.7rem 2.4rem; }
  .strip { padding-block: 2.4rem 3rem; }
}

@media (max-width: 420px) {
  :root { --pad: 1rem; }
  .nav-logo { --logo-size: 2.3rem; }
  .nav-glow { width: 2.55rem; height: 2rem; }
  .nav-links { gap: 0; font-size: 0.78rem; }
  .nav-links a { padding: 4px 6px; }
  .nav-count { display: none; } /* frees space on very small phones */
  .lang { font-size: 9px; gap: 0.15rem; }
  .display { font-size: clamp(1.75rem, 11vw, 2.45rem); }
  .home-hero .display { letter-spacing: -0.045em; }
  .card h2 { font-size: 1.35rem; }
  .mail-lg { font-size: clamp(1.45rem, 9vw, 2.8rem); }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
}

/* Prevent any page-level horizontal scroll from nav/media */
html, body { overflow-x: clip; }
.wrap { max-width: 100%; }



/* ——— Credit rail: mobile only; galleries snap on all sizes ——— */
@media (min-width: 701px) {
  .credit-rail { display: none; }
}

/* ——— Lightbox ——— */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 6, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(96vw, 72rem);
  max-height: min(88svh, 56rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid rgba(243, 240, 232, 0.16);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox-close:hover { color: var(--pink); }

/* ——— Slideshow layout ——— */
.slideshow {
  position: relative;
  margin-block: 0 0.25rem;
}
.gallery.is-slideshow {
  scroll-snap-type: x mandatory;
}
.gallery.is-slideshow > figure {
  flex: 0 0 min(94%, 52rem) !important;
}
.gallery.is-slideshow > figure.land,
.gallery-land.is-slideshow > figure {
  flex: 0 0 min(94%, 56rem) !important;
}
.gallery.is-slideshow > figure.port,
.gallery.is-slideshow > figure.portrait,
.gallery-port.is-slideshow > figure {
  flex: 0 0 min(78%, 28rem) !important;
}
.slideshow-controls {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.slideshow-btn {
  pointer-events: auto;
  position: absolute;
  top: clamp(6rem, 28vw, 14rem);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid rgba(243, 240, 232, 0.16);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.slideshow-btn:hover { color: var(--pink); }
.slideshow-controls .slideshow-btn:first-child { left: 0.35rem; }
.slideshow-controls .slideshow-btn:last-child { right: 0.35rem; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid rgba(243, 240, 232, 0.16);
  color: var(--ink);
  font-size: 1.6rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox-nav:hover { color: var(--pink); }
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }
@media (max-width: 700px) {
  .gallery.is-slideshow > figure,
  .gallery.is-slideshow > figure.land,
  .gallery-land.is-slideshow > figure {
    flex: 0 0 92% !important;
  }
  .gallery.is-slideshow > figure.port,
  .gallery.is-slideshow > figure.portrait,
  .gallery-port.is-slideshow > figure {
    flex: 0 0 82% !important;
  }
  .slideshow-btn { top: 42%; width: 2.2rem; height: 2.2rem; }
}

