/* ==========================================================
   MAX PIERCE — AI SYSTEMS BUILDER
   Dark · Mint accent · Satoshi + DM Sans + JetBrains Mono
   ========================================================== */

/* ==========================================================
   0a. SELF-HOSTED SATOSHI FONT
   ========================================================== */
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}

/* ==========================================================
   0b. CUSTOM PROPERTIES
   ========================================================== */
:root {
  --bg:             #0c0c0c;
  --bg-card:        #141414;
  --bg-tint:        #111111;
  --bg-nav:         rgba(12, 12, 12, 0.88);
  --border:         #222222;
  --border-hover:   #333333;

  --text:           #eeeeee;
  --text-secondary: #999999;
  --text-muted:     #808080;

  --accent:         #34d399;
  --accent-hover:   #6ee7b7;
  --accent-glow:    rgba(52, 211, 153, 0.15);
  --accent-dim:     rgba(52, 211, 153, 0.06);
  --accent-border:  rgba(52, 211, 153, 0.2);

  --font-display:   'Satoshi', -apple-system, sans-serif;
  --font-body:      'DM Sans', -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);

  --section-gap:    clamp(100px, 14vh, 180px);
  --side-pad:       clamp(24px, 4vw, 80px);
  --text-max:       620px;
}

/* ==========================================================
   1. RESET & BASE
   ========================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--border-hover) var(--bg);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #0c0c0c;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-hover); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

section[id] { scroll-margin-top: 72px; }

.pad {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ==========================================================
   2. GRID BACKGROUND
   ========================================================== */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ==========================================================
   3. STICKY NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--side-pad);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav--scrolled {
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.nav__name:hover,
.nav__name.nav__link--active { color: var(--accent); }

.nav__links { display: flex; gap: 32px; }

.nav__link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link--active { color: var(--text); }

.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

/* ==========================================================
   4. LAYOUT
   ========================================================== */
.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.section__ordinal {
  position: absolute;
  top: var(--section-gap);
  right: var(--side-pad);
  font-family: var(--font-display);
  font-size: clamp(120px, 14vw, 220px);
  font-weight: 900;
  line-height: 0.8;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  transition: opacity 1.2s ease, transform 1.2s var(--ease-out);
  transform: scale(1.1);
}

.section__ordinal.reveal--visible { opacity: 0.04; transform: scale(1); }
.section--tint .section__ordinal.reveal--visible { opacity: 0.05; }
.section--tint { background: var(--bg-tint); }


/* ==========================================================
   5. BUTTONS
   ========================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--accent);
  color: #0c0c0c;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #0c0c0c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
}

.btn--ghost {
  border: 1px solid var(--border-hover);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================
   6. HERO
   ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--side-pad) 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero__orb--1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  top: 5%;
  left: 10%;
  animation: orbFloat1 25s ease-in-out infinite;
}

.hero__orb--2 {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 70%);
  top: 30%;
  right: 5%;
  animation: orbFloat2 30s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(80px, -40px); }
  50% { transform: translate(30px, 60px); }
  75% { transform: translate(-50px, 20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-60px, 50px); }
  50% { transform: translate(40px, -30px); }
  75% { transform: translate(20px, 70px); }
}

.hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.3s forwards;
}

.hero__label::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--accent);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  animation: scanGrow 0.8s var(--ease-out) 0.6s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes scanGrow { to { transform: scaleX(1); } }

.hero__name-clip {
  overflow: hidden;
  padding-bottom: 8px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text);
  animation: clipReveal 0.9s var(--ease-out) 0.15s both;
  text-shadow: 0 0 80px rgba(52, 211, 153, 0.06);
}

@keyframes clipReveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.hero__rule {
  height: 1px;
  background: linear-gradient(to right, var(--accent) 80px, var(--border) 80px);
  margin: 40px 0;
  margin-right: calc(-1 * var(--side-pad));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero__copy { max-width: var(--text-max); }

.hero__tagline {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.hero__right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__location {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================
   7. PRESS TICKER
   ========================================================== */
.press-ticker {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.press-ticker__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 20px 24px 20px var(--side-pad);
  flex-shrink: 0;
}

.press-ticker__scroll {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
}

.press-ticker__track {
  display: flex;
  width: max-content;
  animation: pressScroll 20s linear infinite;
  padding: 20px 0;
}

.press-ticker__track span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 0 24px;
}

@keyframes pressScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ==========================================================
   8. CAPABILITIES
   ========================================================== */
.capabilities__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.capabilities__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.capabilities__item p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================
   9. WORK — Horizontal Scroller
   ========================================================== */
.work__heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
  color: var(--text);
}

.cases {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
}

.case::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 2;
}

.case:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.case--expanded { border-color: var(--accent-border); }
.case--expanded::before { opacity: 1; }

/* Mouse-following glow */
.case__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--accent-dim),
    transparent 40%
  );
  pointer-events: none;
}

.case:hover .case__glow { opacity: 1; }

