/* UI Kit shared styles — subset of the live site's styles.css, rooted to design tokens. */
@import url('./colors_and_type.css');

/* ======================================================================
   INTRO BASE (all page intros share this shell)
   ====================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, #0B1426 0%, #050912 70%, #020409 100%);
  overflow: hidden;
  pointer-events: none;
}
.intro.intro-home      { animation: intro-exit 400ms var(--ease-out) 1900ms forwards; }
.intro.intro-about     { animation: intro-exit 400ms var(--ease-out) 2000ms forwards; }
.intro.intro-philosophy { animation: intro-exit 400ms var(--ease-out) 2000ms forwards; }
.intro.intro-analysis  { animation: intro-exit 400ms var(--ease-out) 2100ms forwards; }
.intro.intro-visuals   { animation: intro-exit 400ms var(--ease-out) 2100ms forwards; }
/* data has no auto-exit — it exits only when its phase-2 triggers (after code finishes typing) */
.intro.intro-data      { animation: none; }
.intro.intro-data.intro-phase-2 { animation: intro-exit 400ms var(--ease-out) forwards; }
@keyframes intro-exit {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.04); filter: blur(8px); visibility: hidden; }
}

/* radial spotlight that "powers on" */
.intro-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(108,171,221,0.22), transparent 60%);
  opacity: 0; animation: intro-spotlight 1400ms var(--ease-out) 80ms forwards;
}
@keyframes intro-spotlight {
  0%   { opacity: 0; transform: scale(0.6); }
  40%  { opacity: 0.8; }
  100% { opacity: 1; transform: scale(1); }
}

/* center kickoff dot & rings */
.intro-kickoff {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.intro-kickoff-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--city-blue-bright);
  box-shadow: 0 0 18px var(--city-blue), 0 0 40px var(--city-blue-glow);
  opacity: 0; transform: scale(0);
  animation: kickoff-dot 550ms var(--ease-out) 120ms forwards;
}
@keyframes kickoff-dot {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.8); }
  100% { opacity: 1; transform: scale(1); }
}
.intro-kickoff-ring {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--city-blue-bright);
  opacity: 0;
  animation: kickoff-ring 1600ms var(--ease-out) 200ms infinite;
}
.intro-kickoff-ring-2 { animation-delay: 600ms; }
@keyframes kickoff-ring {
  0%   { opacity: 0.7; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(7); }
}

/* pitch SVG — draws itself in */
.intro-pitch {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  will-change: opacity, transform;
}
.intro-phase-2 .intro-pitch,
.intro-phase-3 .intro-pitch,
.intro-phase-4 .intro-pitch,
.intro-phase-5 .intro-pitch,
.intro-phase-6 .intro-pitch { opacity: 1; }

.intro-phase-6 .intro-pitch {
  transform: scale(1.08);
  filter: blur(6px);
  transition: transform 500ms var(--ease-out), filter 500ms var(--ease-out), opacity 600ms var(--ease-out);
  opacity: 0;
}

.draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
/* outer touchline — phase 2 */
.intro-phase-2 .draw-outer,
.intro-phase-3 .draw-outer,
.intro-phase-4 .draw-outer,
.intro-phase-5 .draw-outer,
.intro-phase-6 .draw-outer { animation: draw 700ms var(--ease-out) forwards; }

/* halfway + center — phase 3 */
.intro-phase-3 .draw-halfway, .intro-phase-4 .draw-halfway, .intro-phase-5 .draw-halfway, .intro-phase-6 .draw-halfway { animation: draw 500ms var(--ease-out) forwards; }
.intro-phase-3 .draw-circle,  .intro-phase-4 .draw-circle,  .intro-phase-5 .draw-circle,  .intro-phase-6 .draw-circle  { animation: draw 600ms var(--ease-out) 120ms forwards; }

