:root {
  color-scheme: dark;

  /* ── Color sources (space-separated for rgb()/alpha derivation) ── */
  --text-rgb: 242 242 240;   /* near-white — primary text/UI */
  --line-rgb: 255 255 255;   /* hairlines, borders, grid */
  --signal-rgb: 201 17 32;   /* Nocta red accent */
  --signal: rgb(var(--signal-rgb));

  --bg: #050505;
  --panel: rgba(10, 10, 10, 0.72);
  --panel-solid: #080808;
  --text: #f2f2f0;

  /* ── Text emphasis scale (all ≥4.5:1 on bg = WCAG AA normal text) ── */
  --text-strong: rgb(var(--text-rgb) / 0.96);     /* ~18:1  headings */
  --text-secondary: rgb(var(--text-rgb) / 0.72);  /* ~10:1  body */
  --text-muted: rgb(var(--text-rgb) / 0.58);      /* ~6.3:1 secondary */
  --text-faint: rgb(var(--text-rgb) / 0.55);      /* ~5.7:1 min for small labels */

  --muted: #767676;
  --line: rgb(var(--line-rgb) / 0.09);
  --line-strong: rgb(var(--line-rgb) / 0.2);
  --shadow: rgba(0, 0, 0, 0.7);
  --accent: #f2f2f0;
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.76, 0, 0.24, 1);
  --sf-pro: "SF Pro Display", "SF Pro Text", "SF UI Display", "SF UI Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--sf-pro);
  --sans: var(--sf-pro);
  --mono: var(--sf-pro);
}

* {
  box-sizing: border-box;
}

/* ── Skip link — screen reader / keyboard nav ─────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.skip-link:focus {
  top: 16px;
}

/* Screen-reader-only text (visible to AT, hidden visually) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Required field asterisk ─────────────────────── */
.brief-form span [aria-hidden="true"] {
  color: rgb(var(--text-rgb) / 0.55);
  margin-left: 2px;
}

html {
  scroll-behavior: auto;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

.hero-title,
.section-title,
.reveal-title,
.project-title,
.project-artist,
.project-track,
.project-page-title,
.project-page-track,
.stat-grid dt {
  font-family: var(--display);
  text-rendering: optimizeLegibility;
}


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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 44px);
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
}

.site-footer a {
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}

.site-footer a:hover {
  opacity: 1;
}

.language-switch {
  gap: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
}

.language-switch button,
.filter-bar button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switch button {
  min-width: auto;
  min-height: 44px; /* touch target */
  height: auto;
  border-radius: 0;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.55;
  border-bottom: 1px solid transparent;
  transition:
    opacity 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 160ms var(--ease-out);
}

.language-switch button.active {
  background: none;
  color: var(--text);
  opacity: 1;
  border-bottom-color: var(--text);
}

.language-switch button:hover {
  opacity: 0.72;
}

.snap-section {
  min-height: 100svh;
}

.section-inner {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.hero-media,
.hero-shade,
.hero-fallback {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
  background: #070707;
}

.hero-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  border: 0;
  transform: translate(-50%, -50%) scale(1.02);
}

.hero-fallback {
  z-index: -2;
  background:
    linear-gradient(110deg, rgb(var(--line-rgb) / 0.1), transparent 34%),
    linear-gradient(250deg, rgba(146, 180, 255, 0.09), transparent 42%),
    repeating-linear-gradient(90deg, #111 0 1px, #070707 1px 11px);
}

.hero-shade {
  z-index: -1;
  background:
    radial-gradient(circle at 48% 44%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.34) 42%, #050505 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 48%, rgba(0, 0, 0, 0.58));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.project-title,
.project-page-title {
  margin: 0;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-title {
  max-width: 1120px;
  font-size: clamp(64px, 16vw, 206px);
  line-height: 0.84;
}

.section-title {
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 0.95;
  text-wrap: balance;
}

.reveal-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.reveal-title .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1s var(--ease);
}

.reveal-title.in-view .line > span,
.loaded .hero .reveal-title .line > span {
  transform: translateY(0);
}

.reveal-title .line:nth-child(2) > span {
  transition-delay: 0.1s;
}

.reveal-title .line:nth-child(3) > span {
  transition-delay: 0.18s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0 20px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }
}

.button:active {
  transform: scale(0.97);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.button-ghost,
.button-line {
  background: rgba(5, 5, 5, 0.22);
  color: var(--text);
}

.button-line {
  border-color: transparent;
}

/* Crafted hover: a fill sweeps up from the bottom and the label inverts */
.button-ghost::before,
.button-line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 180ms var(--ease-out);
}

.button-ghost:focus-visible,
.button-line:focus-visible {
  border-color: var(--text);
  background: transparent;
  color: var(--bg);
}

.button-ghost:focus-visible::before,
.button-line:focus-visible::before {
  transform: scaleY(1);
}

@media (hover: hover) and (pointer: fine) {
  .button-ghost:hover,
  .button-line:hover {
    border-color: var(--text);
    background: transparent;
    color: var(--bg);
  }

  .button-ghost:hover::before,
  .button-line:hover::before {
    transform: scaleY(1);
  }
}

.hero .hero-actions .button {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.loaded .hero .hero-actions .button {
  opacity: 1;
  transform: translateY(0);
}

.loaded .hero .hero-actions .button:nth-child(1) {
  transition-delay: 0.5s, 0.5s, 0s, 0s, 0s;
}

.loaded .hero .hero-actions .button:nth-child(2) {
  transition-delay: 0.62s, 0.62s, 0s, 0s, 0s;
}

.loaded .hero .hero-actions .button:nth-child(3) {
  transition-delay: 0.74s, 0.74s, 0s, 0s, 0s;
}

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.7s var(--ease);
}

.fade-up.in-view,
.loaded .hero .fade-up {
  opacity: 1;
  transform: translateY(0);
}

.loaded .hero .eyebrow.fade-up {
  transition-delay: 0.15s;
}

.glass-card {
  border: 1px solid rgba(247, 244, 238, 0.1);
  background: rgba(14, 14, 14, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.studio-section,
.contact-section {
  background: var(--bg);
}

.studio-section {
  display: grid;
  min-height: 70svh;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 92px 0 clamp(112px, 12vw, 168px);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.studio-copy {
  border-radius: 3px;
  padding: clamp(20px, 3.2vw, 34px);
}

.studio-copy p,
.contact-text,
.work-intro {
  margin: 0;
  color: rgba(247, 244, 238, 0.74);
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.36;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 0;
}

.stat-grid div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 16px;
  background: rgba(5, 5, 5, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}

/* Stats cascade in once the studio card is in view (content-aware stagger) */
.studio-copy.in-view .stat-grid div {
  opacity: 1;
  transform: translateY(0);
}

.studio-copy.in-view .stat-grid div:nth-child(2) {
  transition-delay: 0.08s;
}

.studio-copy.in-view .stat-grid div:nth-child(3) {
  transition-delay: 0.16s;
}

.stat-grid dt {
  font-size: 38px;
  font-weight: 820;
  line-height: 1;
}

.stat-grid dd {
  margin: 15px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-shell {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 0;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-shell-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 48px;
}

.filter-eyebrow {
  display: flex;
  align-items: center;
  padding: 0 clamp(14px, 2vw, 28px) 0 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 0 clamp(14px, 2vw, 28px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-bar button {
  position: relative;
  min-height: 48px;
  padding: 0 clamp(10px, 1.4vw, 18px);
  border-radius: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.filter-bar button:hover {
  color: rgba(247, 244, 238, 0.72);
}

.filter-bar button.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.project-stack {
  background: var(--bg);
}

.project-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 52svh;
  padding: clamp(60px, 12vw, 130px) 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.project-empty-title {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #080808;
  isolation: isolate;
}

.project-panel video,
.project-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Split transform into two custom props so the hover zoom (--vs) can ease
   smoothly while motion drives the scroll parallax (--py) with no lag. */
@property --vs {
  syntax: "<number>";
  inherits: false;
  initial-value: 1.12;
}
@property --py {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}

.project-panel video {
  z-index: -3;
  opacity: 1;
  filter: saturate(0.9) contrast(1.04) brightness(0.88);
  --vs: 1.2;
  transform: translate3d(0, var(--py), 0) scale(var(--vs));
  will-change: transform;
  transition:
    --vs 260ms var(--ease-out),
    opacity 200ms var(--ease-out);
}

.project-panel:focus-within video {
  --vs: 1.24;
}

@media (hover: hover) and (pointer: fine) {
  .project-panel:hover video {
    --vs: 1.24;
  }
}

.project-poster {
  z-index: -4;
  background-size: cover;
  background-position: center;
  transform: scale(1.14);
  will-change: transform;
}

.project-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.22) 56%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 42%, rgba(0, 0, 0, 0.78));
}

.project-panel[data-project-id="flasher-solo"]::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0.32)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 50%, rgba(0, 0, 0, 0.48));
}

.project-panel[data-project-id="flasher-solo"] .project-poster {
  filter: brightness(1.04) contrast(1.02) saturate(1.04);
}

.project-link {
  display: grid;
  min-height: 100svh;
  align-items: end;
  padding: clamp(98px, 10vw, 148px) clamp(18px, 4vw, 44px) clamp(24px, 4.6vw, 50px);
}

.project-copy {
  display: grid;
  width: min(100%, var(--max));
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: end;
}

.project-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 13px;
  color: rgba(240, 237, 230, 0.55);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-kicker span + span::before,
.project-page-meta span + span::before {
  content: '·';
  margin-right: 10px;
  opacity: 0.5;
}

.project-title {
  max-width: 1030px;
  font-size: clamp(40px, 9.4vw, 128px);
  line-height: 0.9;
}

/* Editorial artist / track hierarchy in project panels */
.project-title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-artist {
  margin: 0;
  font-weight: 820;
  font-size: clamp(42px, 9.4vw, 128px);
  line-height: 0.96; /* contains comma/descenders so they don't clip the track below */
  letter-spacing: 0;
  text-transform: uppercase;
  padding-bottom: 0.04em;
  overflow-wrap: anywhere;
}

.project-track {
  margin: 0;
  font-weight: 820;
  font-size: clamp(18px, 3.6vw, 48px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgb(var(--text-rgb) / 0.42);
  overflow-wrap: anywhere;
}

/* Base layout only — reveal (opacity/transform) is owned by the single
   `.project-panel .case-card` rule below so there's no axis conflict. */
.case-card {
  gap: 18px;
  background: none;
  border: none;
  box-shadow: none;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  opacity: 1;
  transform: none;
  justify-content: flex-end;
}

.project-tags span {
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
  color: rgb(var(--text-rgb) / 0.55);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-tags span + span::before {
  content: '·';
  margin: 0 0.5em;
  opacity: 0.6;
}

.project-open {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.3);
  opacity: 1;
  transform: none;
  transition: border-color 0.25s;
}

.project-panel:hover .project-open {
  border-bottom-color: rgb(var(--text-rgb) / 0.7);
}

.contact-section {
  display: grid;
  min-height: 100svh;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: clamp(118px, 14vh, 168px) 0 clamp(84px, 10vh, 132px);
  scroll-margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.contact-text {
  margin-top: 22px;
  max-width: 660px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 720;
}

.contact-links a {
  width: fit-content;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}

/* Links cascade once the contact links group is in view */
.contact-links.in-view a {
  opacity: 1;
  transform: translateY(0);
}

.contact-links.in-view a:nth-child(2) {
  transition-delay: 0.09s;
}

.brief-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-radius: 3px;
  padding: clamp(18px, 3vw, 28px);
}

.brief-form label {
  display: grid;
  gap: 8px;
}

.brief-form span,
.form-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(5, 5, 5, 0.68);
  color: var(--text);
  outline: none;
  padding: 13px 12px;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.brief-form textarea {
  resize: vertical;
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: rgba(247, 244, 238, 0.72);
  background: rgba(5, 5, 5, 0.9);
  box-shadow: 0 0 0 3px rgba(247, 244, 238, 0.08);
}

.brief-form input:focus-visible,
.brief-form select:focus-visible,
.brief-form textarea:focus-visible {
  transition: none;
}

.form-wide {
  grid-column: 1 / -1;
}

.form-status {
  margin: 0;
  color: rgba(247, 244, 238, 0.56);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0.02em;
}

.form-status.is-success {
  color: #d6f5df;
}

.form-status.is-error {
  color: #ffd3cc;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 44px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav-contact-mobile {
  display: none;
}

/* ── Preloader (home) — counter + curtain ──────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 42%, #161616 0%, var(--bg) 60%);
  transition: transform 480ms var(--ease-out);
  will-change: transform;
}

#preloader.loaded {
  transform: translateY(-101%);
}

/* Turnaround logo — small, centered, native-res (no upscale = crisp).
   screen blend drops the black frame so the logo floats on the backdrop. */
#preloader .pre-video {
  position: relative;
  z-index: 2;
  width: min(300px, 56vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Only a soft bottom scrim so the LOADING counter stays legible over the render */
#preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 26%);
  pointer-events: none;
}

#preloader .pre-wordmark,
#preloader .pre-meta,
#preloader .pre-bar {
  position: relative;
  z-index: 2;
}

#preloader .pre-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.6vw, 8px);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

#preloader .pre-wordmark .pre-line {
  display: block;
}

#preloader .pre-wordmark .pre-line > span {
  display: block;
  background:
    linear-gradient(180deg,
      #151412 0%, #59574f 10%, #f8f3e5 22%, #ffffff 32%,
      #89857b 43%, #191816 49%, #f7f2e5 50%, #373530 51%,
      #c8c2b4 63%, #6d685f 74%, #f4efe2 88%, #2b2a26 100%);
  background-size: 100% 280%;
  background-position: 50% 18%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgb(var(--line-rgb) / 0.14);
  animation: pre-sheen 2.4s ease-in-out infinite;
}

#preloader .pre-wordmark .pre-line:nth-child(2) > span {
  animation-delay: 0.3s;
}

/* metallic light sweeping through the letters while loading */
@keyframes pre-sheen {
  0%, 100% { background-position: 50% 8%; }
  50% { background-position: 50% 92%; }
}

#preloader .pre-wordmark.done .pre-line > span {
  animation: none;
  background-position: 50% 50%;
  transition: background-position 0.6s var(--ease);
}

#preloader .pre-meta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: #7a7a7a;
  text-transform: uppercase;
}

#preloader .pre-count {
  color: var(--text);
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#preloader .pre-bar {
  margin-top: 16px;
  width: min(260px, 52vw);
  height: 1px;
  background: rgb(var(--line-rgb) / 0.16);
  overflow: hidden;
}

#preloader .pre-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}

