/* ============================================
   OBSCURA — demo homepage
   Edit colours + spacing in :root
   ============================================ */

:root {
  --bg: #0a0a0b;
  --bg-soft: #0e0e10;
  --ink: #f2efe9;
  --muted: #8c8a84;
  --accent: #d9ff57;
  --error: #ff7a5c;
  --line: rgba(242, 239, 233, 0.14);
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

::selection {
  background: var(--accent);
  color: #0a0a0b;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #0a0a0b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

/* ---------- texture + scroll bar ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 500;
  background: var(--accent);
}

/* ---------- custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 600;
  pointer-events: none;
  display: none;
}

.cursor::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
}

.cursor__ring {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(242, 239, 233, 0.45);
  border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), border-color 0.3s ease,
              background-color 0.3s ease;
}

.cursor.is-hover .cursor__ring {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: var(--accent);
  background: rgba(217, 255, 87, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* ---------- intro: lens → logo ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.intro__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #070708;
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.intro__panel--top {
  top: 0;
  transform-origin: top;
}

.intro__panel--bottom {
  bottom: 0;
  transform-origin: bottom;
}

.intro__panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro__panel--top::after { bottom: 0; }
.intro__panel--bottom::after { top: 0; }

.intro.is-open .intro__panel::after { opacity: 0.55; }

.intro.is-open .intro__panel--top { transform: translateY(-101%); }
.intro.is-open .intro__panel--bottom { transform: translateY(101%); }

.intro__stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(92vw, 760px);
  transition: opacity 0.35s ease, transform 0.8s var(--ease);
}

.intro__stage::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 72%;
  background: radial-gradient(circle, rgba(217, 255, 87, 0.1), transparent 66%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.intro.is-open .intro__stage {
  opacity: 0;
  transform: scale(0.96);
}

.intro__lens {
  grid-area: 1 / 1;
  width: clamp(220px, 34vw, 400px);
  aspect-ratio: 1;
  transform-origin: center;
  animation: lensIn 0.9s var(--ease) both;
}

.intro__lens svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes lensIn {
  from { opacity: 0; transform: scale(0.8) rotate(-10deg); }
  to   { opacity: 1; transform: none; }
}

.intro__ticks {
  transform-origin: 110px 110px;
  animation: lensSpin 34s linear infinite;
}

.intro.is-closing .intro__ticks { animation-duration: 1.4s; }

@keyframes lensSpin {
  to { transform: rotate(360deg); }
}

.intro__blades {
  transform-origin: 110px 110px;
  transition: transform 0.7s cubic-bezier(0.85, 0, 0.15, 1);
}

.intro.is-closing .intro__blades {
  transform: scale(0.06) rotate(34deg);
}

.intro.is-transform .intro__lens {
  animation: lensCollapse 0.7s 0.08s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

@keyframes lensCollapse {
  to {
    transform: scaleX(1.12) scaleY(0.012);
    opacity: 0;
    filter: blur(1px);
  }
}

.intro__brand {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.intro.is-transform .intro__brand { opacity: 1; }

.intro__word {
  display: inline-flex;
  align-items: flex-start;
  font-size: clamp(2.2rem, 6.2vw, 5.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.1em;
  padding-left: 0.1em;
}

.intro__char {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.intro__char > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s var(--ease);
}

.intro.is-transform .intro__char > span { transform: translateY(0); }

.intro__char:nth-child(1) > span { transition-delay: 0.04s; }
.intro__char:nth-child(2) > span { transition-delay: 0.09s; }
.intro__char:nth-child(3) > span { transition-delay: 0.14s; }
.intro__char:nth-child(4) > span { transition-delay: 0.19s; }
.intro__char:nth-child(5) > span { transition-delay: 0.24s; }
.intro__char:nth-child(6) > span { transition-delay: 0.29s; }
.intro__char:nth-child(7) > span { transition-delay: 0.34s; }

.intro__reg {
  font-size: 0.16em;
  letter-spacing: 0;
  margin: 0.3em 0 0 0.35em;
  opacity: 0;
  transition: opacity 0.5s ease 0.55s;
}

.intro.is-transform .intro__reg { opacity: 0.7; }

.intro__sub {
  display: block;
  margin-top: 20px;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s var(--ease) 0.5s;
}

.intro.is-transform .intro__sub {
  opacity: 1;
  transform: none;
}

.intro__foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.3s ease;
}

.intro.is-open .intro__foot { opacity: 0; }

.intro__skip {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.intro__skip:hover { color: var(--accent); }

.intro__count {
  font-variant-numeric: tabular-nums;
}

.intro__count i {
  font-style: normal;
  opacity: 0.45;
}


/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px var(--pad);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s ease, background-color 0.4s ease,
              border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(10, 10, 11, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.nav__brand sup { font-size: 7px; letter-spacing: 0; }

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 95;
}

.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }

.nav__toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: 132px var(--pad) clamp(90px, 11vh, 140px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -22vw;
  right: -18vw;
  width: 68vw;
  height: 68vw;
  background: radial-gradient(circle, rgba(217, 255, 87, 0.13) 0%, rgba(217, 255, 87, 0.04) 38%, transparent 66%);
  filter: blur(30px);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-5%, 6%, 0) scale(1.08); }
}

.hero__top { position: relative; }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 255, 87, 0.12);
}

.hero__title {
  position: relative;
  margin: clamp(40px, 7vh, 90px) 0;
  font-size: clamp(3.4rem, 10.5vw, 10rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero__title .word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d) * 0.09s + 0.25s);
}

body.is-loaded .hero__title .word { transform: translateY(0); }

.accent {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--accent);
  padding-right: 0.04em;
}

.hero__bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero__lede {
  max-width: 36ch;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: #c9c5bd;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  right: calc(var(--pad) - 6px);
  bottom: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-cue__line {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- showreel ---------- */

.reel {
  position: relative;
  z-index: 2;
  margin-top: clamp(-56px, -6vw, -24px);
  padding: 0 var(--pad);
}

.reel__card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(242, 239, 233, 0.1);
  border-radius: 3px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #141416;
  cursor: pointer;
  text-align: left;
}

.reel__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.85);
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter 1s ease;
}

