/* ════════════════════════════════════════════════════════════
   TNAADO — service.tnaado.ca remake (tnaado-service-next)
   Shared design system. Tokens + chrome ported from the live
   index (Ethan-approved); process choreography from June 3
   "Home of Ambition" build. Do not fork per-page styles here.
   ════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --ink: #0a0a0a;
  --bone: #faf8f3;
  --ivory: #f1ede4;
  --red: #c8102e;
  --on-black: #f5f1e8;
  --on-black-mute: rgba(245,241,232,.58);
  --on-black-faint: rgba(245,241,232,.32);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
  --rule-on-black: rgba(245,241,232,.10);
  --header-h: 72px;
  --text-xs: .72rem;
  --text-sm: .875rem;
}

/* ── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--ink); color: var(--on-black); font-family: var(--font-body); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
button { cursor: pointer; font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--on-black);
  padding: .6rem 1rem; z-index: 2000; font-size: .8rem;
}
.skip-link:focus { left: 0; }

/* ── LAYOUT PRIMITIVES ──────────────────────────────── */
.inner { max-width: 1140px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }
.sv-section { position: relative; padding: clamp(6rem,11vw,9rem) 0; background: var(--ink); }
.sv-section--alt { background: #0f0f0f; }
.sv-section--tight { padding: clamp(4rem,7vw,6rem) 0; }

/* ── VIDEO / PHOTO BG PATTERN ───────────────────────── */
.has-video { position: relative; overflow: hidden; }
.section-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .45;
}
.section-bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .38;
  filter: grayscale(.25) contrast(1.05);
}
.section-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.62) 55%, rgba(10,10,10,.85) 100%);
  z-index: 1;
}
.has-video > :not(.section-bg-video):not(.section-bg-photo):not(.section-bg-overlay):not(.fx) { position: relative; z-index: 2; }

/* ── EMBER BRIDGE ───────────────────────────────────── */
.ember {
  height: 160px;
  margin-top: -80px; margin-bottom: -80px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(200,16,46,.06) 40%,
    rgba(200,16,46,.10) 50%,
    rgba(200,16,46,.06) 60%,
    transparent 100%);
  filter: blur(6px);
  pointer-events: none; position: relative; z-index: 1;
}

/* ── EYEBROW / HEADINGS / LEDE ──────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: .7rem;
  margin-bottom: 1.2rem;
}
.eyebrow-rule { display: inline-block; width: 28px; height: 1px; background: var(--red); flex-shrink: 0; }
.eyebrow .eyebrow-num { color: var(--on-black-faint); letter-spacing: .18em; }
.sv-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--on-black); margin: 0 0 1.2rem;
}
.sv-h2 em, .sv-h3 em { font-style: italic; color: var(--red); }
.sv-h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem,2.8vw,2rem);
  line-height: 1.15; color: var(--on-black); margin: 0 0 .6rem;
}
.sv-lede {
  font-size: clamp(.95rem,1.6vw,1.1rem);
  line-height: 1.72; color: var(--on-black-mute);
  max-width: 58ch; margin: 0 0 1.6rem;
}

/* ── CTA BUTTONS ────────────────────────────────────── */
.btn-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-black);
  padding: .8rem 1.6rem;
  border: 1px solid rgba(245,241,232,.22);
  transition: background .2s, border-color .2s, transform .2s;
  background: transparent;
}
.btn-cta:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn-cta--red { background: var(--red); border-color: var(--red); }
.btn-cta--red:hover { background: #a50d26; border-color: #a50d26; }

/* ── SCROLL REVEAL (original tnaado.ca system, /js/home-scroll.js) ── */
[data-reveal] { transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-pre-reveal { opacity: 0; transform: translateY(18px); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }
[data-reveal-delay="4"] { transition-delay: .48s; }

/* ══════════════════════════════════════════════════════
   PAGE HERO — sub-page treatment (video or street photo bg)
══════════════════════════════════════════════════════ */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 56vh;
  min-height: 56svh;
  padding: clamp(7rem,14vw,11rem) 0 clamp(3rem,6vw,4.5rem);
}
.page-hero .section-bg-overlay {
  background:
    linear-gradient(95deg, rgba(6,6,6,.90) 0%, rgba(6,6,6,.62) 34%, rgba(6,6,6,.28) 62%, transparent 85%),
    radial-gradient(110% 90% at 88% 0%, rgba(200,16,46,.42) 0%, rgba(200,16,46,.16) 38%, transparent 66%),
    linear-gradient(to bottom, transparent 30%, rgba(8,8,8,.55) 64%, var(--ink) 100%);
}
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; line-height: 1;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin: 0 0 1.2rem;
}
.page-hero__eyebrow::before {
  content: ""; width: 36px; height: 1px;
  background: var(--red); display: inline-block;
}
.page-hero__headline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.06; letter-spacing: -.015em;
  color: var(--on-black); margin: 0 0 1.1rem; max-width: 880px;
}
.page-hero__headline em { font-style: italic; color: var(--red); }
.page-hero__lede {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55; color: var(--on-black-mute);
  margin: 0; max-width: 640px;
}
.page-hero__lede em { font-style: italic; color: var(--on-black); }