@media (prefers-reduced-motion: reduce) {
  #preloader .pre-wordmark .pre-line > span {
    animation: none;
    background-position: 50% 50%;
  }
  #preloader,
  #preloader .pre-bar > i { transition: none; }
}

/* ── Preloader ─────────────────────────────────────── */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 460ms var(--ease-out);
}

.site-preloader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  height: 80px;
  width: auto;
  opacity: 0;
  transform: scale(0.95) translateY(6px);
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
}


.preloader-logo.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Custom cursor — viewfinder brackets ───────────── */
.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

.cursor-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 150ms var(--ease-out);
}

.cursor-frame .c-tl,
.cursor-frame .c-tr,
.cursor-frame .c-bl,
.cursor-frame .c-br {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: rgb(var(--text-rgb) / 0.72);
  border-style: solid;
}

.cursor-frame .c-tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.cursor-frame .c-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.cursor-frame .c-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.cursor-frame .c-br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

.cursor-frame .c-label {
  position: relative;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  width: auto;
  height: auto;
  border: none !important;
}

body.cursor-project .cursor-frame .c-tl,
body.cursor-project .cursor-frame .c-tr,
body.cursor-project .cursor-frame .c-bl,
body.cursor-project .cursor-frame .c-br {
  border-color: rgb(var(--text-rgb) / 0.88);
}
body.cursor-project .cursor-frame .c-label {
  opacity: 0.85;
}
.cursor-frame {
  width: 18px;
  height: 18px;
  color: rgb(var(--text-rgb) / 0.94);
  mix-blend-mode: difference;
  transition: opacity 150ms var(--ease-out);
}

.cursor-frame::before,
.cursor-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}

.cursor-frame::before {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.cursor-frame::after {
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.55;
  transition:
    border-radius 180ms var(--ease-out),
    opacity 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.cursor-frame .c-tl,
.cursor-frame .c-tr,
.cursor-frame .c-bl,
.cursor-frame .c-br {
  width: 10px;
  height: 10px;
  border-color: currentColor;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 160ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.cursor-frame .c-label {
  z-index: 1;
  opacity: 0;
  transform: translateY(5px) scale(0.96);
  transition:
    opacity 160ms var(--ease-out),
    transform 180ms var(--ease-out);
}

body.cursor-open .cursor-frame,
body.cursor-play .cursor-frame,
body.cursor-filter .cursor-frame,
body.cursor-brief .cursor-frame {
  mix-blend-mode: normal;
}

body.cursor-open .cursor-frame::before,
body.cursor-play .cursor-frame::before,
body.cursor-filter .cursor-frame::before,
body.cursor-brief .cursor-frame::before {
  opacity: 0;
  transform: scale(0.7);
}

body.cursor-open .cursor-frame::after,
body.cursor-play .cursor-frame::after,
body.cursor-filter .cursor-frame::after,
body.cursor-brief .cursor-frame::after {
  background: rgba(5, 5, 5, 0.24);
  opacity: 0.24;
}

body.cursor-open .cursor-frame::after,
body.cursor-filter .cursor-frame::after,
body.cursor-brief .cursor-frame::after {
  border-radius: 2px;
}

body.cursor-open .cursor-frame .c-tl,
body.cursor-open .cursor-frame .c-tr,
body.cursor-open .cursor-frame .c-bl,
body.cursor-open .cursor-frame .c-br {
  opacity: 0.9;
  transform: scale(1);
}

body.cursor-open .cursor-frame .c-label,
body.cursor-play .cursor-frame .c-label,
body.cursor-filter .cursor-frame .c-label,
body.cursor-brief .cursor-frame .c-label {
  opacity: 0.88;
  transform: translateY(0) scale(1);
}

@media (pointer: coarse) {
  .cursor-frame { display: none; }
}

.showreel-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}

.showreel-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.showreel-panel {
  display: grid;
  width: min(1240px, 100%);
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgb(var(--text-rgb) / 0.06), transparent 42%),
    rgba(5, 5, 5, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
  transform: translateY(12px) scale(0.985);
  transition: transform 240ms var(--ease-out);
}

.showreel-modal.is-open .showreel-panel {
  transform: translateY(0) scale(1);
}

.showreel-modal.is-keyboard-closing,
.showreel-modal.is-keyboard-closing .showreel-panel {
  transition: none !important;
}

.showreel-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  border-right: 1px solid var(--line);
  padding: clamp(20px, 2.8vw, 34px);
}

.showreel-sidebar h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(28px, 4vw, 58px);
  line-height: 0.94;
  text-transform: uppercase;
}

.showreel-sidebar p:not(.eyebrow) {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.38;
}

.showreel-chapters {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.showreel-chapters button {
  min-height: 42px;
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  border-radius: 2px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transition:
    transform 160ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.showreel-chapters button:hover,
.showreel-chapters button:focus-visible,
.showreel-chapters button.is-active {
  border-color: rgb(var(--text-rgb) / 0.36);
  background: rgb(var(--text-rgb) / 0.075);
  color: var(--text-strong);
}

.showreel-chapters button:active {
  transform: scale(0.98);
}

.showreel-project-link {
  width: fit-content;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.28);
  padding-bottom: 5px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showreel-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.showreel-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0 14px;
  background: rgba(5, 5, 5, 0.74);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: #050505;
  transform: translateY(100%);
  transition: transform 260ms var(--ease-out);
}

.page-transition.is-active {
  transform: translateY(0);
}

.project-page {
  min-height: 100svh;
  background: var(--bg);
}

/* Next-case teaser — full-bleed poster, keeps users in the funnel */
.project-next {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(190px, 28vh, 320px);
  padding: clamp(30px, 5vw, 62px) clamp(18px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.project-next::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--next-poster);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.35) brightness(0.4) saturate(0.9);
  transform: scale(1.06);
  transition: transform 260ms var(--ease-out);
}

.project-next::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.7));
  opacity: 1;
  transition: opacity 220ms var(--ease-out);
}

.project-next:focus-visible::before {
  transform: scale(1.12);
}

.project-next:focus-visible::after {
  opacity: 0.72;
}

.project-next-label {
  position: absolute;
  top: clamp(22px, 4vw, 42px);
  left: clamp(18px, 4vw, 44px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.project-next-title {
  font-weight: 820;
  font-size: clamp(30px, 6vw, 76px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text-strong);
}

.project-next-arrow {
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1;
  color: var(--text-secondary);
  transition: transform 180ms var(--ease-out);
}

.project-next:focus-visible .project-next-arrow {
  transform: translateX(10px);
}

@media (hover: hover) and (pointer: fine) {
  .project-next:hover::before {
    transform: scale(1.12);
  }

  .project-next:hover::after {
    opacity: 0.72;
  }

  .project-next:hover .project-next-arrow {
    transform: translateX(10px);
  }
}

/* Precision correction: clean hero and contact composition ---------------- */
.ref-hero,
.ref-hero .hero-frame {
  min-height: 100dvh;
}

.ref-hero .hero-frame-copy {
  left: clamp(24px, 5.5vw, 96px);
  bottom: clamp(56px, 8vh, 96px);
  width: min(1120px, calc(100vw - 48px));
  transform: none;
  justify-items: start;
  text-align: left;
}

.ref-hero .hero-frame-copy .eyebrow {
  justify-content: flex-start;
  margin-bottom: clamp(14px, 2vh, 24px);
  color: rgb(var(--text-rgb) / 0.64);
}

.ref-hero .hero-frame-copy .eyebrow::before {
  flex-basis: 28px;
  background: rgb(var(--signal-rgb));
}

.ref-hero .hero-frame-copy .eyebrow::after {
  display: none;
}

.ref-hero .hero-title {
  display: block;
  width: auto;
  max-width: calc(100vw - 48px);
  font-size: clamp(68px, 8.4vw, 156px);
  line-height: 0.82;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.ref-hero .hero-title .line,
.ref-hero .hero-title .line:first-child,
.ref-hero .hero-title .line:nth-child(2) {
  width: auto;
  padding: 0 0 0.08em;
  text-align: left;
}

.ref-hero .hero-frame-copy .ref-actions {
  justify-content: flex-start;
  margin-top: clamp(24px, 3.2vh, 36px);
}

.ref-hero .hero-reel-video.is-active {
  opacity: 0.78;
  filter: saturate(0.92) contrast(1.08) brightness(0.78);
}

.ref-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.12) 56%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 38%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-format-dock,
.hero-side-label,
.hero-reel-status,
.hero-director-note,
.hero-corners {
  display: none !important;
}

.contact-section {
  min-height: 100dvh;
  align-items: center;
  padding: clamp(112px, 13vh, 156px) 0 clamp(88px, 10vh, 128px);
  background: #030303;
}

.contact-ghost,
.contact-signal,
.brief-form-head {
  display: none !important;
}

.contact-grid {
  grid-template-columns: minmax(440px, 0.9fr) minmax(560px, 1.1fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
}

.contact-intro {
  padding-top: 0;
}

.contact-intro .eyebrow {
  margin-bottom: 24px;
}

.contact-intro .section-title {
  max-width: 15ch;
  font-size: clamp(42px, 3.9vw, 66px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.contact-intro .section-title .line > span,
.contact-intro .section-title [data-i18n] {
  display: inline;
}

.contact-text {
  max-width: 48ch;
  margin-top: 28px;
  color: rgb(var(--text-rgb) / 0.58);
  font-size: 15px;
  line-height: 1.55;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  font-size: clamp(15px, 1.25vw, 18px);
}

.brief-form.glass-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 1px solid rgb(var(--text-rgb) / 0.14);
  padding: clamp(24px, 2.7vw, 40px);
  background: #070707;
}

.brief-form label,
.brief-form label:not(.form-wide) + label:not(.form-wide) {
  gap: 9px;
  border-left: 0;
  padding: 0;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  min-height: 52px;
  border: 1px solid rgb(var(--text-rgb) / 0.16);
  padding: 13px 14px;
  background: #040404;
  color: rgb(var(--text-rgb) / 0.92);
}

.brief-form textarea {
  min-height: 148px;
  padding: 15px;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: rgb(var(--text-rgb) / 0.4);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: rgb(var(--text-rgb) / 0.68);
  background: #050505;
}

.brief-details {
  margin: 0;
  border: 1px solid rgb(var(--text-rgb) / 0.14);
  background: #040404;
}

.brief-submit {
  min-height: 58px;
  margin: 0;
}

.form-status {
  min-height: 18px;
  margin: -6px 0 0;
}

@media (max-width: 1120px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-intro .section-title {
    max-width: 18ch;
  }

  .contact-text {
    max-width: 58ch;
  }
}

@media (max-width: 680px) {
  .ref-hero .hero-frame-copy {
    left: 20px;
    bottom: clamp(42px, 7vh, 68px);
    width: calc(100vw - 40px);
  }

  .ref-hero .hero-title {
    max-width: 100%;
    font-size: clamp(42px, 12.3vw, 58px);
    letter-spacing: -0.07em;
  }

  .ref-hero .hero-frame-copy .ref-actions {
    margin-top: 24px;
  }

  .contact-section {
    min-height: auto;
    padding: 104px 0 80px;
  }

  .contact-grid {
    gap: 44px;
  }

  .contact-intro .section-title {
    max-width: 100%;
    font-size: clamp(38px, 11.5vw, 54px);
    line-height: 0.97;
  }

  .contact-links {
    display: grid;
  }

  .brief-form.glass-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .brief-form > * {
    grid-column: 1;
  }
}

/* Inline case player — watch the original without leaving the page */
.project-player {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}

.project-player.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-player-frame {
  width: min(1120px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-strong);
  transform: translateY(8px) scale(0.97);
  transition: transform 240ms var(--ease-out);
}

.project-player.is-open .project-player-frame {
  transform: translateY(0) scale(1);
}

.project-player.is-keyboard-closing,
.project-player.is-keyboard-closing .project-player-frame {
  transition: none !important;
}

.project-player-frame > div,
.project-player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-player-close {
  position: absolute;
  top: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 5, 0.7);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .project-next::before,
  .project-next-arrow {
    transition: none;
  }

  .project-player {
    transition: opacity 160ms ease;
  }

  .project-player-frame {
    transform: none;
    transition: none;
  }
}

.project-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(110px, 12vw, 160px) clamp(18px, 4vw, 44px) clamp(108px, 13vh, 168px);
}

.project-hero video,
.project-hero-poster {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero video {
  --vs: 1.2;
  --py: 0%;
  transform: translate3d(0, var(--py), 0) scale(var(--vs));
  filter: saturate(0.92) contrast(1.04) brightness(0.9);
  will-change: transform;
}

.project-hero-poster {
  z-index: -4;
  background-size: cover;
  background-position: center;
  transform: scale(1.14);
  will-change: transform;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.84) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.9));
}

.project-page-title {
  max-width: 1100px;
  font-size: clamp(52px, 10vw, 136px);
  line-height: 0.88;
  margin: 0;
}

.project-page-track {
  margin: 8px 0 0;
  font-weight: 820;
  font-size: clamp(22px, 4.5vw, 62px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgb(var(--text-rgb) / 0.42);
  overflow-wrap: anywhere;
}

.project-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(247, 244, 238, 0.55);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 80px);
  padding: 76px 0;
}