.reel__card:hover img {
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1.05) brightness(0.92);
}

.reel__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 6, 7, 0.78) 0%, rgba(6, 6, 7, 0.05) 45%, transparent 70%),
    radial-gradient(circle at 50% 45%, transparent 25%, rgba(6, 6, 7, 0.3) 100%);
}

.reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0b;
  transition: transform 0.5s var(--ease), background-color 0.3s ease;
}

.reel__play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(217, 255, 87, 0.5);
  border-radius: 50%;
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.reel__card:hover .reel__play { transform: scale(1.08); }

.reel__label {
  position: absolute;
  left: clamp(18px, 2.5vw, 32px);
  bottom: clamp(16px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reel__title {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.reel__sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.6);
}

.reel__time {
  position: absolute;
  right: clamp(18px, 2.5vw, 32px);
  bottom: clamp(16px, 2.2vw, 28px);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(242, 239, 233, 0.7);
  font-variant-numeric: tabular-nums;
}

/* ---------- shared section head ---------- */

#work,
#services,
#contact { scroll-margin-top: 88px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--tight { margin-bottom: 0; }

.section-head__title {
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.section-head__title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.section-head__link span {
  font-size: 10px;
  color: var(--accent);
}

.section-head__link:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ---------- work ---------- */

.work {
  padding: clamp(80px, 13vh, 150px) var(--pad) 0;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  align-items: start;
}

.work-card:nth-child(2) { margin-top: clamp(30px, 5vw, 72px); }
.work-card:nth-child(3) { margin-top: clamp(10px, 2vw, 24px); }

.work-card figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #131315;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
  transition: transform 1.2s var(--ease), filter 0.8s ease;
}

.work-card a:hover img {
  transform: scale(1.045);
  filter: grayscale(0) contrast(1.02) brightness(0.92);
}

.work-card__index {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.work-card__view {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(6px);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.work-card__view span { color: var(--accent); }

.work-card a:hover .work-card__view,
.work-card a:focus-visible .work-card__view {
  opacity: 1;
  transform: none;
}

.work-card__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}

.work-card__info h3 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.work-card a:hover h3 { color: var(--accent); }

.work-card__info p {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.work-card__info p span { color: rgba(140, 138, 132, 0.5); }

/* ---------- services ---------- */

.services {
  padding: clamp(100px, 15vh, 170px) var(--pad) clamp(80px, 10vh, 120px);
}

.services .section-head { border-bottom: 0; padding-bottom: 0; }

.marquee {
  overflow: hidden;
  margin: clamp(28px, 4vw, 48px) calc(var(--pad) * -1);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee span {
  padding: 0 0.22em;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 233, 0.32);
  white-space: nowrap;
}

.marquee i {
  font-style: normal;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--accent);
}

.services__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(40px, 6vw, 72px);
}

.services__list li {
  display: flex;
  gap: 14px;
  padding: 22px 18px 22px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: #d6d2ca;
}

.services__list li span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 4px;
}

