/* ============================================================
   Theo Thompson Co. — Shared site stylesheet
   Design tokens, layout system, and reusable components.
   See /website/design-brief.md for the full creative direction.
   ============================================================ */

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

:root {
  --black:    #0d0d0b;
  --white:    #f7f6f3;
  --gray-100: #1a1a17;
  --gray-200: #242420;
  --gray-300: #3a3a36;
  --gray-500: #7a7874;
  --gray-400: #c4c2be;
  --orange:   #c45c26;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; padding: 0 clamp(20px, 5vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,13,11,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-wordmark { font-family: var(--font-head); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; color: var(--white); }
.nav-wordmark span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  color: var(--white); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2); padding: 8px 20px;
  letter-spacing: -0.01em;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 60px 0 0 0; z-index: 99;
  background: var(--black); padding: 40px clamp(20px,5vw,72px);
  flex-direction: column; gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-head); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--white); text-decoration: none; }
.mobile-menu a:last-child { color: var(--orange); margin-top: 8px; }

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; text-decoration: none;
  padding: 14px 28px; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; white-space: nowrap;
  min-height: 44px;
}
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--orange); color: var(--white); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--white); }

:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 3px;
}

/* ── SECTION SHARED ── */
section { padding: clamp(64px, 10vw, 120px) clamp(20px,5vw,72px); }
.pad { padding: clamp(64px,10vw,120px) clamp(20px,5vw,72px); }
.section-eyebrow {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 48px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--orange);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.link-arrow {
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  color: var(--white); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s, color 0.2s;
}
.link-arrow:hover { gap: 14px; border-color: var(--orange); color: var(--orange); }

/* ── PAGE HEADER (About, Work, Contact, case studies) ── */
.page-header {
  padding-top: calc(60px + clamp(48px,8vw,96px));
  padding-bottom: clamp(48px,8vw,80px);
  padding-left: clamp(20px,5vw,72px);
  padding-right: clamp(20px,5vw,72px);
  border-bottom: 1px solid var(--gray-300);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px);
  align-items: end;
}
.page-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.page-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--orange); }
.page-title {
  font-family: var(--font-head); font-size: clamp(40px,6.5vw,88px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; color: var(--white);
}
.page-header-right { padding-bottom: 4px; }
.page-intro { font-size: clamp(15px,1.8vw,18px); color: var(--gray-500); line-height: 1.8; max-width: 560px; }
.page-intro strong { color: var(--white); font-weight: 500; }

/* ── HERO (Home) ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px clamp(20px,5vw,72px) 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-mark { margin-bottom: 48px; }
.mark-crossbar-g { transform-origin: 20px 38px; animation: drawX 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.mark-endcap-g  { opacity: 0; animation: fadeUp 0.4s ease both; animation-delay: 0.55s; }
.mark-stem-g    { transform-origin: 100px 52px; animation: drawY 0.6s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.68s; }
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.hero-headline {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(42px, 7vw, 96px);
  letter-spacing: -0.04em; line-height: 1.0;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-headline .word { display: inline-block; opacity: 0; animation: wordIn 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.headline-accent { color: var(--orange); position: relative; display: inline-block; }
.headline-accent::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--orange); opacity: 0.5;
  transform: scaleX(0); transform-origin: left;
  animation: underlineIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 1.5s;
}
@keyframes underlineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); color: var(--gray-500);
  max-width: 520px; line-height: 1.7; margin-bottom: 44px;
  opacity: 0; animation: fadeUp 0.6s ease both; animation-delay: 1.4s;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s ease both; animation-delay: 1.6s; }
.hero-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--gray-300); overflow: hidden; }
.hero-line::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 40%; height: 100%; background: var(--orange);
  animation: lineSweep 3s cubic-bezier(0.4,0,0.2,1) 1.5s infinite;
}
@keyframes lineSweep { 0% { left: -40%; } 100% { left: 140%; } }

/* ── INTRO STATEMENT ── */
.intro { border-top: 1px solid var(--gray-300); }
.intro-inner { max-width: 760px; }
.intro-text {
  font-family: var(--font-head); font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.25;
  color: var(--gray-500);
}
.intro-text em { font-style: normal; color: var(--orange); }
.intro-text strong { color: var(--white); font-weight: 500; font-style: normal; }

/* ── SERVICES (Home) ── */
.services { border-top: 1px solid var(--gray-300); background: var(--gray-100); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--gray-300); }
.service-item { padding: clamp(32px,4vw,52px) clamp(24px,3vw,44px); border-right: 1px solid var(--gray-300); position: relative; overflow: hidden; transition: background 0.3s; }
.service-item:last-child { border-right: none; }
.service-item:hover { background: var(--gray-200); }
.service-num { font-family: var(--font-head); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 28px; display: block; }
.service-title { font-family: var(--font-head); font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--white); margin-bottom: 16px; line-height: 1.15; }
.service-desc { font-size: 14px; color: var(--gray-500); line-height: 1.75; }
.service-detail { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-300); display: flex; flex-direction: column; gap: 8px; }
.service-detail span { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 8px; }
.service-detail span::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; }

