/* ============================================
   JOEL — dark editorial homepage
   ============================================ */

:root {
  /* Cafe Racer palette */
  --bg: #0B0B0C;            /* neutral — engine black */
  --bg-2: #141415;          /* surface */
  --bg-3: #1B1B1C;
  --fg: #E8E4DB;            /* primary — tank-stripe cream */
  --fg-2: #9B968C;          /* secondary — chrome silver */
  --fg-3: #6B6760;          /* dimmed secondary */
  --line: #2A2A2C;
  --line-strong: #3A3A3C;
  --accent: #C42E2E;        /* tertiary — reserved for ONE action */
  --r-sm: 0px;
  --r-md: 2px;
  --r-lg: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* clear the fixed nav on anchor jumps */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--accent);
  color: var(--fg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Scroll-reveal: elements with [data-reveal] rise in the first time they
   enter the viewport. Stagger siblings via --d. Implemented as an animation
   (not a transition) so it never fights hover transitions on the same element. */
[data-reveal] { opacity: 0; }
[data-reveal][data-revealed] {
  opacity: 1;
  animation: revealRise 0.8s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: var(--d, 0ms);
}
@keyframes revealRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal][data-revealed] { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; }
  .nav-dot, .hero-avail-dot { animation: none; }
  .hero-display { animation: none; }
}

/* Optional grain overlay */
.root {
  position: relative;
  overflow-x: hidden;
}
.root[data-grain="on"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.14;
  mix-blend-mode: overlay;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 32px;
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(11,11,12,0.97) 0%, rgba(11,11,12,0.9) 28%, rgba(11,11,12,0.66) 52%, rgba(11,11,12,0.3) 78%, rgba(11,11,12,0) 100%);
  padding-bottom: 44px;
  margin-bottom: -24px;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
}
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--fg);
  box-shadow: 0 0 8px rgba(232, 228, 219, 0.4);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
.nav-mark-meta { color: var(--fg-3); margin-left: 6px; font-weight: 400; }

/* --- Squared "tubelight" tab group --- */
.nav-tube {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 6px;
  background: rgba(20, 20, 21, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);          /* squared, not pill */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.nav-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 10px 18px;
  color: var(--fg-2);
  border-radius: var(--r-sm);          /* squared */
  transition: color 0.22s ease;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--fg); }
.nav-tab.is-active { color: var(--fg); }

.nav-num {
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  color: var(--fg-3);
  transform: translateY(-2px);
  letter-spacing: 0.1em;
}

/* Sliding fill behind the active tab */
.nav-tube-fill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  z-index: 0;
  background: rgba(232, 228, 219, 0.07);
  border-radius: var(--r-sm);
  transition: left 0.32s cubic-bezier(.6,.05,.2,1), width 0.32s cubic-bezier(.6,.05,.2,1);
}

/* The "tube light" sitting on the top edge of the active tab */
.nav-tube-lamp {
  position: absolute;
  top: -1px;
  z-index: 2;
  width: 30px;
  height: 3px;
  transform: translateX(-50%);
  transition: left 0.32s cubic-bezier(.6,.05,.2,1);
  pointer-events: none;
}
.nav-tube-bar {
  position: absolute;
  inset: 0;
  border-radius: 0 0 1px 1px;          /* squared bar */
}
.nav-tube-glow {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 46px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: var(--r-md);
  opacity: 0.4;
  filter: blur(9px);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--fg);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.nav-cta-arrow { display: inline-block; transition: transform 0.25s; }
.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 36px 48px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* Headshot layer */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hero-photo img {
  position: absolute;
  height: 88%;
  width: auto;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.05) brightness(1.02);
  /* Mask the image so its left edge AND top edge dissolve into the page */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 18%, rgba(0,0,0,0.85) 38%, #000 52%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 6%, rgba(0,0,0,0.85) 14%, #000 22%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 18%, rgba(0,0,0,0.85) 38%, #000 52%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 6%, rgba(0,0,0,0.85) 14%, #000 22%);
  mask-composite: intersect;
  /* The headshot's own background is near-black; lighten blending so it merges with #0B0B0C */
  mix-blend-mode: lighten;
}
.hero-photo-right img { right: -8%; bottom: 0; }
.hero-photo-center img {
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  height: 100%;
}
.hero-photo-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0; top: 0;
}
.hero-photo-fade {
  position: absolute;
  inset: 0;
  background:
    /* Soft left ramp to ensure a smooth transition */
    linear-gradient(to right, var(--bg) 0%, rgba(11,11,12,0.7) 20%, rgba(11,11,12,0.2) 40%, transparent 55%, transparent 80%, rgba(11,11,12,0.3) 100%),
    /* Bottom fade so the shirt dissolves into the page */
    linear-gradient(to top, var(--bg) 0%, rgba(11,11,12,0.55) 14%, transparent 38%),
    /* Top fade for the head crown */
    linear-gradient(to bottom, rgba(11,11,12,0.5) 0%, transparent 22%);
}

