/*
  SHARED PROJECT PAGE STYLESHEET
  Used by every standalone portfolio project page in this folder (portfolio/).
  Extracted, not modified, from the shared visual language already live in
  ../v2-rebuild.html and ../v2-portfolio.html: colour variables, fonts, header/nav,
  footer, buttons, and section typography. Those two files keep their own inline
  <style> blocks untouched; this file is additive, for the new project pages only.

  Every project page in this folder must:
    1. Link this stylesheet (<link rel="stylesheet" href="shared-project.css" />).
    2. Load the same Google Fonts as the rest of the site (Barlow Condensed + Barlow),
       since this file only carries the --font-display/--font-body variables, not the
       @font-face/@import itself.
    3. Reuse the .nav / .footer markup below, with paths corrected one level deeper
       (a project page lives at portfolio/<slug>.html, so a same-page anchor
       like #portfolio on the source pages becomes ../v2-rebuild.html#portfolio, and
       an asset path like brand-assets/... becomes ../brand-assets/...).
  See stagetrac-launch-ad.html for the full annotated page structure this stylesheet
  supports (head, nav, back-link, video, title, meta line, write-up sections, CTA,
  footer) - copy that file's shape for every future project page.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --cyan: #04DBF5;
  --charcoal: #1A1A1A;
  --black: #0d0d0d;
  --surface: #1c1c1c;
  --border: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #BBBBBB;
  --text-muted: #999999;
  --text-body: #BBBBBB;
  --text-label: #8E8E8E;
  --text-faint: #777777;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
p { color: var(--text-body); }

/* ─── UTILITIES ─── */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}
.text-cyan { color: var(--cyan); }
.btn-cyan {
  display: inline-block;
  background: var(--cyan);
  color: #111;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-cyan:hover { opacity: 0.85; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid #444;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ─── NAVIGATION ─── */
.nav {
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(60px, calc((100% - 1440px) / 2));
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: opacity 0.35s ease;
}
.nav.nav-faded { opacity: 0; pointer-events: none; }
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--cyan); }
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.nav-logo-icon { height: 40px; width: auto; }
.nav-logo-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 233.94px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--text-label);
  line-height: 1;
  white-space: nowrap;
}
.nav-logo-tagline .tagline-dot {
  color: var(--cyan);
  font-size: 7px;
  line-height: 1;
  position: relative;
  top: -1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #BBBBBB;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.btn-cyan { color: #111; font-weight: 700; font-size: 13px; }
.nav-links a.btn-cyan:hover { color: #111; }

/* ─── NAV HAMBURGER (mobile only) ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SECTION WRAPPER ─── */
.section { padding: 80px max(60px, calc((100% - 1440px) / 2)); }
.section-dark { background: #141414; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.section-mid { background: var(--charcoal); }

/* ─── PROJECT PAGE SPECIFIC ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--cyan); }

.project-video-wrap {
  aspect-ratio: 16 / 9;
  max-width: 800px;
  background: #000;
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.project-video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── PROJECT VIDEO FACADE ───
   Click-to-load thumbnail for the single hero video on a project detail page.
   Same mechanism as the .work-thumb facade on ../v2-portfolio.html's grid tiles
   (real YouTube thumbnail image behind a play button, real iframe only inserted
   on click), just scaled up for one larger video instead of a small grid tile.
   This hides YouTube's own paused-state overlay (internal video title, channel
   avatar, "Watch on YouTube" pill) until the visitor actually presses play. */
.project-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.project-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: background 0.2s;
  z-index: 1;
}
.project-thumb:hover::before { background: rgba(0, 0, 0, 0.24); }
.project-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.2s;
}
.project-thumb:hover .project-play-btn { color: var(--cyan); }

/* ─── AT A GLANCE (stat-tile row) ───
   Same big-cyan-number-over-uppercase-label typography as the "12+ / 100+ / 1"
   stat row in ../v2-rebuild.html's About section, boxed as individual tiles
   here since a project page has no surrounding paragraph for the numbers to
   sit inside. FIXED, MANDATORY 3-tile schema on every project page, always in
   this order: STYLE (production style/format), PLATFORM (where it ran), GOAL
   (the actual purpose). .glance-label carries the fixed category name and is
   placed FIRST (quiet context label on top), .glance-num carries the real
   value and is placed SECOND (bold cyan answer below it) - label-above-value,
   never the reverse, so the small grey label never has to compete visually
   with the bold cyan value on the same line. Values must always be real,
   already-established facts about the project, never a fabricated figure.
   See the convention comment in stagetrac-launch-ad.html for the full
   schema. */
.glance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.glance-tile {
  background: var(--black);
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 16px 22px;
  min-width: 130px;
}
.glance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-label);
  margin-bottom: 6px;
}
.glance-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.15;
  color: var(--cyan);
  text-transform: uppercase;
}

