/* ============================================
   SONIC PIXEL — Studio website
   Brutalist editorial × generative motion
   ============================================ */

:root {
  /* Studio néon — violet-black base, multi-accent pulled from the reel */
  --bg:           #0b0912;            /* deep violet-black */
  --bg-alt:       #14101f;            /* raised surface, warmer violet */
  --fg:           #ece9dc;            /* logo color, softer than white */
  --fg-dim:       rgba(236, 233, 220, 0.6);
  --fg-faint:     rgba(236, 233, 220, 0.25);
  --rule:         rgba(200, 190, 255, 0.14);   /* violet-tinted hairline */
  --accent:       #e9f178;            /* electric chartreuse — primary */
  --accent-2:     #ff53a0;            /* neon magenta — highlights */
  --accent-3:     #46e3c8;            /* neon cyan — tech / structure */
  --accent-warm:  #ff5a3c;            /* signal red-orange (errors) */
  --violet:       #1c004d;            /* the showreel's signature indigo (backgrounds) */
  --violet-lit:   #8b5cff;            /* legible electric sibling (text / accents) */

  --ff-display:   "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ff-mono:      "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --max:          clamp(320px, 100vw, 1680px);
  --pad-x:        clamp(20px, 5vw, 80px);

  --ease:         cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(55% 45% at 12% -5%, rgba(127, 119, 221, 0.16), transparent 70%),
    radial-gradient(45% 40% at 108% 108%, rgba(70, 227, 200, 0.10), transparent 70%),
    radial-gradient(40% 35% at 95% 20%, rgba(255, 83, 160, 0.07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--ff-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none; /* custom cursor */
  overflow-x: hidden;
}

@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: none; }
img { display: block; max-width: 100%; }
video { display: block; }

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

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 70px; height: 70px;
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.91 0 0 0 0 0.86 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav__brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);  /* render logo in pure white because we are in difference mode */
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  color: var(--fg);
  transition: opacity 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  padding: 4px 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}
.lang-btn.is-active,
.lang-btn:hover { opacity: 1; }
.lang-sep { opacity: 0.3; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  /* "safe" : si le contenu est plus haut que la fenêtre, il s'aligne en haut
     (sous la nav) au lieu de déborder par-dessus le logo. */
  align-items: safe flex-end;
  padding: clamp(90px, 12vh, 120px) var(--pad-x) clamp(40px, 8vh, 80px);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, transparent 55%, rgba(28,0,77,0.55) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vh, 40px);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  width: fit-content;
}
.tag-marker {
  color: var(--accent);
  font-size: 10px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(64px, 16vw, 250px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.hero__title-line {
  display: block;
  position: relative;
}
.hero__title-line--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
  margin-left: clamp(20px, 5vw, 80px);
}

.hero__lead {
  max-width: 56ch;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.hero__scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(40px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  writing-mode: vertical-rl;
  z-index: 2;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: var(--fg-dim);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollDown 2.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.hero__meta {
  position: absolute;
  top: 88px;
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  z-index: 2;
}

@media (max-width: 720px) {
  .hero__scroll, .hero__meta { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--lg { padding: 18px 28px; font-size: 13px; }

/* ============================================
   SECTION MARKER
   ============================================ */
.section-marker {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: clamp(40px, 8vh, 80px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.section-marker__num {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   GENERIC SECTION
   ============================================ */
section {
  padding: clamp(80px, 14vh, 180px) var(--pad-x);
  position: relative;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(40px, 8vh, 80px);
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.manifesto__text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
}
.manifesto__text .emph {
  font-weight: 700;
}
.manifesto__text .emph--alt {
  color: var(--accent);
}

.manifesto__body {
  max-width: 56ch;
  margin-left: auto;
  display: grid;
  gap: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-dim);
}
.manifesto__body p { margin: 0; }

@media (min-width: 1024px) {
  .manifesto {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
    gap: 80px;
  }
}

/* ============================================
   EXPERTISE GRID
   ============================================ */
.expertise__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.exp-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  /* Mobile : une seule colonne, numéro / titre / texte empilés pleine largeur. */
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  transition: padding-left 0.5s var(--ease), background 0.5s var(--ease);
}
.exp-card:hover {
  padding-left: 20px;
}
.exp-card__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-3);
  padding-top: 8px;
}
.exp-card h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-variation-settings: "opsz" 60;
}
.exp-card p {
  margin: 0;
  max-width: 60ch;
  color: var(--fg-dim);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .exp-card {
    grid-template-columns: 100px 1fr 1fr;
    gap: 40px;
  }
}

/* ============================================
   SHOWREEL
   ============================================ */
.showreel {
  background: radial-gradient(90% 85% at 50% 55%, rgba(28, 0, 77, 0.62) 0%, transparent 72%);
}
.showreel__hook {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(28px, 5vh, 48px);
  max-width: 22ch;
  color: var(--fg);
}
.showreel__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  overflow: hidden;
}
.showreel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Idle: keep the colour of the work, just slightly punchier */
  filter: saturate(1.12) contrast(1.05) brightness(0.96);
  transition: filter 0.9s var(--ease);
}
/* Playing: full colour, no grade — the reel takes over */
.showreel__player.is-playing .showreel__video {
  filter: none;
}
/* Neon wash over the idle poster to tie it to the studio ambiance */
.showreel__player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 120% at 50% 38%, transparent 52%, rgba(11,9,18,0.72) 100%),
              linear-gradient(180deg, rgba(127,119,221,0.14) 0%, transparent 40%),
              linear-gradient(300deg, rgba(255,83,160,0.10) 0%, transparent 45%);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.showreel__player.is-playing::after { opacity: 0; }