/* boxes — phase 4 */
.intro-phase-4 .draw-box-l, .intro-phase-5 .draw-box-l, .intro-phase-6 .draw-box-l { animation: draw 500ms var(--ease-out) forwards; }
.intro-phase-4 .draw-box-r, .intro-phase-5 .draw-box-r, .intro-phase-6 .draw-box-r { animation: draw 500ms var(--ease-out) 60ms forwards; }
.intro-phase-4 .draw-six-l, .intro-phase-5 .draw-six-l, .intro-phase-6 .draw-six-l { animation: draw 400ms var(--ease-out) 160ms forwards; }
.intro-phase-4 .draw-six-r, .intro-phase-5 .draw-six-r, .intro-phase-6 .draw-six-r { animation: draw 400ms var(--ease-out) 220ms forwards; }
.intro-phase-4 .draw-arc-l, .intro-phase-5 .draw-arc-l, .intro-phase-6 .draw-arc-l { animation: draw 350ms var(--ease-out) 280ms forwards; }
.intro-phase-4 .draw-arc-r, .intro-phase-5 .draw-arc-r, .intro-phase-6 .draw-arc-r { animation: draw 350ms var(--ease-out) 280ms forwards; }
.intro-phase-4 .draw-corner, .intro-phase-5 .draw-corner, .intro-phase-6 .draw-corner { animation: draw 250ms var(--ease-out) 340ms forwards; }

@keyframes draw {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

/* dots + arcs — phase 5 */
.intro-dots circle,
.intro-dots-away circle {
  opacity: 0;
  transform-origin: center;
  transform: scale(0);
}
.intro-phase-5 .intro-dots circle,
.intro-phase-6 .intro-dots circle,
.intro-phase-5 .intro-dots-away circle,
.intro-phase-6 .intro-dots-away circle {
  animation: dot-pop 500ms var(--ease-out) forwards;
}
@keyframes dot-pop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.6); }
  100% { opacity: 0.75; transform: scale(1); }
}
.intro-arcs path { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.intro-phase-5 .intro-arcs path,
.intro-phase-6 .intro-arcs path { animation: draw 700ms var(--ease-out) 200ms forwards; }

/* Brand lockup that fades in under the center circle */
.intro-brand {
  position: absolute; left: 50%; top: calc(50% + 160px);
  transform: translateX(-50%);
  text-align: center; color: var(--fg1);
  opacity: 0;
  animation: brand-in 600ms var(--ease-out) 1100ms forwards;
}
@keyframes brand-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.intro-brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--city-blue);
  border: 2px solid var(--navy);
  box-shadow: 0 0 16px var(--city-blue), 0 0 40px var(--city-blue-glow);
  margin: 0 auto 1rem;
  animation: pulse-glow 2s ease-in-out infinite;
}
.intro-brand-name {
  font-family: var(--font-sans); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.01em; color: var(--fg1);
  margin-bottom: 0.5rem;
}
.intro-brand-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--city-blue-deep);
}

/* whiteout flash on transition — phase 6 */
.intro-flash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(165,216,255,0.8), rgba(108,171,221,0.3) 40%, transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
}
.intro-phase-6 .intro-flash {
  animation: flash 500ms var(--ease-out) forwards;
}
@keyframes flash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

.intro-skip {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 10000;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--fg2); border: 1px solid var(--border-hair);
  padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
  font: 600 0.75rem/1 var(--font-sans); letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.2s ease;
}
.intro-skip:hover { color: var(--city-blue-bright); border-color: rgba(108,171,221,0.4); }

/* Site — hidden until intro resolves, then flows in.
   IMPORTANT: the "to" keyframe deliberately omits transform and filter.
   Any ancestor with transform/filter set to anything other than none (even
   translateY(0) or blur(0)) becomes the containing block for fixed-position
   descendants — which pulls the lightbox modal out of the viewport and
   pins it to the top of the site content. Omitting those properties at
   100% lets them revert to the element's base style (none), keeping the
   viewport as the containing block for any fixed descendants. */
.site-out { opacity: 0; pointer-events: none; }
.site-in  { animation: site-in 800ms var(--ease-out) 100ms both; }
@keyframes site-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to   { opacity: 1; }
}

/* Generic reveal — staggered per --d. Same containing-block rule as .site-in:
   no transform on the final keyframe. */
.reveal {
  opacity: 0;
  animation: reveal-up 700ms var(--ease-out) both;
  animation-delay: calc(200ms + var(--d, 0ms));
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; }
}
.site-in .hero-inner > * {
  animation: reveal-up 800ms var(--ease-out) both;
  animation-delay: calc(150ms + var(--d, 0ms));
}
.site-in .block .eyebrow { animation: reveal-up 700ms var(--ease-out) 400ms both; }
.site-in .block h2.section-h2 { animation: reveal-up 700ms var(--ease-out) 480ms both; }
.site-in .block .section-lead { animation: reveal-up 700ms var(--ease-out) 560ms both; }