/* Header */
.case__header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 44px;
  text-align: left;
  gap: 32px;
  transition: background-color 0.25s ease;
  position: relative;
  z-index: 1;
}

.case__header:hover { background-color: rgba(255, 255, 255, 0.015); }

/* Metric callout — inline above title */
.case__metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.case__metric-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(52, 211, 153, 0.12);
}

.case__metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Preview */
.case__preview { flex: 1; min-width: 0; }

.case__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}

.case__preview-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.case__preview-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Toggle */
.case__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out), color 0.2s ease;
  margin-top: 6px;
}

.case--expanded .case__toggle {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Press logos */
.case__press {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.case__press-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.case__press-logos { display: flex; gap: 16px; }

.press-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Expandable body */
.case__body {
  height: 0;
  overflow: hidden;
  transition: height 0.5s var(--ease-out);
  position: relative;
  z-index: 1;
}

.case__body-inner {
  padding: 32px 44px 44px;
  border-top: 1px solid var(--border);
  max-width: 860px;
}

.case__body-inner p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case__body-inner p:last-child { margin-bottom: 0; }

.case__standout {
  color: var(--text) !important;
  font-weight: 600;
}

.case__meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case__meta span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ==========================================================
   10. TOOLS & STACK — Auto-scroll rows
   ========================================================== */
.stack__heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
  color: var(--text);
}

.stack__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.stack__category {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.stack__category:first-child { padding-top: 0; }
.stack__category:last-child { border-bottom: none; padding-bottom: 0; }

.stack__category-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stack__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack__pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: default;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.stack__pill:hover {
  border-color: var(--accent-border);
  color: var(--text);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.06);
}

/* ==========================================================
   11. ABOUT — Clean photo treatment
   ========================================================== */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__photo-frame {
  position: relative;
}

/* Ambient glow behind photo */
.about__photo-frame::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.07) 0%, transparent 70%);
  border-radius: 24px;
  z-index: 0;
  pointer-events: none;
}

.about__photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  display: block;
  border: 1px solid var(--border);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__cta { color: var(--text) !important; }

.about__cta a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about__cta a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ==========================================================
   12. CONTACT
   ========================================================== */
.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 40px;
  color: var(--text);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__link {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent);
  display: inline-block;
  width: fit-content;
  position: relative;
}

.contact__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-hover);
  transition: width 0.3s var(--ease-out);
}

.contact__link:hover::after { width: 100%; }

.contact__location {
  font-size: 17px;
  color: var(--text-secondary);
}

.contact__note {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========================================================
   13. FOOTER
   ========================================================== */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================
   14. SCROLL REVEAL & ANIMATIONS
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero reveals — CSS-only, no JS dependency (prevents LCP delay) */
.hero__reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.8s var(--ease-out) forwards;
}

.hero__reveal[data-delay="1"] { animation-delay: 0.35s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero__rule.hero__reveal {
  transform: none;
  transform-origin: left;
  scale: 0 1;
  animation: heroRuleReveal 0.8s var(--ease-out) 0.35s forwards;
}

@keyframes heroRuleReveal {
  to { opacity: 1; scale: 1 1; }
}

.contact__info .reveal[data-stagger="0"] { transition-delay: 0.1s; }
.contact__info .reveal[data-stagger="1"] { transition-delay: 0.2s; }
.contact__info .reveal[data-stagger="2"] { transition-delay: 0.3s; }
.contact__info .reveal[data-stagger="3"] { transition-delay: 0.4s; }


/* ==========================================================
   16. RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__right {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .capabilities__content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__layout {
    gap: 48px;
  }

}

@media (max-width: 768px) {
  .section__ordinal { display: none; }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__photo-frame { max-width: 280px; }

  .hero__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero__rule {
    margin-right: 0;
    background: var(--accent);
    width: 56px;
    height: 2px;
  }

  .nav__links { gap: 20px; }

  .press-ticker {
    flex-direction: column;
    align-items: flex-start;
  }

  .press-ticker__label {
    padding: 14px var(--side-pad) 0;
  }

  .press-ticker__scroll {
    width: 100%;
  }

  .case__header { padding: 28px 24px; }
  .case__metric-number { font-size: 32px; }
  .case__body-inner { padding: 24px; }
}

@media (max-width: 480px) {
  .hero__name { font-size: clamp(52px, 18vw, 80px); }

  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { text-align: center; }

  .contact__heading { font-size: clamp(44px, 16vw, 64px); }

  .nav__name { font-size: 14px; }
  .nav__link { font-size: 11px; }
  .nav__links { gap: 12px; }

  /* Hide less critical nav links on small screens */
  .nav__link[data-section="capabilities"],
  .nav__link[data-section="stack"] { display: none; }

  .case__header { padding: 24px 20px; }
  .case__body-inner { padding: 20px; }
  .case__title { font-size: 20px; }

  .press-ticker__track span {
    font-size: 15px;
    padding: 0 18px;
  }
}
