/* Megha Upadhyay portfolio — cinematic, static, deploy-anywhere */
:root {
  color-scheme: dark;
  --bg: #10060f;
  --bg-deep: #07040a;
  --ink: #fff7ea;
  --muted: #cfbdc8;
  --soft: #8c7a87;
  --panel: rgba(255, 247, 234, 0.08);
  --panel-strong: rgba(255, 247, 234, 0.13);
  --stroke: rgba(255, 247, 234, 0.18);
  --pink: #ff3d8b;
  --orange: #ff9f1c;
  --yellow: #ffe66d;
  --cyan: #3af7ff;
  --violet: #8f6cff;
  --green: #70ffad;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 54px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Black", Impact, Haettenschweiler, "Inter Tight", var(--font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 61, 139, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(58, 247, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 54% 72%, rgba(143, 108, 255, 0.18), transparent 32rem),
    linear-gradient(135deg, #10060f 0%, #160a1a 46%, #08030a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 4, 10, 0.92), transparent);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  color: #180510;
  background: var(--yellow);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  color: #130715;
  background: var(--yellow);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: var(--scroll, 0%);
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
  box-shadow: 0 0 24px rgba(255, 61, 139, 0.8);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
}

.cursor {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1002;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
}

.cursor--dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.cursor--ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 230, 109, 0.72);
  border-radius: 50%;
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease, background 180ms ease;
  backdrop-filter: invert(1);
  mix-blend-mode: difference;
}

.cursor--ring.is-active {
  width: 68px;
  height: 68px;
  border-color: rgba(58, 247, 255, 0.85);
  background: rgba(58, 247, 255, 0.08);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  border-radius: 45% 55% 63% 37% / 48% 43% 57% 52%;
  filter: blur(14px);
  opacity: 0.22;
  pointer-events: none;
  animation: morph 14s ease-in-out infinite alternate;
}

.ambient--one {
  left: -12vw;
  top: 18vh;
  background: linear-gradient(120deg, var(--pink), transparent 62%);
}

.ambient--two {
  right: -14vw;
  top: 52vh;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  animation-delay: -5s;
}

@keyframes morph {
  to {
    transform: translate3d(5vw, -3vh, 0) rotate(24deg) scale(1.08);
    border-radius: 62% 38% 34% 66% / 47% 69% 31% 53%;
  }
}

.section-shell {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(13, 6, 14, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px) saturate(1.3);
}

.brand,
.site-nav,
.nav-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #11040f;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: -0.06em;
  background: conic-gradient(from 180deg, var(--yellow), var(--pink), var(--cyan), var(--yellow));
  box-shadow: 0 0 28px rgba(255, 61, 139, 0.35);
}

.brand__text {
  font-weight: 850;
  letter-spacing: -0.04em;
}

.site-nav {
  gap: clamp(8px, 2vw, 22px);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 10px 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-width: max-content;
  padding: 12px 18px;
  border-radius: 999px;
  color: #140614;
  font-weight: 900;
  background: var(--ink);
}

.hero {
  padding: clamp(54px, 6vw, 88px) 0 clamp(42px, 6vw, 76px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span,
.section-kicker {
  padding: 8px 11px;
  border: 1px solid rgba(255, 230, 109, 0.24);
  border-radius: 999px;
  background: rgba(255, 230, 109, 0.08);
}

.hero h1,
.about h2,
.section-heading h2,
.contact-card h2 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(95deg, var(--yellow), var(--pink) 48%, var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 36px rgba(255, 61, 139, 0.22));
}

.hero__lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  isolation: isolate;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(110deg, var(--pink), var(--yellow), var(--cyan));
  transition: opacity 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 0.22;
}

.button--primary {
  color: #130511;
  border-color: transparent;
  background: linear-gradient(110deg, var(--yellow), #ffb454 42%, var(--pink));
  box-shadow: 0 18px 48px rgba(255, 61, 139, 0.28);
}

.button--primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero__meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.hero__meta strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.switchboard {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 28% 24%, rgba(255, 61, 139, 0.34), transparent 30%),
    radial-gradient(circle at 70% 74%, rgba(58, 247, 255, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.switchboard::before,
.switchboard::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.switchboard::before {
  inset: 58px 30px auto;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(255, 255, 255, 0.11) 35% 36%, transparent 37% 100%),
    conic-gradient(from var(--spin, 0deg), rgba(255, 230, 109, 0), rgba(255, 230, 109, 0.3), rgba(58, 247, 255, 0), rgba(255, 61, 139, 0.34), rgba(255, 230, 109, 0));
  filter: blur(0.2px);
  animation: spin 14s linear infinite;
}

.switchboard::after {
  inset: auto 12% 18% auto;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0 3px, transparent 4px),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 9px, transparent 10px 20px);
  opacity: 0.6;
}

@keyframes spin {
  to {
    --spin: 360deg;
    transform: rotate(360deg);
  }
}

.switchboard__topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 0 8px rgba(255, 42, 42, 0.12), 0 0 28px rgba(255, 42, 42, 0.8);
  animation: pulse 1.25s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(0.76);
    opacity: 0.55;
  }
}

