/* ==========================================================================
   clintwagoner.com — CP7-R redesign system
   Palette-locked (#220715 #440D29 #F1A89E #E6E6E6 #97003F + white).
   Space Grotesk display / Roboto body. Motion: transform+opacity only.
   ========================================================================== */

:root {
  /* Raw palette */
  --ink: #220715;
  --plum: #440D29;
  --peach: #F1A89E;
  --fog: #E6E6E6;
  --action: #97003F;
  --white: #FFFFFF;

  /* Surfaces */
  --surface-page: #220715;
  --surface-raised: #440D29;
  --surface-card: rgba(68, 13, 41, 0.6);
  --surface-card-alt: rgba(34, 7, 21, 0.45);
  --surface-nav: rgba(34, 7, 21, 0.92);

  /* Text */
  --text-body: #E6E6E6;
  --text-strong: #FFFFFF;
  --text-muted: rgba(230, 230, 230, 0.68);
  --text-accent: #F1A89E;

  /* Interactive */
  --action-bg: #97003F;
  --action-bg-hover: #B5074F;
  --action-bg-active: #7A0635;
  --link-hover: #F1A89E;
  --focus-ring: #F1A89E;

  /* Borders */
  --border-subtle: rgba(241, 168, 158, 0.14);
  --border-strong: rgba(241, 168, 158, 0.38);
  --divider: rgba(230, 230, 230, 0.1);

  /* Gradients */
  --g-hero-scrim: linear-gradient(180deg, rgba(34, 7, 21, 0.62) 0%, rgba(34, 7, 21, 0.25) 45%, #220715 100%);
  --g-hero-scrim-heavy: linear-gradient(180deg, rgba(34, 7, 21, 0.7) 0%, rgba(34, 7, 21, 0.55) 50%, #220715 100%);
  --g-panel: linear-gradient(160deg, #440D29 0%, #220715 85%);
  --g-cta: linear-gradient(135deg, #97003F 0%, #440D29 100%);
  --g-text: linear-gradient(90deg, #FFFFFF 0%, #F1A89E 100%);

  /* Type */
  --font-display: 'Space Grotesk', 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --fs-display: clamp(3.5rem, 8vw + 1rem, 8rem);
  --fs-display-2: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h1: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.75rem, 2vw + 0.75rem, 2.5rem);
  --fs-h3: 1.375rem;
  --fs-h4: 1.0625rem;
  --fs-eyebrow: 0.8125rem;
  --fs-nav: 0.9375rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.8125rem;

  /* Spacing / shape */
  --section-y: clamp(4rem, 8vw, 7rem);
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 150ms;
  --dur-hover: 250ms;
  --dur-media: 500ms;
  --dur-reveal: 600ms;
  --dur-hero: 700ms;
}

/* --- Base ----------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a {
  color: var(--text-body);
  transition: color var(--dur-micro) linear;
}

a:hover { color: var(--link-hover); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.surface-raised { background-color: var(--surface-raised); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.lede { font-size: var(--fs-body-lg); max-width: 60ch; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear,
    border-color var(--dur-micro) linear, transform var(--dur-hover) var(--ease-out);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background-color: var(--action-bg); color: #fff; }
.btn-primary:hover { background-color: var(--action-bg-hover); color: #fff; transform: translateY(-2px); }
.btn-primary:active { background-color: var(--action-bg-active); }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-accent); }
.btn-ghost:hover { background-color: rgba(241, 168, 158, 0.1); border-color: rgba(241, 168, 158, 0.6); color: var(--text-accent); }

.btn-inverted { background-color: #fff; color: var(--action-bg); }
.btn-inverted:hover { background-color: var(--peach); color: var(--ink); transform: translateY(-2px); }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.link-arrow .arrow { display: inline-block; transition: transform var(--dur-hover) var(--ease-out); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* --- Nav ------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: 72px;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--surface-nav);
  opacity: 0;
  transition: opacity 300ms linear;
  z-index: -1;
}

.nav.solid::before { opacity: 1; }

/* Direction B: always solid, thinner, ruled */
.dir-b .nav { height: 64px; }
.dir-b .nav::before { opacity: 1; border-bottom: 1px solid var(--divider); }

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
}

.dir-b .nav-brand { font-weight: 500; font-size: 1.0625rem; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-nav);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text-accent); }

.dir-b .nav-link {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.dir-b .nav-link::after { display: none; }
.dir-b .nav-link:hover { color: #fff; }
.dir-b .nav-link.active { color: var(--text-accent); }

.nav-cta { padding: 10px 20px; }

.nav-toggle { display: none; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  background-image: var(--g-hero-scrim), url("../images/bg/DigitalSunrise-1920w.webp");
  background-size: cover;
  background-position: center top;
}

.dir-a .hero { min-height: 100svh; align-items: flex-end; }

.dir-b .hero {
  min-height: max(72svh, 560px);
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: var(--g-hero-scrim-heavy), url("../images/bg/DigitalSunrise-1920w.webp");
}

@media (max-width: 960px) {
  .hero { background-image: var(--g-hero-scrim), url("../images/bg/DigitalSunrise-960w.webp"); }
  .dir-b .hero { background-image: var(--g-hero-scrim-heavy), url("../images/bg/DigitalSunrise-960w.webp"); }
}

.hero-content { width: 100%; padding-bottom: 96px; }
.dir-b .hero-content { max-width: 56rem; padding-bottom: 0; padding-block: 120px 64px; }

@media (max-width: 640px) {
  .hero-content { padding-bottom: 48px; }
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.2em 0 0.25em;
}

.dir-b .hero-title {
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 500;
  text-transform: none;
  background: none;
  color: #fff;
  line-height: 1.05;
}

.hero-tagline { font-size: var(--fs-body-lg); max-width: 48ch; }
.dir-b .hero-tagline { margin-inline: auto; max-width: 60ch; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.dir-b .hero-actions { justify-content: center; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  translate: -50% 0;
  color: rgba(230, 230, 230, 0.6);
  animation: cue 2s var(--ease-inout) infinite alternate;
}

@keyframes cue { from { transform: translateY(0); } to { transform: translateY(6px); } }

/* --- Ticker (A) ------------------------------------------------------------ */
.ticker {
  border-block: 1px solid var(--border-subtle);
  overflow: hidden;
  padding-block: 18px;
  background: var(--surface-page);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(241, 168, 158, 0.7);
  white-space: nowrap;
}

.ticker-set { display: flex; gap: 3rem; padding-right: 3rem; }

.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Cards ------------------------------------------------------------------ */
.card {
  position: relative;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-micro) linear;
}

.surface-raised .card { background-color: var(--surface-card-alt); }

@media (hover: hover) {
  .dir-a .card:hover { transform: translateY(-4px); }
  .card:hover { border-color: var(--border-strong); }
  .card:hover .card-media img { transform: scale(1.04); }
  .dir-b .card:hover .card-media img { transform: scale(1.02); }
  .card:hover .arrow { transform: translateX(4px); }
}

.card-media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--g-panel); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-media) var(--ease-out); }