/* Play overlay */
.showreel__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
  transition: background 0.5s var(--ease), opacity 0.5s var(--ease);
}
.showreel__play:hover { background: rgba(0,0,0,0.28); }
.showreel__play-icon {
  width: clamp(64px, 8vw, 100px);
  height: clamp(64px, 8vw, 100px);
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(233,241,120,0.5), 0 0 34px rgba(233,241,120,0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.showreel__play:hover .showreel__play-icon {
  transform: scale(1.08);
  box-shadow: 0 0 0 1px rgba(233,241,120,0.7), 0 0 48px rgba(233,241,120,0.65);
}
.showreel__play-icon svg { width: 38%; height: 38%; margin-left: 6%; }
.showreel__play-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.showreel__badge {
  position: absolute;
  bottom: clamp(16px, 2.5vw, 28px);
  right: clamp(16px, 2.5vw, 28px);
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.showreel__player.is-playing .showreel__play { opacity: 0; pointer-events: none; }
.showreel__player.is-playing .showreel__badge { opacity: 0; }

/* ============================================
   WORK GRID
   ============================================ */
.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .work__grid {
    grid-template-columns: 1fr 1.5fr;
    grid-auto-flow: row dense;
    gap: 20px;
  }
  .work-item--wide { grid-column: span 1; }
  .work-item--tall { grid-row: span 1; }
}

@media (min-width: 1100px) {
  .work__grid {
    grid-template-columns: 1fr 1.6fr 1fr;
    grid-template-areas:
      "tall1 wide1 tall2"
      "tall1 wide2 tall2";
    gap: 24px;
  }
  .work__grid > .work-item:nth-child(1) { grid-area: tall1; }
  .work__grid > .work-item:nth-child(2) { grid-area: wide1; }
  .work__grid > .work-item:nth-child(3) { grid-area: wide2; }
  .work__grid > .work-item:nth-child(4) { grid-area: tall2; }
}

.work-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: var(--aspect, 16/9);
  cursor: none;
}
.work-item[data-aspect="9/16"] { aspect-ratio: 9/16; }
.work-item[data-aspect="16/9"] { aspect-ratio: 16/9; }

.work-item video,
.work-item__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease);
  filter: saturate(1.08) contrast(1.05);
}
.work-item:hover video {
  transform: scale(1.04);
  filter: saturate(1.18) contrast(1.1);
}

.work-item__info {
  position: absolute;
  inset: 0;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.85) 100%);
  transition: background 0.5s var(--ease);
  pointer-events: none;
}