.project-detail p {
  margin: 0;
  color: rgba(247, 244, 238, 0.78);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.38;
}

  @keyframes spin {
    to {
      transform: translateY(-50%) rotate(360deg);
    }
  }

  /* Button improvements */
  .button {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  @media (hover: hover) and (pointer: fine) {
    .button:hover {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .button-primary:hover {
      transform: translateY(-2px) scale(1.01);
    }
  }

  /* Form improvements */
  .brief-form input::placeholder,
  .brief-form textarea::placeholder {
    color: rgba(247, 244, 238, 0.35);
  }

  .brief-form input:valid,
  .brief-form textarea:valid {
    border-color: rgba(214, 245, 223, 0.5);
  }

  .brief-form input:invalid:not(:placeholder-shown),
  .brief-form textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 211, 204, 0.5);
  }

  /* Accessibility improvements */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
  }

  /* Loading state for buttons */
  button:disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(247, 244, 238, 0.3);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translateY(-50%);
  }

  @media (max-width: 768px) {
    .brief-form {
      grid-template-columns: 1fr;
    }

    .showreel-panel {
      max-height: calc(100svh - 32px);
      grid-template-columns: 1fr;
      overflow: auto;
    }

    .showreel-sidebar {
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }

    .showreel-chapters {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .stat-grid div {
      min-height: 100px;
    }

    .contact-links {
      flex-direction: column;
      gap: 14px;
    }

    .contact-links a {
      font-size: 16px;
    }

    .language-switch button {
      min-width: auto;
      height: auto;
      font-size: 10px;
      padding: 3px 4px;
    }

    /* Touch-friendly targets */
    .button {
      min-height: 48px;
      padding: 0 24px;
    }

    button,
    a,
    input,
    select {
      min-height: 44px;
    }

    .project-panel {
      min-height: 70svh;
    }

    .hero-actions {
      flex-direction: column;
      gap: 10px;
    }

    .hero-actions .button {
      width: 100%;
    }

    .contact-grid {
      gap: 40px;
    }
  }

  @media (max-width: 480px) {
    .hero-title {
      font-size: clamp(48px, 20vw, 80px);
    }

    .section-title {
      font-size: clamp(24px, 10.5vw, 48px);
    }

    .project-title {
      font-size: clamp(32px, 14vw, 64px);
    }

    .stat-grid div {
      min-height: 90px;
      padding: 12px;
    }

    .stat-grid dt {
      font-size: 28px;
    }

    .stat-grid dd {
      font-size: 10px;
      margin-top: 8px;
    }

    .project-copy {
      padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 32px) clamp(18px, 3vw, 30px);
    }

    .project-kicker {
      flex-wrap: wrap;
      font-size: 10px;
    }

    .case-card {
      padding: 14px;
      gap: 10px;
    }

    .case-card p {
      font-size: 12px;
    }

    .project-tags span {
      padding: 4px 8px;
      font-size: 9px;
    }

    .brief-form {
      padding: clamp(16px, 3vw, 20px);
      gap: 12px;
    }

    .showreel-chapters {
      grid-template-columns: 1fr;
    }

    .brief-form label {
      gap: 6px;
    }

    .brief-form input,
    .brief-form select,
    .brief-form textarea {
      padding: 11px 10px;
      font-size: 16px;
    }

    .site-footer {
      flex-direction: column;
      gap: 12px;
      text-align: center;
    }

    .contact-links a {
      font-size: 14px;
    }

    .project-open {
      opacity: 1;
      transform: none;
    }
  }
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: rgba(5, 5, 5, 0.38);
    backdrop-filter: blur(14px);
  }

  .studio-grid,
  .contact-grid,
  .project-copy,
  .project-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-shell-inner {
    flex-direction: column;
    min-height: auto;
  }

  .filter-eyebrow {
    padding: 10px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .filter-bar {
    padding: 0;
  }

  .ref-header {
    grid-template-columns: 1fr auto;
    padding: 16px 18px;
  }

  .brand-center {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
  }

  .header-left {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .header-right {
    justify-content: flex-end;
  }

  .header-right > a {
    display: none;
  }

  .nav-contact-mobile {
    display: inline;
  }

  .ref-hero .hero-frame-copy {
    left: 50%;
    right: auto;
    bottom: 110px;
    width: calc(100% - 36px);
    transform: translateX(-50%);
  }

  .hero-side-label {
    display: none;
  }

}

@media (max-width: 680px) {
  .hero-title {
    font-size: clamp(58px, 21vw, 112px);
  }

  .studio-section,
  .contact-section {
    padding: 70px 0;
  }

  .stat-grid,
  .brief-form {
    grid-template-columns: 1fr;
  }

  .project-link {
    align-items: end;
    padding-top: 140px;
  }

  .project-title {
    font-size: clamp(38px, 14vw, 82px);
  }

  .project-artist {
    font-size: clamp(28px, 9vw, 72px);
  }

  .project-track {
    font-size: clamp(16px, 5.5vw, 36px);
  }

  .language-switch {
    justify-self: end;
  }

  .project-page-title {
    font-size: clamp(30px, 9.4vw, 78px);
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ref-header .language-switch button {
    min-width: auto;
    padding: 3px 5px;
  }

  .header-left {
    gap: 22px;
  }

  .ref-hero .hero-title {
    font-size: clamp(52px, 18vw, 88px);
  }

  .ref-actions {
    gap: 8px;
  }

  .ref-actions .button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 10px;
  }
}

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

  .fade-up,
  .reveal-title .line > span,
  .hero .hero-actions .button,
  .project-tags,
  .project-open,
  .case-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .page-transition {
    display: none;
  }

}
/* ── Reference redesign ────────────────────────────── */
.ref-header {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px clamp(28px, 4vw, 58px) 16px;
  border-bottom: 0;
  background: transparent;
}

.ref-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(247, 244, 238, 0.08);
  background: rgba(5, 5, 5, 0.72);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.header-right {
  justify-content: flex-end;
}

.header-left a,
.header-right > a {
  opacity: 0.9;
  transition: opacity 0.25s var(--ease);
}

.header-left a:hover,
.header-right > a:hover {
  opacity: 1;
}

.brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ref-header .language-switch {
  border: none;
  background: none;
}

.ref-hero {
  display: block;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
  background: #050505;
  isolation: isolate;
}

.ref-hero .hero-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.ref-hero .hero-frame {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: #050505;
  box-shadow: none;
  isolation: isolate;
}

.ref-hero .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, transparent 24%, transparent 50%, rgba(0, 0, 0, 0.96) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, transparent 36%, transparent 64%, rgba(0, 0, 0, 0.16) 100%);
}

.ref-hero .hero-media,
.ref-hero .hero-shade,
.ref-hero .hero-fallback {
  position: absolute;
  inset: 0;
}

.ref-hero .hero-media {
  overflow: hidden;
  background: #050505;
}

.ref-hero .hero-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
}

.ref-hero .hero-shade {
  background:
    radial-gradient(ellipse at 50% 72%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, transparent 28%, rgba(0, 0, 0, 0.9) 100%);
}

.ref-hero .hero-frame-copy {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: clamp(96px, 12vh, 140px);
  width: min(920px, 84vw);
  transform: translateX(-50%);
  text-align: center;
}

.ref-hero .hero-frame-copy .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ref-hero .hero-frame-copy .eyebrow::before,
.ref-hero .hero-frame-copy .eyebrow::after {
  content: '';
  flex: 0 0 36px;
  height: 1px;
  background: rgb(var(--line-rgb) / 0.2);
}

.ref-hero .hero-title {
  max-width: 100%;
  color: rgb(var(--text-rgb) / 0.97);
  font-size: clamp(66px, 13vw, 180px);
  line-height: 0.82;
}

/* hero corner frame markers */
.hero-corners {
  position: absolute;
  inset: clamp(18px, 3vw, 40px);
  z-index: 6;
  pointer-events: none;
}

.hero-corners span {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgb(var(--line-rgb) / 0.14);
  border-style: solid;
  opacity: 0;
  transition: opacity 2s var(--ease);
}

.loaded .hero .hero-corners span { opacity: 1; }
.hc-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hc-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hc-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hc-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* side vertical text */
.hero-side-label {
  position: absolute;
  right: clamp(28px, 2.5vw, 46px);
  top: 50%;
  z-index: 7;
  writing-mode: vertical-lr;
  transform: translateY(-50%) rotate(180deg);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--line-rgb) / 0.18);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.8s var(--ease) 0.4s;
}

.loaded .hero .hero-side-label { opacity: 1; }

/* actions inside hero-frame-copy — document flow */
.ref-hero .hero-frame-copy .ref-actions {
  position: static;
  right: auto;
  bottom: auto;
  margin-top: 28px;
  justify-content: center;
  z-index: auto;
}

.ref-actions {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(130px, 18vh, 172px);
  z-index: 9;
  margin: 0;
  justify-content: flex-end;
  gap: 10px;
}

.ref-actions .button {
  min-height: 42px;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ref-actions .button-primary {
  background: rgb(var(--text-rgb) / 0.95);
  border-color: transparent;
}

.studio-section {
  min-height: auto;
  padding: clamp(82px, 11vw, 150px) 0;
}

.project-panel {
  min-height: 96svh;
}

.project-link {
  min-height: 96svh;
}

.case-card {
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  .ref-actions .button {
    transition: none !important;
    transform: none !important;
  }
}

/* Interface polish -------------------------------------------------------- */
:root {
  --signal: #c91120;
  --glass: rgba(10, 10, 10, 0.58);
  --glass-line: rgb(var(--text-rgb) / 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 510;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: rgb(var(--text-rgb) / 0.08);
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgb(var(--text-rgb) / 0.9), rgb(var(--signal-rgb) / 0.95));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.project-progress {
  position: fixed;
  right: clamp(16px, 2.1vw, 32px);
  top: 50%;
  z-index: 74;
  display: grid;
  gap: 10px;
  justify-items: center;
  transform: translateY(-50%);
  color: rgb(var(--text-rgb) / 0.5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
}

.project-progress[hidden] {
  display: none;
}

.project-progress i {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, rgb(var(--text-rgb) / 0.08), rgb(var(--text-rgb) / 0.52), rgb(var(--text-rgb) / 0.08));
}

.project-progress span:first-child {
  color: rgb(var(--text-rgb) / 0.92);
}

.hero-fallback {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.86)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 46%, rgba(0, 0, 0, 0.58)),
    url("https://noctadigital.pages.dev/assets/posters/project1-poster.jpg") center / cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.78);
  transform: scale(1.02);
}

.ref-hero .hero-media iframe {
  opacity: 0.68;
  filter: saturate(0.86) contrast(1.08) brightness(0.82);
}

.button {
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 160ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.button:active,
.filter-bar button:active,
.language-switch button:active,
.hero-format-dock a:active {
  transform: scale(0.98);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.66);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.header-left a,
.header-right > a {
  position: relative;
}

.header-left a::after,
.header-right > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.42);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.header-left a:focus-visible::after,
.header-right > a:focus-visible::after {
  opacity: 0.65;
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .header-left a:hover::after,
  .header-right > a:hover::after {
    opacity: 0.65;
    transform: scaleX(1);
  }
}

.ref-hero .hero-frame-copy {
  bottom: clamp(154px, 17vh, 198px);
}

.hero-format-dock {
  position: absolute;
  left: 50%;
  bottom: clamp(86px, 10vh, 110px);
  z-index: 10;
  display: flex;
  width: min(920px, calc(100% - 48px));
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(122%);
  -webkit-backdrop-filter: blur(18px) saturate(122%);
  opacity: 0;
  overflow-x: auto;
  transform: translateX(-50%) translateY(10px);
  scrollbar-width: none;
  transition:
    opacity 700ms var(--ease-out) 640ms,
    transform 700ms var(--ease-out) 640ms,
    border-color 180ms var(--ease-out);
}

.loaded .hero-format-dock {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-format-dock::-webkit-scrollbar {
  display: none;
}

.hero-format-dock a {
  position: relative;
  flex: 1 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgb(var(--text-rgb) / 0.08);
  padding: 0 16px;
  color: rgb(var(--text-rgb) / 0.62);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.hero-format-dock a:last-child {
  border-right: 0;
}

.hero-format-dock a:hover,
.hero-format-dock a:focus-visible,
.hero-format-dock a.is-active {
  background: rgb(var(--text-rgb) / 0.08);
  color: rgb(var(--text-rgb) / 0.96);
}

.hero-format-dock a.is-active::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: var(--signal);
}

.hero-brief-cta {
  border-color: rgb(var(--text-rgb) / 0.22);
  color: rgb(var(--text-rgb) / 0.72);
}

.filter-shell {
  top: 58px;
  background: rgba(5, 5, 5, 0.76);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.filter-bar button {
  transition:
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 160ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.filter-bar button.active {
  border-bottom-color: var(--signal);
}

.project-panel {
  background: #040404;
}

.project-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--text-rgb) / 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgb(var(--text-rgb) / 0.055) 0 1px, transparent 1px 100%);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 48%);
  opacity: 0.38;
}

.project-panel video {
  transition:
    transform 260ms var(--ease-out),
    opacity 200ms var(--ease-out);
}

.project-frame-markers {
  position: absolute;
  inset: clamp(18px, 3vw, 44px);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}

.project-frame-markers span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgb(var(--text-rgb) / 0.2);
  border-style: solid;
}

.project-frame-markers span:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.project-frame-markers span:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.project-frame-markers span:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.project-frame-markers span:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.project-panel.is-current .project-frame-markers,
.project-panel:hover .project-frame-markers,
.project-panel:focus-within .project-frame-markers {
  opacity: 1;
}

.project-link:focus-visible {
  outline: 1px solid rgb(var(--text-rgb) / 0.8);
  outline-offset: -18px;
}