/* viz cells (moved from inline) */
.viz-cell {
  background: var(--bg-pitch); border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4/3; border: 1px solid var(--border-soft); position: relative;
  transition: all 0.3s var(--ease-out);
}
.viz-cell:hover { border-color: rgba(108,171,221,0.5); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.viz-cell img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.viz-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(13,17,23,0.92));
  font-size: 12px; color: #fff;
}

/* footer */
.site-footer {
  background: linear-gradient(180deg,#0B1426,#070D1B);
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--border-hair);
  position: relative;
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
}
.site-footer h3 { font-size: 1.3rem; color: var(--fg1); margin-bottom: 0.6rem; font-weight: 700; }
.site-footer p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.55; max-width: 440px; }
.site-footer-cta { text-align: right; }

.replay-hint {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  font: 500 0.68rem/1 var(--font-sans); color: var(--fg4);
  letter-spacing: 0.08em;
  background: rgba(11,20,38,0.6); backdrop-filter: blur(8px);
  padding: 0.45rem 0.7rem; border-radius: var(--r-pill);
  border: 1px solid var(--border-hair);
  pointer-events: none;
  opacity: 0;
  animation: reveal-up 500ms var(--ease-out) 2000ms both;
}
.replay-hint kbd {
  display: inline-block; background: var(--bg-raised); color: var(--fg2);
  padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono);
  font-size: 0.65rem; margin: 0 2px; border: 1px solid var(--border-soft);
}


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

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--bg-base);
  line-height: var(--lh-base);
  font-size: 17px;
  background-image: var(--grad-bg);
  background-attachment: fixed;
  min-height: 100vh;
}
::selection { background: var(--city-blue); color: var(--bg-deep); }
a { color: inherit; text-decoration: none; }

/* ---- Keyframes ---- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(108,171,221,0.4); } 50% { box-shadow: 0 0 0 8px rgba(108,171,221,0); } }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 20, 38, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-hair);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 2rem; max-width: 1400px; margin: 0 auto;
}
.nav-brand { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--fg1); display: flex; align-items: center; gap: 0.6rem; }
.nav-brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--city-blue);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 14px rgba(108, 171, 221, 0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--fg2); font-size: 0.92rem; font-weight: 500; transition: color var(--dur-fast); }
.nav-links a:hover { color: var(--city-blue-deep); }
.nav-links a.is-current { color: var(--city-blue-deep); position: relative; }
.nav-links a.is-current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--city-blue); border-radius: 2px;
  box-shadow: var(--glow-sm);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.95rem 1.75rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: all 0.2s var(--ease-out);
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad-primary-btn); color: var(--bg-deep);
  box-shadow: 0 0 0 1px rgba(108,171,221,0.3), var(--glow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(108,171,221,0.6), var(--glow-btn-hover);
  background: var(--grad-primary-btn-hover);
}
.btn-secondary {
  background: var(--city-blue-wash); color: var(--fg1);
  border-color: rgba(108,171,221,0.25);
}
.btn-secondary:hover {
  background: rgba(108,171,221,0.1); border-color: var(--city-blue);
  transform: translateY(-2px); box-shadow: 0 0 20px rgba(108,171,221,0.2);
}

/* ---- Hero ---- */
.hero {
  padding: 7rem 2rem 6rem; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-hair);
  background: var(--grad-hero);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('./assets/pitch-bg.svg') center center / cover no-repeat;
  opacity: 0.45; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.3) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.3) 100%);
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.hero-inner > * { animation: fade-up 0.8s ease-out both; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--city-blue-deep); margin-bottom: 1.6rem;
}
.hero-eyebrow::before {
  content: ''; width: 26px; height: 1.5px; background: var(--city-blue);
  box-shadow: 0 0 8px var(--city-blue-glow);
}
.hero h1 {
  font-size: var(--fs-hero); font-weight: 800; line-height: 1.02;
  letter-spacing: var(--ls-tight); color: var(--fg1); margin-bottom: 1.6rem;
}
.hero h1 .accent {
  background: var(--grad-shine); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(108,171,221,0.4));
  animation: ds-text-shine 5s linear infinite;
}
@keyframes ds-text-shine { 0%{background-position:0% center;} 100%{background-position:200% center;} }
.hero-lead { font-size: 1.2rem; color: var(--fg2); max-width: 560px; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; margin-top: 2.5rem;
  border-top: 1px solid rgba(108,171,221,0.15);
  max-width: 640px;
}
.hero-meta-item {
  font-size: 0.83rem; color: var(--fg3);
  display: flex; align-items: center; gap: 0.55rem;
}
.hero-meta-item strong { color: var(--fg1); font-weight: 700; }
.dot-indicator {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--city-blue);
  box-shadow: 0 0 12px var(--city-blue), 0 0 20px var(--city-blue-glow);
  animation: pulse-glow 2.2s ease-in-out infinite;
}

