/* ============================================================
   TNE — Homepage-specific styles
   (Originally inline in <style> inside index.html — extracted
    here so WordPress can load them as a proper stylesheet.)
   ============================================================ */

/* ───── HERO — Full-bleed cover ──────────────────────── */
.hero-fullbleed {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slot {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%),
    radial-gradient(120% 80% at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 3px);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 110px var(--gutter) 32px;
  color: #fff;
  gap: 24px;
}
@media (max-width: 720px) { .hero-overlay { padding-top: 90px; } }

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-mono { color: rgba(255,255,255,0.78); }
.hero-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  box-shadow: 0 0 12px rgba(255, 61, 0, 0.6);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 24px 0;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.hero-headline {
  margin: 0;
  color: #fff;
  max-width: 100%;
  font-size: clamp(56px, 9.5vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 32px rgba(0,0,0,0.25);
}
.hero-headline em,
.hero-headline .italic {
  color: var(--accent);
  font-style: normal;
}
.hero-sub {
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.hero-play-pill:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.hero-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background 220ms var(--ease-out);
}
.hero-play-pill:hover .hero-play-icon { background: #fff; color: var(--accent); }
.hero-play-dur {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.65;
  padding-left: 8px;
  border-left: 1px solid rgba(20,19,15,0.18);
}

.hero-meta-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  justify-content: end;
  align-items: end;
}
.hero-meta-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-meta-cell .mono-sm { color: rgba(255,255,255,0.55); }
.hero-meta-val { font-size: 14px; font-weight: 500; color: #fff; }
.hero-meta-cell--end { text-align: right; }
@media (max-width: 900px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-meta-row { width: 100%; grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 16px; }
  .hero-meta-cell--end { text-align: left; }
}
@media (max-width: 540px) {
  .hero-meta-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-headline { font-size: clamp(40px, 11vw, 64px); line-height: 1; letter-spacing: -0.02em; }
  .hero-sub { font-size: 14px; line-height: 1.5; }
  .hero-overlay { padding: 90px var(--gutter) 24px; gap: 16px; }
  .hero-center { gap: 18px; padding: 16px 0; }
  .hero-play-pill { width: 100%; justify-content: flex-start; }
  .hero-top .mono-sm { font-size: 10px; }
}

/* ───── DARK HEADER OVERRIDES (when sitting over full-bleed hero) ───── */
body[data-hero="fullbleed"] .site-header:not(.is-scrolled),
body.has-fullbleed-hero .site-header:not(.is-scrolled) { color: #fff; }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .brand,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .brand,
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .nav-meta,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .nav-meta { color: rgba(255,255,255,0.9); }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .brand-sub,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .brand-sub { color: rgba(255,255,255,0.55); }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .nav-primary,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .nav-primary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .nav-primary a,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .nav-primary a { color: rgba(255,255,255,0.85); }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .nav-primary a:hover,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .nav-primary a:hover { background: rgba(255,255,255,0.1); }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .nav-primary a.active,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .nav-primary a.active { background: #fff; color: var(--ink); }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .btn,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .btn { background: #fff; color: var(--ink); }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .btn:hover,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .btn:hover { background: var(--accent); color: #fff; }
body[data-hero="fullbleed"] .site-header:not(.is-scrolled) .menu-toggle,
body.has-fullbleed-hero .site-header:not(.is-scrolled) .menu-toggle { background: rgba(255,255,255,0.92); color: var(--ink); }

/* ───── CLIENTS MARQUEE ──────────────────────────────── */
.clients-marquee {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.client-name {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.client-sep {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 88px);
  color: var(--accent);
  font-style: italic;
}
@media (max-width: 600px) {
  .client-name, .client-sep { font-size: clamp(28px, 9vw, 44px); }
  .clients-marquee { padding: 32px 0 40px; }
  .marquee-track { gap: 40px; }
}

/* ───── SECTION BG ALTERNATION — 3-tone rhythm ───────── */
.work-home    { background: var(--bg-soft); }
.moodboard    { background: var(--bg-soft); }
.journal-home { background: var(--bg-soft); }

/* ───── IMAGE BREAK ──────────────────────────────────── */
.image-break {
  padding: 0 0 24px;
  background: var(--bg);
}
.image-break-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.image-break-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20,19,15,0.45) 0%, rgba(20,19,15,0.35) 50%, rgba(20,19,15,0.5) 100%);
  color: #fff;
  z-index: 2;
}
.image-break-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.image-break-overlay .eyebrow { color: rgba(255,255,255,0.82); }
.image-break-overlay .eyebrow .dot { color: var(--accent); }
.break-headline {
  margin: 0;
  color: #fff;
  max-width: 22ch;
  text-shadow: 0 4px 32px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
}
.break-headline em { color: var(--accent); font-style: normal; }
@media (max-width: 720px) { .image-break-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.2) 100%); } }
.break-slot {
  display: block;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}
@media (max-width: 720px) {
  .break-slot { aspect-ratio: 4/5; }
  .break-headline { font-size: clamp(32px, 9vw, 56px); }
  .image-break-overlay { background: linear-gradient(180deg, rgba(20,19,15,0.45) 0%, rgba(20,19,15,0.35) 50%, rgba(20,19,15,0.6) 100%); align-items: flex-end; padding-bottom: 32px; }
}
.image-break-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter) 0;
  flex-wrap: wrap;
  gap: 12px;
}

