/* ============================================================
   JECO STUDIOS — Warm Cinematic Dark design system
   ------------------------------------------------------------
   To rebrand: swap the hex values in :root below. Every color
   in the site references these variables — nothing is hardcoded.
   ============================================================ */

:root {
  /* --- Surfaces (warm near-black, not cold) --- */
  --bg:            #100d0b;
  --bg-2:          #17130f;
  --bg-3:          #1e1813;
  --bg-elev:       #241d16;
  --line:          #2c231b;
  --line-strong:   #3a2e23;

  /* --- Ink (warm off-white) --- */
  --text:          #f5ece0;
  --text-dim:      #c3b3a0;
  --text-faint:    #8a7b6b;

  /* --- Studio accents (hill-country warmth) --- */
  --design:        #e07a3f;  /* terracotta */
  --photo:         #a4b06a;  /* sage       */
  --film:         #cd3c20;  /* ember      */
  --sound:         #e5a93b;  /* gold       */

  /* Brand accent — default warm. Studio pages remap --accent. */
  --accent:        var(--design);
  --accent-ink:    #1a1109;  /* text that sits ON an accent fill */
  --accent-ink-lt: #1a1109;  /* alt ink for lighter accents */

  /* --- Type --- */
  --font-display:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:     "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Rhythm --- */
  --container:     1240px;
  --gutter:        clamp(1.25rem, 5vw, 4rem);
  --section-y:     clamp(5rem, 12vw, 10rem);
  --radius:        14px;
  --radius-lg:     22px;

  /* --- Motion --- */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur:           0.5s;
}

/* Per-studio accent theming (applied on <body>) */
body.studio-design { --accent: var(--design); --accent-ink: #1a1006; }
body.studio-photo  { --accent: var(--photo);  --accent-ink: #12140a; }
body.studio-film  { --accent: var(--film);  --accent-ink: #ffffff; }
body.studio-sound  { --accent: var(--sound);  --accent-ink: #1a1206; }

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  position: relative;
  background: var(--bg); /* fallback if JS/gradient layer is unavailable */
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

/* Grain + warm glow atmosphere ------------------------------- */
body::before {
  /* soft warm cinematic light from top */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(224,122,63,0.10), transparent 60%),
    radial-gradient(90% 60% at 85% 5%, rgba(229,169,59,0.06), transparent 55%);
}
body::after {
  /* fine film grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer, .site-nav { position: relative; z-index: 2; }

/* Full-page dark→white gradient, injected by js/main.js as the first
   child of <body>. Spans the entire document so scrolling moves you
   gradually from black (top) to warm white (bottom). */
.page-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    #100d0b 0%,
    #15110c 10%,
    #241c15 22%,
    #382c22 34%,
    #524537 46%,
    #756654 58%,
    #a1927d 70%,
    #cdc2b2 82%,
    #ece5d9 92%,
    #f4efe7 100%);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.92;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   Typography
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1.display { font-size: clamp(2.75rem, 1.6rem + 6vw, 6.5rem); }
h2.display { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); }
h3.display { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); }

.display em {
  font-style: italic;
  color: var(--accent);
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 46ch;
}
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --_bg: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.6em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: var(--_bg);
  color: var(--accent-ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 65%, black); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: none;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--dur) var(--ease);
}
.textlink svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.textlink:hover { gap: 0.85em; }
.textlink:hover svg { transform: translateX(3px); }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), padding var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand b { font-weight: 600; }
.brand span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
  transform: translateY(-0.15em);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.4rem);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem var(--gutter);
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.35rem; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 101;
  }
  .nav-toggle span {
    width: 26px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}
.hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__content { min-width: 0; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--bg-3), var(--bg-2));
}
.hero__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media .hero-illus { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media .brk { position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); z-index: 2; }
.hero__media .brk.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hero__media .brk.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hero__media .brk.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hero__media .brk.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.3rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint);
  background: linear-gradient(transparent, rgba(10, 8, 6, 0.55));
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { display: none; }
}
.hero__title { max-width: 15ch; margin-bottom: 1.6rem; }

/* JECO acronym slogan — words stacked, first letters aligned down the left
   (J·E·C·O), each first letter in the accent color, like the brand reference. */
