/* ============================================================
   Talnova case study — section styles
   (rides on project.css's cs-* system; adds tl-* specifics)
   ============================================================ */

/* Talnova brand colour overrides — replace the Creative Placemaking
   purple-navy / light-blue with Talnova's deep navy & midnight.
   Pink accents (--pink) are intentionally kept as portfolio chrome. */
.tl {
  --navy: #0C224A;        /* deep navy — labels, buttons, accents */
  --navy-deep: #0E1623;   /* midnight — dark section bgs + flat headings + 3D shadow */
  --navy-text: #0C224A;
  --navy-bio: #0C224A;     /* body / lead text on light sections */
  --blue-light: #EAEEF4;  /* neutral cool light (was CP's saturated blue) */
  --pale: #EAF1F8;        /* cool near-white text on dark sections */
  --pink: #499ED2;        /* highlights/accents — Talnova Nova Blue (was CP pink) */
  background: var(--white);
}

/* tighten the gap between Mission/Challenge and Visual Identity */
.tl .cs-briefchallenge { padding-bottom: clamp(36px, 4vw, 70px); }
.tl-branding { padding-top: clamp(70px, 8vw, 140px); }

/* light-blue band behind the meta + about/challenge sections (matches exhibition) */
.tl .cs-meta,
.tl .cs-briefchallenge { background: var(--blue-light); }
.tl .cs-meta { border-bottom: 2px solid rgba(12, 34, 74, 0.14); }

/* sub-title lead text: regular weight (no bold) across the page */
.tl .cs-concept__lead,
.tl .cs-bc__text { font-weight: 400; }

/* match body copy to the standard body size (Greenspace / More Projects) */
.tl .cs-bc__text,
.tl .cs-concept__lead,
.tl .cs-sun__lead { font-weight: 300; font-size: clamp(17px, 1.3vw, 23px); line-height: 1.55; }

/* shared image button — removes default button chrome, adds hover lift */
.tl-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}
.tl-shot img { width: 100%; display: block; transition: transform 0.6s var(--ease); }
.tl-shot:hover img { transform: scale(1.035); }

.tl-cap {
  display: block;
  margin-top: 34px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-align: center;
}

/* ---------- Hero ---------- */
.tl-hero__overlay { background: rgba(4,9,27,0.52); }
.tl-hero__stars { position: absolute; inset: 0; pointer-events: none; }
.tl-star {
  position: absolute;
  color: #fff;
  opacity: 0.0;
  filter: drop-shadow(0 0 14px rgba(120,180,230,0.8));
  animation: tl-twinkle 4.5s ease-in-out infinite;
}
.tl-star--1 { width: 26px; height: 26px; top: 24%; left: 16%; animation-delay: 0.0s; }
.tl-star--2 { width: 40px; height: 40px; top: 34%; left: 78%; animation-delay: 0.9s; }
.tl-star--3 { width: 18px; height: 18px; top: 62%; left: 27%; animation-delay: 1.8s; }
.tl-star--4 { width: 30px; height: 30px; top: 68%; left: 70%; animation-delay: 1.3s; color: #9ecbea; }
.tl-star--5 { width: 22px; height: 22px; top: 18%; left: 52%; animation-delay: 2.4s; color: #9ecbea; }
@keyframes tl-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  50%      { opacity: 0.92; transform: scale(1) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-star { animation: none; opacity: 0.7; }
}

/* ---------- Branding ---------- */
.tl-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  max-width: 1100px;
  margin: 0 auto clamp(56px, 6vw, 100px);
}
.tl-swatch { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tl-swatch__chip { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; }
.tl-swatch__name { font-weight: 700; font-size: clamp(15px, 1.1vw, 18px); color: var(--navy-deep); }
.tl-swatch__hex {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; letter-spacing: 0.06em; color: var(--navy); opacity: 0.65;
}

.tl-branding__boards {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  margin: 0 auto clamp(48px, 6vw, 100px);
  max-width: 1100px;
}
.tl-board { display: flex; flex-direction: column; }
/* flat (non-interactive) board images */
.tl-flat { line-height: 0; }
.tl-flat img { width: 100%; display: block; }

/* type specimen stack (replaces single type board) */
.tl-type { display: flex; flex-direction: column; gap: clamp(10px, 1.1vw, 16px); max-width: 420px; }
.tl-type .tl-flat {
  background: transparent;
  border: 0;
  padding: 0;
}
.tl-type .tl-flat img { width: 78%; margin: 0 auto; display: block; }

/* type specimens side by side */
.tl-type--row {
  flex-direction: row;
  max-width: 1100px;
  margin-inline: auto;
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  margin-top: clamp(28px, 3.5vw, 56px);
  margin-bottom: clamp(36px, 4vw, 64px);
}
.tl-type--row .tl-flat { flex: 1; }
@media (max-width: 720px) { .tl-type--row { flex-direction: column; max-width: 420px; margin-inline: auto; } }

/* interlocking nova pattern + star marks */
.tl-marks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 20px);
  align-items: center;
  max-width: 84%;
  margin-left: auto;
}
.tl-pattern img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
@media (max-width: 860px) {
  .tl-branding__boards { grid-template-columns: 1fr; gap: 40px; }
  .tl-marks { margin-left: auto; margin-right: auto; }
}