/* ── PROCESS (Home) ── */
.process { border-top: 1px solid var(--gray-300); }
.process-lead { max-width: 640px; margin: 16px 0 32px; }
.process-grid { grid-template-columns: repeat(4, 1fr); }

/* ── NAME STRIP (Home) ── */
.name-strip { border-top: 1px solid var(--gray-300); }
.name-strip-inner { max-width: 960px; }
.name-strip-lead { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 36px; }
.name-strip-lead em { font-style: normal; color: var(--gray-400); }
.name-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; row-gap: 2px; }
.name-list-entry {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(16px, 2.2vw, 26px);
  letter-spacing: -0.025em; line-height: 1.35;
  color: var(--gray-400);
  transition: color 0.2s;
  white-space: nowrap;
}
.name-list-entry:hover { color: var(--white); }
.name-list-sep { font-family: var(--font-head); font-size: clamp(16px, 2.2vw, 26px); color: var(--gray-300); margin: 0 10px; line-height: 1.35; user-select: none; }
.name-list-entry.secondary { color: var(--gray-300); }
.name-list-entry.secondary:hover { color: var(--gray-400); }
.name-strip-note { font-size: 11px; color: var(--gray-500); margin-top: 36px; max-width: 480px; line-height: 1.7; }

/* ── WORK GRID (shared: Home selected-work + Work index cards) ── */
.selected-work { border-top: 1px solid var(--gray-300); background: var(--gray-100); }
.selected-work-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0; flex-wrap: wrap; gap: 16px; }
.work-items { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--gray-300); margin-top: 48px; }
.work-item {
  padding: clamp(28px,4vw,48px) clamp(20px,3vw,40px);
  border-right: 1px solid var(--gray-300);
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.work-item:last-child { border-right: none; }
.work-item:hover { background: var(--gray-200); }
.work-item-client { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.work-item-title { font-family: var(--font-head); font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--white); line-height: 1.2; }
.work-item-desc { font-size: 13px; color: var(--gray-500); line-height: 1.75; flex: 1; }
.work-item-hours { font-size: 11px; letter-spacing: 0.04em; color: var(--gray-300); margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--gray-300); }
.work-item-go { font-family: var(--font-head); font-size: 13px; color: var(--white); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.work-item-go span { transition: transform 0.2s; }
.work-item:hover .work-item-go span { transform: translateX(4px); }
.work-cta-wrap { margin-top: 40px; display: flex; justify-content: flex-end; }

/* Work index page: 2-col card grid for longer descriptions */
.work-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--gray-300); }
.work-index-card {
  padding: clamp(32px,4vw,48px); border-right: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300);
  text-decoration: none; display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s;
}
.work-index-card:hover { background: var(--gray-200); }
.work-index-card:nth-child(2n) { border-right: none; }
.work-index-num { font-family: var(--font-head); font-size: 11px; letter-spacing: 0.1em; color: var(--orange); }
.work-index-card-title { font-family: var(--font-head); font-size: clamp(19px,2vw,24px); font-weight: 600; letter-spacing: -0.02em; color: var(--white); line-height: 1.25; }
.work-index-card-cat { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.work-index-card-desc { font-size: 14px; color: var(--gray-500); line-height: 1.8; flex: 1; }
.work-index-card-cta { font-family: var(--font-head); font-size: 13px; color: var(--white); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.work-index-card-cta span { transition: transform 0.2s; }
.work-index-card:hover .work-index-card-cta span { transform: translateX(4px); }
.work-index-mention {
  border-top: 1px solid var(--gray-300); margin-top: 0; padding: clamp(40px,5vw,64px) 0 0;
}
.work-index-mention-title { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.04em; color: var(--gray-400); margin-bottom: 16px; }
.work-index-mention-body { font-size: 14px; color: var(--gray-500); line-height: 1.8; max-width: 700px; }

/* ── STAT STRIP (Work page — shared wrapper for Industries + Project Types) ── */
.stat-strip-row {
  border-bottom: 1px solid var(--gray-300);
  padding: clamp(24px,3vw,36px) clamp(20px,5vw,72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px,6vw,96px);
}
.stat-strip { padding: 0; }
.stat-strip-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); display: block; margin-bottom: 26px; }
.stat-strip-label b { color: var(--white); font-weight: 500; }