/* ══════════════════════════════════════════════════════
   PROCESS — June 3 "Home of Ambition" choreography.
   home-scroll.js drives --video-pan + indicator ticks.
══════════════════════════════════════════════════════ */
.home-process {
  background: var(--ink);
  color: var(--on-black);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.home-process::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 30% 50% at 100% 0%, rgba(200,16,46,.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 0% 100%, rgba(200,16,46,.04) 0%, transparent 60%);
}
.home-process__inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
}
.home-process__inner--split {
  display: flex; align-items: flex-start; gap: 64px;
}
.home-process__steps-col { flex: 0 0 58%; min-width: 0; }
.home-process__sidebar {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  position: sticky; top: 120px;
}
.home-process__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px; padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-black);
  border: 1px solid rgba(200,16,46,.50);
  transition: background 400ms ease-out, border-color 400ms ease-out, color 400ms ease-out;
}
.home-process__cta:hover,
.home-process__cta:focus-visible {
  background: var(--red); border-color: var(--red);
  color: var(--on-black); outline: none;
}
.home-process__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--red);
}
.home-process__eyebrow .rule {
  display: inline-block; width: 32px; height: 1px; background: var(--red);
}
.home-process__headline {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--on-black);
}
.home-process__headline em { font-style: italic; color: #d8404f; }
.home-process__lede {
  margin: 16px 0 0;
  font-family: var(--font-body);
  font-size: var(--text-sm); line-height: 1.55;
  color: var(--on-black-mute); max-width: 52ch;
}
/* bg video pan — oversized 125%, slid left by --video-pan (JS-driven) */
.home-process .section-bg-video {
  right: auto;
  width: 125%;
  object-position: 50% 20%;
  transform: translateX(calc(var(--video-pan, 0%) * -1));
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.home-process__indicator-track {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 28px; margin: 0 0 24px; padding: 0;
  pointer-events: none;
}
.home-process__indicator-rule {
  position: absolute; left: 12.5%; right: 12.5%; top: 50%;
  height: 1px; background: rgba(245,241,232,.10);
  transform: translateY(-.5px);
}
.home-process__indicator-tick {
  position: relative; justify-self: center;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,241,232,.30);
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.home-process__indicator-tick.is-active {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(200,16,46,.18), 0 0 14px rgba(200,16,46,.55);
  transform: scale(1.05);
}
.home-process__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(245,241,232,.10);
}
.home-process__step {
  position: relative;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid rgba(245,241,232,.10);
}
.home-process__step:last-child { border-right: 0; }
.home-process__num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.75rem, 4.25vw, 3.75rem);
  line-height: 1; letter-spacing: -.01em;
  color: var(--red); opacity: .5;
  text-shadow: 0 0 24px rgba(200,16,46,.20);
  margin: 0 0 8px;
}
.home-process__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.25; letter-spacing: -.015em;
  color: var(--on-black);
}
.home-process__copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.55;
  color: var(--on-black-mute);
}
@media (max-width: 1200px) { .home-process__step { padding: 28px 22px; } }
@media (max-width: 1024px) {
  .home-process { padding: 72px 0; }
  .home-process__inner--split { gap: 40px; }
  .home-process__step { padding: 24px 18px; }
  .home-process__num { font-size: clamp(2.5rem, 5vw, 3.25rem); }
  .home-process__sidebar { position: static; }
}
@media (max-width: 900px) {
  .home-process__inner--split { flex-direction: column-reverse; gap: 48px; padding: 0 20px; }
  .home-process__steps-col { flex: none; width: 100%; }
  .home-process__sidebar { width: 100%; }
  .home-process__indicator-track { display: none; }
  .home-process__grid { grid-template-columns: 1fr; border-top: 0; }
  .home-process__step { padding: 28px 4px; border-right: 0; border-bottom: 1px solid rgba(245,241,232,.10); }
  .home-process__step:last-child { border-bottom: 0; }
}