/* "Like this project?" section matches the nav bar (Midnight) */
.tl .cs-next { background: #0E1623; }

/* compact palette used as a board beside the type specimen */
.tl-palette--board { margin: 0; gap: clamp(10px, 1vw, 18px); align-content: center; height: 100%; }
.tl-palette--board .tl-swatch { gap: 8px; }
.tl-palette--board .tl-swatch__name { font-size: clamp(12px, 0.9vw, 15px); }
.tl-palette--board .tl-swatch__hex { font-size: 11px; }

/* logo lockups across brand colours */
.tl-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  max-width: 1100px;
  margin: 0 auto clamp(56px, 6vw, 100px);
}
.tl-logo {
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1915 / 828;
}
.tl-logo img { width: 100%; height: 100%; object-fit: contain; }
.tl-logo--white { outline: 1px solid rgba(12,34,74,0.12); outline-offset: -1px; }
@media (max-width: 720px) { .tl-logos { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------- Pitch Deck (dark, rides on .cs-sun) ---------- */
/* flat navy background to match the website section (drop the radial glow) */
.tl-pitch { background-image: none; }
.tl-pitch__h { margin: 18px 0 clamp(44px, 5vw, 80px); }
/* eyebrow label: white text, blue accent lines */
.tl-pitch .cs-label, .tl-website .cs-label { color: var(--white); }
.tl-pitch__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.2vw, 36px);
}
.tl-pitch__cell .tl-shot {
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.7);
  outline: 1px solid rgba(255,255,255,0.06);
}
/* force every slide to identical 16:9 cells regardless of tiny source diffs */
.tl-pitch__cell .tl-shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left center;
}
@media (max-width: 900px) { .tl-pitch__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tl-pitch__grid { grid-template-columns: 1fr; } }

/* ---------- Exhibition ---------- */
.tl-feature { max-width: 1300px; margin: 0 auto clamp(36px, 4vw, 64px); }
.tl-feature .tl-shot { box-shadow: 0 40px 80px -44px rgba(22,15,74,0.5); }
.tl-feature--photo { margin-bottom: 0; }

/* full-width hero stand photo */
.tl-photo-feature { margin: 0 auto clamp(20px, 2.4vw, 36px); }
.tl-photo-feature .tl-shot { box-shadow: 0 40px 80px -44px rgba(22,15,74,0.5); }
.tl-photo-feature .tl-shot img { width: 100%; display: block; }

/* real stand photos, uniform row */
.tl-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  max-width: 1300px;
  margin: 0 auto 18px;
  align-items: stretch;
}
.tl-photo { display: flex; }
.tl-photo .tl-shot { box-shadow: 0 30px 60px -38px rgba(22,15,74,0.5); width: 100%; }
.tl-photo .tl-shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
@media (max-width: 760px) { .tl-photos { grid-template-columns: 1fr; max-width: 460px; } }

/* stand graphic system — panels at equal height on a midnight backdrop */
.tl-panels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  background: #182A45;
  padding: clamp(24px, 3vw, 52px);
  border-radius: 10px;
  max-width: 1300px;
  margin: 0 auto clamp(14px, 1.6vw, 22px);
}
.tl-panels__item { width: auto; }
.tl-panels__item img {
  height: clamp(220px, 26vw, 380px);
  width: auto;
  max-width: 100%;
  border-radius: 4px;
}
.tl-panels__item--tall img { height: clamp(280px, 32vw, 470px); }
.tl-panels__cap { margin-bottom: clamp(40px, 5vw, 80px); }
@media (max-width: 720px) {
  .tl-panels__item img, .tl-panels__item--tall img { height: auto; width: 100%; max-width: 340px; }
}