/* Industries: clustered unit squares — each square is one engagement, label attached to its own cluster */
.waffle-flow {
  --waffle-sq: clamp(9px, 0.62vw, 13px);
  display: flex; flex-wrap: wrap; gap: clamp(20px,2.4vw,38px) clamp(28px,3.2vw,48px);
  align-items: flex-end; padding-top: 6px;
}
.waffle-cluster {
  display: flex; flex-direction: column; gap: 9px;
  opacity: 0; transform: translateY(6px) scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.stat-strip.in .waffle-cluster { opacity: 1; transform: translateY(0) scale(1); }
.waffle-cluster:nth-child(1) { transition-delay: 0.02s; } .waffle-cluster:nth-child(2) { transition-delay: 0.06s; }
.waffle-cluster:nth-child(3) { transition-delay: 0.1s; } .waffle-cluster:nth-child(4) { transition-delay: 0.14s; }
.waffle-cluster:nth-child(5) { transition-delay: 0.18s; } .waffle-cluster:nth-child(6) { transition-delay: 0.22s; }
.waffle-cluster:nth-child(7) { transition-delay: 0.26s; } .waffle-cluster:nth-child(8) { transition-delay: 0.3s; }
.waffle-cluster:nth-child(9) { transition-delay: 0.34s; } .waffle-cluster:nth-child(10) { transition-delay: 0.38s; }
.waffle-cluster:nth-child(11) { transition-delay: 0.42s; } .waffle-cluster:nth-child(12) { transition-delay: 0.46s; }
.waffle-squares { display: grid; grid-template-columns: repeat(4, var(--waffle-sq)); gap: clamp(3px,0.25vw,5px); }
.waffle-squares.small { grid-template-columns: repeat(2, var(--waffle-sq)); }
.waffle-sq { width: var(--waffle-sq); height: var(--waffle-sq); background: var(--gray-400); }
.waffle-cluster.featured .waffle-sq { background: var(--orange); }
.waffle-label { font-size: clamp(11.5px, 0.85vw, 14px); color: var(--gray-500); line-height: 1.4; white-space: nowrap; }
.waffle-cluster.featured .waffle-label { color: var(--orange); }
.waffle-label b { color: var(--white); font-weight: 500; }
.waffle-cluster.featured .waffle-label b { color: var(--orange); }

/* Project types: radar chart — one shape for the whole capability profile */
.radar-wrap { display: flex; align-items: center; justify-content: center; padding: 6px 0 8px; min-height: 100%; }
.radar-wrap svg { width: 100%; max-width: min(100%, 520px); height: auto; }
.radar-data {
  transform-origin: 210px 200px; transform: scale(0.85); opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.stat-strip.in .radar-data { opacity: 1; transform: scale(1); }
.radar-label { font-family: var(--font-body); font-size: 11px; fill: var(--gray-400); }
.radar-num { font-family: var(--font-head); font-size: 13px; font-weight: 600; fill: var(--white); }

/* ── ABOUT TEASER (Home) ── */
.about { border-top: 1px solid var(--gray-300); background: var(--gray-100); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px); align-items: start; }
.about-stats { display: flex; flex-direction: column; gap: 0; margin-top: 48px; border-top: 1px solid var(--gray-300); }
.about-stat { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--gray-300); }
.about-stat-num { font-family: var(--font-head); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; color: var(--white); min-width: 80px; }
.about-stat-label { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.about-photo {
  aspect-ratio: 3/4; background: var(--gray-200);
  border: 1px solid var(--gray-300);
  overflow: hidden; position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; display: block; }
.about-body { font-size: 16px; color: var(--gray-500); line-height: 1.8; margin-bottom: 16px; }
.about-body strong { color: var(--white); font-weight: 500; }

/* ── ABOUT PAGE: photo col + body col ── */
.about-main { display: grid; grid-template-columns: 420px 1fr; gap: 0; border-bottom: 1px solid var(--gray-300); align-items: start; }
.about-photo-col { border-right: 1px solid var(--gray-300); padding: clamp(40px,5vw,72px); position: sticky; top: 60px; }
.photo-frame { aspect-ratio: 3/4; background: var(--gray-200); border: 1px solid var(--gray-300); overflow: hidden; position: relative; margin-bottom: 28px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; display: block; }
.photo-caption { font-size: 12px; color: var(--gray-500); line-height: 1.7; }
.photo-caption strong { color: var(--white); font-weight: 500; display: block; margin-bottom: 2px; }

.about-body-col { padding: clamp(40px,5vw,72px); }
.body-section { margin-bottom: 52px; padding-bottom: 52px; border-bottom: 1px solid var(--gray-300); }
.body-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.body-section-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; }
.body-section h3 { font-family: var(--font-head); font-size: clamp(20px,2.5vw,28px); font-weight: 600; letter-spacing: -0.025em; color: var(--white); margin-bottom: 20px; line-height: 1.2; }
.body-p { font-size: 15px; color: var(--gray-500); line-height: 1.85; margin-bottom: 16px; max-width: 620px; }
.body-p strong { color: var(--white); font-weight: 500; }
.body-p:last-child { margin-bottom: 0; }