/* On wide monitors, pull the headshot inward toward center-right
   so it doesn't drift to the far edge of large screens. */
@media (min-width: 1500px) {
  .hero-photo-right img { right: 2%; }
}
@media (min-width: 1900px) {
  .hero-photo-right img { right: 7%; }
}

/* Hero eyebrow row — small label below display text */
.hero-eyebrow-row {
  position: relative;
  z-index: 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.hero-eyebrow-bar {
  width: 32px; height: 2px;
  background: var(--fg-2);
  display: inline-block;
}
.hero-eyebrow-sep { color: var(--fg-3); margin: 0 4px; }
.hero-eyebrow-name { color: var(--fg); font-weight: 600; }

/* Availability badge in the eyebrow row */
.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--fg);
  font-size: 0.74rem;
  background: rgba(20, 20, 21, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-avail-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #59B86B;
  box-shadow: 0 0 8px rgba(89, 184, 107, 0.6);
  animation: pulse 2.4s infinite;
}

/* Hero display — the big tagline */
.hero-display {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  max-width: 13ch;
  margin-top: 140px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7.4vw, 124px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--fg);
  text-wrap: balance;
  align-self: start;
  text-transform: uppercase;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  animation: heroRise 0.9s cubic-bezier(.2,.7,.2,1) backwards;
}
.hero-display-accent {
  color: var(--accent);
}
@keyframes heroRise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Hero bottom row */
.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 8px;
}

.tagline-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.bar { width: 28px; height: 2px; display: inline-block; background: var(--fg-2); }

.tagline {
  margin: 18px 0 28px;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: var(--fg);
  text-wrap: balance;
  max-width: 28ch;
  text-transform: none;
}

.hero-actions { display: flex; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-family: "Oswald", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.2s, color 0.2s, border-color 0.2s, filter 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.18s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary:hover::after { background: rgba(255,255,255,0.06); }
.btn-arrow { transition: transform 0.25s; display: inline-block; }
.btn-primary:hover .btn-arrow { transform: translate(2px, -2px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--fg); }

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: end;
}
.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--fg-3));
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 56px;
  padding: 22px 0;
  padding-right: 56px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}