/* ---- Section blocks ---- */
.block { padding: 6rem 2rem; border-bottom: 1px solid var(--border-hair); }
.block-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--city-blue-deep); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1.5px; background: var(--city-blue);
  box-shadow: 0 0 6px var(--city-blue-glow);
}
h2.section-h2 {
  font-size: var(--fs-h2); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.024em; color: var(--fg1); margin-bottom: 1.8rem;
}
.section-lead { font-size: var(--fs-lead); color: var(--fg2); max-width: 780px; margin-bottom: 3rem; }

/* ---- Cards ---- */
.section-card {
  background: var(--bg-raised); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 1.9rem 1.7rem;
  transition: all 0.3s var(--ease-out);
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.section-card::after {
  content: '→'; position: absolute; top: 1.7rem; right: 1.7rem;
  color: var(--fg3); font-size: 1.2rem; transition: all 0.25s ease;
}
.section-card:hover {
  border-color: rgba(108,171,221,0.5); transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.section-card:hover::after { color: var(--city-blue-bright); transform: translateX(6px); }
.eyebrow-sm {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--city-blue-deep);
}
.section-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; }
.section-card p { font-size: 0.93rem; color: var(--fg2); }

.section-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

/* ---- Fact card ---- */
.fact {
  padding: 1.35rem 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--city-blue);
  border-radius: var(--r-sm);
  transition: all var(--dur-base) var(--ease-out);
}
.fact:hover { border-color: rgba(108,171,221,0.4); background: var(--bg-elevated); transform: translateX(3px); }
.fact-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--city-blue-deep); margin-bottom: 0.4rem;
}
.fact-value { font-size: 1rem; color: var(--fg1); font-weight: 500; line-height: 1.45; }

/* ---- Principle card ---- */
.principle {
  padding: 1.8rem 1.6rem; background: var(--bg-raised);
  border: 1px solid var(--border-soft); border-top: 3px solid var(--city-blue);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease-out);
}
.principle:hover {
  border-color: rgba(108,171,221,0.35); border-top-color: var(--city-blue-bright);
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
}
.principle h3 { font-size: 1.05rem; font-weight: 700; color: var(--fg1); margin-bottom: 0.6rem; }
.principle p { font-size: 0.93rem; color: var(--fg2); }

/* ---- Piece card ---- */
.piece-card {
  background: var(--bg-raised); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.3s var(--ease-out); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.piece-card:hover {
  border-color: rgba(108,171,221,0.5); transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,171,221,0.2), 0 0 60px rgba(108,171,221,0.08);
}
.piece-card-image { aspect-ratio: 16/10; background: var(--bg-pitch); overflow: hidden; }
.piece-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.piece-card:hover .piece-card-image img { transform: scale(1.03); }
.piece-card-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.piece-card-meta {
  display: flex; gap: 0.7rem; font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--city-blue-deep); margin-bottom: 0.9rem;
}
.piece-card-meta span:not(:last-child)::after { content: '·'; margin-left: 0.7rem; color: var(--border-mid); }
.piece-card h3 { font-size: 1.38rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--fg1); letter-spacing: -0.013em; }
.piece-card p { color: var(--fg2); font-size: 0.97rem; margin-bottom: 1.3rem; flex: 1; line-height: 1.58; }
.piece-card-cta { font-size: 0.88rem; font-weight: 600; color: var(--city-blue-deep); }