/* Pull quote (Origin) */
.pull-quote { font-family: var(--font-head); font-size: clamp(19px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.5; color: var(--white); border-left: 2px solid var(--orange); padding-left: 24px; margin-bottom: 20px; }
.pull-quote:last-of-type { margin-bottom: 16px; }

/* Anchor projects list */
.anchor-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.anchor-item { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-300); text-decoration: none; transition: background 0.2s; }
.anchor-item:last-child { border-bottom: none; }
.anchor-item:hover { background: rgba(255,255,255,0.02); }
.anchor-num { font-family: var(--font-head); font-size: 12px; color: var(--orange); padding-top: 2px; }
.anchor-name { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.anchor-desc { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

/* Arc framing badges */
.arc-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--gray-300); margin: 8px 0 8px; }
.arc-item { padding: 20px 16px; border-right: 1px solid var(--gray-300); }
.arc-item:last-child { border-right: none; }
.arc-item-label { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.arc-item-desc { font-size: 11px; color: var(--gray-500); line-height: 1.6; }

/* ── CAREER TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--gray-300); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item.is-case-study { padding-left: 0; }
.timeline-year { font-family: var(--font-head); font-size: 12px; font-weight: 500; color: var(--gray-400); padding-top: 3px; line-height: 1.4; }
.timeline-content {}
.timeline-top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.timeline-role { font-family: var(--font-head); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--white); }
.timeline-badge { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--gray-300); color: var(--gray-500); }
.timeline-badge.case-study { color: var(--orange); border-color: var(--orange); }
.timeline-co { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.timeline-desc { font-size: 13px; color: var(--gray-500); line-height: 1.75; max-width: 620px; }
.timeline-cta { font-family: var(--font-head); font-size: 12px; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1px; }
.timeline-cta:hover { color: var(--orange); border-color: var(--orange); }
.timeline-continuity { font-size: 11px; color: var(--orange); margin-top: 8px; font-style: italic; }

/* Case-study timeline rows that are themselves links to the full case study (Work page) */
a.timeline-item.is-case-study {
  text-decoration: none; color: inherit; cursor: pointer;
  padding-left: 18px; border-left: 2px solid var(--orange);
  transition: background 0.2s, border-color 0.2s;
}
a.timeline-item.is-case-study:hover { background: rgba(196,92,38,0.07); }
a.timeline-item.is-case-study:hover .timeline-role { color: var(--orange); }
.timeline-cta-inline { font-family: var(--font-head); font-size: 12px; color: var(--white); display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.timeline-cta-inline span { transition: transform 0.2s; }
a.timeline-item.is-case-study:hover .timeline-cta-inline { color: var(--orange); }
a.timeline-item.is-case-study:hover .timeline-cta-inline span { transform: translateX(4px); }
.timeline-inflection {
  margin: 8px 0 22px; padding: 14px 18px; border-left: 2px solid var(--orange);
  background: rgba(196,92,38,0.06); font-size: 12px; color: var(--gray-400); line-height: 1.7;
}

/* ── VALUES (four pillars) ── */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--gray-300); }
.value-item { padding: 32px 28px; border-right: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.value-item:nth-child(2n) { border-right: none; }
.value-item:nth-last-child(-n+2) { border-bottom: none; }
.value-word { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); margin-bottom: 10px; }
.value-desc { font-size: 13px; color: var(--gray-500); line-height: 1.75; }
.value-quote { font-size: 12px; color: var(--gray-400); line-height: 1.7; font-style: italic; margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--orange); }