.card-body { padding: 20px; }
.card-feature .card-body { padding: 24px; }

.card-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 8px;
}

.card-title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 4px; }
.card-title a { color: var(--text-strong); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }

.card-meta { font-size: var(--fs-small); color: var(--text-muted); }
.card-desc { margin-top: 12px; margin-bottom: 0; font-size: var(--fs-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { margin-top: 16px; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.card-actions > * { position: relative; z-index: 1; }

/* Video facade */
.facade { cursor: pointer; border: 0; padding: 0; width: 100%; height: 100%; display: block; position: relative; background: none; }
.facade .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(34, 7, 21, 0.7);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-micro) linear;
}
.facade:hover .play { transform: scale(1.08); background-color: var(--action-bg); }
.facade .play::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.card-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Feature card (Kristala) */
.card-feature { display: grid; }
@media (min-width: 1024px) {
  .card-feature { grid-template-columns: 7fr 5fr; align-items: center; }
  .card-feature .card-media { aspect-ratio: auto; height: 100%; min-height: 360px; }
}

/* Work grid */
.work-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: var(--space-12, 3rem); }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(2, 1fr); } .work-grid .card-feature { grid-column: 1 / -1; } }
.dir-b .work-grid { gap: 32px; }
@media (min-width: 1024px) { .dir-b .work-grid { grid-template-columns: repeat(3, 1fr); } .dir-b .work-grid .card-feature { grid-column: auto; display: block; } .dir-b .work-grid .card-feature .card-media { aspect-ratio: 16/9; min-height: 0; height: auto; } .dir-b .work-grid .card-feature .card-body { padding: 20px; } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grid-footnote { text-align: center; margin-top: 2.5rem; }

/* --- About ------------------------------------------------------------------ */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .dir-a .about-grid { grid-template-columns: 7fr 5fr; } .dir-b .about-grid { grid-template-columns: 4fr 8fr; } }