/* ---- Tabs ---- */
.piece-tabs {
  display: inline-flex; gap: 0.25rem; padding: 0.3rem;
  background: var(--bg-raised); border-radius: var(--r-md);
  border: 1px solid var(--border-soft); margin-bottom: 2.5rem;
}
.piece-tab {
  background: transparent; border: none; padding: 0.7rem 1.3rem;
  font-size: 0.9rem; font-weight: 600; color: var(--fg3);
  border-radius: var(--r-sm); cursor: pointer; font-family: inherit;
  transition: all 0.2s ease;
}
.piece-tab:hover { color: var(--fg1); }
.piece-tab.is-active {
  background: var(--grad-primary-btn); color: var(--bg-deep);
  box-shadow: 0 0 0 1px rgba(108,171,221,0.3), 0 4px 14px rgba(108,171,221,0.25);
}

/* ---- Data source ---- */
.data-source {
  padding: 1.6rem; background: var(--bg-raised);
  border: 1px solid var(--border-soft); border-radius: var(--r-md);
  transition: all 0.3s var(--ease-out); position: relative; overflow: hidden;
}
.data-source::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--city-blue); box-shadow: 0 0 12px var(--city-blue-glow);
  transition: height 0.3s ease;
}
.data-source:hover { background: var(--bg-elevated); transform: translateY(-2px); border-color: rgba(108,171,221,0.4); }
.data-source:hover::before { height: 100%; }
.data-source h4 { font-size: 1.02rem; font-weight: 700; color: var(--fg1); margin-bottom: 0.3rem; }
.data-source .best-for {
  display: block; font-size: 0.72rem; color: var(--city-blue-deep);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.7rem;
}
.data-source p { font-size: 0.9rem; color: var(--fg2); }

/* ======================================================================
   SPA — NAV DROPDOWNS
   ====================================================================== */
.nav-item { position: relative; }
.nav-item.has-menu > a { cursor: pointer; }
.caret-down {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s var(--ease-out);
  opacity: 0.7;
}
.nav-item.is-open .caret-down { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(17, 26, 46, 0.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(108,171,221,0.08);
  padding: 0.4rem;
  min-width: 240px;
  opacity: 0; visibility: hidden;
  transition: all 0.18s var(--ease-out);
  z-index: 200;
}
.nav-item.is-open .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: '';
  position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: rgba(17, 26, 46, 0.95);
  border-left: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft);
}
.nav-dropdown-item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-xs, 6px);
  font-size: 0.88rem;
  color: var(--fg2) !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: rgba(108,171,221,0.1);
  color: var(--fg1) !important;
  transform: translateX(3px);
}

/* ======================================================================
   SPA — PAGE FADE (between routes)
   ====================================================================== */
.page-fade {
  animation: page-fade-in 500ms var(--ease-out) both;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================================================
   SPA — PAGE HERO (shared by About/Philosophy/Analysis/Visuals/Data)
   ====================================================================== */
.page-hero {
  padding: 5.5rem 2rem 3.5rem;
  border-bottom: 1px solid var(--border-hair);
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('./assets/pitch-bg.svg') center center / cover no-repeat;
  opacity: 0.18; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 100%);
}
.page-hero-inner {
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 2;
}
.page-hero .eyebrow { margin-bottom: 1.3rem; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.022em; color: var(--fg1);
  margin-bottom: 1.1rem;
  max-width: 900px;
  animation: fade-up 0.8s var(--ease-out) both;
}
.page-hero .section-lead { max-width: 680px; margin-bottom: 0; }

/* ======================================================================
   ABOUT PAGE
   ====================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text p {
  font-size: 1.04rem;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 1.3rem;
  max-width: 640px;
  text-wrap: pretty;
}
.about-facts {
  display: flex; flex-direction: column; gap: 0.9rem;
}

/* ======================================================================
   PHILOSOPHY PAGE
   ====================================================================== */