/* ── NOT-A-FIT / SUBDUED SECTIONS ── */
.subdued-section .body-section-label { color: var(--gray-500); }
.subdued-section .body-p { color: var(--gray-500); }

/* ── CASE STUDY PAGES ── */
.cs-cover { border-bottom: 1px solid var(--gray-300); padding-top: calc(60px + clamp(48px,8vw,96px)); padding-bottom: clamp(48px,8vw,80px); }
.cs-cover-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; }
.cs-cover-title { font-family: var(--font-head); font-size: clamp(32px,5.5vw,64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--white); max-width: 900px; margin-bottom: 36px; }
.cs-meta-strip { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--gray-300); margin-top: 12px; }
.cs-meta-item { padding: 20px clamp(16px,2vw,32px) 0 0; margin-right: clamp(16px,2vw,32px); border-right: 1px solid var(--gray-300); flex: 0 0 auto; }
.cs-meta-item:last-child { border-right: none; margin-right: 0; }
.cs-meta-num { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--white); letter-spacing: -0.02em; }
.cs-meta-label { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

.cs-body { max-width: 700px; }
.cs-section { margin-bottom: 56px; }
.cs-section:last-child { margin-bottom: 0; }
.cs-section-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.cs-section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--orange); }
.cs-p { font-size: 16px; color: var(--gray-400); line-height: 1.85; margin-bottom: 18px; }
.cs-p strong { color: var(--white); font-weight: 500; }
.cs-p:last-child { margin-bottom: 0; }
.cs-phase-label { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--white); margin: 28px 0 12px; }
.cs-phase-label:first-child { margin-top: 0; }
.cs-throughline { border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); padding: clamp(32px,4vw,48px) 0; }
.cs-throughline-quote { font-family: var(--font-head); font-size: clamp(20px,2.6vw,30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.45; color: var(--white); max-width: 720px; }
.cs-throughline-quote em { font-style: normal; color: var(--orange); }

.cs-more-work { border-top: 1px solid var(--gray-300); }
.cs-more-work-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--gray-300); margin-top: 32px; }
.cs-more-work-item { padding: clamp(24px,3vw,36px); border-right: 1px solid var(--gray-300); text-decoration: none; transition: background 0.2s; }
.cs-more-work-item:last-child { border-right: none; }
.cs-more-work-item:hover { background: var(--gray-200); }
.cs-more-work-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.cs-more-work-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--white); }