/* ---------- Sleek mockup TV slideshow ---------- */
.tl-tv {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin: clamp(52px, 6.5vw, 100px) auto 0;
}
.tl-tv__set {
  width: 100%;
  background: #0a0a0c;
  border-radius: clamp(12px, 1.4vw, 20px);
  padding: clamp(9px, 1.1vw, 16px);
  box-shadow: 0 60px 100px -54px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.tl-tv__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(5px, 0.6vw, 9px);
  overflow: hidden;
  background: #0E1623;
}
.tl-tv__idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 22px);
}
.tl-tv__star { width: clamp(46px, 5vw, 78px); height: auto; color: rgba(73,158,210,0.55); }
.tl-tv__wordmark {
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: clamp(15px, 1.4vw, 22px);
  color: rgba(255,255,255,0.42);
  padding-left: 0.28em;
}
.tl-tv__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.tl-tv__slide.is-active { opacity: 1; }
.tl-tv__stand { display: flex; flex-direction: column; align-items: center; }
.tl-tv__neck {
  width: clamp(40px, 5vw, 72px);
  height: clamp(16px, 2vw, 30px);
  background: linear-gradient(#17171a, #0a0a0c);
}
.tl-tv__base {
  width: clamp(170px, 24vw, 320px);
  height: 12px;
  border-radius: 0 0 10px 10px;
  background: #0a0a0c;
  box-shadow: 0 16px 26px -14px rgba(0,0,0,0.7);
}

/* ---------- Flyers (3D floating mockup on white) ---------- */
.tl-flyer-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: #ffffff;
  background-image:
    linear-gradient(120deg, rgba(12,34,74,0.05) 0%, rgba(12,34,74,0) 34%),
    linear-gradient(300deg, rgba(12,34,74,0.04) 0%, rgba(12,34,74,0) 30%);
  padding: clamp(70px, 9vw, 150px) clamp(20px, 4vw, 60px);
  border-radius: 8px;
  max-width: 1200px;
  margin-inline: auto;
  overflow: hidden;
  perspective: 2200px;
}
.tl-flyer-card {
  position: relative;
  width: clamp(220px, 28vw, 320px);
  display: block;
  transform-style: preserve-3d;
}
/* both flyers share the SAME tilt so they read as a parallel pair */
.tl-flyer-card--front {
  transform: rotateX(14deg) rotateY(-10deg) rotateZ(20deg);
  margin: -52px -64px 0 0;
  z-index: 2;
}
.tl-flyer-card--back {
  transform: rotateX(14deg) rotateY(-10deg) rotateZ(20deg);
  margin: 70px 0 0 0;
  z-index: 1;
}
.tl-flyer-card .tl-shot {
  border-radius: 2px;
  /* long soft diagonal cast shadow, like a studio mockup */
  filter:
    drop-shadow(10px 16px 10px rgba(12,34,74,0.16))
    drop-shadow(34px 52px 34px rgba(12,34,74,0.22));
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}
.tl-flyer-card .tl-shot:hover {
  transform: translateY(-8px) scale(1.02);
  filter:
    drop-shadow(12px 20px 12px rgba(12,34,74,0.18))
    drop-shadow(44px 66px 44px rgba(12,34,74,0.26));
}
.tl-flyer-card .tl-shot:hover img { transform: none; }
.tl-flyer-card__tag {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
@media (max-width: 720px) {
  .tl-flyer-mockup { flex-direction: column; gap: 70px; perspective: none; }
  .tl-flyer-card--front, .tl-flyer-card--back { transform: rotateZ(0deg); margin: 0; width: min(72vw, 320px); }
}

/* ---------- Website (browser frame) ---------- */
.tl-website__h { margin: 14px 0 clamp(44px, 5vw, 80px); }
.tl-browser {
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 50px 100px -50px rgba(0,0,0,0.8);
}
.tl-browser__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 20px;
  background: #141d30;
}
.tl-browser__bar > span { width: 13px; height: 13px; border-radius: 50%; background: #33405c; }
.tl-browser__bar > span:nth-child(1) { background: #ff5f57; }
.tl-browser__bar > span:nth-child(2) { background: #febc2e; }
.tl-browser__bar > span:nth-child(3) { background: #28c840; }
.tl-browser__url {
  margin-left: 16px;
  flex: 1;
  max-width: 360px;
  padding: 7px 16px;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.tl-browser__shot { cursor: zoom-in; }
.tl-browser__shot:hover img { transform: none; }

/* ---------- Lightbox ---------- */
.tl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,8,20,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 80px);
  cursor: zoom-out;
  animation: tl-fade 0.25s var(--ease);
}
@keyframes tl-fade { from { opacity: 0; } to { opacity: 1; } }
.tl-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9);
  cursor: default;
}
.tl-lightbox__close {
  position: fixed;
  top: 26px;
  right: 32px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.tl-lightbox__close:hover { background: rgba(255,255,255,0.24); }