/* ══════════════════════════════════════════════════════
   WORK CARDS (DB-driven grids)
══════════════════════════════════════════════════════ */
.sv-work__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: clamp(2.4rem,5vw,3.6rem);
}
.sv-work-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  padding: clamp(1.6rem,3vw,2.2rem);
  display: flex; flex-direction: column;
  min-height: 200px;
  transition: border-color .22s, background .22s, transform .22s;
}
.sv-work-card:hover,
.sv-work-card:focus-visible {
  background: rgba(200,16,46,.05);
  border-color: rgba(200,16,46,.35);
  transform: translateY(-3px);
  outline: none;
}
.sv-work-card__class {
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .9rem;
}
.sv-work-card__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.15rem; line-height: 1.25;
  color: var(--on-black); margin: 0 0 .6rem;
}
.sv-work-card__desc {
  font-size: .85rem; line-height: 1.6;
  color: var(--on-black-mute); margin: 0 0 1.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sv-work-card__arrow {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .88rem; color: var(--red);
  transition: transform .2s;
}
.sv-work-card:hover .sv-work-card__arrow { transform: translateX(4px); }
.sv-work__more { margin-top: 2.6rem; }
@media (max-width: 900px) { .sv-work__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sv-work__grid { grid-template-columns: 1fr; } .sv-work-card { min-height: 0; } }

/* Image-led portfolio cards (case studies / showcases) */
.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: clamp(2rem,4vw,3rem);
}
.cs-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transition: border-color .22s, background .22s, transform .22s;
}
.cs-card:hover, .cs-card:focus-visible {
  border-color: rgba(200,16,46,.35);
  background: rgba(200,16,46,.04);
  transform: translateY(-3px);
  outline: none;
}
.cs-card__media {
  position: relative; aspect-ratio: 16 / 10;
  background: #050505; overflow: hidden;
}
.cs-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85; transition: transform .5s ease, opacity .3s;
}
.cs-card:hover .cs-card__media img { transform: scale(1.04); opacity: 1; }
.cs-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,10,.72) 100%);
  pointer-events: none;
}
.cs-card__media--empty {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(80% 80% at 70% 20%, rgba(200,16,46,.14) 0%, transparent 60%),
    #0d0d0d;
}
.cs-card__media--empty span {
  font-family: var(--font-display); font-style: italic;
  font-size: 2.2rem; color: rgba(245,241,232,.22);
}
.cs-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.cs-card__class {
  font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .7rem;
}
.cs-card__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.2rem; line-height: 1.25;
  color: var(--on-black); margin: 0 0 .5rem;
}
.cs-card__desc {
  font-size: .84rem; line-height: 1.6;
  color: var(--on-black-mute); margin: 0 0 1.3rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cs-card__arrow {
  margin-top: auto;
  font-family: var(--font-mono); font-size: .85rem; color: var(--red);
  transition: transform .2s;
}
.cs-card:hover .cs-card__arrow { transform: translateX(4px); }
@media (max-width: 980px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cs-grid { grid-template-columns: 1fr; } }

/* Filter pills */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: clamp(1.6rem,3vw,2.4rem);
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-black-mute);
  background: transparent;
  border: 1px solid rgba(245,241,232,.18);
  border-radius: 999px;
  padding: .55rem 1.15rem;
  transition: color .2s, border-color .2s, background .2s;
}
.filter-pill:hover { color: var(--on-black); border-color: rgba(245,241,232,.4); }
.filter-pill.is-active {
  color: var(--on-black); background: var(--red); border-color: var(--red);
}