.project-open {
  transition:
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.project-panel:focus-within .project-open {
  color: rgb(var(--text-rgb) / 0.98);
  transform: translateX(2px);
}

.case-card {
  width: min(360px, 100%);
  align-items: stretch;
  gap: 14px;
  border: 1px solid rgb(var(--text-rgb) / 0.13);
  padding: 18px;
  background:
    linear-gradient(180deg, rgb(var(--text-rgb) / 0.07), transparent 38%),
    rgba(5, 5, 5, 0.48);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.case-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case-index {
  color: rgb(var(--text-rgb) / 0.5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-summary {
  margin: 0;
  color: rgb(var(--text-rgb) / 0.72);
  font-size: 15px;
  line-height: 1.32;
}

.project-open {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
}

.project-open i {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  transform-origin: left center;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.project-open i::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translate(11px, -3px) rotate(45deg);
}

.project-panel:focus-within .project-open i {
  opacity: 1;
  transform: scaleX(1.22);
}

@media (hover: hover) and (pointer: fine) {
  .project-panel:hover .project-open {
    color: rgb(var(--text-rgb) / 0.98);
    transform: translateX(2px);
  }

  .project-panel:hover .project-open i {
    opacity: 1;
    transform: scaleX(1.22);
  }
}

.glass-card,
.brief-form input,
.brief-form select,
.brief-form textarea {
  border-color: rgb(var(--text-rgb) / 0.12);
  background-color: rgba(8, 8, 8, 0.58);
}

.brief-form {
  background:
    linear-gradient(180deg, rgb(var(--text-rgb) / 0.06), transparent 32%),
    rgba(8, 8, 8, 0.54);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: rgb(var(--text-rgb) / 0.72);
  box-shadow: 0 0 0 1px rgb(var(--text-rgb) / 0.18);
}

.showreel-modal {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.showreel-frame {
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .hero-format-dock:hover {
    border-color: rgb(var(--text-rgb) / 0.24);
  }
}

@media (max-width: 980px) {
  .filter-shell {
    top: 94px;
  }

  .project-progress {
    display: none;
  }

  .ref-hero .hero-frame-copy {
    bottom: 154px;
  }

  .hero-format-dock {
    left: 18px;
    right: 18px;
    bottom: 76px;
    width: auto;
    max-width: calc(100vw - 36px);
    transform: translateY(10px);
  }

  .loaded .hero-format-dock {
    transform: translateY(0);
  }

  .hero-format-dock a {
    flex-basis: auto;
    min-width: max-content;
    padding: 0 14px;
  }

}

@media (max-width: 680px) {
  .ref-hero .hero-frame-copy {
    bottom: 176px;
  }

  .hero-format-dock {
    bottom: 116px;
    width: calc(100% - 36px);
  }

  .hero-format-dock a {
    min-height: 44px;
    font-size: 9px;
  }

  .hero-brief-cta {
    display: none;
  }

  .project-panel::before {
    opacity: 0.2;
  }

  .case-card {
    width: 100%;
    padding: 14px;
    opacity: 1;
    transform: none;
  }

  .case-summary {
    display: block;
  }

  .case-card-top {
    align-items: center;
  }

  .project-frame-markers {
    opacity: 0.55;
  }

}

/* Interaction refinement pass ------------------------------------------------ */
.ref-hero .hero-frame-copy {
  bottom: clamp(148px, 18vh, 218px);
}

.hero-format-dock {
  bottom: clamp(34px, 6vh, 58px);
  width: min(760px, calc(100% - 48px));
  justify-content: center;
  gap: clamp(15px, 2.4vw, 30px);
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-format-dock a {
  flex: 0 0 auto;
  min-height: 44px;
  border-right: 0;
  padding: 0 4px;
  color: rgb(var(--text-rgb) / 0.58);
}

.hero-format-dock a:hover,
.hero-format-dock a:focus-visible,
.hero-format-dock a.is-active {
  background: transparent;
  color: rgb(var(--text-rgb) / 0.96);
}

.hero-format-dock a.is-active::before {
  left: 0;
  right: 0;
  bottom: -6px;
}

.filter-shell-inner {
  align-items: stretch;
}

.filter-bar {
  flex: 1 1 auto;
}

.filter-count {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 74px;
  padding-left: clamp(12px, 1.6vw, 22px);
  border-left: 1px solid var(--line);
  color: rgb(var(--text-rgb) / 0.52);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.project-panel.fade-up {
  opacity: 1;
  clip-path: none;
  transform: none;
  transition: none;
}

.project-panel.fade-up.in-view {
  clip-path: none;
  transform: none;
}

.project-copy {
  grid-template-columns: 1fr;
  gap: clamp(15px, 2.2vw, 24px);
}

.project-title-block {
  max-width: min(100%, 1180px);
}

.project-panel .project-kicker,
.project-panel .case-card {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms var(--ease-out),
    transform 620ms var(--ease-out);
}

.project-panel.in-view .project-kicker,
.project-panel.in-view .case-card {
  opacity: 1;
  transform: translateY(0);
}

.project-panel.in-view .case-card {
  transition-delay: 200ms;
}

/* Kinetic title — lines rise + fade in (no clip mask, so descenders / the comma
   fix are never clipped). Scoped to .project-panel; project-page titles untouched. */
.project-panel .project-artist .ln,
.project-panel .project-track .ln {
  display: block;
  opacity: 0;
  transform: translateY(0.42em);
  transition:
    opacity 620ms var(--ease-out),
    transform 820ms var(--ease-out);
}

.project-panel.in-view .project-artist .ln {
  opacity: 1;
  transform: translateY(0);
}

.project-panel.in-view .project-track .ln {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 110ms;
}

.case-card {
  display: grid;
  width: min(100%, 980px);
  grid-template-columns: minmax(170px, auto) minmax(220px, 560px) auto;
  align-items: end;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(14px, 1.6vw, 22px);
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24)),
    rgb(var(--text-rgb) / 0.026);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(116%);
  -webkit-backdrop-filter: blur(14px) saturate(116%);
}

.project-panel:hover .case-card,
.project-panel:focus-within .case-card,
.project-panel.is-current .case-card {
  border-color: rgb(var(--text-rgb) / 0.24);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.3)),
    rgb(var(--text-rgb) / 0.038);
}

.case-card .project-tags {
  justify-content: flex-start;
  align-self: start;
}

.case-card .project-tags span {
  border: 0;
  padding: 0;
  background: none;
  color: rgb(var(--text-rgb) / 0.55);
}

.case-summary {
  max-width: 560px;
  color: rgb(var(--text-rgb) / 0.78);
  font-size: clamp(13px, 1.15vw, 15px);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.project-open {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .ref-hero .hero-frame-copy {
    bottom: 164px;
  }

  .hero-format-dock {
    left: 50%;
    right: auto;
    bottom: 70px;
    width: min(720px, calc(100% - 36px));
    justify-content: flex-start;
    gap: clamp(16px, 4vw, 28px);
    overflow-x: auto;
    padding: 0 18px;
    transform: translateX(-50%) translateY(10px);
    scroll-padding-inline: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .loaded .hero-format-dock {
    transform: translateX(-50%) translateY(0);
  }

  .hero-format-dock a {
    min-width: max-content;
    padding: 0;
  }

  .filter-shell-inner {
    flex-direction: column;
  }

  .filter-count {
    min-height: 34px;
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 0;
  }

  .case-card {
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
  }

  .case-summary {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .ref-hero .hero-frame-copy {
    bottom: 158px;
  }

  .hero-format-dock {
    bottom: 72px;
    width: calc(100% - 28px);
    padding-inline: 16px;
    scroll-padding-inline: 16px;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }

  .project-link {
    padding-bottom: 30px;
  }

  .case-card {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
    padding: 14px;
  }

  .project-open {
    justify-self: start;
  }

  .case-summary {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-panel.fade-up {
    clip-path: inset(0);
  }

  .project-panel .project-kicker,
  .project-panel .project-title-block,
  .project-panel .case-card,
  .project-panel .project-artist .ln,
  .project-panel .project-track .ln {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero media and wordmark */
.ref-hero .hero-media {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(35, 38, 35, 0.36), transparent 48%),
    linear-gradient(180deg, #030303 0%, #050505 56%, #000 100%);
}

.ref-hero .hero-frame::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 34%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, transparent 38%, transparent 62%, rgba(0, 0, 0, 0.62) 100%);
}

.ref-hero .hero-frame::after {
  content: none !important;
  display: none !important;
}

.ref-hero .hero-media iframe {
  opacity: 0.58;
  filter: saturate(0.88) contrast(1.07) brightness(0.68);
  transform: translate(-50%, -50%) scale(1.035);
}

.ref-hero .hero-shade {
  background:
    radial-gradient(ellipse at 50% 55%, transparent 0%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, transparent 34%, rgba(0, 0, 0, 0.78) 100%);
}

.ref-hero .hero-frame-copy {
  display: grid;
  justify-items: center;
  width: min(980px, 88vw);
  isolation: isolate;
}

.ref-hero .hero-title {
  display: grid;
  justify-items: center;
  width: 100%;
  line-height: 0.82;
  text-align: center;
  perspective: none;
  transform: translateZ(0);
}

.ref-hero .hero-title .line {
  width: 100%;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.ref-hero .hero-title .line > span {
  display: block;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
  opacity: 0;
  transform: translate3d(0, 112%, 0);
  transition:
    opacity 520ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 980ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ref-hero .hero-title .line > span::before,
.ref-hero .hero-title .line > span::after {
  display: none !important;
  content: none !important;
}

.loaded .ref-hero .hero-title .line,
.ref-hero .hero-title.in-view .line {
  overflow: visible;
}

.loaded .ref-hero .hero-title .line > span,
.ref-hero .hero-title.in-view .line > span {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.loaded .ref-hero .hero-title .line:nth-child(2) > span,
.ref-hero .hero-title.in-view .line:nth-child(2) > span {
  transition-delay: 120ms;
}

@media (max-width: 680px) {
  .ref-hero .hero-media iframe {
    opacity: 0.52;
    filter: saturate(0.84) contrast(1.04) brightness(0.62);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-hero .hero-title .line > span {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Project detail dossier ----------------------------------------------- */
.project-detail {
  align-items: start;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 0.72fr);
  gap: clamp(36px, 6vw, 96px);
}

.detail-list.glass-card {
  counter-reset: detail-metric;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.detail-list div {
  counter-increment: detail-metric;
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(10px, 1.1vw, 15px);
  overflow: hidden;
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  padding: clamp(16px, 1.55vw, 24px);
  background: rgb(var(--text-rgb) / 0.018);
  transition:
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.detail-list div::after {
  content: none;
}

@media (hover: hover) and (pointer: fine) {
  .detail-list div:hover {
    border-color: rgb(var(--text-rgb) / 0.26);
    background-color: rgb(var(--text-rgb) / 0.04);
    transform: translateY(-1px);
  }
}

.detail-list div:hover::after {
  content: none;
}

.detail-list div:nth-child(3),
.detail-list div:nth-child(4) {
  grid-column: 1 / -1;
}

.detail-list div:nth-child(3) {
  min-height: 0;
}

.detail-list div:nth-child(4) {
  min-height: 0;
}

.detail-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.detail-list dt::before {
  content: counter(detail-metric, decimal-leading-zero);
  color: rgb(var(--text-rgb) / 0.78);
}

.detail-list dt::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgb(var(--text-rgb) / 0.12);
}

.detail-list dd {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 96%;
  color: rgba(247, 244, 238, 0.94);
  font-size: clamp(24px, 2.55vw, 38px);
  letter-spacing: 0;
  line-height: 0.96;
}

.detail-list div:nth-child(-n + 2) dd {
  font-size: clamp(22px, 2.2vw, 34px);
  white-space: nowrap;
}

.detail-list div:nth-child(4) dd {
  max-width: 88%;
  color: rgba(247, 244, 238, 0.84);
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.28;
}

.detail-list .project-tags {
  justify-content: flex-start;
  gap: 8px;
}

.detail-list .project-tags span {
  border: 1px solid rgb(var(--text-rgb) / 0.16);
  padding: 6px 9px;
  background: rgb(var(--text-rgb) / 0.04);
  color: rgb(var(--text-rgb) / 0.72);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.detail-list .project-tags span + span::before {
  content: none;
}

@media (max-width: 980px) {
  .project-detail {
    grid-template-columns: 1fr;
  }

  .detail-list.glass-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .contact-section {
    min-height: auto;
    padding: 104px 0 80px;
  }

  .detail-list.glass-card {
    grid-template-columns: 1fr;
  }

  .detail-list div,
  .detail-list div:nth-child(3),
  .detail-list div:nth-child(4) {
    grid-column: auto;
    min-height: 0;
  }

  .detail-list dd {
    max-width: 100%;
    font-size: clamp(22px, 8vw, 32px);
  }

  .detail-list div:nth-child(4) dd {
    max-width: 100%;
    font-size: 15px;
  }
}

/* Hero background video gate: poster by default, Vimeo only when JS allows it */
.ref-hero .hero-fallback {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.84)),
    radial-gradient(ellipse at 50% 46%, rgb(var(--text-rgb) / 0.08), transparent 52%),
    var(--hero-poster) center / cover no-repeat,
    #030303;
}

.ref-hero .hero-media.has-video .hero-fallback {
  opacity: 0;
}

/* The selected card recedes before the shared film-gate transition covers it. */

.project-panel.is-transition-source .project-copy {
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.project-panel.is-transition-source::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34) 56%, rgba(0, 0, 0, 0.82)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent 38%, rgba(0, 0, 0, 0.9));
}

/* Conversion and responsive refinement --------------------------------- */
.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgb(var(--text-rgb) / 0.025), transparent 34%),
    #050505;
}

.proof-strip-inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 3.3fr);
  align-items: stretch;
  min-height: 92px;
  padding-block: 0;
}

.proof-strip-label {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  color: rgb(var(--text-rgb) / 0.52);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-strip-projects a {
  display: flex;
  align-items: center;
  min-height: 92px;
  border-right: 1px solid var(--line);
  padding: 18px clamp(16px, 2.4vw, 34px);
  color: rgb(var(--text-rgb) / 0.72);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  transform: translate3d(0, 0, 0);
  transition:
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.proof-strip-projects a:last-child {
  border-right: 0;
}

.proof-strip-projects a:focus-visible {
  background: rgb(var(--text-rgb) / 0.035);
  color: var(--text);
  transform: translate3d(6px, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .proof-strip-projects a:hover {
    background: rgb(var(--text-rgb) / 0.035);
    color: var(--text);
    transform: translate3d(6px, 0, 0);
  }
}

.brief-details {
  overflow: clip;
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  border-radius: 2px;
  background: rgba(8, 8, 8, 0.42);
}

.brief-details summary {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 13px 48px 13px 14px;
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms var(--ease-out);
}

.brief-details summary::-webkit-details-marker {
  display: none;
}

.brief-details summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  color: rgb(var(--text-rgb) / 0.72);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  transform: translateY(-50%);
}

.brief-details[open] summary::after {
  content: "−";
}

.brief-details summary:hover,
.brief-details summary:focus-visible {
  background: rgb(var(--text-rgb) / 0.035);
}

.brief-details summary > span {
  color: rgb(var(--text-rgb) / 0.9);
  font-size: 12px;
  font-weight: 600;
}

.brief-details summary small {
  color: rgb(var(--text-rgb) / 0.5);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
}

.brief-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid rgb(var(--text-rgb) / 0.1);
  padding: 14px;
}

.brief-details-grid label {
  display: grid;
  gap: 8px;
}

.project-artist,
.project-page-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.project-page-title.project-artist {
  max-width: 100%;
  font-size: clamp(32px, 8.2vw, 118px);
  text-wrap: balance;
}

@media (max-width: 980px) {
  .proof-strip-inner {
    grid-template-columns: 1fr;
  }

  .proof-strip-label {
    min-height: 50px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .ref-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    gap: 10px;
    min-height: 64px;
    padding: 10px 16px;
  }

  .ref-header .brand-center {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .ref-header .brand-logo {
    height: 28px;
  }

  .ref-header .header-left {
    order: initial;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: 14px;
    min-width: 0;
  }

  .ref-header .header-left a:first-child {
    display: none;
  }

  .ref-header .header-left a {
    min-height: 44px;
    font-size: 11px;
  }

  .ref-header .header-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .ref-header .language-switch {
    gap: 0;
  }

  .ref-header .language-switch button {
    min-width: 22px;
    min-height: 44px;
    padding: 0 3px;
    font-size: 9px;
  }

  .ref-hero .hero-title .line > span {
    transition-duration: 440ms;
  }

  .loaded .ref-hero .hero-title .line:nth-child(2) > span,
  .ref-hero .hero-title.in-view .line:nth-child(2) > span {
    transition-delay: 50ms;
  }

  .loaded .hero .hero-actions .button:nth-child(1) {
    transition-delay: 150ms, 150ms, 0s, 0s, 0s;
  }

  .loaded .hero .hero-actions .button:nth-child(2) {
    transition-delay: 210ms, 210ms, 0s, 0s, 0s;
  }

  .hero-format-dock {
    transition-delay: 260ms, 260ms, 0s;
  }

  .proof-strip-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip-projects a {
    min-height: 68px;
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    font-size: 14px;
  }

  .proof-strip-projects a:nth-child(2n) {
    border-right: 0;
  }

  .proof-strip-projects a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .brief-details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brief-form > label > span,
  .brief-details-grid label > span,
  .form-status {
    font-size: 11px;
  }

  .project-page-title.project-artist {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 0.94;
  }

  .project-panel {
    min-height: 66svh;
  }
}

/* Interaction polish: optical cursor + pointer-led focus ---------------- */
body:not(.has-custom-cursor) .cursor-frame {
  display: none;
}

body.has-custom-cursor .cursor-frame {
  width: 18px;
  height: 18px;
  --cursor-scale-x: 1;
  --cursor-scale-y: 1;
  --cursor-press-scale: 1;
  --cursor-dot-offset: 0px;
  color: rgb(var(--text-rgb) / 0.96);
  opacity: 0;
  mix-blend-mode: difference;
  transform-origin: center;
  transition: opacity 150ms var(--ease-out);
}

body.cursor-visible .cursor-frame {
  opacity: 1;
}

body.has-custom-cursor .cursor-frame::before {
  z-index: 2;
  inset: 0;
  width: 5px;
  height: 5px;
  margin: auto;
  border-radius: 50%;
  background: currentColor;
  opacity: 1;
  transform: scale(0.6);
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

body.has-custom-cursor .cursor-frame::after {
  z-index: 1;
  inset: 0;
  margin: auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  opacity: 0.58;
  transform:
    scale(var(--cursor-press-scale))
    scaleX(var(--cursor-scale-x))
    scaleY(var(--cursor-scale-y));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    transform 150ms var(--ease-out),
    border-radius 240ms var(--ease-out),
    border-color 200ms var(--ease-out),
    background-color 220ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

body.has-custom-cursor .cursor-frame .c-tl,
body.has-custom-cursor .cursor-frame .c-tr,
body.has-custom-cursor .cursor-frame .c-bl,
body.has-custom-cursor .cursor-frame .c-br {
  opacity: 0;
}

body.has-custom-cursor .cursor-frame .c-label {
  z-index: 2;
  padding: 0;
  color: currentColor;
  font-size: 9px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 160ms var(--ease-out),
    transform 200ms var(--ease-out);
}

body.cursor-hover .cursor-frame {
  --cursor-scale-x: 1.889;
  --cursor-scale-y: 1.889;
}

body.cursor-project .cursor-frame {
  --cursor-scale-x: 4.444;
  --cursor-scale-y: 4.444;
}

body.cursor-hover .cursor-frame::after {
  opacity: 0.84;
}

body.cursor-open .cursor-frame,
body.cursor-play .cursor-frame,
body.cursor-filter .cursor-frame,
body.cursor-brief .cursor-frame {
  mix-blend-mode: normal;
}

body.cursor-open .cursor-frame {
  --cursor-scale-x: 5;
  --cursor-scale-y: 2;
  --cursor-dot-offset: -30.5px;
  color: #f2f2f0;
}

body.cursor-open .cursor-frame::after {
  border-color: rgb(var(--text-rgb) / 0.34);
  border-radius: 2px;
  background: rgba(4, 4, 4, 0.8);
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.cursor-open .cursor-frame::before,
body.cursor-filter .cursor-frame::before,
body.cursor-brief .cursor-frame::before {
  inset: auto;
  top: 50%;
  left: calc(50% + var(--cursor-dot-offset));
  width: 5px;
  height: 5px;
  margin: 0;
  background: rgb(var(--signal-rgb));
  transform: translate(-50%, -50%) scale(1);
}

body.cursor-open .cursor-frame .c-label,
body.cursor-filter .cursor-frame .c-label,
body.cursor-brief .cursor-frame .c-label {
  padding-left: 14px;
}

body.cursor-play .cursor-frame {
  --cursor-scale-x: 3.444;
  --cursor-scale-y: 3.444;
  color: #fff;
}

body.cursor-play .cursor-frame::after {
  border-color: rgb(var(--signal-rgb) / 0.96);
  border-radius: 50%;
  background: rgb(var(--signal-rgb) / 0.9);
  opacity: 1;
}

body.cursor-play .cursor-frame::before {
  opacity: 0;
}

body.cursor-filter .cursor-frame {
  --cursor-scale-x: 4.222;
  --cursor-scale-y: 1.778;
  --cursor-dot-offset: -23.5px;
  color: #080808;
}

body.cursor-filter .cursor-frame::after {
  border-color: rgb(var(--text-rgb) / 0.92);
  border-radius: 2px;
  background: rgb(var(--text-rgb) / 0.94);
  opacity: 1;
}

body.cursor-brief .cursor-frame {
  --cursor-scale-x: 4.333;
  --cursor-scale-y: 1.889;
  --cursor-dot-offset: -24.5px;
  color: #fff;
}

body.cursor-brief .cursor-frame::after {
  border-color: rgb(var(--signal-rgb) / 0.96);
  border-radius: 2px;
  background: rgb(var(--signal-rgb) / 0.92);
  opacity: 1;
}

body.cursor-brief .cursor-frame::before {
  background: #fff;
}

body.cursor-open .cursor-frame .c-label,
body.cursor-play .cursor-frame .c-label,
body.cursor-filter .cursor-frame .c-label,
body.cursor-brief .cursor-frame .c-label {
  opacity: 1;
  transform: translateY(0);
}

body.cursor-press .cursor-frame::after {
  --cursor-press-scale: 0.88;
}

.project-panel::before {
  background: radial-gradient(
    620px circle at var(--spot-x, 50%) var(--spot-y, 42%),
    rgb(var(--text-rgb) / 0.14),
    rgb(var(--text-rgb) / 0.04) 30%,
    transparent 64%
  );
  background-size: auto;
  mask-image: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 220ms var(--ease-out);
}

.project-panel:hover::before,
.project-panel:focus-within::before,
.project-panel.is-current::before {
  opacity: 0.8;
}

.project-panel .project-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  align-self: center;
  border-radius: 50%;
  background: rgb(var(--signal-rgb));
  box-shadow: 0 0 0 3px rgb(var(--signal-rgb) / 0.14);
  opacity: 0.58;
}

.project-panel .project-kicker > span:first-of-type {
  color: rgb(var(--signal-rgb) / 0.96);
}

.project-panel.is-current .project-kicker::before {
  opacity: 1;
  animation: nocta-rec-pulse 1.8s var(--ease-in-out-strong) infinite;
}

.project-frame-markers span:first-child {
  border-color: rgb(var(--signal-rgb) / 0.9);
}

.case-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.2));
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
}

.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(var(--signal-rgb));
  opacity: 0.9;
  transform: scaleX(0.05);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}

.project-panel:focus-within .case-card::before,
.project-panel.is-current .case-card::before {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .project-panel:hover .case-card::before {
    transform: scaleX(1);
  }
}

@keyframes nocta-rec-pulse {
  0%, 100% {
    opacity: 0.62;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-frame {
    display: none !important;
  }

  .project-panel::before {
    display: none;
  }

  .project-panel.is-current .project-kicker::before {
    animation: none;
  }

  .case-card::before {
    transition: none;
  }
}

/* Studio manifesto + curated project index ----------------------------- */
.studio-section {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: min(1040px, 100svh);
  overflow: clip;
  padding: 0;
  background: #050505;
  color: var(--text);
}

.studio-stage-media,
.studio-visual-stack,
.studio-visual,
.studio-stage-shade {
  position: absolute;
  inset: 0;
}

.studio-stage-media {
  z-index: -1;
  overflow: hidden;
  background: #050505;
}

.studio-visual-stack {
  inset: -6%;
  will-change: transform;
}

.studio-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(0.82) contrast(1.06) brightness(0.68);
  transform: scale(1.045);
  transition:
    opacity 280ms var(--ease-out),
    transform 260ms var(--ease-out);
  will-change: opacity, transform;
}

.studio-visual.is-active {
  opacity: 1;
  transform: scale(1.01);
}

.studio-section.is-keyboard-switch .studio-visual {
  transition: none !important;
}

.studio-section.is-keyboard-switch .studio-capability,
.studio-section.is-keyboard-switch .studio-capability-title,
.studio-section.is-keyboard-switch .studio-capability-copy,
.studio-section.is-keyboard-switch .studio-capability-signal {
  transition: none !important;
}

.studio-visual-production {
  object-position: center 42%;
}

.studio-visual-post {
  object-position: center 44%;
}

.studio-stage-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, transparent 58%, rgba(0, 0, 0, 0.18) 100%);
}

.studio-stage-content {
  display: grid;
  min-height: min(1040px, 100svh);
  grid-template-rows: auto minmax(clamp(100px, 13vh, 190px), 1fr) auto;
  padding-block: clamp(92px, 9vw, 132px) clamp(26px, 3vw, 44px);
}

.studio-stage-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: start;
}

.studio-stage-intro h2 {
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(44px, 4.3vw, 66px);
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.studio-stage-intro h2 span {
  display: block;
}

.studio-stage-copy {
  justify-self: end;
  width: min(100%, 520px);
  padding-top: 7px;
}

.studio-lede {
  max-width: 38ch;
  margin: 0;
  color: rgb(var(--text-rgb) / 0.92);
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 580;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: pretty;
}

.studio-note {
  max-width: 46ch;
  margin: 14px 0 0;
  color: rgb(var(--text-rgb) / 0.64);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5;
  text-wrap: pretty;
}

.studio-capabilities {
  display: grid;
  grid-row: 3;
  border-top: 1px solid rgb(var(--text-rgb) / 0.38);
}

.studio-capability {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(230px, 0.76fr) minmax(280px, 1fr) 34px;
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.25);
  border-radius: 0;
  padding: clamp(13px, 1.35vw, 20px) 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}

.studio-capability:focus-visible {
  outline: 2px solid rgb(var(--text-rgb) / 0.94);
  outline-offset: 5px;
}

.studio-capability-title {
  color: rgb(var(--text-rgb) / 0.48);
  font-family: var(--display);
  font-size: clamp(28px, 3.15vw, 48px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  transition:
    color 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.studio-capability-copy {
  max-width: 52ch;
  color: rgb(var(--text-rgb) / 0.42);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.45;
  transition: color 200ms var(--ease-out);
}

.studio-capability-signal {
  width: 30px;
  height: 2px;
  justify-self: end;
  background: rgb(var(--signal-rgb));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition:
    opacity 180ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.studio-capability.is-active {
  border-color: rgb(var(--text-rgb) / 0.56);
}

.studio-capability.is-active .studio-capability-title {
  color: var(--text);
}

.studio-capability.is-active .studio-capability-copy {
  color: rgb(var(--text-rgb) / 0.82);
}

.studio-capability.is-active .studio-capability-signal {
  opacity: 1;
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .studio-capability:hover .studio-capability-title {
    color: var(--text);
    transform: translateX(6px);
  }

  .studio-capability:hover .studio-capability-copy {
    color: rgb(var(--text-rgb) / 0.78);
  }
}

.featured-index {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.featured-index-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  gap: clamp(50px, 7vw, 112px);
  align-items: stretch;
  padding-block: clamp(80px, 9vw, 132px);
}

.featured-preview {
  position: relative;
  min-height: clamp(520px, 61vw, 760px);
  overflow: hidden;
  background: #0a0a0a;
}

.featured-preview::before,
.featured-preview::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.featured-preview::before {
  top: 18px;
  left: 18px;
  border-top: 1px solid rgb(var(--signal-rgb) / 0.95);
  border-left: 1px solid rgb(var(--signal-rgb) / 0.95);
}

.featured-preview::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid rgb(var(--text-rgb) / 0.58);
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.58);
}

.featured-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition:
    opacity 240ms var(--ease-out),
    transform 260ms var(--ease-out),
    filter 240ms var(--ease-out);
}

.featured-preview.is-switching img {
  opacity: 0.2;
  transform: scale(1.045);
  filter: blur(5px);
}

.featured-preview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.74));
  pointer-events: none;
}