/* ─── SECTION HEADING ICON ACCENT ───
   Smaller-scale version of the circular .service-icon wrap used in
   ../v2-rebuild.html's Services section: same stroke-based line-icon style
   (stroke-width 2, round caps/joins, fill none), shrunk down and placed next
   to each .section-label ("The Client", "The Goal", etc.) in a project write-up. */
.project-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.project-section-head .section-label { margin-bottom: 0; }
.project-section-icon {
  width: 26px;
  height: 26px;
  background: rgba(4, 219, 245, 0.08);
  border: 1px solid rgba(4, 219, 245, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.project-section-icon svg { width: 13px; height: 13px; }

.project-meta {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 40px;
}

.project-body { max-width: 720px; }
.project-section { margin-bottom: 36px; }
.project-section:last-child { margin-bottom: 0; }
.project-section p { font-size: 15px; line-height: 1.75; }

.companion-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.companion-link:hover { color: var(--cyan); border-color: var(--cyan); }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: linear-gradient(90deg, #0d1f22 0%, #111 100%);
  border-top: 1px solid var(--cyan);
  padding: 48px max(60px, calc((100% - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-strip-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--cyan);
  flex-shrink: 0;
}
.cta-strip-text { flex: 1; }
.cta-strip-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cta-strip p { font-size: 15px; color: var(--text-body); }
.cta-buttons { display: flex; gap: 14px; flex-shrink: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid #1e1e1e;
}
.footer-inner {
  padding: 56px max(60px, calc((100% - 1440px) / 2)) 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand-desc {
  font-size: 14px;
  color: #999999;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 220px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #AAAAAA;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding: 20px max(60px, calc((100% - 1440px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span { font-size: 12px; color: var(--text-faint); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-label);
  font-size: 16px;
  transition: all 0.2s;
}
.social-links a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ─── SIMPLE SVG ICONS ─── */
.ico { display: inline-block; width: 1em; height: 1em; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .section { padding: 56px 24px; }
  .nav { padding: 0 24px; }
  .nav-hamburger { display: flex; }
  .nav-logo-tagline { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #111;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid #1e1e1e; }
  .nav-links li a.btn-cyan { display: inline-block; padding: 11px 24px; margin-top: 16px; border-bottom: none; }
  .footer-inner { padding: 48px 24px 32px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 48px 24px; }
  .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-strip-photo { align-self: center; }
  .cta-buttons a { text-align: center; }
  .section-heading { font-size: 32px; }
}

/* Narrower than the general 900px layout breakpoint above on purpose: the glance
   tiles still fit comfortably multiple-per-row at 900px-600px (tablet widths), they
   only read as oversized once a phone-width screen forces them down toward one per
   row. Sizing/spacing only, label-above-value order and cyan colour stay exactly
   as they are above. */
@media (max-width: 600px) {
  .glance-row { gap: 10px; margin-bottom: 32px; }
  .glance-tile { padding: 10px 14px; min-width: 100px; }
  .glance-label { font-size: 10px; margin-bottom: 4px; }
  .glance-num { font-size: 17px; }
}