/* ══════════════════════════════════════════════════════
   CASE-STUDY DETAIL PANEL
══════════════════════════════════════════════════════ */
.cs-detail { margin-top: clamp(2rem,4vw,3rem); }
.cs-detail__back {
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-black-faint);
  border-bottom: 1px solid rgba(245,241,232,.15);
  padding-bottom: .25rem;
  transition: color .2s, border-color .2s;
}
.cs-detail__back:hover { color: var(--red); border-color: var(--red); }
.cs-detail__hero {
  position: relative; margin: 1.8rem 0 2.2rem;
  aspect-ratio: 21 / 9; overflow: hidden;
  border: 1px solid rgba(245,241,232,.1);
  background: #050505;
}
.cs-detail__hero img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.cs-detail__hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(10,10,10,.78) 100%);
}
.cs-detail__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; }
.cs-badge {
  font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-black-mute);
  border: 1px solid rgba(245,241,232,.16);
  padding: .35rem .8rem; border-radius: 999px;
}
.cs-badge--red { color: var(--red); border-color: rgba(200,16,46,.4); }
.cs-detail__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem,4.5vw,3.2rem);
  line-height: 1.08; letter-spacing: -.02em;
  color: var(--on-black); margin: 0 0 1.2rem;
}
.cs-detail__desc {
  font-size: clamp(.95rem,1.5vw,1.05rem); line-height: 1.78;
  color: var(--on-black-mute); max-width: 64ch; margin: 0 0 2rem;
  white-space: pre-line;
}
.cs-detail__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
  margin: 0 0 2.2rem;
}
.cs-detail__col {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-top: 2px solid var(--red);
  padding: clamp(1.4rem,3vw,2rem);
}
.cs-detail__col h3 {
  font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .9rem; font-weight: 500;
}
.cs-detail__col p { font-size: .9rem; line-height: 1.7; color: var(--on-black-mute); }
.cs-detail__quote {
  border-left: 3px solid var(--red);
  padding: .4rem 0 .4rem 1.6rem;
  margin: 0 0 2.2rem;
}
.cs-detail__quote blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.05rem,1.8vw,1.3rem); line-height: 1.55;
  color: var(--on-black); margin: 0 0 .8rem;
}
.cs-detail__quote figcaption {
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-black-faint);
}
.cs-detail__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Profile facts strip (founded / origin / client / products) */
.cs-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: rgba(245,241,232,.1);
  border: 1px solid rgba(245,241,232,.1); border-radius: 10px; overflow: hidden;
  margin: 0 0 2.2rem;
}
.cs-fact { background: var(--ink); padding: 1rem 1.1rem; }
.cs-fact dt {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-black-faint); margin: 0 0 .35rem;
}
.cs-fact dd { margin: 0; font-size: .92rem; color: var(--on-black); line-height: 1.4; }

/* Section label shared by metrics/services/gallery blocks */
.cs-block { margin: 0 0 2.2rem; }
.cs-block__label {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.cs-block__label::before { content: ""; width: 24px; height: 1px; background: var(--red); opacity: .7; }

/* Key/results metrics */
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.cs-metric {
  border: 1px solid rgba(245,241,232,.12); border-radius: 10px; padding: 1.1rem 1.2rem;
}
.cs-metric__value { font-family: var(--font-display); font-size: 1.25rem; color: var(--on-black); margin: 0 0 .3rem; line-height: 1.2; }
.cs-metric__label { font-size: .8rem; color: var(--on-black-mute); line-height: 1.4; }

/* Chip rows: services, tech stack, tags */
.cs-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cs-chip {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em;
  padding: .4rem .8rem; border: 1px solid rgba(245,241,232,.18);
  border-radius: 999px; color: var(--on-black-mute); white-space: nowrap;
}

/* Feature list */
.cs-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.cs-features li { position: relative; padding-left: 1.3rem; font-size: .9rem; color: var(--on-black-mute); line-height: 1.5; }
.cs-features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* Image gallery */
.cs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.cs-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; border: 1px solid rgba(245,241,232,.1); }