.jeco-slogan { max-width: none; font-weight: 600; letter-spacing: -0.045em; line-height: 0.92; }
.jeco-slogan .jeco-line { display: block; }
.jeco-slogan .jeco-first { color: var(--accent); }
.hero__sub { margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-cue i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--accent), transparent);
  display: block;
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue { to { top: 120%; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue i::after { animation: none; } }

/* ============================================================
   Studios grid (home)
   ============================================================ */
.studios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
@media (max-width: 720px) { .studios { grid-template-columns: 1fr; } }

.studio-card {
  --_c: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.5rem;
  min-height: 300px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.studio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--_c) 26%, transparent), transparent 55%);
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease);
}
.studio-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--_c) 55%, var(--line)); }
.studio-card:hover::before { opacity: 1; }
.studio-card__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--_c);
}
.studio-card__icon {
  width: 46px; height: 46px;
  color: var(--_c);
  margin-bottom: auto;
}
.studio-card__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.studio-card__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.studio-card__body p { color: var(--text-dim); max-width: 34ch; font-size: 0.98rem; }
.studio-card__go {
  position: absolute;
  top: clamp(1.6rem, 3vw, 2.4rem); right: clamp(1.6rem, 3vw, 2.4rem);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.studio-card__go svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.studio-card:hover .studio-card__go { background: var(--_c); border-color: var(--_c); color: var(--accent-ink); }
.studio-card:hover .studio-card__go svg { transform: translate(2px, -2px); }
.studio-card--design { --_c: var(--design); }
.studio-card--photo  { --_c: var(--photo); }
.studio-card--film  { --_c: var(--film); }
.studio-card--sound  { --_c: var(--sound); }

/* ============================================================
   Generic content blocks
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-head h2 { margin-bottom: 1.2rem; }

/* Feature / value list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feature__icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 1.2rem; }
.feature__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.feature h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature p { color: var(--text-dim); font-size: 0.96rem; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; } }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { color: var(--text-faint); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.6rem; }

/* Work gallery (placeholder tiles, no external images required) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
}
.work-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
  isolation: isolate;
}
/* The plate: an art-directed SVG (via --plate) layered over a warm duotone
   fallback. To use your OWN image on a tile, add an <img class="work-tile__img">
   as the figure's first child (see README) — it covers the plate. */
.work-tile__ph {
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--bg-3);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image:
    var(--plate, none),
    radial-gradient(130% 110% at 25% 12%, color-mix(in srgb, var(--_c, var(--accent)) 58%, transparent), transparent 58%),
    linear-gradient(155deg, color-mix(in srgb, var(--_c, var(--accent)) 24%, var(--bg-3)), var(--bg-3) 80%);
  transition: transform 0.8s var(--ease);
}
.work-tile:hover .work-tile__ph,
.work-tile:hover .work-tile__img { transform: scale(1.05); }
.work-tile__ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.05) 50%, transparent 58%);
}
/* Optional real image (drop-in). Covers the plate when present. */
.work-tile__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-tile__meta { z-index: 2; }

/* Default art-directed plate per studio, with variety across tiles. */
.work-tile[data-studio="design"]              { --plate: url(../assets/images/design-plan.svg); }
.work-tile[data-studio="design"]:nth-of-type(2n) { --plate: url(../assets/images/design-topo.svg); }
.work-tile[data-studio="photo"]               { --plate: url(../assets/images/photo-aperture.svg); }
.work-tile[data-studio="photo"]:nth-of-type(2n)  { --plate: url(../assets/images/film-horizon.svg); }
.work-tile[data-studio="film"]                { --plate: url(../assets/images/film-horizon.svg); }
.work-tile[data-studio="film"]:nth-of-type(2n)   { --plate: url(../assets/images/arch-arches.svg); }
.work-tile[data-studio="sound"]               { --plate: url(../assets/images/sound-waves.svg); }
.work-tile[data-studio="sound"]:nth-of-type(2n)  { --plate: url(../assets/images/arch-arches.svg); }
.work-tile__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(transparent, rgba(10,8,6,0.85));
  transform: translateY(30%);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.work-tile:hover .work-tile__meta { transform: translateY(0); opacity: 1; }