.about-portrait { border-radius: var(--r-lg); border: 1px solid var(--border-strong); max-width: 380px; width: 100%; margin-inline: auto; transition: transform 400ms var(--ease-out); }
@media (hover: hover) { .dir-a .about-portrait:hover { transform: rotate(-1.5deg) scale(1.02); } }
.dir-b .about-portrait { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; }

.about-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.inline-link { color: var(--text-accent); text-decoration: underline; text-underline-offset: 4px; }
.inline-link:hover { color: #fff; }

/* --- Clients ----------------------------------------------------------------- */
/* Seamless loop: the track holds two identical .marquee-set children and
   animates translateX(-50%) — exactly one set width. Each set repeats the
   logos enough times to always exceed the viewport width (no empty tail). */
.marquee { overflow: hidden; margin-top: 2.5rem; }
.marquee-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.marquee-set { display: flex; gap: 24px; padding-right: 24px; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.client-tile { width: 88px; height: 88px; border-radius: var(--r-md); object-fit: cover; opacity: 0.85; transition: transform var(--dur-hover) var(--ease-out), opacity var(--dur-micro) linear; }
.client-tile:hover { transform: scale(1.05); opacity: 1; }

.clients-static { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.dir-b .client-tile { width: 72px; height: 72px; border-radius: var(--r-sm); opacity: 0.8; }

/* --- Contact ------------------------------------------------------------------ */
.contact-band { background: var(--g-cta); padding-block: clamp(80px, 10vw, 128px); }

.contact-split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .contact-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); }
}

.contact-band h2 {
  font-size: var(--fs-display-2);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}
.contact-band .lede { margin-top: 1rem; }

/* Channel-strip fields: boxless, hairline underline, peach arm on focus */
.contact-form { max-width: 640px; text-align: left; }

.field { position: relative; }
.field + .field { margin-top: 2rem; }

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  transition: color var(--dur-micro) linear;
}
.field:focus-within label { color: #fff; }

.contact-form input:not(.hp),
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 8px 2px 12px;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.1875rem;
  line-height: 1.4;
  color: #fff;
  caret-color: var(--peach);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; } /* replaced by .field::after + label shift */
.contact-form ::placeholder { color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #440D29 inset;
}
.contact-form textarea { resize: vertical; min-height: 140px; }

.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }

/* Submit row + level meter */
.form-foot { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.25rem; }
@media (max-width: 639px) { .form-foot .btn { flex: 1; text-align: center; } }

.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.meter span {
  width: 3px;
  height: 100%;
  border-radius: 1.5px;
  background: var(--peach);
  opacity: 0.55;
  transform: scaleY(var(--lo, 0.25));
  transform-origin: bottom;
  transition: transform 300ms var(--ease-out), opacity var(--dur-micro) linear;
}
.meter span:nth-child(1) { --lo: 0.2;  --hi: 0.6; }
.meter span:nth-child(2) { --lo: 0.45; --hi: 0.9; }
.meter span:nth-child(3) { --lo: 0.3;  --hi: 0.7; }
.meter span:nth-child(4) { --lo: 0.55; --hi: 1; }
.meter span:nth-child(5) { --lo: 0.25; --hi: 0.65; }

.contact-form:focus-within .meter span,
.form-done .meter span { opacity: 0.95; transform: scaleY(var(--hi, 0.8)); }

.contact-form.is-sending .meter span { animation: meter-run 600ms var(--ease-inout) infinite alternate; }
.contact-form.is-sending .meter span:nth-child(2) { animation-delay: 90ms; }
.contact-form.is-sending .meter span:nth-child(3) { animation-delay: 180ms; }
.contact-form.is-sending .meter span:nth-child(4) { animation-delay: 270ms; }
.contact-form.is-sending .meter span:nth-child(5) { animation-delay: 360ms; }
@keyframes meter-run {
  from { transform: scaleY(0.15); }
  to   { transform: scaleY(var(--hi, 0.9)); }
}