@media (max-width: 760px) { .cs-detail__cols { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   ALTERNATING SHOWCASE ROWS (55/45 editorial split)
══════════════════════════════════════════════════════ */
.sv-practice__rows {
  display: flex; flex-direction: column;
  gap: clamp(4rem,8vw,6.5rem);
  margin-top: clamp(2.8rem,6vw,4.4rem);
}
.sv-row {
  display: grid; grid-template-columns: 55fr 45fr;
  gap: clamp(2.4rem,5vw,5rem);
  align-items: center;
}
.sv-row--flip .sv-row__copy { order: 2; }
.sv-row--flip .sv-row__media-frame { order: 1; }
.sv-row__num {
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .22em;
  color: var(--red); margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: .7rem;
}
.sv-row__num::after {
  content: ""; flex: 0 0 28px; height: 1px; background: rgba(200,16,46,.5);
}
.sv-row__body {
  font-size: clamp(.92rem,1.5vw,1.02rem); line-height: 1.75;
  color: var(--on-black-mute);
  margin: .6rem 0 1.8rem; max-width: 52ch;
}
.sv-row__link {
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid rgba(200,16,46,.35);
  padding-bottom: .25rem;
  transition: color .2s, border-color .2s;
}
.sv-row__link:hover { color: var(--bone); border-color: var(--bone); }
.sv-row__media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(245,241,232,.1);
  background: #050505;
}
.sv-row__media-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(10,10,10,.30) 0%, transparent 45%, rgba(10,10,10,.55) 100%);
  pointer-events: none;
}
.practice-row__media {
  position: absolute;
  top: -9%; left: 0;
  width: 100%; height: 118%;
}
.practice-row__media video,
.practice-row__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .8;
}
.sv-row__media-tag {
  position: absolute; left: 1rem; bottom: .9rem; z-index: 1;
  font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,241,232,.65);
}
@media (max-width: 860px) {
  .sv-row, .sv-row--flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .sv-row--flip .sv-row__copy { order: 1; }
  .sv-row--flip .sv-row__media-frame { order: 2; }
  .sv-row__media-frame { aspect-ratio: 16 / 9; }
}

/* ══════════════════════════════════════════════════════
   CINEMATIC FULL-BLEED (Switch-Up / Voices / photo bands)
══════════════════════════════════════════════════════ */
.sv-cine {
  position: relative; overflow: hidden;
  min-height: 80vh;
  display: flex; align-items: center;
  padding: clamp(6rem,11vw,9rem) 0;
  background: var(--ink);
}
.sv-cine--short { min-height: 50vh; }
.sv-cine .section-bg-video { opacity: .5; }
.sv-cine .section-bg-overlay {
  background: linear-gradient(160deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.62) 55%, rgba(10,10,10,.85) 100%);
}
.sv-cine > .inner { width: 100%; }