.work-item__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg);
  opacity: 0.9;
}
.work-item__info h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-variation-settings: "opsz" 60;
}
.work-item__info p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 40ch;
  line-height: 1.5;
}
.work-item__tags {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ============================================
   WORK MARQUEE (small clips strip)
   ============================================ */
.work__marquee {
  margin: 80px calc(var(--pad-x) * -1) 0;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 170s linear infinite;
}
.marquee__track video {
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  object-fit: cover;
  filter: saturate(1.08);
}
/* Clips 16:9 : même hauteur, case plus large pour éviter le rognage */
.marquee__track video.marquee__video--wide {
  width: auto;
  aspect-ratio: 16 / 9;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   PROCESS
   ============================================ */
.process__intro {
  max-width: 60ch;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 60px;
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 100px;
}
@media (min-width: 900px) {
  .process__steps {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
  }
}

.step {
  padding: 28px 24px;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.step:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.step__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--fg-faint);
}
@media (max-width: 899px) {
  .step__arrow { display: none; }
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 40px 24px;
  text-align: left;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat__big {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 8px;
}
.stat__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============================================
   TECH LIST
   ============================================ */
.tech__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.tech__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.5s var(--ease);
}
.tech__list li:hover { padding-left: 20px; }
.tech__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: -0.02em;
}
.tech__desc {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .tech__list li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 40px;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.contact__big {
  font-family: var(--ff-display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(56px, 12vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 40px;
  color: var(--violet-lit);
  text-shadow: 0 0 60px rgba(139, 92, 255, 0.32);
}

.contact__intro {
  max-width: 56ch;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 60px;
}

.contact__form {
  display: grid;
  gap: 24px;
  max-width: 720px;
  margin-bottom: 60px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: grid;
  gap: 8px;
}
.field__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.field__label em { font-style: normal; opacity: 0.6; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-family: var(--ff-mono);
  font-size: 15px;
  color: var(--fg);
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent), 0 8px 24px -12px rgba(233,241,120,0.6);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--ff-mono);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ece9dc' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: none;
}
.field select option { background: var(--bg); color: var(--fg); }

.form-status {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent);
  margin: 0;
  min-height: 18px;
}
.form-status.is-error { color: var(--accent-warm); }

.contact__alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 13px;
}
.contact__alt span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.contact__alt a {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3.4vw, 36px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  width: fit-content;
  position: relative;
}
.contact__alt a::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.5s var(--ease);
}
.contact__alt a:hover::after {
  transform-origin: left;
  transform: scaleX(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__brand img {
  height: 24px;
  width: auto;
  opacity: 0.7;
}
.footer__meta {
  display: flex;
  gap: 32px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .tag-marker, .hero__scroll-line::after {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   STUDIO NÉON — multi-accent & glows
   ============================================ */
/* Section numbers cycle chartreuse → cyan → magenta, each with a soft halo */
.section-marker__num { text-shadow: 0 0 14px currentColor; }
.expertise .section-marker__num,
.process  .section-marker__num { color: var(--accent-3); }
.work     .section-marker__num,
.tech     .section-marker__num { color: var(--accent-2); }

/* Hero — subtle neon lift */
.hero__title { text-shadow: 0 0 70px rgba(233, 241, 120, 0.14); }
.tag-marker  { text-shadow: 0 0 12px currentColor; }

/* Manifesto highlight in the showreel's electric violet */
.manifesto__text .emph--alt {
  color: var(--violet-lit);
  text-shadow: 0 0 28px rgba(139, 92, 255, 0.45);
}

/* Stats strip — one accent each, gently glowing */
.stat:nth-child(1) .stat__big { color: var(--accent);   text-shadow: 0 0 34px rgba(233, 241, 120, 0.28); }
.stat:nth-child(2) .stat__big { color: var(--accent-3); text-shadow: 0 0 34px rgba(70, 227, 200, 0.28); }
.stat:nth-child(3) .stat__big { color: var(--accent-2); text-shadow: 0 0 34px rgba(255, 83, 160, 0.28); }

/* Selection cycles the primary accent */
::selection { background: var(--accent-2); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .section-marker__num, .hero__title, .tag-marker,
  .manifesto__text .emph--alt, .stat__big { text-shadow: none; }
}