/* Status + error chip */
.form-status { margin: 1rem 0 0; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.9); min-height: 1.2em; }
.form-status[data-state="error"] {
  display: inline-block;
  padding: 10px 14px;
  color: #fff;
  background: rgba(34, 7, 21, 0.55);
  border: 1px solid rgba(241, 168, 158, 0.4);
  border-left: 3px solid var(--peach);
  border-radius: var(--r-sm);
}

/* Success state (JS-injected; also the no-JS ?sent=1 path) */
.form-done { animation: form-done-in var(--dur-media) var(--ease-out) both; }
.form-done .meter { height: 28px; margin-bottom: 1.25rem; }
.form-done-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--fs-h2);
  letter-spacing: -0.015em;
  color: #fff;
}
.form-done-sub { margin-top: 0.5rem; font-size: var(--fs-body-lg); color: rgba(255, 255, 255, 0.82); }
@keyframes form-done-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.dir-b .contact-quiet { text-align: center; }
.contact-mail-hero {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  transition: color 200ms linear;
}
.contact-mail-hero:hover { color: #fff; }
.contact-sub { font-size: var(--fs-small); color: var(--text-muted); margin-top: 0.75rem; }
.contact-minis { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.25rem; }

/* --- Footer ------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--divider); padding: 64px 0 32px; font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; } }

.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: #fff; }
.footer-tagline { color: var(--text-muted); font-size: var(--fs-caption); margin-top: 0.5rem; }
.footer h4 { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-accent); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-elsewhere ul { grid-template-columns: 1fr 1fr; }
.footer a { text-decoration: none; color: var(--text-body); }
.footer a:hover { color: var(--link-hover); }
.footer-ai {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-ai h4 { margin: 0; }
.footer-ai-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--divider); color: var(--text-muted); font-size: var(--fs-caption); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-row-links { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

/* --- Interior page header ---------------------------------------------------- */
.page-header {
  padding-top: calc(72px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(1rem, 2vw, 2rem);
}

.page-header .page-title {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Generic 3-up grid --------------------------------------------------------- */
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* --- SoundCloud facade card ---------------------------------------------------- */
.sc-panel {
  position: absolute;
  inset: 0;
  background: var(--g-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.sc-panel .sc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
  color: var(--text-strong);
  text-align: center;
}

.sc-panel .sc-kind {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-accent);
}

/* --- Gallery grid (aligned rows: wide shots lead, portraits uniform) ------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 3rem;
}

.gallery-grid .tile {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
}

.gallery-grid .tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.gallery-grid .tile.wide img { aspect-ratio: 3 / 2; }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid .tile img { aspect-ratio: 4 / 5; } .gallery-grid .tile.wide img { aspect-ratio: 3 / 2; } }
@media (hover: hover) { .gallery-grid .tile:hover img { transform: scale(1.03); } }

/* --- Clients grid ------------------------------------------------------------------ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 3rem;
}

.client-cell { margin: 0; text-align: center; transition: transform var(--dur-hover) var(--ease-out); }
.client-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}
.client-cell figcaption { font-size: var(--fs-caption); color: var(--text-muted); margin-top: 0.5rem; transition: color var(--dur-micro) linear; }
@media (hover: hover) {
  .client-cell:hover { transform: scale(1.04); }
  .client-cell:hover figcaption { color: var(--text-accent); }
}

/* --- Reveal-on-scroll ------------------------------------------------------------ */
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: translateY(0); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }

html.js .hero-in { opacity: 0; transform: translateY(28px); }
html.js .hero-in.in { opacity: 1; transform: translateY(0); transition: opacity var(--dur-hero) var(--ease-out), transform var(--dur-hero) var(--ease-out); }

/* --- Mobile nav ------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 99;
    background-color: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  }

  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links .nav-link { font-size: 1.75rem; font-weight: 600; }

  .nav-toggle {
    display: grid;
    place-items: center;
    z-index: 101;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
  }
}

/* --- Reduced motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
  .ticker-track, .marquee-track { animation: none; }
  .scroll-cue { display: none; }
  html.js .reveal, html.js .hero-in { opacity: 1; transform: none; }
}