.work-tile__meta b { font-weight: 600; font-size: 0.95rem; }
.work-tile__meta span { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.work-tile--wide { grid-column: span 4; }
.work-tile--tall { grid-column: span 2; aspect-ratio: 2 / 3; }
.work-tile--sq   { grid-column: span 2; }
.work-tile--half { grid-column: span 3; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tile--wide, .work-tile--tall, .work-tile--sq, .work-tile--half { grid-column: span 1; aspect-ratio: 4 / 3; }
}
.work-tile[data-studio="design"] { --_c: var(--design); }
.work-tile[data-studio="photo"]  { --_c: var(--photo); }
.work-tile[data-studio="film"]  { --_c: var(--film); }
.work-tile[data-studio="sound"]  { --_c: var(--sound); }

/* Testimonial */
.quote {
  max-width: 30ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.quote__mark { color: var(--accent); }
.quote-cite { margin-top: 1.6rem; color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.06em; }
.quote-cite b { color: var(--text); font-weight: 600; }

/* CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 140% at 20% 0%, color-mix(in srgb, var(--design) 30%, transparent), transparent 55%),
    radial-gradient(80% 140% at 80% 100%, color-mix(in srgb, var(--sound) 24%, transparent), transparent 55%);
}
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band .lead { margin-inline: auto; margin-bottom: 2.2rem; text-align: center; max-width: 40ch; }

/* ============================================================
   Studio page hero variant
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: clamp(9rem, 16vw, 13rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.page-hero__index {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 16rem);
  line-height: 0.8;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
  position: absolute;
  right: var(--gutter); top: 40%;
  pointer-events: none;
  user-select: none;
}
.page-hero h1 { max-width: 16ch; }
.breadcrumb { display: flex; gap: 0.6rem; align-items: center; color: var(--text-faint); font-size: 0.82rem; margin-bottom: 1.6rem; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--accent); }

/* Service list */
.services { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  transition: padding-inline var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.service-row:hover { background: var(--bg-2); padding-inline: 1.2rem; }
.service-row__n { font-family: var(--font-display); color: var(--accent); font-size: 1rem; }
.service-row__t { font-size: clamp(1.15rem, 0.9rem + 1vw, 1.5rem); font-weight: 500; }
.service-row__d { color: var(--text-dim); font-size: 0.96rem; max-width: 42ch; }
@media (max-width: 720px) {
  .service-row { grid-template-columns: auto 1fr; }
  .service-row__d { grid-column: 1 / -1; }
}

/* ============================================================
   Contact form
   ============================================================ */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.95em 1.1em;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Studio chooser chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  --_c: var(--accent);
  padding: 0.5em 1.05em;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.chip[aria-pressed="true"], .chip:hover {
  border-color: var(--_c);
  color: var(--text);
  background: color-mix(in srgb, var(--_c) 16%, transparent);
}
.chip[data-studio="design"] { --_c: var(--design); }
.chip[data-studio="photo"]  { --_c: var(--photo); }
.chip[data-studio="film"]  { --_c: var(--film); }
.chip[data-studio="sound"]  { --_c: var(--sound); }

.form-note { color: var(--text-faint); font-size: 0.85rem; }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--photo); }
.form-status[data-state="err"] { color: var(--film); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-dim); max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--text-dim); padding-block: 0.35rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: 0.85rem;
}
.socials { display: flex; gap: 0.8rem; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 100px;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.socials a svg { width: 1.05em; height: 1.05em; }
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   Scroll reveal (JS toggles .is-in)
   ============================================================ */
/* Hidden-until-revealed only when JS is confirmed present (html.js). With no
   JS, .reveal stays fully visible — the page can never render blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .btn, .studio-card, .feature, .socials a { transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   Sticky mobile action bar (injected by js/main.js). Thumb-reachable
   "Start a project" — a mobile-specific affordance, hidden on desktop.
   ============================================================ */
.m-cta {
  position: fixed;
  z-index: 90;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1.05em 1.4em;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(160%);
  transition: transform 0.5s var(--ease);
}
.m-cta svg { width: 1.05em; height: 1.05em; }

/* ============================================================
   Bespoke mobile (≤ 640px) — designed for phone, not reflowed
   ============================================================ */
@media (max-width: 640px) {
  /* Hero: less dead space up top; let the slogan own the screen. */
  .hero { min-height: auto; padding-top: 4.5rem; padding-bottom: 2.5rem; }
  .page-hero { padding-top: 6.5rem; padding-bottom: 2rem; }

  /* Show the hero illustration as a tailored full-width band under the copy. */
  .hero__media { display: block; aspect-ratio: 16 / 10; margin-top: 2.2rem; }

  /* Snappier studio cards — shorter, tighter. */
  .studio-card { min-height: 200px; gap: 1.75rem; }

  /* Tighter vertical rhythm so sections don't feel like a stretched desktop. */
  .section { padding-block: clamp(3.25rem, 14vw, 5rem); }
  .scroll-cue { display: none; }

  /* The sticky bar appears once you're past the hero. */
  .m-cta { display: flex; }
  .m-cta.show { transform: none; }
  .site-footer { padding-bottom: 6.5rem; }
}

/* Utility */
.stack-sm > * + * { margin-top: 1rem; }
.stack > * + * { margin-top: 1.6rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-46 { max-width: 46ch; }
.max-58 { max-width: 58ch; }

/* ============================================================
   Dark → light, site-wide.
   A single .page-gradient runs down the whole document (above).
   js/main.js tags each section + the footer .on-dark / .on-light by
   its position on that gradient, so text always sits on a readable
   local background. .on-light remaps the theme to a light palette;
   .on-dark keeps the default (:root) dark palette.
   ============================================================ */
.on-light {
  --bg-2:        #ffffff;
  --bg-3:        #efe9df;
  --bg-elev:     #ffffff;
  --line:        #e6e0d5;
  --line-strong: #d3c9ba;
  --text:        #241d15;   /* warm near-black ink */
  --text-dim:    #574c40;
  --text-faint:  #8a7d6d;
  --accent:      #b8531f;   /* deeper terracotta — readable on light */
  --accent-ink:  #ffffff;
  /* Re-declare color so text that only *inherits* it (e.g. plain <h3>)
     picks up the light-theme ink. */
  color: var(--text);
}
.on-dark {
  color: var(--text);      /* the :root (dark-theme) off-white ink */
}
/* Keep each studio's own accent (deepened for contrast) in light zones,
   instead of the default terracotta. */
body.studio-design .on-light { --accent: #b8531f; }
body.studio-photo  .on-light { --accent: #5f6b32; }
body.studio-film   .on-light { --accent: #b5341c; }
body.studio-sound  .on-light { --accent: #9a6b12; }
