:root {
  --bg: #f2efe8;
  --bg-alt: #ebe7dd;
  --paper: #ffffff;
  --ink: #141412;
  --ink-soft: #4a463e;
  --ink-faint: #8a8578;
  --hairline: #dcd6c7;
  --hairline-strong: #c0b9a5;
  --warm: #ded6c3;
  --accent: #141412;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1320px;
  --reading: 680px;
  --gutter: clamp(1.25rem, 3vw, 2rem);

  --radius: 14px;
  --radius-lg: 22px;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img, svg, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--reading), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- Typography utility ---------- */

.mono {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.mono-sm {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.02;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-left: 0.55rem;
  border-left: 1px solid var(--hairline-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-line {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ea14f;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

h1.display {
  font-size: clamp(2.6rem, 7.5vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  max-width: 12ch;
}

h1.display .muted {
  color: var(--ink-faint);
}

.hero-support {
  max-width: 54ch;
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero-support strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-meta span {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

/* ---------- Hero mosaic ---------- */

.hero-mosaic {
  max-width: 760px;
  margin: clamp(3rem, 6vw, 5.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: center;
  padding-inline: 6px;
}

.hero-mosaic .tile {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border-radius: 32px;
  overflow: hidden;
  transition: transform 0.5s ease;
  box-shadow:
    0 28px 44px -20px rgba(20, 20, 18, 0.3),
    0 8px 16px -10px rgba(20, 20, 18, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Quiet composition: center phone sits a touch higher, side phones settle */
.hero-mosaic .tile:nth-child(2) {
  transform: translateY(-14px);
  z-index: 2;
  box-shadow:
    0 34px 52px -20px rgba(20, 20, 18, 0.34),
    0 10px 18px -10px rgba(20, 20, 18, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-mosaic .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-mosaic .tile-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(20, 20, 18, 0.78);
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---------- Section head ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
  flex-wrap: wrap;
}

.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}

h2.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 18ch;
}

h2.section-title .muted {
  color: var(--ink-faint);
}

.section-lede {
  max-width: 44ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.section-lede a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Prose ---------- */

.prose > * + * {
  margin-top: 1.1rem;
}

.prose p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.prose p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Background arc (career trajectory) ---------- */

.arc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.arc-step {
  padding: 1.4rem 1.2rem 1.5rem;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  transition: background 0.3s ease;
}

.arc-step:last-child {
  border-right: none;
}

.arc-step:hover {
  background: rgba(20, 20, 18, 0.02);
}

.arc-era {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.arc-company {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.05;
}

.arc-step.is-now .arc-era::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ea14f;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(46, 161, 79, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- Orchestration grid (the working system) ---------- */

.orch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.orch-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.orch-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: 0 20px 36px -22px rgba(20, 20, 18, 0.18);
}

.orch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.orch-kind {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.orch-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-alt);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}

.orch-badge--oss {
  color: var(--ink);
  background: color-mix(in srgb, #2ea14f 12%, transparent);
  border-color: color-mix(in srgb, #2ea14f 30%, transparent);
}

.orch-badge--live {
  color: var(--ink);
  background: transparent;
  border-color: var(--hairline-strong);
  position: relative;
  padding-left: 1.1rem;
}

.orch-badge--live::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ea14f;
  transform: translateY(-50%);
  animation: pulse 2.4s ease-in-out infinite;
}

.orch-title {
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
}

.orch-lede {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 44ch;
}

.orch-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.orch-bullets {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.orch-bullets li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.orch-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--ink-soft);
}

/* ---------- Tools stack strip ---------- */

.tools {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.tools li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.4rem 0.8rem 1.5rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s ease;
}

.tools li:nth-child(5n) {
  border-right: none;
}

.tools li:nth-last-child(-n+5) {
  border-bottom: none;
}

/* Secondary tier — still in the loop, just not daily. Slightly softer. */
.tools li.tools-sub img {
  opacity: 0.45;
}

.tools li.tools-sub:hover img {
  opacity: 0.82;
}

.tools li.tools-sub span {
  color: color-mix(in srgb, var(--ink-faint) 80%, transparent);
}

.tools-note {
  margin: 1.2rem auto 0;
  text-align: center;
  max-width: 42ch;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.tools li:hover {
  background: rgba(20, 20, 18, 0.02);
}

.tools li img {
  width: 28px;
  height: 28px;
  opacity: 0.62;
  filter: invert(9%) sepia(11%) saturate(400%) hue-rotate(14deg) brightness(92%) contrast(86%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tools li:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.tools li span {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.1;
}

/* ---------- Work cards (big product blocks) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.work-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--hairline), 0 30px 60px -40px rgba(20, 20, 18, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 var(--hairline-strong), 0 40px 80px -40px rgba(20, 20, 18, 0.25);
}

.work-card.reverse {
  grid-template-columns: 1fr 1.15fr;
}

.work-card.reverse .work-media {
  order: 2;
}

.work-media {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-media.media-mac {
  padding: 2.2rem;
}

.work-media.media-phone {
  padding: 2rem;
}

.work-media.media-android {
  padding: 2rem;
}

.work-media img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 40px -20px rgba(20, 20, 18, 0.3);
}

.work-media.media-mac img {
  border-radius: 10px;
}

.work-media.media-phone img,
.work-media.media-android img {
  border-radius: 28px;
  max-height: 560px;
  box-shadow: 0 30px 50px -20px rgba(20, 20, 18, 0.35);
}

/* ---------- Roller deck (evolution-of-screens carousel) ---------- */

.roller {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  margin-inline: auto;
  border-radius: 32px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow:
    0 30px 50px -20px rgba(20, 20, 18, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.roller-track {
  display: flex;
  width: 500%;
  height: 100%;
  animation: roller-advance 22s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.roller-frame {
  position: relative;
  width: 20%;
  height: 100%;
  flex-shrink: 0;
}

.roller-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  /* override inherited .work-media img rules */
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

.roller-date {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 10, 0.82);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 5-step animation: 4 real frames + a duplicate-of-frame-1 tail for seamless loop.
   Each frame holds for ~4s, then eases to the next in ~1s. Total = 22s. */
@keyframes roller-advance {
  0%,    18%  { transform: translateX(0); }
  22%,   40%  { transform: translateX(-20%); }
  44%,   62%  { transform: translateX(-40%); }
  66%,   84%  { transform: translateX(-60%); }
  88%,  100%  { transform: translateX(-80%); }
}

.roller:hover .roller-track {
  animation-play-state: paused;
}

/* Progress pips — 4 dots at the bottom, each lights up in sync with its frame. */
.roller-pips {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.roller-pips span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.4s ease, transform 0.4s ease;
  animation: roller-pip 22s steps(1) infinite;
}

.roller-pips span:nth-child(1) { animation-delay: 0s; }
.roller-pips span:nth-child(2) { animation-delay: -16.5s; }
.roller-pips span:nth-child(3) { animation-delay: -11s; }
.roller-pips span:nth-child(4) { animation-delay: -5.5s; }

@keyframes roller-pip {
  0%, 20%        { background: #fff; transform: scale(1.25); }
  22%, 100%      { background: rgba(255, 255, 255, 0.28); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .roller-track,
  .roller-pips span {
    animation: none;
  }
  .roller-track {
    transform: translateX(-60%);  /* park on the latest frame */
  }
}

.work-body {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.work-meta span {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-alt);
}

.work-meta span.live {
  background: #2ea14f;
  color: #fff;
}

.work-body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.work-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.work-body .proof {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.work-body .proof em {
  color: var(--ink-faint);
  font-style: normal;
  margin-right: 0.5rem;
}

/* ---------- Games section ---------- */

.games {
  background: transparent;
  color: var(--ink);
  padding: 0;
  margin: 0;
}

.games-caption {
  max-width: 44ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.games-caption .eyebrow {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}

.games-caption h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 auto 1.2rem;
  max-width: 20ch;
}

.games-caption h2 .muted {
  color: var(--ink-faint);
}

.games-caption .lede {
  max-width: 38ch;
  margin: 0 auto 1.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.games-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}

.games-link:hover {
  opacity: 0.6;
}

.games-link svg {
  width: 12px;
  height: 12px;
}

/* ---------- CRT TV marquee (real Panasonic chassis image) ---------- */

.tv {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  text-decoration: none;
  position: relative;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.6));
}

.tv:hover {
  transform: translateY(-3px);
}

.tv-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.tv-chassis-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

.tv-screen {
  position: absolute;
  top: 17%;
  right: 14.3%;
  bottom: 30.3%;
  left: 14.55%;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, #1a2320 0%, #0a0d0b 85%);
  overflow: hidden;
  z-index: 1;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.85),
    inset 0 0 60px rgba(0, 0, 0, 0.9),
    inset 0 0 180px rgba(80, 200, 160, 0.08);
}

/* Retro phosphor wash: amber+cyan across the screen */
.tv-phosphor {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 25% 30%, rgba(255, 180, 80, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 75%, rgba(80, 210, 200, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(180, 240, 220, 0.02) 0%, transparent 40%, rgba(255, 170, 90, 0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

.tv-marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 72px;
  height: 100%;
  padding: 0 48px;
  width: max-content;
  animation: tv-marquee 38s linear infinite;
  z-index: 1;
}

.tv:hover .tv-marquee {
  animation-play-state: paused;
}

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

.tv-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.tv-icon {
  width: 168px;
  height: 168px;
  border-radius: 36px;
  object-fit: cover;
  background: #18181a;
  box-shadow:
    0 22px 44px -14px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 180, 80, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tv-icon--poster {
  border-radius: 14px;
}

.tv-slide-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(230, 255, 240, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 10px rgba(120, 240, 200, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Scanlines — slightly heavier for the retro effect */
.tv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: multiply;
  opacity: 0.7;
}

/* Rolling scan sweep — moves down slowly like old CRT vertical hold drift */
.tv-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -28%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(180, 255, 220, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 60%,
    transparent 100%);
  pointer-events: none;
  z-index: 4;
  animation: tv-sweep 7s linear infinite;
}

@keyframes tv-sweep {
  from { transform: translateY(0); }
  to { transform: translateY(470%); }
}

/* Corner vignette + upper-left glare */
.tv-glare {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 30% at 28% 12%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 4;
}

.tv-note {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.tv-note a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

.tv-note a:hover {
  border-bottom-color: #fff;
}

/* ---------- Evolution timeline ---------- */

.evolution {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.evo-row {
  display: grid;
  grid-template-columns: 100px 84px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.75rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
  transition: padding-left 0.3s ease;
}

.evo-row:hover {
  padding-left: 0.8rem;
}

.evo-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* App logos sit flush — no container box, just the icon with a gentle iOS-style mask so edges feel seamless. */
.evo-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 22%;
  box-shadow:
    0 8px 18px -10px rgba(20, 20, 18, 0.22),
    0 1px 2px rgba(20, 20, 18, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evo-row:hover .evo-logo {
  transform: scale(1.04);
  box-shadow:
    0 12px 24px -10px rgba(20, 20, 18, 0.28),
    0 1px 2px rgba(20, 20, 18, 0.08);
}

/* For icons already designed to sit on the native background (transparent PNG, no tile, no shadow). */
.evo-logo.is-bare {
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.evo-row:hover .evo-logo.is-bare {
  box-shadow: none;
}

.evo-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.evo-note {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* ---------- Principles (How I work) ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.principles.principles--six {
  grid-template-columns: repeat(3, 1fr);
}

.principle {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}

.principle .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.principle h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
  line-height: 1.2;
}

.principle p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Lanes (writing) ---------- */

.lanes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.lanes li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.6rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  transition: padding-left 0.25s ease;
}

.lanes li:hover {
  padding-left: 0.6rem;
}

.lanes .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.lanes h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lanes p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 54ch;
}

/* ---------- Fit ---------- */

.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.fit-col {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  padding: 1.6rem 1.5rem 1.8rem;
}

.fit-col .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  display: block;
}

.fit-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.fit-col li {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.fit-col.not li {
  color: var(--ink-faint);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: var(--hairline-strong);
}

/* ---------- CTA ---------- */

.cta {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--hairline);
}

.cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 2rem;
}

.cta h2 .muted {
  color: var(--ink-faint);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 2rem 2.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cta-row a.primary {
  color: var(--bg);
  background: var(--ink);
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.cta-row a.primary:hover {
  opacity: 0.82;
}

.cta-row a.secondary {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.cta-row .muted {
  color: var(--ink-faint);
}

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 1.4rem;
  max-width: 580px;
  margin-top: 2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 0.7rem 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

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

.form-submit {
  justify-self: start;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.95rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border-radius: 999px;
  margin-top: 0.5rem;
}

.form-submit:hover {
  opacity: 0.82;
}

.form-notice {
  max-width: 580px;
  margin-top: 2rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-notice strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.form-notice p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 3rem 2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

.footer-top h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-big {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  text-transform: none;
  max-width: 14ch;
}

.footer-big .muted {
  color: var(--ink-faint);
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-list a {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.005em;
  transition: opacity 0.2s ease;
}

.footer-list a:hover {
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-fine {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
}

/* ---------- Insights listing ---------- */

.post-list {
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.post-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  transition: padding-left 0.25s ease;
}

.post-list li:hover {
  padding-left: 0.6rem;
}

.post-list .date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-list h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.post-list h3 a {
  color: inherit;
  transition: opacity 0.2s ease;
}

.post-list h3 a:hover {
  opacity: 0.65;
}

.post-list .entry-copy {
  display: grid;
  gap: 0.45rem;
}

.post-list p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.post-list .lane {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-top .footer-col.meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem var(--gutter) 1.6rem;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .hero-mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-mosaic .tile {
    aspect-ratio: 9 / 19.5;
  }

  .hero-mosaic .tile-label {
    font-size: 0.56rem;
    padding: 0.25rem 0.5rem;
    left: 8px;
    bottom: 8px;
  }

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

  .tools {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools li {
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

  .tools li:nth-child(5n) {
    border-right: 1px solid var(--hairline);
  }

  .tools li:nth-child(3n) {
    border-right: none;
  }

  .tools li:nth-last-child(-n+5) {
    border-bottom: 1px solid var(--hairline);
  }

  .tools li:nth-last-child(-n+3) {
    border-bottom: none;
  }

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

  .arc-step {
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

  .arc-step:nth-child(2n) {
    border-right: none;
  }

  .arc-step:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .arc-company {
    font-size: 1.2rem;
  }

  .work-card,
  .work-card.reverse {
    grid-template-columns: 1fr;
  }

  .work-card.reverse .work-media {
    order: 0;
  }

  .work-media {
    min-height: 280px;
  }

  .tv-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }

  .tv-icon--poster {
    border-radius: 10px;
  }

  .tv-marquee {
    gap: 48px;
    padding: 0 28px;
  }

  .tv-slide-label {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .principles,
  .fit {
    grid-template-columns: 1fr;
  }

  .evo-row {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }

  .evo-row .evo-date {
    grid-column: 1 / -1;
  }

  .evo-row .evo-logo {
    width: 56px;
    height: 56px;
  }

  .evo-row .evo-note {
    grid-column: 2;
  }

  .lanes li,
  .post-list li {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 1rem;
  }

  .lanes li p,
  .post-list li .lane {
    grid-column: 2;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-bottom: 2rem;
  }
}