.waveform {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 158px;
  margin: 66px auto 38px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(5, 3, 8, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.waveform span {
  width: clamp(10px, 2vw, 18px);
  height: calc(var(--i) * 7px);
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(to top, var(--pink), var(--yellow) 60%, var(--cyan));
  box-shadow: 0 0 22px rgba(255, 61, 139, 0.26);
  transform-origin: bottom;
  animation: bars 1.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -55ms);
}

@keyframes bars {
  to {
    transform: scaleY(0.34);
    filter: hue-rotate(50deg);
  }
}

.console-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.console-grid article {
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.console-grid span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.console-grid strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.console-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.hero-reel {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(5, 3, 8, 0.64);
  backdrop-filter: blur(14px);
}

.hero-reel__play {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
}

.hero-reel__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #130511;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.ticker span::after {
  content: "✦";
  color: var(--pink);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.about,
.story-engine,
.work,
.experience,
.proof,
.tools,
.contact {
  padding: clamp(72px, 10vw, 132px) 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  margin-top: 20px;
}

.about h2,
.section-heading h2,
.contact-card h2 {
  font-size: clamp(2.4rem, 6.4vw, 5.7rem);
  line-height: 0.92;
}

.about__body {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.8;
}

.about__body p {
  margin: 0;
}

.about__body p + p {
  margin-top: 22px;
}

.section-heading {
  max-width: 870px;
  margin-bottom: 34px;
}

.section-heading--split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.engine-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}

.engine-card,
.proof-cards article,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.engine-card {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
}

.engine-card::after,
.proof-cards article::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% auto;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 139, 0.38), transparent 68%);
  pointer-events: none;
}

.engine-card--large {
  grid-row: span 2;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 230, 109, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
}

.engine-card--tall {
  grid-column: span 2;
}

.card-index {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #150714;
  font-weight: 950;
  background: var(--yellow);
}

.engine-card h3 {
  margin: 34px 0 0;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.engine-card p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.work-card:nth-child(3) {
  grid-column: span 2;
}

.work-card:nth-child(4) {
  grid-column: span 2;
}

.work-card--wide {
  grid-column: span 2;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(255, 230, 109, 0.48);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-8px) rotateX(1.5deg) rotateY(-1.2deg);
}

.work-card__visual {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 61, 139, 0.2), rgba(58, 247, 255, 0.12));
}

.work-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 42%, rgba(13, 6, 14, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 13px);
  mix-blend-mode: overlay;
}

.work-card__visual img {
  width: 100%;
  height: 100%;
  min-height: 275px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.04);
  transition: transform 500ms ease, filter 500ms ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.12);
  filter: saturate(1.4) contrast(1.1);
}

.play-chip {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #130511;
  font-weight: 950;
  background: var(--yellow);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.play-chip::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #130511;
}

.work-card__content {
  padding: clamp(20px, 3vw, 30px);
}

.work-card__type {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid rgba(58, 247, 255, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(58, 247, 255, 0.06);
}

.work-card h3 {
  margin: 18px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.work-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: min(24vw, 270px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--pink), var(--yellow), var(--cyan));
  opacity: 0.62;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(150px, 280px) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}

.timeline-item__date {
  color: var(--yellow);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.timeline-item__body {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.timeline-item__body::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 28px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(58, 247, 255, 0.14), 0 0 30px rgba(58, 247, 255, 0.5);
}

.timeline-item h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.05em;
}

.timeline-item p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.timeline-tags span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255, 230, 109, 0.2);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: rgba(255, 230, 109, 0.06);
}

.timeline-coda {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding-left: calc(min(24vw, 270px) + 30px);
}

.timeline-coda article {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 230, 109, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.05);
}

.timeline-coda span {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-coda strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.timeline-coda p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.proof__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

.proof-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proof-cards article {
  min-height: 220px;
  padding: clamp(22px, 3vw, 30px);
}

.proof-cards strong {
  display: block;
  max-width: 14ch;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.proof-cards span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tool-cloud span:hover {
  color: var(--ink);
  border-color: rgba(255, 230, 109, 0.55);
  transform: translateY(-4px) rotate(-1deg);
}

.contact-card {
  padding: clamp(28px, 5vw, 64px);
  text-align: center;
}

.contact-card .section-kicker {
  margin-inline: auto;
}

.contact-card h2 {
  max-width: 900px;
  margin-inline: auto;
}

.contact-card p {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--soft);
  font-size: 0.95rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 1, 5, 0.78);
  backdrop-filter: blur(18px);
}

.video-modal__panel {
  position: relative;
  width: min(980px, 100%);
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  background: #10060f;
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.video-modal.is-open .video-modal__panel {
  transform: translateY(0) scale(1);
}

.video-modal__panel h2 {
  margin: 0 50px 16px 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #050308;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    border-radius: 28px;
  }

  .site-nav {
    display: none;
  }

  .hero__grid,
  .about__grid,
  .proof__grid {
    grid-template-columns: 1fr;
  }

  .switchboard {
    min-height: 560px;
  }

  .engine-grid,
  .work-grid,
  .proof-cards {
    grid-template-columns: 1fr;
  }

  .engine-card,
  .engine-card--large,
  .engine-card--tall,
  .work-card,
  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .work-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .work-card {
    min-height: auto;
  }

  .section-heading--split {
    align-items: start;
    flex-direction: column;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
  }

  .timeline-item__body::before {
    left: -34px;
  }

  .timeline-coda {
    grid-template-columns: 1fr;
    padding-left: 34px;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 16px;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .brand__text {
    display: none;
  }

  .nav-cta {
    padding: 11px 14px;
  }

  .hero {
    padding-top: 62px;
  }

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

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero__actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .switchboard {
    min-height: 520px;
    border-radius: 30px;
  }

  .waveform {
    height: 150px;
    margin: 70px auto 34px;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .console-grid article {
    min-height: 112px;
  }

  .hero-reel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 18px;
  }

  .work-card__visual,
  .work-card__visual img {
    min-height: 220px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

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

  .ticker__track {
    animation: none;
  }
}
