/* ============================================================
   TTC SITE V2 — DESIGN SYSTEM
   Palette: L.A.B. Golf deck blue + dark editorial
   Fonts: JetBrains Mono (display) + Inter (body)
   Target: Quad 100 Lighthouse
   ============================================================ */

/* --- FONTS --- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

/* --- CUSTOM PROPERTIES --- */
:root {
  --blue: #3b82f6;
  --blue-bright: #5b9af8;
  --blue-dark: #2563eb;
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-surface: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #999999;
  --text-muted: #808080;
  --border: #222222;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 12vh, 9rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.85rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* --- LAYOUT --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

/* --- TYPOGRAPHY --- */
.heading-xl {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 4vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-lg {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.heading-md {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.heading-sm {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.body-lg {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.section-number {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: block;
  margin-bottom: 2rem;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 56px;
  height: auto;
}

.nav-logo span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links .nav-dev {
  color: var(--blue-bright);
  border: 1px solid var(--blue);
  padding: 0.375rem 0.875rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-dev:hover,
.nav-links .nav-dev.active {
  background: var(--blue);
  color: var(--text);
}

.nav-links .nav-dev::after {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-overlay a:hover { color: var(--text); }

.nav-overlay .nav-dev {
  color: var(--blue-bright);
  border: 1px solid var(--blue);
  padding: 0.5rem 1.5rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.hero-tagline {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.75rem, 2rem + 5.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 2rem;
}

.hero-tagline .accent {
  color: var(--blue);
}

.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 3rem;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: auto;
  padding-bottom: 3rem;
  cursor: pointer;
  transition: color 0.2s;
}

.hero-scroll:hover { color: var(--text); }

.hero-scroll .arrow {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  position: relative;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- MARQUEE --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.5rem 0;
  background: #f2f2f2;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-inner span {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1rem, 0.75rem + 1.5vw, 1.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
  padding: 0 2rem;
}

.marquee-inner .accent { color: var(--blue); }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- PHILOSOPHY SECTION --- */
.philosophy {
  background: var(--bg);
}


.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.philosophy-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.philosophy-media video,
.philosophy-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-text blockquote {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2rem);
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--blue);
}

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

/* --- SERVICES SECTION --- */
#services {
  background: var(--blue);
}

#services .section-number {
  color: rgba(255,255,255,0.4);
}

#services .heading-lg {
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.15);
  margin-top: 3rem;
}

.service-card {
  background: var(--blue);
  padding: clamp(2rem, 4vw, 3.5rem);
  transition: background 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.08);
}

.service-card .service-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.service-card p {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  font-size: 0.9375rem;
}

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

/* --- WORK SECTION --- */
#work {
  background: #f2f2f2;
}

#work .section-number {
  color: var(--blue);
}

#work .heading-lg {
  color: #0a0a0a;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  display: block;
}

.work-card img,
.work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
}

.work-card:hover img,
.work-card:hover video {
  transform: scale(1.04);
  filter: brightness(0.6);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-overlay h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.work-card-overlay .services-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Static info always visible on mobile */
.work-card-info {
  display: none;
}

@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card-overlay { opacity: 1; }
}

.work-cta {
  text-align: center;
  margin-top: 3rem;
}

#work .btn {
  border-color: #333;
  color: #0a0a0a;
}

#work .btn:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.btn:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--text);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
}

/* --- CONTACT SECTION --- */
.contact-section {
  background: var(--blue);
}