.featured-preview-meta {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 26px;
  left: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgb(var(--text-rgb) / 0.82);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.featured-preview-meta span:last-child {
  text-align: right;
}

.featured-index-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.featured-index-intro {
  max-width: 560px;
}

.featured-index-label {
  margin: 0 0 18px;
  color: rgb(var(--text-rgb) / 0.48);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-index-intro h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.featured-index-intro > p:last-child {
  max-width: 40ch;
  margin: 24px 0 0;
  color: rgb(var(--text-rgb) / 0.58);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.5;
}

.featured-links {
  margin: clamp(54px, 7vw, 98px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.featured-links li {
  border-top: 1px solid var(--line);
}

.featured-links a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(112px, 0.48fr) 22px;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 15px 0;
  color: rgb(var(--text-rgb) / 0.48);
  transition: color 220ms var(--ease-out);
}

.featured-link-number {
  align-self: start;
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  transition: color 220ms var(--ease-out);
}

.featured-link-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.featured-link-title strong {
  overflow: hidden;
  color: rgb(var(--text-rgb) / 0.78);
  font-family: var(--display);
  font-size: clamp(19px, 1.9vw, 28px);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    color 220ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.featured-link-title small,
.featured-link-role {
  color: rgb(var(--text-rgb) / 0.42);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.4;
  text-transform: uppercase;
}

.featured-link-arrow {
  color: rgb(var(--text-rgb) / 0.55);
  font-size: 18px;
  transition:
    color 220ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.featured-links a[aria-current="true"],
.featured-links a:hover,
.featured-links a:focus-visible {
  color: var(--text);
}

.featured-links a[aria-current="true"] .featured-link-number,
.featured-links a:hover .featured-link-number,
.featured-links a:focus-visible .featured-link-number {
  color: rgb(var(--signal-rgb));
}

.featured-links a[aria-current="true"] .featured-link-title strong,
.featured-links a:focus-visible .featured-link-title strong {
  color: var(--text);
  transform: translateX(5px);
}

.featured-links a:focus-visible .featured-link-arrow {
  color: rgb(var(--signal-rgb));
  transform: translate(3px, -3px);
}

@media (hover: hover) and (pointer: fine) {
  .featured-links a:hover .featured-link-title strong {
    color: var(--text);
    transform: translateX(5px);
  }

  .featured-links a:hover .featured-link-arrow {
    color: rgb(var(--signal-rgb));
    transform: translate(3px, -3px);
  }
}

@media (max-width: 1040px) {
  .studio-stage-intro {
    grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.72fr);
    gap: 48px;
  }

  .studio-capability {
    grid-template-columns: minmax(200px, 0.72fr) minmax(240px, 1fr) 30px;
    gap: 28px;
  }

  .studio-capability-title {
    font-size: clamp(28px, 4vw, 42px);
  }

  .featured-index-inner {
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: 48px;
  }

  .featured-links a {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
  }

  .featured-link-role {
    display: none;
  }
}

@media (max-width: 760px) {
  .studio-section {
    min-height: max(760px, 100svh);
    padding: 0;
  }

  .studio-visual-stack {
    inset: -4% -14%;
  }

  .studio-visual {
    filter: saturate(0.84) contrast(1.05) brightness(0.62);
  }

  .studio-visual-production {
    object-position: 44% center;
  }

  .studio-visual-post {
    object-position: 52% center;
  }

  .studio-stage-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.2) 34%, rgba(0, 0, 0, 0.94) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 76%);
  }

  .studio-stage-content {
    min-height: max(760px, 100svh);
    grid-template-rows: auto minmax(72px, 1fr) auto;
    padding-block: 82px 24px;
  }

  .studio-stage-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .studio-stage-intro h2 {
    max-width: 10ch;
    font-size: clamp(42px, 13.5vw, 62px);
    line-height: 0.91;
  }

  .studio-stage-copy {
    justify-self: start;
    width: min(100%, 34ch);
    padding-top: 0;
  }

  .studio-lede {
    font-size: clamp(17px, 5.2vw, 21px);
  }

  .studio-note {
    max-width: 34ch;
    margin-top: 10px;
    font-size: 12px;
  }

  .studio-capability {
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 7px 18px;
    padding: 14px 0;
  }

  .studio-capability-title {
    font-size: clamp(29px, 9vw, 40px);
  }

  .studio-capability-copy {
    grid-column: 1 / -1;
    max-width: 36ch;
    font-size: 11px;
    line-height: 1.4;
  }

  .studio-capability-signal {
    grid-column: 2;
    grid-row: 1;
    width: 24px;
  }

  .featured-index-inner {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 72px 84px;
  }

  .featured-preview {
    min-height: clamp(330px, 116vw, 560px);
  }

  .featured-index-content {
    display: block;
  }

  .featured-links {
    margin-top: 54px;
  }

  .featured-preview-meta {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }
}

@media (max-width: 460px) {
  .featured-preview-meta span:last-child {
    max-width: 22ch;
  }

  .featured-links a {
    min-height: 78px;
  }

  .featured-link-title strong {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-visual {
    transform: none;
    transition: opacity 180ms ease;
  }

  .featured-preview img,
  .studio-frame-media img,
  .featured-link-title strong,
  .featured-link-arrow {
    transform: none;
  }

  .featured-preview img {
    filter: none;
    transition: opacity 180ms ease;
  }

  .featured-link-title strong,
  .featured-link-arrow {
    transition: color 160ms ease;
  }
}

/* 2027 editorial systems pass ----------------------------------------- */
.language-select-mobile {
  display: none;
}

.project-poster {
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  background: none;
}

.project-load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-load-more[hidden] {
  display: none;
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 720;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: transform 160ms var(--ease-out);
}

.load-more-button i {
  position: relative;
  display: block;
  width: clamp(46px, 6vw, 86px);
  height: 1px;
  overflow: visible;
  background: rgb(var(--text-rgb) / 0.34);
  transform-origin: left center;
  transition: background-color 180ms var(--ease), transform 220ms var(--ease);
}

.load-more-button i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.load-more-button:active {
  transform: scale(0.98);
}

.load-more-count {
  color: rgb(var(--text-rgb) / 0.48);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (hover: hover) and (pointer: fine) {
  .load-more-button:hover i {
    background: rgb(var(--signal-rgb));
    transform: scaleX(1.18);
  }
}

.brief-form .field-hint,
.brief-form .field-error {
  display: block;
  min-height: 1.3em;
  color: rgb(var(--text-rgb) / 0.46);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.brief-form .field-error {
  min-height: 0;
  color: #ffb5aa;
}

.brief-form [aria-invalid="true"] {
  border-color: rgb(var(--signal-rgb) / 0.92);
  box-shadow: 0 0 0 3px rgb(var(--signal-rgb) / 0.13);
}

.form-fallback-link {
  justify-self: start;
  min-height: 44px;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.42);
  padding-top: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-fallback-link[hidden] {
  display: none;
}

.project-dossier {
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(48px, 8vw, 128px);
  padding-block: clamp(96px, 12vw, 172px);
}

.project-dossier-summary {
  position: sticky;
  top: 112px;
}

.project-dossier-summary h2 {
  max-width: 25ch;
  margin: 22px 0 0;
  color: rgb(var(--text-rgb) / 0.9);
  font-family: var(--display);
  font-size: clamp(27px, 3.25vw, 48px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.project-dossier-rows {
  border-bottom: 1px solid var(--line-strong);
}

.project-dossier-row {
  display: grid;
  grid-template-columns: 42px minmax(130px, 0.48fr) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 34px);
  align-items: start;
  min-height: 126px;
  border-top: 1px solid var(--line-strong);
  padding: clamp(20px, 2.6vw, 32px) 0;
}

.project-dossier-index {
  color: rgb(var(--signal-rgb));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.project-dossier-row h3 {
  margin: 0;
  color: rgb(var(--text-rgb) / 0.54);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-dossier-row p {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 1.9vw, 27px);
  line-height: 1.24;
}

.project-dossier-row .project-tags {
  justify-content: flex-start;
  align-self: start;
}

.project-dossier-row time {
  grid-column: 3;
  color: rgb(var(--text-rgb) / 0.48);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .project-dossier {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .project-dossier-summary {
    position: static;
  }
}

@media (max-width: 680px) {
  .ref-header .language-switch {
    display: none;
  }

  .language-select-mobile {
    position: relative;
    display: block;
  }

  .language-select-mobile select {
    min-width: 54px;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid rgb(var(--text-rgb) / 0.28);
    border-radius: 0;
    padding: 0 17px 0 4px;
    background: transparent;
    color: var(--text);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 650;
    outline: none;
  }

  .language-select-mobile select:focus-visible {
    border-color: var(--text);
  }

  .project-load-more {
    min-height: 104px;
  }

  .project-dossier-row {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 0;
  }

  .project-dossier-row h3 {
    grid-column: 2;
  }

  .project-dossier-row p,
  .project-dossier-row .project-tags,
  .project-dossier-row time {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .load-more-button i {
    transition: none;
  }
}

/* Local hero reel and visible intro choreography ---------------------- */
.ref-hero .hero-fallback {
  z-index: 0;
  transition: opacity 700ms var(--ease-out);
}

.ref-hero .hero-reel-video {
  position: absolute;
  inset: -4%;
  z-index: 1;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(0.84) contrast(1.08) brightness(0.68);
  transform: translate3d(-1%, 0, 0) scale(1.04);
  will-change: transform, opacity;
  transition: opacity 900ms var(--ease-out);
}

.ref-hero .hero-reel-video.is-active {
  opacity: 0.76;
  animation: hero-camera-drift 12s linear both;
}

.ref-hero .hero-media.is-paused .hero-reel-video.is-active {
  animation-play-state: paused;
}

.ref-hero .hero-media.has-video .hero-fallback {
  opacity: 0.16;
}

.loaded .ref-hero .hero-corners span {
  opacity: 1;
  transform: scale(1);
}

.ref-hero .hero-corners span {
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.ref-hero .hero-corners .hc-tl {
  transform-origin: top left;
}

.ref-hero .hero-corners .hc-tr {
  transform-origin: top right;
}

.ref-hero .hero-corners .hc-bl {
  transform-origin: bottom left;
}

.ref-hero .hero-corners .hc-br {
  transform-origin: bottom right;
}

@keyframes hero-camera-drift {
  from { transform: translate3d(-1%, 0, 0) scale(1.04); }
  to { transform: translate3d(1%, -1%, 0) scale(1.12); }
}

@media (max-width: 768px) {
  .ref-hero .hero-reel-video {
    inset: -2%;
    width: 104%;
    height: 104%;
    object-position: 52% center;
    filter: saturate(0.82) contrast(1.06) brightness(0.62);
  }

  .ref-hero .hero-reel-video.is-active {
    opacity: 0.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-hero .hero-reel-video {
    display: none;
  }

  .ref-hero .hero-fallback {
    opacity: 1;
    transition: none;
  }

  .ref-hero .hero-corners span {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Restored cinematic case motion -------------------------------------- */
.project-poster,
.project-hero-poster,
.project-hero video {
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

/* A short exposure-like reveal runs independently of JavaScript, so the
   project still has an entrance even if media playback is unavailable. */
.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #050505;
  animation: project-media-exposure 820ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.project-page .project-page-meta,
.project-page .project-page-title,
.project-page .project-page-track,
.project-page .project-hero .hero-actions {
  animation: project-intro-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-page .project-page-meta {
  animation-delay: 120ms;
}

.project-page .project-page-title {
  animation-delay: 180ms;
}

.project-page .project-page-track {
  animation-delay: 260ms;
}

.project-page .project-hero .hero-actions {
  animation-delay: 360ms;
}

@keyframes project-media-exposure {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes project-intro-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-hero::before,
  .project-page .project-page-meta,
  .project-page .project-page-title,
  .project-page .project-page-track,
  .project-page .project-hero .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Inertial scroll + layered case depth -------------------------------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}

.project-copy-depth,
.case-card-depth {
  position: relative;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.case-card-depth {
  width: 100%;
}

@media (prefers-reduced-motion: reduce), (max-width: 980px), (pointer: coarse) {
  .project-copy-depth,
  .case-card-depth {
    transform: none !important;
  }
}

/* 2027 cinematic direction: one visual language across intro, hero, cases
   and inquiry. --------------------------------------------------------- */
/* The restored title-card intro intentionally replaces the temporary video
   spinner. It is short, legible and reads like an opening film slate. */
#preloader {
  background: #030303;
}

#preloader::before {
  content: "NOCTA DIGITAL / 2027";
  position: absolute;
  top: clamp(24px, 4vw, 48px);
  left: clamp(22px, 4vw, 56px);
  color: rgb(var(--text-rgb) / 0.32);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

#preloader .pre-logo-mark {
  position: relative;
  z-index: 2;
  width: auto;
  height: clamp(70px, 9vw, 118px);
  object-fit: contain;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.96);
  animation: pre-logo-arrive 620ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
}

@keyframes pre-logo-arrive {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

#preloader .pre-meta,
#preloader .pre-bar {
  width: min(300px, 58vw);
}

#preloader .pre-meta {
  justify-content: space-between;
  margin-top: clamp(30px, 4vw, 48px);
}

#preloader .pre-bar {
  margin-top: 14px;
}

/* Single case transition: a black film gate with one red splice line. */
.page-transition {
  z-index: 10000;
  display: block;
  background: #030303;
  transform: translate3d(0, 101%, 0);
  transition: none;
  will-change: transform;
}

.page-transition::before {
  content: "NOCTA / OPEN CASE";
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgb(var(--text-rgb) / 0.7);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  transform: translate3d(-50%, -50%, 0);
}

.page-transition::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  height: 1px;
  background: rgb(var(--signal-rgb));
  box-shadow: 0 0 18px rgb(var(--signal-rgb) / 0.35);
}

.page-transition.is-revealing::after {
  bottom: 0;
  top: auto;
}

/* Hero becomes an editorial title frame without covering the footage. */
.ref-hero .hero-frame-copy {
  width: min(1080px, 88vw);
}

.ref-hero .hero-title .line:first-child {
  padding-right: 13%;
  text-align: left;
}

.ref-hero .hero-title .line:nth-child(2) {
  padding-left: 13%;
  text-align: right;
}

.ref-hero .hero-reel-video.is-active {
  opacity: 0.84;
  filter: saturate(0.9) contrast(1.08) brightness(0.76);
}

.hero-reel-status,
.hero-director-note {
  position: absolute;
  z-index: 9;
  color: rgb(var(--text-rgb) / 0.52);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-reel-status {
  top: 48%;
  left: clamp(24px, 4vw, 58px);
  display: grid;
  grid-template-columns: auto minmax(48px, 8vw) auto;
  gap: 14px;
  align-items: center;
}

.hero-reel-index {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-reel-rule {
  height: 1px;
  overflow: hidden;
  background: rgb(var(--text-rgb) / 0.18);
}

.hero-reel-rule i {
  display: block;
  width: 42%;
  height: 100%;
  background: rgb(var(--signal-rgb));
  animation: hero-reel-scan 5.6s linear infinite;
}

.hero-director-note {
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(38px, 6vh, 68px);
  display: grid;
  grid-template-columns: auto auto;
  gap: 16px;
  align-items: start;
  text-align: left;
}

.hero-director-note strong {
  color: rgb(var(--text-rgb) / 0.78);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.28;
  text-transform: none;
}

@keyframes hero-reel-scan {
  from { transform: translate3d(-110%, 0, 0); }
  to { transform: translate3d(255%, 0, 0); }
}

/* Case pages: title clipping, authored row rhythm and a stronger next cut. */
.case-title-line {
  overflow: hidden;
}

.case-title-line > span {
  display: block;
  transform: translate3d(0, 108%, 0);
  animation: case-title-unmask 760ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

.project-page-track.case-title-line > span {
  animation-delay: 240ms;
}

.project-page .project-page-title.case-title-line,
.project-page .project-page-track.case-title-line {
  animation: none;
}

@keyframes case-title-unmask {
  to { transform: translate3d(0, 0, 0); }
}

#project-root[data-case-motion-ready] .project-dossier-summary,
#project-root[data-case-motion-ready] [data-case-row],
#project-root[data-case-motion-ready] .project-next {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

#project-root[data-case-motion-ready] [data-case-row="1"] {
  transition-delay: 55ms;
}

#project-root[data-case-motion-ready] [data-case-row="2"] {
  transition-delay: 110ms;
}

#project-root[data-case-motion-ready] .project-dossier-summary.case-in-view,
#project-root[data-case-motion-ready] [data-case-row].case-in-view,
#project-root[data-case-motion-ready] .project-next.case-in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-dossier-row {
  position: relative;
}

.project-dossier-row::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(38px, 6vw, 84px);
  height: 1px;
  background: rgb(var(--signal-rgb));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-dossier-row.case-in-view::after {
  transform: scaleX(1);
}

.project-next {
  min-height: clamp(300px, 48vh, 560px);
}

.project-next::before {
  transform: scale(1.08);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .project-next:hover::before {
    transform: scale(1.14);
  }
}

/* Contact is a final editorial spread, not a form floating in empty space. */
.contact-section {
  position: relative;
  overflow: hidden;
  align-items: center;
  padding-block: clamp(120px, 15vh, 180px);
  background:
    radial-gradient(circle at 78% 42%, rgb(var(--signal-rgb) / 0.055), transparent 34%),
    #030303;
}

.contact-ghost {
  position: absolute;
  top: clamp(64px, 9vh, 104px);
  right: -0.035em;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(100px, 21vw, 330px);
  font-weight: 820;
  letter-spacing: -0.075em;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgb(var(--text-rgb) / 0.055);
  pointer-events: none;
  user-select: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(50px, 9vw, 148px);
}

.contact-intro {
  padding-top: clamp(8px, 5vh, 58px);
}

.contact-intro .section-title {
  max-width: 12ch;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.91;
}

.contact-signal {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px 12px;
  margin-top: clamp(48px, 7vw, 88px);
  color: rgb(var(--text-rgb) / 0.46);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-signal span:last-child {
  grid-column: 2;
}

.contact-signal-dot {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgb(var(--signal-rgb));
  box-shadow: 0 0 0 5px rgb(var(--signal-rgb) / 0.1);
  animation: contact-pulse 2.4s ease-in-out infinite;
}

@keyframes contact-pulse {
  50% { transform: scale(0.72); opacity: 0.58; }
}

.brief-form.glass-card {
  gap: 0 24px;
  border: 0;
  border-top: 1px solid rgb(var(--text-rgb) / 0.52);
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.16);
  border-radius: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.brief-form-head {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 34px;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.1);
}

.brief-form label {
  gap: 10px;
  padding: 22px 0 18px;
}

.brief-form label:not(.form-wide) + label:not(.form-wide) {
  border-left: 1px solid rgb(var(--text-rgb) / 0.1);
  padding-left: 24px;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  border: 0;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.18);
  border-radius: 0;
  padding: 11px 0 13px;
  background: transparent;
  font-size: 16px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.brief-form textarea {
  min-height: 144px;
  padding: 16px;
  border: 1px solid rgb(var(--text-rgb) / 0.14);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: rgb(var(--text-rgb) / 0.78);
  background: rgb(var(--text-rgb) / 0.025);
  box-shadow: none;
}

.brief-details {
  margin: 14px 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.brief-submit {
  justify-content: space-between;
  margin-top: 0;
  min-height: 66px;
  border-radius: 0;
  padding-inline: 20px;
}

.brief-submit i {
  font-size: 20px;
  font-style: normal;
  transition: transform 180ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .brief-submit:hover i {
    transform: translate3d(4px, -4px, 0);
  }
}

@media (max-width: 980px) {
  .hero-reel-status,
  .hero-director-note {
    display: none;
  }

  .ref-hero .hero-title .line:first-child,
  .ref-hero .hero-title .line:nth-child(2) {
    padding-inline: 0;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-intro .section-title {
    max-width: 15ch;
  }
}

@media (max-width: 680px) {
  #preloader .pre-logo-mark {
    height: clamp(64px, 22vw, 92px);
  }

  #preloader .pre-meta,
  #preloader .pre-bar {
    width: calc(100vw - 40px);
  }

  .contact-ghost {
    top: 84px;
  }

  .contact-intro .section-title {
    font-size: clamp(42px, 14vw, 68px);
  }

  .brief-form.glass-card {
    grid-template-columns: 1fr;
  }

  .brief-form label:not(.form-wide) + label:not(.form-wide) {
    border-left: 0;
    padding-left: 0;
  }

  .brief-form > * {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reel-rule i,
  .contact-signal-dot,
  .case-title-line > span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #project-root[data-case-motion-ready] .project-dossier-summary,
  #project-root[data-case-motion-ready] [data-case-row],
  #project-root[data-case-motion-ready] .project-next {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Final cinematic hero and inquiry composition. -------------------------- */
.ref-hero,
.ref-hero .hero-frame {
  min-height: 100dvh;
  background: #050505;
}

.ref-hero .hero-media,
.ref-hero .hero-shade {
  inset: clamp(78px, 9.5vh, 112px) clamp(22px, 3vw, 56px) clamp(44px, 6vh, 72px) clamp(330px, 28vw, 540px);
}

.ref-hero .hero-media {
  z-index: -3;
  transform-origin: 70% 50%;
  background: #0a0a0a;
}

.ref-hero .hero-fallback {
  inset: 0;
}

.ref-hero .hero-frame::before {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.72) 23%, transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, transparent 38%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.ref-hero .hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.46) 0%, transparent 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, transparent 52%, rgba(0, 0, 0, 0.48) 100%);
}

.ref-hero .hero-reel-video.is-active {
  opacity: 0.94;
  filter: saturate(0.9) contrast(1.06) brightness(0.84);
}

.ref-hero .hero-frame-copy {
  top: clamp(180px, 23vh, 250px);
  left: clamp(28px, 5vw, 92px);
  bottom: auto;
  display: grid;
  width: min(720px, calc(100vw - 56px));
  justify-items: start;
  text-align: left;
  transform: none;
}

.ref-hero .hero-frame-copy .eyebrow {
  justify-content: flex-start;
  margin: 0 0 clamp(18px, 2.8vh, 30px);
  color: rgb(var(--text-rgb) / 0.72);
  letter-spacing: 0.06em;
}

.ref-hero .hero-frame-copy .eyebrow::before,
.ref-hero .hero-frame-copy .eyebrow::after {
  display: none;
}

.ref-hero .hero-title {
  display: grid;
  width: min-content;
  max-width: calc(100vw - 56px);
  justify-items: start;
  color: var(--text);
  font-size: clamp(64px, 6.2vw, 96px);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-align: left;
  white-space: nowrap;
}

.ref-hero .hero-title .line,
.ref-hero .hero-title .line:first-child,
.ref-hero .hero-title .line:nth-child(2) {
  width: max-content;
  padding: 0 0 0.09em;
  text-align: left;
}

.ref-hero .hero-title .line:nth-child(2) {
  margin-left: clamp(42px, 6vw, 116px);
}

.ref-hero .hero-frame-copy .ref-actions {
  justify-content: flex-start;
  margin: clamp(24px, 4vh, 40px) 0 0 clamp(42px, 6vw, 116px);
}

.hero-format-dock,
.hero-side-label,
.hero-reel-status,
.hero-director-note,
.hero-corners {
  display: none !important;
}

.contact-section {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  align-items: center;
  padding: clamp(112px, 14vh, 164px) 0 clamp(92px, 11vh, 132px);
  background: #050505;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0 52% 0 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.94)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.26), #050505 88%),
    url("assets/posters/morgenshtern-crowd-frame.jpg") center / cover;
  filter: grayscale(1) contrast(1.12);
  opacity: 0.22;
  pointer-events: none;
}

.contact-ghost,
.contact-signal,
.brief-form-head {
  display: none !important;
}

.contact-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(360px, 0.78fr) minmax(580px, 1.22fr);
  gap: clamp(64px, 9vw, 144px);
  align-items: start;
}

.contact-intro {
  display: grid;
  align-content: start;
  padding: 0;
}

.contact-intro .section-title {
  max-width: 9.5ch;
  font-size: clamp(52px, 5vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.contact-intro .section-title .line > span,
.contact-intro .section-title [data-i18n] {
  display: inline;
}

.contact-text {
  max-width: 42ch;
  margin-top: clamp(28px, 4vh, 44px);
  color: rgb(var(--text-rgb) / 0.68);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.58;
  text-wrap: pretty;
}

.contact-links {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: clamp(34px, 5vh, 54px);
  font-size: clamp(15px, 1.15vw, 18px);
}

.contact-links a {
  transition: color 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.brief-form.glass-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  align-content: start;
  border: 0;
  border-top: 1px solid rgb(var(--text-rgb) / 0.34);
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.12);
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brief-form label,
.brief-form label:not(.form-wide) + label:not(.form-wide) {
  gap: 10px;
  border-left: 0;
  padding: 24px 0 18px;
}

.brief-form label:not(.form-wide) + label:not(.form-wide) {
  padding-left: 0;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.22);
  border-radius: 0;
  padding: 10px 0 12px;
  background: transparent;
  color: rgb(var(--text-rgb) / 0.94);
  font-size: 16px;
  transition: border-color 180ms cubic-bezier(0.23, 1, 0.32, 1), background-color 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.brief-form textarea {
  min-height: 138px;
  padding: 14px 0;
  resize: vertical;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: rgb(var(--text-rgb) / 0.58);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: rgb(var(--signal-rgb) / 0.92);
  background: transparent;
  box-shadow: none;
}

.brief-details {
  margin: 8px 0 16px;
  border: 0;
  border-top: 1px solid rgb(var(--text-rgb) / 0.12);
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.12);
  border-radius: 0;
  background: transparent;
}

.brief-submit {
  min-height: 62px;
  margin: 0;
  border-radius: 0;
}

.brief-submit:active {
  transform: scale(0.98);
}

.form-status {
  min-height: 18px;
  margin: 12px 0 0;
}

@media (hover: hover) and (pointer: fine) {
  .contact-links a:hover {
    color: rgb(var(--text-rgb) / 0.7);
    transform: translate3d(4px, 0, 0);
  }
}

@media (max-width: 1120px) {
  .ref-hero .hero-media,
  .ref-hero .hero-shade {
    left: clamp(220px, 25vw, 320px);
  }

  .contact-grid {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 6vw, 72px);
  }
}

@media (max-width: 820px) {
  .ref-hero .hero-media,
  .ref-hero .hero-shade {
    inset: 80px 18px 120px 18px;
  }

  .ref-hero .hero-frame::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.04) 38%, rgba(5, 5, 5, 0.92) 82%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.42), transparent 58%);
  }

  .ref-hero .hero-frame-copy {
    top: auto;
    left: 20px;
    bottom: 40px;
    width: calc(100vw - 40px);
  }

  .ref-hero .hero-title {
    max-width: 100%;
    font-size: clamp(52px, 14vw, 78px);
  }

  .ref-hero .hero-title .line:nth-child(2),
  .ref-hero .hero-frame-copy .ref-actions {
    margin-left: clamp(28px, 8vw, 62px);
  }

  .contact-section {
    min-height: auto;
    padding: 104px 0 80px;
  }

  .contact-section::before {
    inset: 0;
    opacity: 0.14;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .contact-intro .section-title {
    max-width: 10ch;
    font-size: clamp(46px, 11vw, 70px);
  }

  .contact-text {
    max-width: 58ch;
  }
}

@media (max-width: 560px) {
  .ref-hero .hero-frame-copy .eyebrow {
    margin-bottom: 16px;
  }

  .ref-hero .hero-title {
    font-size: clamp(46px, 14vw, 64px);
  }

  .ref-hero .hero-frame-copy .ref-actions {
    margin-top: 24px;
  }

  .contact-grid {
    gap: 48px;
  }

  .contact-intro .section-title {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 58px);
  }

  .brief-form.glass-card {
    grid-template-columns: 1fr;
  }

  .brief-form > * {
    grid-column: 1;
  }
}

/* ── Expressive pass: turnaround intro, chrome hero, brief slate ───────── */

/* Intro returns to the ND logo turnaround: small, centered, native-res.
   screen blend drops the black frame so the logo floats on the slate. */
#preloader .pre-video {
  position: relative;
  z-index: 2;
  width: min(300px, 56vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ── Hero: footage-first. The reel fills the frame edge to edge; the type
   stays small and reads as a corner title card, so the work is the hero. ── */

/* Footage fills the whole frame — undo the inset "cinema column" that left
   a dark strip for the old left-hand title. */
.ref-hero .hero-media,
.ref-hero .hero-shade,
.ref-hero .hero-fallback {
  inset: 0;
}

/* Kill the title-card column vignette — footage should be clean, only a
   bottom gradient carries the copy. */
.ref-hero .hero-frame::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 56%, rgba(0, 0, 0, 0.9) 100%);
}

/* Bring the footage forward — it is the hero, not a darkened backdrop. */
.ref-hero .hero-reel-video.is-active {
  opacity: 1;
  filter: saturate(1) contrast(1.03) brightness(0.94);
}

.ref-hero .hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 28%, rgba(0, 0, 0, 0.24) 60%, rgba(0, 0, 0, 0.86) 100%);
}