.influences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 1rem;
}
.influence {
  padding: 2rem 1.9rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--city-blue);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease-out);
}
.influence:hover {
  border-color: rgba(108,171,221,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.influence-name {
  font-size: 1.4rem; font-weight: 700; color: var(--fg1);
  letter-spacing: -0.01em; margin-bottom: 0.3rem;
}
.influence-role {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--city-blue-deep);
  margin-bottom: 1.2rem;
}
.influence p {
  color: var(--fg2); font-size: 0.97rem; line-height: 1.65;
  text-wrap: pretty;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

/* ======================================================================
   ANALYSIS + VISUALS — Pieces & Gallery
   ====================================================================== */
.pieces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.gallery-item {
  background: var(--bg-pitch);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-soft);
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.gallery-item:hover {
  border-color: rgba(108,171,221,0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: contain; padding: 6px;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.02); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(13,17,23,0.92));
  font-size: 12px; color: #fff;
  font-weight: 500;
}

.library-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-hair);
}
.library-section-header h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--fg1);
  letter-spacing: -0.01em;
}
.library-section-header .meta {
  font-size: 0.75rem; font-weight: 600;
  color: var(--city-blue-deep);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ======================================================================
   LIGHTBOX
   ====================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5, 9, 18, 0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.2rem;
  padding: 3rem;
  cursor: zoom-out;
  animation: lightbox-in 0.25s var(--ease-out) both;
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-md);
  cursor: default;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  animation: fade-up 0.35s var(--ease-out) both;
}
.lightbox-caption {
  color: var(--fg2); font-size: 0.95rem; font-weight: 500;
  max-width: 700px; text-align: center;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  color: var(--fg1);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(108,171,221,0.15);
  border-color: var(--city-blue);
  transform: rotate(90deg);
}

/* ======================================================================
   DATA PAGE
   ====================================================================== */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* ======================================================================
   PAGE FOOTER CTA + card arrow
   ====================================================================== */
.page-footer-cta {
  display: flex; gap: 0.9rem; flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-hair);
}
.card-arrow {
  position: absolute; top: 1.7rem; right: 1.7rem;
  color: var(--fg3); font-size: 1.2rem;
  transition: all 0.25s ease;
}
.section-card:hover .card-arrow {
  color: var(--city-blue-bright);
  transform: translateX(6px);
}
.section-card::after { display: none; }

/* Footer links */
.footer-links {
  display: flex; flex-wrap: wrap; gap: 1.3rem;
  margin-top: 1.4rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--fg3);
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--city-blue-bright); }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .influences, .pieces-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer-inner { grid-template-columns: 1fr; }
  .site-footer-cta { text-align: left; }
  .site-footer-cta > div { justify-content: flex-start !important; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; font-size: 0.82rem; }
}

/* ======================================================================
   ARTICLE (Analysis piece detail)
   ====================================================================== */
.article { max-width: 860px; margin: 0 auto; }
.article-section { margin-bottom: 3.2rem; }
.article-h2 {
  font-size: 1.55rem; font-weight: 700; color: var(--fg1);
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 0 0 1.2rem; text-wrap: balance;
}
.article-h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--fg1);
  letter-spacing: -0.01em; line-height: 1.3;
  margin: 2rem 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--city-blue);
}
.article-figure {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-pitch); border: 1px solid var(--border-soft);
  margin: 1.6rem 0 1.6rem; cursor: zoom-in;
  transition: all 0.25s ease;
}
.article-figure:hover { border-color: rgba(108,171,221,0.45); }
.article-figure img { display: block; width: 100%; }
.article-caption {
  display: block;
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.85rem;
  color: var(--fg3);
  font-style: italic;
  line-height: 1.45;
  border-top: 1px solid var(--border-soft);
}
.article-p {
  font-size: 1.05rem; color: var(--fg2); line-height: 1.75;
  text-wrap: pretty; max-width: 68ch;
  margin-bottom: 1.1rem;
}
.article-p:last-child { margin-bottom: 0; }

.breadcrumb {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  color: var(--city-blue-deep); text-decoration: none;
  margin-bottom: 1.2rem; letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.breadcrumb:hover { color: var(--city-blue-bright); }

/* ======================================================================
   CONTACT
   ====================================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  max-width: 800px;
}
.contact-card {
  display: block; padding: 2rem 1.9rem;
  background: var(--bg-raised); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); text-decoration: none; color: inherit;
  transition: all 0.3s var(--ease-out);
}
.contact-card:hover {
  border-color: rgba(108,171,221,0.5); transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.contact-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--city-blue-deep);
  margin-bottom: 0.7rem;
}
.contact-value {
  font-size: 1.15rem; font-weight: 600; color: var(--fg1);
  margin-bottom: 1rem; letter-spacing: -0.01em;
}
.contact-cta {
  font-size: 0.85rem; font-weight: 600; color: var(--city-blue-deep);
}

.data-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.1rem;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}