/* ── CONTACT PAGE ── */
.contact { border-top: 1px solid var(--gray-300); }
.contact-inner { max-width: 700px; }
.contact-headline { font-family: var(--font-head); font-size: clamp(36px, 6vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.0; color: var(--white); margin-bottom: 24px; }
.contact-sub { font-size: 16px; color: var(--gray-500); margin-bottom: 44px; line-height: 1.7; max-width: 520px; }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.contact-or { font-size: 12px; color: var(--gray-300); }
.contact-email { font-family: var(--font-head); font-size: 14px; color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.contact-email:hover { color: var(--white); }
.contact-email-big { font-family: var(--font-head); font-size: clamp(24px,3.2vw,34px); font-weight: 500; letter-spacing: -0.02em; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 4px; transition: color 0.2s, border-color 0.2s; }
.contact-email-big:hover { color: var(--orange); border-color: var(--orange); }
.contact-copied { font-size: 11px; color: var(--orange); margin-left: 12px; opacity: 0; transition: opacity 0.2s; }
.contact-copied.show { opacity: 1; }

.contact-form { border-top: 1px solid var(--gray-300); max-width: 560px; }
.contact-form-note { font-size: 13px; color: var(--gray-500); margin-bottom: 32px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 10px; }
.form-row input, .form-row textarea {
  width: 100%; background: transparent; border: 1px solid var(--gray-300); color: var(--white);
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px; min-height: 44px;
  transition: border-color 0.2s;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--gray-500); }
.contact-linkedin { font-size: 13px; color: var(--gray-500); margin-top: 28px; }
.contact-linkedin a { color: var(--gray-500); }
.contact-linkedin a:hover { color: var(--white); }

/* ── CTA (About / case study closers) ── */
.cta-section { border-top: 1px solid var(--gray-300); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-headline { font-family: var(--font-head); font-size: clamp(28px,4vw,48px); font-weight: 600; letter-spacing: -0.03em; color: var(--white); margin-bottom: 8px; }
.cta-sub { font-size: 14px; color: var(--gray-500); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--gray-300);
  padding: clamp(32px,5vw,56px) clamp(20px,5vw,72px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-right { font-size: 12px; color: var(--gray-500); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .waffle-flow { gap: 18px 24px; }
  .stat-strip-row { grid-template-columns: 1fr; gap: 0; }
  .stat-strip-row .stat-strip { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--gray-300); }
  .stat-strip-row .stat-strip:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
  .page-header { grid-template-columns: 1fr; }
  .about-main { grid-template-columns: 1fr; }
  .about-photo-col { border-right: none; border-bottom: 1px solid var(--gray-300); position: static; }
  .photo-frame { max-width: 320px; }
  .work-index-grid { grid-template-columns: 1fr; }
  .work-index-card { border-right: none !important; }
  .cs-more-work-grid { grid-template-columns: 1fr; }
  .cs-more-work-item { border-right: none; border-bottom: 1px solid var(--gray-300); }
  .cs-more-work-item:last-child { border-bottom: none; }
  .arc-strip { grid-template-columns: 1fr 1fr; }
  .arc-item:nth-child(2n) { border-right: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid .service-item:nth-child(2n) { border-right: none; }
  .industry-legend { grid-template-columns: 1fr 1fr; }
  .industry-legend-item:nth-child(4n) { border-right: 1px solid var(--gray-300); }
  .industry-legend-item:nth-child(2n) { border-right: none; }
  .industry-legend-item:nth-last-child(-n+4) { border-bottom: 1px solid var(--gray-300); }
  .industry-legend-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 768px) {
  .hero-bg {
    inset: auto; position: absolute; width: 520px; height: 325px;
    top: 50%; right: -140px; transform: translateY(-50%); opacity: 0.5;
  }
  .hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, rgba(13,13,11,1) 0%, rgba(13,13,11,0.95) 45%, rgba(13,13,11,0.4) 100%);
  }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--gray-300); }
  .service-item:last-child { border-bottom: none; }
  .process-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { display: none; }
  .work-items { grid-template-columns: 1fr; }
  .work-item { border-right: none; border-bottom: 1px solid var(--gray-300); }
  .work-item:last-child { border-bottom: none; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-right: none !important; }
  .value-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--gray-300); }
  .value-item:last-child { border-bottom: none; }
  .arc-strip { grid-template-columns: 1fr; }
  .arc-item { border-right: none !important; border-bottom: 1px solid var(--gray-300); }
  .arc-item:last-child { border-bottom: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .cs-meta-strip { gap: 20px 0; }
  .industry-legend { grid-template-columns: 1fr; }
  .industry-legend-item { border-right: none !important; border-bottom: 1px solid var(--gray-300) !important; }
  .industry-legend-item:last-child { border-bottom: none !important; }
}