/* Restrained title cluster, lower-left. Left-anchored (no translateX), so the
   scroll parallax's inline transform can't knock it off-centre. */
.ref-hero .hero-frame-copy {
  top: auto;
  left: clamp(22px, 4.5vw, 72px);
  right: auto;
  bottom: clamp(40px, 7vh, 84px);
  width: min(680px, calc(100vw - 44px));
  margin-inline: 0;
  transform: none;
  display: grid;
  justify-items: start;
  text-align: left;
}

.ref-hero .hero-frame-copy .eyebrow {
  justify-content: flex-start;
  margin-bottom: clamp(12px, 1.6vh, 18px);
  color: rgb(var(--text-rgb) / 0.62);
}

.ref-hero .hero-frame-copy .eyebrow::before {
  flex-basis: 30px;
  background: rgb(var(--signal-rgb));
}

.ref-hero .hero-frame-copy .eyebrow::after {
  display: none;
}

/* A title, not a billboard — one solid ink weight, no chrome, no diagonal. */
.ref-hero .hero-title {
  font-size: clamp(38px, 5vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: left;
}

.ref-hero .hero-title .line:first-child,
.ref-hero .hero-title .line:nth-child(2) {
  padding: 0;
  text-align: left;
}

.ref-hero .hero-title .line > span {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  animation: none !important;
}

.ref-hero .hero-frame-copy .ref-actions {
  width: max-content;
  max-width: 100%;
  margin-top: clamp(20px, 2.6vh, 30px);
  justify-content: flex-start;
}

.ref-hero .ref-actions .button {
  height: auto;
  white-space: nowrap;
}

/* Reel index parked in the opposite (lower-right) corner. */
.hero-reel-status {
  display: grid !important;
  top: auto;
  bottom: clamp(40px, 7vh, 84px);
  left: auto;
  right: clamp(22px, 4.5vw, 72px);
}

/* Brief as a slate: take label, breathing REC dot, red caret while typing */
.brief-slate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.14);
  color: rgb(var(--text-rgb) / 0.55);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brief-slate em {
  font-style: normal;
  color: rgb(var(--text-rgb) / 0.3);
}