.contact-section .section-number { color: rgba(255,255,255,0.4); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-heading {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.contact-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.contact-info p {
  font-size: 0.9375rem;
  line-height: 2;
  opacity: 0.8;
}

.contact-info a:hover { opacity: 1; text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form .btn-submit {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  background: var(--text);
  color: var(--blue);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}

.contact-form .btn-submit:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

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

/* --- FOOTER --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand img { width: 44px; }

.footer-brand span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* --- SCROLL-DRIVEN ANIMATIONS (CSS-only reveals) --- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 20%;
  }

  .reveal-left {
    animation: reveal-left linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 20%;
  }

  .reveal-right {
    animation: reveal-right linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 20%;
  }

  .reveal-scale {
    animation: reveal-scale linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
}

/* Fallback: elements visible by default when scroll-driven not supported */
@supports not (animation-timeline: view()) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-scale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- ANIMATED GRADIENT (@property) --- */
@property --angle {
  syntax: '<angle>';
  initial-value: 135deg;
  inherits: false;
}

.gradient-bg {
  background: linear-gradient(var(--angle), var(--blue-dark), var(--blue), var(--blue-bright));
  animation: gradient-rotate 20s linear infinite;
}

@keyframes gradient-rotate {
  to { --angle: 495deg; }
}

/* --- DIVIDER --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--blue);
  margin: 2rem 0;
}

/* --- PAGE HEADER (for subpages) --- */
.page-header {
  padding: clamp(8rem, 15vh, 12rem) 0 clamp(3rem, 6vh, 5rem);
  background: var(--bg);
}

.page-header .heading-xl {
  margin-bottom: 1rem;
}

.page-header .sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1875rem);
  max-width: 600px;
}

/* --- CASE STUDY PAGE --- */
.case-hero {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
}

.case-hero img,
.case-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.case-overview .meta { font-size: 0.875rem; color: var(--text-muted); line-height: 2; }
.case-overview .meta strong { color: var(--text-secondary); }

.case-section { padding: var(--section-pad) 0; }

.case-section h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.case-section p {
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 2rem;
}

.case-media {
  margin: 2rem 0;
  border-radius: 2px;
  overflow: hidden;
}

.case-media img { width: 100%; }

.case-next {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.case-next a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.3s;
}

.case-next a:hover { color: var(--blue); }

.case-next .label { margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .case-overview { grid-template-columns: 1fr; }
}

/* --- DEV SECTION --- */
.dev-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.score-table th {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.score-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.score-table .site-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.875rem;
}

.score { font-family: var(--mono); font-weight: 700; }
.score.perfect { color: #22c55e; }
.score.good { color: #eab308; }
.score.bad { color: #ef4444; }

.score-row-divider td {
  padding: 0.25rem 1rem;
  border-bottom: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-table a.site-name {
  color: var(--text);
  transition: color 0.2s;
}

.score-table a.site-name:hover {
  color: var(--blue);
}

.score-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
}

.score-table-wrap .score-table {
  margin-top: 0;
  min-width: 700px;
}

/* --- TECH GRID --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}

.tech-card {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: background 0.3s;
}

.tech-card:hover {
  background: var(--bg-elevated);
}

.tech-heading {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

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

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

/* --- DEV CTA --- */
.dev-cta {
  text-align: center;
}

.btn-cta {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-cta:hover {
  border-color: #fff;
  background: #fff;
  color: var(--blue);
}

/* --- VIDEO EMBEDS --- */
.video-player {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 0;
  background: #000;
}

.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.4s;
}

.video-player:hover img {
  transform: scale(1.03);
  filter: brightness(0.7);
}

.video-player .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
  pointer-events: none;
}

.video-player:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(59, 130, 246, 1);
}

.video-player .play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 4px;
}

.video-player.active {
  cursor: default;
}

.video-player.active img,
.video-player.active .play-btn {
  display: none;
}

.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-bg {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  border-radius: 2px;
  overflow: hidden;
}

.video-bg iframe {
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  border: 0;
}

/* --- SECTION VARIANTS (break up dark) --- */
.section-light {
  background: #f2f2f2;
}

.section-light .section-number {
  color: var(--blue);
}

.section-light .heading-lg,
.section-light .heading-md,
.section-light h2,
.section-light h3 {
  color: #0a0a0a;
}

.section-light .body-lg,
.section-light p,
.section-light blockquote {
  color: #333;
}

.section-light .label {
  color: #666;
}

.section-light .divider {
  background: var(--blue);
}

.section-light .btn {
  border-color: #333;
  color: #0a0a0a;
}

.section-light .btn:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.section-light .philosophy-text blockquote {
  color: #1a1a1a;
}

/* Case study light sections */
.section-light .meta,
.section-light .meta p {
  color: #555;
}

.section-light .meta strong {
  color: #222;
}

/* Tech grid on blue */
.section-blue {
  background: var(--blue);
}

.section-blue .section-number {
  color: rgba(255,255,255,0.4);
}

.section-blue .heading-lg {
  color: var(--text);
}

.section-blue .tech-grid {
  background: rgba(255,255,255,0.15);
}

.section-blue .tech-card {
  background: rgba(0,0,0,0.2);
}

.section-blue .tech-card:hover {
  background: rgba(0,0,0,0.3);
}

.section-blue .tech-heading {
  color: rgba(255,255,255,0.7);
}

.section-blue .tech-card p {
  color: rgba(255,255,255,0.8);
}

/* --- UTILITY --- */
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- PRINT --- */
@media print {
  .nav, .nav-overlay, .hero-scroll, .marquee { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 2rem 0; }
}