.marquee-item { display: inline-flex; align-items: center; gap: 28px; }
.marquee-slash {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  color: var(--fg-2);
  font-size: 1.4rem;
  display: inline-block;
  transform: skewX(-15deg);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.section-head {
  padding: 120px 36px 56px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
}
.section-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-wrap: balance;
  max-width: 18ch;
  text-transform: uppercase;
}
.section-title em {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================
   LOGOS
   ============================================ */
.logos {
  padding: 80px 36px 40px;
}
.logos-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.logos-meta { color: var(--fg-2); }
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.logo {
  padding: 36px 12px;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  border-right: 1px solid var(--line);
  transition: color 0.2s, filter 0.2s;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
}
.logo:last-child { border-right: none; }
.logo:hover { color: var(--fg); }

/* Image logos: monochrome at rest for a uniform strip, natural color on hover */
.logo-img { padding: 24px 16px; color: var(--fg); }
.logo-img img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(1) contrast(1.05);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.logo-img svg {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: 0.62;
  filter: grayscale(1) contrast(1.05);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.logo-img:hover img,
.logo-img:hover svg {
  opacity: 1;
  filter: none;
}
.logo-serif { font-family: "Inter", Georgia, serif; font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0; font-size: 22px; }
.logo-wide { font-family: "Oswald", sans-serif; font-weight: 700; letter-spacing: 0.14em; font-size: 18px; }
.logo-mono { font-family: "Inter", monospace; font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; }
.logo-lowercase { font-family: "Inter", sans-serif; font-weight: 600; text-transform: lowercase; letter-spacing: 0; font-size: 22px; }

/* ============================================
   SERVICES
   ============================================ */
.services { padding-bottom: 80px; }
.service-list {
  border-top: 1px solid var(--line);
  margin: 0 36px;
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 40px;
  padding: 36px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.25s, padding 0.25s;
  position: relative;
}
.service-row:hover { background: var(--bg-2); padding-left: 24px; padding-right: 24px; }
.service-num {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--fg-3);
  letter-spacing: 0.14em;
}
.service-title {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.service-desc {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 60ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s, opacity 0.3s, margin 0.4s;
}
.service-tags {
  display: flex; gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s, opacity 0.3s;
}
.service-row.is-open .service-desc { max-height: 100px; opacity: 1; margin-bottom: 16px; }
.service-row.is-open .service-tags { max-height: 60px; opacity: 1; }
.tag {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--fg-2);
}
.service-arrow {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 32px;
  text-align: right;
  align-self: center;
  color: var(--fg-2);
  transition: color 0.25s;
}

/* ============================================
   WORK
   ============================================ */
.work { padding-bottom: 80px; }
.work-table { margin: 0 36px; border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 100px 1.4fr 1.4fr 2fr;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 16px;
  color: var(--fg);
  transition: background 0.2s;
}
.work-head {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.work-row:not(.work-head):hover {
  background: var(--bg-2);
}
.work-year { font-family: "Oswald", sans-serif; font-weight: 500; color: var(--fg-2); font-size: 0.86rem; letter-spacing: 0.1em; }
.work-client { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 0.015em; text-transform: uppercase; }
.work-role { color: var(--fg-2); font-style: italic; font-weight: 300; }
.work-result { color: var(--fg); font-weight: 500; }

/* ============================================
   STATS
   ============================================ */
.stats {
  margin: 0 36px 100px;
  border-top: 1px solid var(--line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 56px 32px 56px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat + .stat { padding-left: 32px; }
.stat-v {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat-suffix { color: var(--accent); }
.stat-l {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 24ch;
}

/* ============================================
   FOOTER
   ============================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 80px 36px 36px;
  background: var(--bg);
}
.foot-mark { padding: 20px 0 60px; }
.foot-word-link { display: inline-block; }
.foot-word-link:hover .foot-word span { color: var(--accent); }
.foot-word span { transition: color 0.3s ease; }
.foot-word-link:hover .foot-word span:nth-child(2) { transition-delay: 0.03s; }
.foot-word-link:hover .foot-word span:nth-child(3) { transition-delay: 0.06s; }
.foot-word-link:hover .foot-word span:nth-child(4) { transition-delay: 0.09s; }
.foot-word-link:hover .foot-word span:nth-child(5) { transition-delay: 0.12s; }
.foot-word-link:hover .foot-word span:nth-child(7) { transition-delay: 0.15s; }
.foot-word-link:hover .foot-word span:nth-child(8) { transition-delay: 0.18s; }
.foot-word-link:hover .foot-word span:nth-child(9) { transition-delay: 0.21s; }
.foot-word-link:hover .foot-word span:nth-child(10) { transition-delay: 0.24s; }
.foot-word {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 14vw, 240px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-transform: uppercase;
}
.foot-word .foot-spacer { width: 0.5em; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-link {
  font-size: 22px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  transition: color 0.2s;
  text-transform: uppercase;
}
.foot-link:hover { color: var(--accent); }
.foot-sub {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--fg-2);
  letter-spacing: 0;
  text-transform: none;
}
.foot-static { color: var(--fg-2); }

.foot-base {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.foot-top { transition: color 0.2s; }
.foot-top:hover { color: var(--fg); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding: 14px 18px; padding-bottom: 20px; }
  .nav-mark { grid-column: 1; grid-row: 1; }
  .nav-cta { grid-column: 2; grid-row: 1; padding: 10px 14px; font-size: 0.72rem; }
  .nav-links { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 22px; margin-top: 12px; font-size: 0.72rem; }
  .nav-tube { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; margin-top: 12px; gap: 1px; padding: 5px; overflow-x: auto; }
  .nav-tab { padding: 8px 12px; }

  .hero { padding: 0 18px 44px; min-height: auto; display: flex; flex-direction: column; }
  .hero-meta { padding-top: 70px; flex-wrap: wrap; gap: 16px; font-size: 0.7rem; }
  .hero-display { order: 1; margin-top: 150px; max-width: none; font-size: clamp(40px, 12vw, 88px); }
  .hero-eyebrow-row { order: 2; margin-top: 18px; }
  .wordmark { font-size: 32vw; }
  .hero-bottom { order: 4; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; padding-top: 0; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; padding: 14px 18px; }
  .scroll-hint { display: none; }

  /* Headshot — in normal flow on mobile so it never overlaps text or leaves a gap */
  .hero-photo {
    order: 3;
    position: relative;
    inset: auto;
    width: calc(100% + 36px);
    height: 52vh;
    margin: 26px -18px 0;
    transform: none !important;
  }
  .hero-photo img,
  .hero-photo-right img,
  .hero-photo-center img,
  .hero-photo-full img {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 1;
    transform: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 80%, transparent 100%);
  }
  .hero-photo-fade { display: none; }

  .section-head { grid-template-columns: 1fr; padding: 64px 18px 32px; gap: 16px; }
  .section-title { font-size: clamp(28px, 7vw, 44px); }
  /* The inline nowrap spans are sized for desktop — let titles wrap on phones */
  .section-title span, .section-title em { white-space: normal !important; }

  .logos { padding: 48px 18px 24px; }
  .logos-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .logos-row { grid-template-columns: repeat(2, 1fr); }
  .logo { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 96px; }
  .logo:nth-child(2n) { border-right: none; }
  .logo-img img, .logo-img svg { max-height: 44px; }

  /* Services — stack content; tags wrap */
  .service-list { margin: 0 18px; }
  .service-row { grid-template-columns: 36px 1fr 28px; gap: 12px; padding: 22px 0; }
  .service-row:hover { padding-left: 0; padding-right: 0; }
  .service-num { font-size: 14px; }
  .service-title { font-size: 22px; }
  .service-desc { font-size: 14px; }
  .service-tags { flex-wrap: wrap; gap: 6px; }
  .tag { font-size: 10px; padding: 4px 8px; }

  /* Work — stack each row into a card; show ALL content */
  .work { padding-bottom: 48px; }
  .work-table { margin: 0 18px; }
  .work-head { display: none; }
  .work-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
    align-items: start;
  }
  .work-row:not(.work-head):hover { padding-left: 0; }
  .work-year { font-size: 12px; color: var(--fg-3); }
  .work-client { font-size: 18px; font-weight: 600; }
  .work-role { font-size: 13px; color: var(--fg-2); }
  .work-result { font-size: 13px; color: var(--fg-2); line-height: 1.45; }

  /* Stats — two-up grid */
  .stats { margin: 0 18px 56px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 16px 28px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  /* Availability badge wraps below the eyebrow */
  .hero-eyebrow-row { flex-wrap: wrap; row-gap: 12px; }
  .hero-avail { margin-left: 0; }

  /* Marquee — bigger text, snug to the top/bottom rules */
  .marquee { padding: 0; }
  .marquee-track { padding: 13px 0; font-size: 22px; gap: 40px; }
  .marquee-item { font-size: 22px; padding: 0 14px; }
  .marquee-slash { font-size: 18px; }

  /* Footer */
  .foot { padding: 56px 18px 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-mark { padding: 12px 0 36px; }
  /* Keep LET'S TALK on one line — the 80px floor wraps the K on narrow screens */
  .foot-word { font-size: clamp(48px, 15vw, 120px); }

  /* Tweaks panel — keep out of the way on small screens */
  .tweaks-panel { display: none !important; }
}

@media (max-width: 480px) {
  .hero-display { margin-top: 158px; font-size: clamp(36px, 13vw, 72px); }
  .logos-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .work-client { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .services .service-list, .work .work-table, .foot { margin: 0; padding-left: 20px; padding-right: 20px; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding: 200px 36px 0;
}
.about-hero .eyebrow { display: block; margin-bottom: 28px; }
.about-display {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg);
  max-width: 16ch;
  text-wrap: balance;
  animation: heroRise 0.9s cubic-bezier(.2,.7,.2,1) backwards;
}
.about-display em {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0;
}
.about-sub {
  margin: 28px 0 0;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

.about-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 200px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 52px;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
}
.about-prose {
  max-width: 60ch;
}
.about-prose p {
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.68;
  color: var(--fg-2);
}
.about-prose p strong {
  color: var(--fg);
  font-weight: 600;
}
.about-lead {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.15 !important;
  letter-spacing: 0.01em;
  color: var(--fg) !important;
  text-transform: none;
  margin-bottom: 32px !important;
}

.about-stats {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
a.about-stat:hover { border-color: var(--line-strong); }
a.about-stat:hover .about-stat-v { color: var(--accent); }
a.about-stat:hover .about-stat-cta { color: var(--fg); }
.about-stat-cta {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color 0.25s ease;
}
.about-stat-v { transition: color 0.25s ease; }
.about-stat-v {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg);
}
.about-stat-l {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 26ch;
}

@media (max-width: 900px) {
  .about-body {
    padding: 128px 20px 24px;
  }
  .about-photo {
    max-width: 300px;
    margin: 0 auto 40px;
  }
  .about-prose p { font-size: 17px; }
  .about-stats { padding: 0 20px; }
  .about-stat { padding: 40px 0; }
}