.brief-slate-rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgb(var(--text-rgb) / 0.72);
}

.brief-slate-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--signal-rgb));
  box-shadow: 0 0 10px rgb(var(--signal-rgb) / 0.55);
  animation: brief-rec 1.6s steps(2, start) infinite;
}

@keyframes brief-rec {
  50% { opacity: 0.25; }
}

.brief-form.glass-card {
  position: relative;
}

/* viewfinder ticks anchor the card to the site's framing language */
.brief-form.glass-card::before,
.brief-form.glass-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid rgb(var(--text-rgb) / 0.35);
  pointer-events: none;
}

.brief-form.glass-card::before {
  top: -1px;
  left: -1px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.brief-form.glass-card::after {
  right: -1px;
  bottom: -1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.brief-form input,
.brief-form textarea {
  caret-color: rgb(var(--signal-rgb));
}

.brief-form label:focus-within > span {
  color: var(--text);
}

.brief-submit {
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.brief-submit:hover,
.brief-submit:focus-visible {
  border-color: rgb(var(--signal-rgb));
  background: rgb(var(--signal-rgb));
  color: #fff;
}

.brief-submit i {
  transition: transform 200ms var(--ease-out);
}

.brief-submit:hover i,
.brief-submit:focus-visible i {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .hero-reel-status {
    display: none !important;
  }

  .ref-hero .hero-frame-copy {
    left: 20px;
    right: 20px;
    width: auto;
    bottom: clamp(32px, 6vh, 64px);
  }

  .ref-hero .hero-title {
    font-size: clamp(34px, 9vw, 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brief-slate-rec i {
    animation: none;
  }
}

/* Futuristic HERO island -------------------------------------------------- */
.hero-futuristic-mount {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero-futuristic-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

.ref-hero .hero-reel-video {
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-hero .hero-media.has-futuristic-hero .hero-reel-video.is-active {
  opacity: 0.16;
  filter: grayscale(0.72) saturate(0.54) contrast(1.18) brightness(0.58);
  transform: scale(1.035);
}

.ref-hero .hero-media.has-futuristic-hero ~ .hero-reel-status {
  opacity: 0;
  pointer-events: none;
}

.ref-hero .hero-frame-copy {
  left: clamp(22px, 5vw, 92px);
  bottom: clamp(42px, 8vh, 92px);
  width: min(720px, calc(52vw - 40px));
}

.ref-hero .hero-title {
  font-size: clamp(58px, 8vw, 148px);
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.ref-hero .hero-title .line:nth-child(2) {
  margin-left: clamp(28px, 4vw, 86px);
}

.ref-hero .hero-frame-copy .ref-actions {
  margin-left: clamp(28px, 4vw, 86px);
}

.ref-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.84) 0%, rgba(5, 5, 5, 0.38) 42%, rgba(5, 5, 5, 0.08) 72%, rgba(5, 5, 5, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.42) 0%, transparent 34%, rgba(5, 5, 5, 0.72) 100%);
}

.ref-hero .hero-frame::before {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, transparent 22%, transparent 60%, rgba(5, 5, 5, 0.86) 100%);
}

@media (max-width: 980px) {
  .ref-hero .hero-frame-copy {
    width: min(660px, calc(64vw - 32px));
  }

  .ref-hero .hero-title {
    font-size: clamp(54px, 9.2vw, 92px);
  }
}

@media (max-width: 768px) {
  .ref-hero .hero-frame-copy {
    left: 20px;
    right: 20px;
    bottom: clamp(32px, 6vh, 56px);
    width: auto;
  }

  .ref-hero .hero-title {
    max-width: 100%;
    font-size: clamp(48px, 14.5vw, 74px);
  }

  .ref-hero .hero-title .line:nth-child(2),
  .ref-hero .hero-frame-copy .ref-actions {
    margin-left: clamp(22px, 8vw, 54px);
  }

  .ref-hero .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.44) 0%, rgba(5, 5, 5, 0.08) 42%, rgba(5, 5, 5, 0.92) 78%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-futuristic-mount {
    display: none;
  }

  .ref-hero .hero-reel-video {
    transition: none;
  }
}

/* Futuristic hero reference and compact inquiry, July 2026. ---------------- */
.ref-hero,
.ref-hero .hero-frame {
  min-height: 100dvh;
  background: #030303;
}

.ref-hero .hero-media,
.ref-hero .hero-shade,
.ref-hero .hero-fallback {
  inset: 0;
}

.ref-hero .hero-media {
  z-index: 0;
  overflow: hidden;
  background: #030303;
  transform-origin: 50% 50%;
}

.ref-hero .hero-fallback,
.ref-hero .hero-reel-video,
.ref-hero .hero-reel-video.is-active {
  visibility: hidden;
  opacity: 0 !important;
}

.ref-hero .hero-frame::before {
  z-index: 4;
  background:
    radial-gradient(circle at 52% 48%, transparent 20%, rgba(3, 3, 3, 0.18) 58%, rgba(3, 3, 3, 0.82) 100%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.72) 0%, transparent 18%, transparent 75%, rgba(3, 3, 3, 0.64) 100%);
}

.ref-hero .hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.36) 0%, transparent 22%, transparent 78%, rgba(3, 3, 3, 0.36) 100%);
  pointer-events: none;
}