/* ---------- contact ---------- */

.contact {
  padding: clamp(100px, 15vh, 170px) var(--pad);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: clamp(48px, 7vw, 110px);
}

.contact__title {
  margin: 24px 0 26px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.contact__lede {
  max-width: 38ch;
  color: #c9c5bd;
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  line-height: 1.6;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  letter-spacing: -0.01em;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.contact__mail span { color: var(--accent); transition: transform 0.3s var(--ease); }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__mail:hover span { transform: translate(3px, -3px); }

.contact__details {
  display: grid;
  gap: 0;
  max-width: 380px;
  margin: clamp(48px, 7vw, 80px) 0 0;
}

.contact__details div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.contact__details dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__details dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  text-align: right;
}

/* ---------- form ---------- */

.contact__form-wrap { position: relative; }

.form {
  display: grid;
  gap: 24px;
}

.form[hidden] { display: none; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(140, 138, 132, 0.55); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238c8a84' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.field select:invalid { color: rgba(140, 138, 132, 0.8); }

.field select option {
  background: #111113;
  color: var(--ink);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: var(--error); }

.field__error {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--error);
  opacity: 0;
}

.field.is-invalid .field__error { opacity: 1; }

#consentError { opacity: 1; }
#consentError:empty { opacity: 0; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}

.btn--submit {
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0a0a0b;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--submit:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #0a0a0b;
}

.btn--submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form__hint {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__status {
  min-height: 16px;
  margin: 0;
  font-size: 11px;
  color: var(--error);
}

.form__status a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-height: 440px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: rgba(217, 255, 87, 0.03);
}

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

.form-success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0b;
  font-size: 22px;
}

.form-success h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.form-success p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-success__reset {
  margin-top: 6px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.form-success__reset:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.footer {
  padding: 36px var(--pad) 26px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.footer__brand sup { font-size: 7px; letter-spacing: 0; }

.footer__note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.footer__socials {
  display: flex;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__socials a { transition: color 0.3s ease; }
.footer__socials a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__top-link { transition: color 0.3s ease; }
.footer__top-link:hover { color: var(--accent); }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}

.lightbox__inner {
  position: relative;
  width: min(1240px, 100%);
  margin-top: 44px;
}

.lightbox__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(242, 239, 233, 0.12);
}

.lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox__close:hover { color: var(--accent); }

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--pad) 36px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.menu nav a span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .nav__links,
  .btn--nav { display: none; }
  .nav__toggle { display: block; }

  .hero { padding-top: 112px; }
  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hero__meta { align-items: flex-start; text-align: left; }
  .scroll-cue { display: none; }

  .reel { margin-top: 42px; }
  .reel__play { width: 74px; height: 74px; margin: -37px 0 0 -37px; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .work__grid { grid-template-columns: 1fr; gap: 42px; }
  .work-card:nth-child(2),
  .work-card:nth-child(3) { margin-top: 0; }

  .services__list { grid-template-columns: repeat(2, 1fr); }

  .contact__grid { grid-template-columns: 1fr; gap: clamp(48px, 8vw, 64px); }
  .contact__details { max-width: none; }

  .footer__top { flex-wrap: wrap; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero__title { font-size: clamp(3rem, 14.5vw, 4.6rem); }
  .hero__lede { max-width: 30ch; }

  .reel__card { aspect-ratio: 4 / 3; }
  .reel__label { left: 16px; bottom: 14px; }
  .reel__time { right: 16px; bottom: 14px; }
  .reel__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .reel__play svg { width: 18px; height: 18px; }

  .work-card__info { flex-direction: column; gap: 4px; }

  .services__list { grid-template-columns: 1fr; }
  .services__list li { padding: 16px 0; }

  .contact__title { font-size: clamp(2.3rem, 10vw, 3rem); }
  .form__row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .form-success { min-height: 380px; }

  .intro__lens { width: clamp(150px, 44vw, 190px); }
  .intro__word { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .intro__foot { bottom: 20px; }

  .lightbox__inner { margin-top: 40px; }
  .lightbox__close { top: -38px; }
}

/* ---------- local mobile preview (file:// only) ---------- */

.dev-preview {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.85);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.dev-preview:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .word { transform: none; }
  .intro { display: none !important; }
  .cursor { display: none !important; }
  .scroll-progress { display: none; }
}