.sv-duality {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.4rem; margin-top: clamp(2.4rem,5vw,3.6rem);
}
.sv-duality__panel {
  background: rgba(10,10,10,.55);
  border: 1px solid rgba(245,241,232,.12);
  padding: clamp(1.8rem,3.5vw,2.6rem);
  display: flex; flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .22s, background .22s, transform .22s;
}
.sv-duality__panel:hover { background: rgba(17,12,13,.62); transform: translateY(-3px); }
.sv-duality__panel--eye:hover { border-color: rgba(245,241,232,.26); }
.sv-duality__panel--storm { border-left: 4px solid var(--red); }
.sv-duality__panel--storm:hover { border-color: rgba(200,16,46,.45); border-left-color: var(--red); }
.sv-duality__kicker {
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-black-faint); margin: 0 0 1.1rem;
}
.sv-duality__panel--storm .sv-duality__kicker { color: var(--red); }
.sv-duality__body {
  font-size: .9rem; line-height: 1.7;
  color: var(--on-black-mute); margin: .4rem 0 1.8rem;
}
.sv-duality__link {
  margin-top: auto; align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-black-faint);
  border-bottom: 1px solid rgba(245,241,232,.15);
  padding-bottom: .25rem;
  transition: color .2s, border-color .2s;
}
.sv-duality__link:hover,
.sv-duality__link:focus-visible { color: var(--red); border-color: var(--red); outline: none; }
@media (max-width: 760px) { .sv-duality { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   VOICES — testimonials
══════════════════════════════════════════════════════ */
.sv-voices__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: clamp(2.4rem,5vw,3.6rem);
}
.sv-voice-card {
  background: rgba(10,10,10,.62);
  border: 1px solid rgba(245,241,232,.1);
  border-top: 2px solid var(--red);
  padding: clamp(1.8rem,3.5vw,2.4rem);
  display: flex; flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .22s, border-color .22s, transform .22s;
}
.sv-voice-card:hover {
  background: rgba(17,17,17,.7);
  border-color: rgba(245,241,232,.18);
  border-top-color: var(--red);
  transform: translateY(-3px);
}
.sv-voice-card__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 1.05rem; line-height: 1.55;
  color: var(--on-black); margin: 0 0 1.8rem;
}
.sv-voice-card__name {
  margin-top: auto;
  font-size: .85rem; font-weight: 500;
  color: var(--on-black); margin-bottom: .25rem;
}
.sv-voice-card__meta {
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-black-faint);
}
@media (max-width: 860px) { .sv-voices__grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   TEAM — segmented bench
══════════════════════════════════════════════════════ */
.team-group { margin-top: clamp(3rem,6vw,4.5rem); }
.team-group__head {
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid rgba(245,241,232,.1);
  padding-bottom: .9rem; margin-bottom: 1.6rem;
}
.team-group__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem,2.4vw,1.7rem);
  color: var(--on-black); margin: 0;
}
.team-group__count {
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-black-faint);
}
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.team-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transition: border-color .22s, transform .22s;
}
.team-card:hover { border-color: rgba(200,16,46,.35); transform: translateY(-3px); }
.team-card__photo {
  position: relative; aspect-ratio: 1 / 1;
  background: #0d0d0d; overflow: hidden;
}
.team-card__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(.15);
  transition: filter .3s;
}
.team-card:hover .team-card__photo img { filter: grayscale(0); }
.team-card__initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 2.6rem; color: rgba(245,241,232,.3);
  background:
    radial-gradient(80% 80% at 70% 20%, rgba(200,16,46,.16) 0%, transparent 60%),
    #0d0d0d;
}
.team-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.team-card__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.05rem; color: var(--on-black); margin: 0 0 .3rem;
}
.team-card__role {
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .team-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   JOURNAL
══════════════════════════════════════════════════════ */
.jr-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem; margin-top: clamp(2rem,4vw,3rem);
}
.jr-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transition: border-color .22s, background .22s, transform .22s;
}
.jr-card:hover {
  border-color: rgba(200,16,46,.35);
  background: rgba(200,16,46,.04);
  transform: translateY(-3px);
}
.jr-card__media { position: relative; aspect-ratio: 21 / 9; background: #050505; overflow: hidden; }
.jr-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s ease; }
.jr-card:hover .jr-card__media img { transform: scale(1.04); }
.jr-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,10,.72) 100%);
}
.jr-card__media--empty {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(80% 80% at 70% 20%, rgba(200,16,46,.14) 0%, transparent 60%), #0d0d0d;
}
.jr-card__media--empty span {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.8rem; color: rgba(245,241,232,.22);
}
.jr-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.jr-card__meta {
  font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .8rem;
  display: flex; gap: .9rem; flex-wrap: wrap;
}
.jr-card__meta time { color: var(--on-black-faint); }
.jr-card__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; line-height: 1.28;
  color: var(--on-black); margin: 0 0 .7rem;
}
.jr-card__excerpt {
  font-size: .86rem; line-height: 1.65;
  color: var(--on-black-mute); margin: 0 0 1.4rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.jr-card__arrow {
  margin-top: auto;
  font-family: var(--font-mono); font-size: .85rem; color: var(--red);
  transition: transform .2s;
}
.jr-card:hover .jr-card__arrow { transform: translateX(4px); }
@media (max-width: 820px) { .jr-grid { grid-template-columns: 1fr; } }

.jr-article { margin-top: clamp(1.6rem,3vw,2.4rem); }
.jr-article__frame {
  width: 100%; border: 1px solid rgba(245,241,232,.1);
  background: #fff; min-height: 60vh;
  display: block;
}
.jr-article__head { margin-bottom: 2rem; }

/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
.ct-layout {
  display: grid; grid-template-columns: 5fr 4fr;
  gap: clamp(2.4rem,5vw,4.5rem);
  margin-top: clamp(2rem,4vw,3rem);
  align-items: start;
}
.ct-form { display: flex; flex-direction: column; gap: 1.1rem; }
.ct-field { display: flex; flex-direction: column; gap: .45rem; }
.ct-field label {
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-black-mute);
}
.ct-field input, .ct-field select, .ct-field textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,241,232,.16);
  color: var(--on-black);
  font-family: var(--font-body); font-size: .92rem;
  padding: .85rem 1rem;
  border-radius: 0;
  transition: border-color .2s, background .2s;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.ct-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c8102e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.ct-field select option { background: #111; color: var(--on-black); }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus {
  outline: none; border-color: var(--red); background: rgba(200,16,46,.05);
}
.ct-field textarea { min-height: 150px; resize: vertical; }
.ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ct-status {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .1em;
  margin-top: .4rem; min-height: 1.2em;
}
.ct-status--ok { color: #6fcf8a; }
.ct-status--err { color: #ef6a7d; }
.ct-aside {
  border-left: 1px solid rgba(245,241,232,.12);
  padding-left: clamp(1.4rem,3vw,2.6rem);
  display: flex; flex-direction: column; gap: 2rem;
}
.ct-aside__block h3 {
  font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .8rem; font-weight: 500;
}
.ct-aside__block p, .ct-aside__block address {
  font-style: normal;
  font-size: .9rem; line-height: 1.7; color: var(--on-black-mute);
}
.ct-aside__block a { color: var(--on-black); border-bottom: 1px solid rgba(245,241,232,.2); transition: color .2s, border-color .2s; }
.ct-aside__block a:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 860px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-aside { border-left: 0; padding-left: 0; border-top: 1px solid rgba(245,241,232,.12); padding-top: 2rem; }
  .ct-row2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   CLOSING CTA
══════════════════════════════════════════════════════ */
.sv-close {
  text-align: center;
  padding: clamp(6rem,11vw,9rem) clamp(1rem,4vw,2.5rem);
  background: var(--ink);
  position: relative; overflow: hidden;
}
.sv-close__inner { max-width: 640px; margin: 0 auto; }
.sv-close .eyebrow { justify-content: center; }
.sv-close .sv-lede { margin-left: auto; margin-right: auto; margin-bottom: 2.4rem; }

/* ── FOOTER: 5-column override (brand + 4 link cols) ── */
.tnaado-footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .tnaado-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tnaado-footer__grid { grid-template-columns: 1fr; } }

/* ── ADAPTIVE GUARDS (tn-chrome) ────────────────────── */
/* overflow-x: clip (not hidden) — hidden on html/body breaks position:sticky site-wide */
html, body { overflow-x: clip; max-width: 100%; }
img, video, iframe, svg, canvas { max-width: 100%; }
h1 { overflow-wrap: break-word; }
h2 { overflow-wrap: break-word; }
.tn-hdr .menu-link, .tn-hdr .submenu-toggle, .tn-hdr .mobile-toggle, .tn-hdr .tn-hdr__cta,
.tn-hdr .submenu-dropdown a { min-height: 44px; display: inline-flex; align-items: center; }

/* ── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal].is-pre-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-cta, .sv-duality__panel, .sv-duality__link,
  .sv-row__link, .sv-work-card, .sv-work-card__arrow, .cs-card, .jr-card, .team-card,
  .sv-voice-card, .hero-strip__cell, .filter-pill { transition: none !important; }
  .practice-row__media { transform: none !important; }
  .home-process .section-bg-video { width: 100%; transform: none; transition: none; }
}

/* ============================================================================
   HERO READABILITY (site-wide) — guarantees the background photo is VISIBLE
   and the headline/lede stay LEGIBLE on every sub-page hero. Overrides the
   per-page glow-hero overlays (which dimmed photos to ~.44 + washed the text
   zone). Scoped to .page-hero only — the index .portfolio-hero is untouched.
   ============================================================================ */
.page-hero .section-bg-photo {
  opacity: .72 !important;
  filter: saturate(.95) contrast(1.05) !important;
}
.page-hero .section-bg-overlay {
  background:
    linear-gradient(to bottom, rgba(8,8,8,.78) 0%, rgba(8,8,8,.5) 45%, rgba(8,8,8,.5) 62%, rgba(8,8,8,.9) 100%) !important;
}
/* CRITICAL: lift hero copy ABOVE the overlay (has-photo heroes never got the
   has-video z-index bump, so the overlay was painting over the text). */
.page-hero .inner,
.page-hero .page-hero__inner {
  position: relative !important;
  z-index: 3 !important;
}
/* Guarantee the hero copy is legible over ANY background photo. */
.page-hero__headline,
.page-hero__lede,
.page-hero__eyebrow,
.page-hero .inner h1,
.page-hero .inner p {
  text-shadow: 0 2px 34px rgba(0,0,0,.95), 0 2px 8px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8) !important;
}