.hero-futuristic-mount {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.hero-futuristic-mount::before {
  content: "";
  position: absolute;
  inset: 7vh 8vw 5vh;
  background: url("LOGO.png") 52% 50% / contain no-repeat;
  filter: contrast(1.18) drop-shadow(0 34px 84px rgba(0, 0, 0, 0.78));
  opacity: 0.82;
  transform: translate3d(0, 0, 0) rotate(-1.5deg) scale(0.98);
  animation: nocta-object-drift 10s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
  transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-futuristic-mount::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 19%;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 45, 0.9) 24%, #ff002d 50%, rgba(255, 0, 45, 0.9) 76%, transparent 100%);
  box-shadow: 0 0 14px rgba(255, 0, 45, 0.72), 0 0 42px rgba(255, 0, 45, 0.26);
  opacity: 0.84;
  transform: translate3d(0, -18vh, 0);
  animation: nocta-scan-line 5.4s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
}

.hero-futuristic-mount[data-ready="true"]::before {
  opacity: 0.05;
}

.hero-futuristic-mount[data-failed="true"]::before,
.hero-futuristic-mount[data-enhanced="false"]::before {
  opacity: 0.24;
}

.hero-futuristic-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

@keyframes nocta-object-drift {
  to {
    transform: translate3d(1.4vw, -1.2vh, 0) rotate(1.2deg) scale(1.015);
  }
}

@keyframes nocta-scan-line {
  to {
    transform: translate3d(0, 18vh, 0);
  }
}

.ref-hero .hero-frame-copy {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 8;
  display: grid;
  width: min(1240px, calc(100vw - 96px));
  justify-items: center;
  margin: 0;
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
}

.ref-hero .hero-frame-copy .eyebrow {
  justify-content: center;
  margin: 0 0 clamp(22px, 3vh, 34px);
  color: rgb(var(--text-rgb) / 0.72);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.ref-hero .hero-frame-copy .eyebrow::before,
.ref-hero .hero-frame-copy .eyebrow::after {
  display: block;
  flex: 0 0 clamp(28px, 4vw, 64px);
  height: 1px;
  background: rgb(var(--text-rgb) / 0.24);
}

.ref-hero .hero-frame-copy .eyebrow::before {
  background: rgb(var(--signal-rgb));
}

.ref-hero .hero-title {
  display: flex;
  width: auto;
  max-width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 0.14em;
  color: var(--text);
  font-size: clamp(62px, 7vw, 96px);
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 8px 42px rgba(0, 0, 0, 0.72);
}

.ref-hero .hero-title .line,
.ref-hero .hero-title .line:first-child,
.ref-hero .hero-title .line:nth-child(2) {
  display: block;
  width: auto;
  margin: 0;
  padding: 0 0 0.1em;
  text-align: center;
}

.ref-hero .hero-title .line > span {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  animation: none !important;
}

.ref-hero .hero-frame-copy .ref-actions {
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  margin: clamp(30px, 4vh, 46px) 0 0;
}

.ref-hero .ref-actions .button {
  min-height: 48px;
  padding-inline: 24px;
  white-space: nowrap;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.ref-hero .ref-actions .button-primary {
  border-color: rgb(var(--signal-rgb));
  background: rgb(var(--signal-rgb));
  color: #fff;
}

.ref-hero .ref-actions .button-ghost {
  border-color: rgb(var(--text-rgb) / 0.34);
  background: rgba(3, 3, 3, 0.56);
}

.hero-reel-status,
.hero-format-dock,
.hero-side-label,
.hero-director-note,
.hero-corners {
  display: none !important;
}

/* Contact section */
.contact-section,
.contact-section.snap-section {
  position: relative;
  display: block;
  min-height: auto;
  overflow: hidden;
  padding: clamp(112px, 11vw, 176px) 0;
  border-top: 1px solid rgb(var(--text-rgb) / 0.1);
  background: #050505;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  background: #090909;
  filter: none;
  opacity: 1;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
  gap: clamp(56px, 8vw, 132px);
  align-items: center;
}

.contact-intro {
  display: grid;
  align-content: start;
  padding: 0;
}

.contact-intro .section-title {
  max-width: 8.8ch;
  font-size: clamp(52px, 5vw, 80px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.contact-intro .section-title .line > span,
.contact-intro .section-title [data-i18n] {
  display: inline;
}

.contact-text {
  max-width: 40ch;
  margin-top: 30px;
  color: rgb(var(--text-rgb) / 0.68);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
  text-wrap: pretty;
}

.contact-links {
  display: grid;
  gap: 0;
  margin-top: 38px;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 650;
}

.contact-links a {
  position: relative;
  display: flex;
  width: min(100%, 390px);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(var(--text-rgb) / 0.16);
  border-bottom: 0;
  padding: 16px 0;
  opacity: 1;
  transform: none;
  transition: color 180ms ease, transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-links a:last-child {
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.16);
}

.contact-links a::after {
  content: "↗";
  color: rgb(var(--signal-rgb));
  font-family: var(--sans);
  font-size: 16px;
}

.brief-form.glass-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-content: start;
  border: 1px solid rgb(var(--text-rgb) / 0.16);
  border-radius: 0;
  padding: clamp(24px, 3vw, 46px);
  background: #080808;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.46);
  backdrop-filter: none;
}

.brief-form.glass-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: clamp(72px, 9vw, 132px);
  height: 2px;
  border: 0;
  background: rgb(var(--signal-rgb));
}

.brief-form.glass-card::after {
  display: none;
}

.brief-form label,
.brief-form label:not(.form-wide) + label:not(.form-wide) {
  gap: 9px;
  border: 0;
  padding: 0;
}

.brief-form label:not(.form-wide) + label:not(.form-wide) {
  padding-left: 0;
}

.brief-form label > span,
.brief-form .form-status {
  color: rgb(var(--text-rgb) / 0.58);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgb(var(--text-rgb) / 0.16);
  border-radius: 0;
  padding: 15px 16px;
  background: #050505;
  color: rgb(var(--text-rgb) / 0.96);
  font-size: 16px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.brief-form textarea {
  min-height: 156px;
  padding-block: 16px;
  resize: vertical;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: rgb(var(--text-rgb) / 0.48);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: rgb(var(--signal-rgb) / 0.9);
  background: #070707;
  box-shadow: 0 0 0 3px rgb(var(--signal-rgb) / 0.12);
}

.brief-form .field-hint,
.brief-form .field-error {
  min-height: 1.25em;
  color: rgb(var(--text-rgb) / 0.48);
}

.brief-details {
  margin: 0;
  border: 1px solid rgb(var(--text-rgb) / 0.14);
  border-radius: 0;
  background: #050505;
}

.brief-details summary {
  min-height: 64px;
  padding: 14px 50px 14px 16px;
}

.brief-details-grid {
  gap: 16px;
  padding: 16px;
}

.brief-submit {
  min-height: 58px;
  margin: 0;
  border-color: var(--text);
  border-radius: 0;
  background: var(--text);
  color: #050505;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.brief-submit:active {
  transform: scale(0.98);
}

.form-status {
  min-height: 18px;
  margin: -10px 0 0;
}

@media (hover: hover) and (pointer: fine) {
  .contact-links a:hover {
    color: rgb(var(--text-rgb) / 0.72);
    transform: translate3d(5px, 0, 0);
  }

  .brief-submit:hover,
  .brief-submit:focus-visible {
    border-color: rgb(var(--signal-rgb));
    background: rgb(var(--signal-rgb));
    color: #fff;
  }
}

@media (max-width: 1080px) {
  .contact-grid {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 6vw, 72px);
  }

  .ref-hero .hero-title {
    font-size: clamp(58px, 8.5vw, 88px);
  }
}

@media (max-width: 820px) {
  .hero-futuristic-mount::before {
    inset: 14vh -16vw 14vh -16vw;
    background-position: 58% 50%;
  }

  .hero-futuristic-mount::after {
    left: 8%;
    width: 84%;
  }

  .ref-hero .hero-frame-copy {
    top: 52%;
    left: 20px;
    right: 20px;
    width: auto;
    transform: translate3d(0, -50%, 0);
  }

  .ref-hero .hero-title {
    display: grid;
    gap: 0;
    font-size: clamp(54px, 15vw, 82px);
    white-space: normal;
  }

  .ref-hero .hero-title .line:nth-child(2) {
    margin: 0;
  }

  .contact-section,
  .contact-section.snap-section {
    padding: 104px 0 88px;
  }

  .contact-section::before {
    inset: 46% 0 0;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: start;
  }

  .contact-intro .section-title {
    max-width: 9.5ch;
    font-size: clamp(48px, 11vw, 70px);
  }

  .contact-text {
    max-width: 55ch;
  }
}

@media (max-width: 560px) {
  .ref-hero .hero-frame-copy {
    top: 51%;
  }

  .ref-hero .hero-frame-copy .eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
  }

  .ref-hero .hero-title {
    font-size: clamp(48px, 16vw, 68px);
  }

  .ref-hero .hero-frame-copy .ref-actions {
    display: grid;
    width: min(100%, 280px);
    margin-top: 30px;
  }

  .ref-hero .ref-actions .button {
    width: 100%;
  }

  .contact-grid {
    gap: 48px;
  }

  .contact-intro .section-title {
    max-width: 100%;
    font-size: clamp(42px, 12.5vw, 58px);
  }

  .contact-links a {
    width: 100%;
  }

  .brief-form.glass-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
  }

  .brief-form > * {
    grid-column: 1;
  }

  .brief-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-futuristic-mount {
    display: block;
  }

  .hero-futuristic-mount::before,
  .hero-futuristic-mount::after {
    animation: none;
  }

  .hero-futuristic-mount::after {
    opacity: 0.42;
    transform: translate3d(0, 0, 0);
  }

  .ref-hero .hero-frame-copy,
  .contact-links a {
    transform: none;
    transition: opacity 180ms ease;
  }

  .ref-hero .hero-frame-copy {
    transform: translate3d(-50%, -50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 820px) {
  .ref-hero .hero-frame-copy {
    transform: translate3d(0, -50%, 0);
  }
}