/* ───── MANIFESTO ────────────────────────────────────── */
.manifesto-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; gap: 24px; } }
.manifesto-text .h-lg { margin: 0 0 64px; max-width: none; }
/* Force each manifesto line onto a single line regardless of font/fallback width */
.manifesto-text .h-lg .mask-line > span { white-space: nowrap; }
@media (max-width: 600px) {
  .manifesto-text .h-lg { font-size: clamp(30px, 8vw, 44px); }
  .manifesto-text .h-lg .mask-line > span { white-space: normal; }
}
.manifesto-foot { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }

/* ───── SERVICES SECTION (homepage) ──────────────────── */
.services-head {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.services-head--simple {
  display: block;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .services-head { grid-template-columns: 1fr; gap: 24px; } }
.services-head .h-xl { margin: 0; }
.services-list { margin-top: 16px; }

/* ───── WORK SECTION HEAD (shared with archive) ──────── */
.work-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .work-head { grid-template-columns: 1fr; gap: 24px; } }
.work-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.work-head-row .h-xl { margin: 0; }

/* ───── WORK STACK (stacked project rows) ────────────── */
.work-stack { display: flex; flex-direction: column; gap: 96px; }
@media (max-width: 720px) { .work-stack { gap: 56px; } }
.work-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}
.work-row.reverse { grid-template-columns: 1fr 360px; }
.work-row.reverse .work-row-meta { order: 2; padding-left: 24px; }
.work-row.reverse .work-row-media { order: 1; }
@media (max-width: 900px) {
  .work-row, .work-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .work-row.reverse .work-row-meta { order: 2; padding-left: 0; }
  .work-row.reverse .work-row-media { order: 1; }
}
.work-row-meta { display: flex; flex-direction: column; gap: 12px; }
.work-row-title { margin: 8px 0 0; line-height: 0.94; }
.work-row-title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 420ms var(--ease-out);
}
.work-row-title a:hover { background-size: 100% 1px; }
.work-row-title em { color: var(--accent); font-style: normal; }
.work-row-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.work-row-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}
.work-row-media img { transition: transform 700ms var(--ease-out); display: block; }
.work-row-media:hover img { transform: scale(1.03); }
.work-row-arrow {
  position: absolute;
  right: 24px; top: 24px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7) rotate(-20deg);
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), background 220ms var(--ease-out), color 220ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.work-row-arrow svg { width: 22px; height: 22px; }
.work-row-media:hover .work-row-arrow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  background: var(--accent);
  color: var(--accent-ink);
}

/* ───── NUMBERS ──────────────────────────────────────── */
.numbers-head { max-width: 600px; margin-bottom: 64px; }
.numbers-head em { color: var(--accent); font-style: normal; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
@media (max-width: 900px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
  .numbers-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
  .numbers-head { margin-bottom: 40px; }
  .stat { padding: 16px 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; padding-top: 4px; }
  .stat .stat-num { font-size: clamp(52px, 16vw, 80px); }
}

/* ───── TESTIMONIAL ──────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; gap: 24px; } }
.testimonial-meta { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.t-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-deep);
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(20,19,15,0.06) 8px 9px);
  border: 1px solid var(--line);
}
.t-name { font-weight: 500; font-size: 15px; }
.t-role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ───── TEAM ─────────────────────────────────────────── */
.team-head { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
@media (max-width: 900px) { .team-head { grid-template-columns: 1fr; gap: 24px; } }
.team-head em { color: var(--accent); font-style: normal; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; gap: 32px; } }
.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding-top: 16px; }
.team-name { font-family: var(--f-display); font-size: 24px; line-height: 1.05; }
.team-role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ───── JOURNAL CARDS (homepage) ─────────────────────── */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  transition: background 320ms var(--ease-out), border-color 320ms var(--ease-out), transform 320ms var(--ease-out);
  min-height: 320px;
  justify-content: space-between;
}
.journal-card:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.journal-card:hover .chip { border-color: rgba(244,241,235,0.3); color: var(--bg); }
.journal-card:hover .mono-sm,
.journal-card:hover .j-author { color: rgba(244,241,235,0.65); }
.j-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.journal-card h3 { margin: 0; }
.j-author { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ───── CTA ──────────────────────────────────────────── */
.cta-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 80px var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (max-width: 600px) {
  .cta-card { padding: 48px 24px; gap: 24px; border-radius: var(--r-md); }
  .cta-card .cta-headline { font-size: clamp(48px, 14vw, 80px) !important; line-height: 0.94; }
  .cta-foot { gap: 16px; flex-direction: column; align-items: stretch; }
  .cta-foot .btn { justify-content: center; }
}
.cta-card .accent { color: var(--accent); }
.cta-card .cta-headline { margin: 0; }
.cta-card .cta-headline .italic,
.cta-card .cta-headline em { color: var(--accent); font-style: normal; }
.cta-foot { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cta-foot .btn { background: var(--bg); color: var(--ink); }
.cta-foot .btn:hover { background: var(--accent); color: var(--accent-ink); }
.cta-foot .link-arrow { color: var(--bg); border-color: rgba(244,241,235,0.3); }
