/* Scroll narrative — BET-inspired: editorial type, green-black palette, hero media layers */

:root {
  --bg: #050807;
  --bg-elevated: #0f1813;
  --bg-band: #08100c;
  --text: #eef3ef;
  --text-muted: #95a89c;
  --accent: #5ee9b5;
  --accent-dim: rgba(94, 233, 181, 0.14);
  --accent-glow: rgba(52, 211, 153, 0.22);
  --border: rgba(148, 172, 158, 0.2);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-label: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.9s;
  --reveal-stagger: 0.09s;
  --radius-lg: 1rem;
  --radius-sm: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.92rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #9cf5d4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10001;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem clamp(0.75rem, 3vw, 2rem) 0.7rem;
  /* Liquid-glass stack: soft frost + light mint tint, not a heavy dark slab */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 38%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(120, 200, 168, 0.12) 0%,
      rgba(40, 72, 58, 0.22) 55%,
      rgba(5, 12, 9, 0.06) 100%
    );
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 32px rgba(0, 0, 0, 0.12);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(18, 32, 26, 0.88);
    box-shadow: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(18, 32, 26, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

.top-nav {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem 0;
  min-width: 0;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 3.2vw, 1.08rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: clamp(0.6rem, 2.6vw, 0.6875rem);
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.nav-links a {
  flex-shrink: 0;
  white-space: nowrap;
  color: rgba(200, 222, 210, 0.88);
  text-decoration: none;
}

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

.story-section[data-reveal] .reveal-child {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}

.story-section[data-reveal].is-visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.story-section[data-reveal].is-visible .reveal-child:nth-child(1) { transition-delay: calc(var(--reveal-stagger) * 0); }
.story-section[data-reveal].is-visible .reveal-child:nth-child(2) { transition-delay: calc(var(--reveal-stagger) * 1); }
.story-section[data-reveal].is-visible .reveal-child:nth-child(3) { transition-delay: calc(var(--reveal-stagger) * 2); }
.story-section[data-reveal].is-visible .reveal-child:nth-child(4) { transition-delay: calc(var(--reveal-stagger) * 3); }
.story-section[data-reveal].is-visible .reveal-child:nth-child(5) { transition-delay: calc(var(--reveal-stagger) * 4); }
.story-section[data-reveal].is-visible .reveal-child:nth-child(6) { transition-delay: calc(var(--reveal-stagger) * 5); }
.story-section[data-reveal].is-visible .reveal-child:nth-child(7) { transition-delay: calc(var(--reveal-stagger) * 6); }
.story-section[data-reveal].is-visible .reveal-child:nth-child(8) { transition-delay: calc(var(--reveal-stagger) * 7); }

@media (prefers-reduced-motion: reduce) {
  .story-section[data-reveal] .reveal-child {
    opacity: 0.35;
    transform: none;
    transition: opacity 0.35s ease;
  }
  .story-section[data-reveal].is-visible .reveal-child {
    opacity: 1;
    transform: none;
    transition-delay: 0s !important;
  }
}

.story-section[data-reveal] .prose > * {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}

.story-section[data-reveal].is-visible .prose > * {
  opacity: 1;
  transform: translateY(0);
}

.story-section[data-reveal].is-visible .prose > *:nth-child(1) { transition-delay: calc(var(--reveal-stagger) * 1); }
.story-section[data-reveal].is-visible .prose > *:nth-child(2) { transition-delay: calc(var(--reveal-stagger) * 2); }
.story-section[data-reveal].is-visible .prose > *:nth-child(3) { transition-delay: calc(var(--reveal-stagger) * 3); }
.story-section[data-reveal].is-visible .prose > *:nth-child(4) { transition-delay: calc(var(--reveal-stagger) * 4); }
.story-section[data-reveal].is-visible .prose > *:nth-child(5) { transition-delay: calc(var(--reveal-stagger) * 5); }
.story-section[data-reveal].is-visible .prose > *:nth-child(6) { transition-delay: calc(var(--reveal-stagger) * 6); }

@media (prefers-reduced-motion: reduce) {
  .story-section[data-reveal] .prose > * {
    opacity: 0.35;
    transform: none;
    transition: opacity 0.35s ease;
  }
  .story-section[data-reveal].is-visible .prose > * {
    opacity: 1;
    transition-delay: 0s !important;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vh, 5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% 100%, var(--accent-glow), transparent 58%),
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(16, 185, 129, 0.09), transparent 52%),
    radial-gradient(ellipse 40% 50% at 10% 40%, rgba(94, 233, 181, 0.06), transparent 45%),
    linear-gradient(165deg, #030504 0%, #0a1410 38%, #050807 72%, #030504 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg-gradient {
    animation: heroBreath 22s ease-in-out infinite alternate;
  }
}

@keyframes heroBreath {
  0% { filter: saturate(1) brightness(1); transform: scale(1); }
  100% { filter: saturate(1.08) brightness(1.04); transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-gradient { animation: none; }
}

.hero-bg-media {
  position: absolute;
  inset: 0;
}

.hero-bg-media video,
.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

@media (max-width: 639px) {
  .hero-bg-media video,
  .hero-bg-media img {
    opacity: 0.42;
  }
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 7, 0.25) 0%,
    rgba(5, 8, 7, 0.5) 45%,
    rgba(5, 8, 7, 0.92) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-headlines {
  margin: 0;
}

.hero-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 9.5vw + 0.4rem, 5.75rem);
  margin: 0 0 0.12em;
  color: var(--text);
  text-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
}

.hero-handle {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.75rem 0 0;
}

.hero-scroll-hint {
  margin: 2.75rem 0 0;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(238, 243, 239, 0.45);
}

.pillars {
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--accent-dim) 50%, transparent);
}

.pillars-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .pillar-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 3rem;
    align-items: baseline;
  }
}

.pillar-list li {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-muted);
}

.story-section.pillars[data-reveal].is-visible .pillar-list li {
  color: var(--text);
}

.story-section.pillars[data-reveal] .pillar-list li {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out),
    color 0.5s ease;
}

.story-section.pillars[data-reveal].is-visible .pillar-list li {
  opacity: 1;
  transform: translateY(0);
}

.story-section.pillars[data-reveal].is-visible .pillar-list li:nth-child(1) { transition-delay: 0.06s; }
.story-section.pillars[data-reveal].is-visible .pillar-list li:nth-child(2) { transition-delay: 0.14s; }
.story-section.pillars[data-reveal].is-visible .pillar-list li:nth-child(3) { transition-delay: 0.22s; }
.story-section.pillars[data-reveal].is-visible .pillar-list li:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .story-section.pillars[data-reveal] .pillar-list li {
    opacity: 0.35;
    transform: none;
    transition: opacity 0.35s ease, color 0.5s ease;
  }
  .story-section.pillars[data-reveal].is-visible .pillar-list li {
    opacity: 1;
    transition-delay: 0s !important;
  }
}

.section-band {
  background: var(--bg-band);
}

.section-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3.25rem, 11vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}

.section-shell--split {
  max-width: 72rem;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .section-shell--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }
}

.intro-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 5;
  max-height: 28rem;
}

.intro-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats .section-shell {
  max-width: 72rem;
}

.section-title {
  font-size: 0.625rem;
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--accent);
  margin: 0 0 2rem;
}

.section-lead {
  margin: -1rem 0 1.75rem;
  font-size: 0.9375rem;
}

.writing-archive-link {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.prose p {
  margin: 0 0 1.3em;
  color: var(--text-muted);
}

.prose p.lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

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

.prose p.muted {
  color: var(--text-muted);
}

.stat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .stat-item {
    padding: 1.5rem 1.25rem 2rem 0;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-left: 1.75rem;
  }
  .stat-item:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.stat-label {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 14rem;
}

.story-section.stats[data-reveal] .stat-item {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}

.story-section.stats[data-reveal].is-visible .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.story-section.stats[data-reveal].is-visible .stat-item:nth-child(1) { transition-delay: 0.1s; }
.story-section.stats[data-reveal].is-visible .stat-item:nth-child(2) { transition-delay: 0.18s; }
.story-section.stats[data-reveal].is-visible .stat-item:nth-child(3) { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .story-section.stats[data-reveal] .stat-item {
    opacity: 0.35;
    transform: none;
    transition: opacity 0.35s ease;
  }
  .story-section.stats[data-reveal].is-visible .stat-item {
    opacity: 1;
    transition-delay: 0s !important;
  }
}

.philosophy .section-shell {
  max-width: 52rem;
}

.pull-quote {
  margin: 0;
  padding: 2.5rem 0 0;
  border: none;
  position: relative;
}

.pull-quote::before {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 1.75rem;
}

.pull-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.48;
  color: var(--text);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.pull-quote-attrib {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: none;
}

.quote-author-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.quote-attrib-text {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.story-section--rail .section-shell {
  position: relative;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  border-left: 2px solid var(--accent-dim);
  margin-left: clamp(0.5rem, 2vw, 1rem);
}

.section-shell--experience {
  max-width: 72rem;
}

.section-divider {
  height: 1px;
  margin: 0;
  border: none;
  background: var(--border);
}

.section-divider--line {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.6;
}

.section-divider--accent {
  height: 2px;
  max-width: 6rem;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.85;
}

.pillar-strip-wrap {
  width: 100%;
  max-height: min(40vh, 22rem);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pillar-strip-inner img,
.pillar-strip-inner video {
  display: block;
  width: 100%;
  height: min(40vh, 22rem);
  object-fit: cover;
}

.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.job {
  margin: 0 0 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.job-section-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.job-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .job:not(.job--text-only) .job-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
  }
}

.job-main {
  min-width: 0;
}

.job-aside {
  min-width: 0;
}

.job-aside-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-media-image,
.job-preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.job-media-video {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.job-preview-figure {
  margin: 0;
}

.job-preview-figure a {
  display: block;
}

.job-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.job-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.job-site-link {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  align-self: flex-start;
}

.job-site-link--inline {
  display: inline-block;
  margin-top: 0.5rem;
}

.job:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.job-role {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.job-org {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.job-dates {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.job-desc {
  margin: 0 0 0.65em;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.job-hero {
  position: relative;
  margin: 0 0 1.35rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  aspect-ratio: 21 / 9;
  max-height: min(52vw, 18rem);
}

@media (min-width: 640px) {
  .job-hero {
    aspect-ratio: 2.4 / 1;
    max-height: min(40vw, 20rem);
  }
}

.job-hero-media {
  width: 100%;
  height: 100%;
}

.job-hero-image,
.job-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-hero-video {
  pointer-events: none;
}

.job-hero--has-link {
  cursor: pointer;
}

.job-hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
}

.job-hero-hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(5, 8, 7, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.job[data-job-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.job[data-job-reveal] .job-main {
  transform: translateX(-1rem);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.job[data-job-reveal].job-is-visible .job-main {
  transform: translateX(0);
}

.job[data-job-reveal] .job-aside-inner {
  transform: translateX(1.15rem);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.job[data-job-reveal].job-is-visible .job-aside-inner {
  transform: translateX(0);
}

.job[data-job-reveal] .job-hero {
  transform: scale(0.985);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.job[data-job-reveal].job-is-visible .job-hero {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .job[data-job-reveal],
  .job[data-job-reveal] .job-main,
  .job[data-job-reveal] .job-aside-inner,
  .job[data-job-reveal] .job-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.writing-item {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
}

.writing-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.writing-item-title a {
  color: var(--text);
  text-decoration: none;
}

.writing-item-title a:hover {
  color: var(--accent);
}

.writing-item-meta {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.writing-item-excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.writing-empty {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.story-section.writing[data-reveal] .writing-item {
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}

.story-section.writing[data-reveal].is-visible .writing-item {
  opacity: 1;
  transform: translateY(0);
}

.story-section.writing[data-reveal].is-visible .writing-item:nth-child(1) { transition-delay: 0.08s; }
.story-section.writing[data-reveal].is-visible .writing-item:nth-child(2) { transition-delay: 0.14s; }
.story-section.writing[data-reveal].is-visible .writing-item:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .story-section.writing[data-reveal] .writing-item {
    opacity: 0.35;
    transform: none;
    transition: opacity 0.35s ease;
  }
  .story-section.writing[data-reveal].is-visible .writing-item {
    opacity: 1;
    transition-delay: 0s !important;
  }
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 1.02rem;
}

.featured-tweets-wrap {
  margin-bottom: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.featured-tweets-wrap[hidden] {
  display: none !important;
}

/* Align “Selected posts” with .story-section--rail .section-shell text (not 100vw breakout math). */
.featured-tweets-head {
  max-width: 42rem;
  margin-left: clamp(0.5rem, 2vw, 1rem);
  padding-left: calc(2px + clamp(1.25rem, 4vw, 2rem));
  padding-right: clamp(1.25rem, 5vw, 3rem);
  box-sizing: border-box;
  margin-bottom: 1.25rem;
}

.featured-tweets-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0;
}

/* Full section width (parent is #social, not narrow .section-shell) — avoids broken calc(50% - 50vw) on desktop */
.featured-tweets-carousel {
  --tweet-gutter: clamp(0.75rem, 4vw, 1.5rem);
  container-type: inline-size;
  container-name: tweet-scroller;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--tweet-gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.35rem;
}

.featured-tweets-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  width: max-content;
  min-width: 100%;
  padding: 0.25rem var(--tweet-gutter);
  box-sizing: border-box;
}

.tweet-slot {
  flex: 0 0 min(28rem, calc(100cqi - 2 * var(--tweet-gutter)));
  width: min(28rem, calc(100cqi - 2 * var(--tweet-gutter)));
  max-width: 28rem;
  min-height: 4rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

@supports not (container-type: inline-size) {
  .tweet-slot {
    flex: 0 0 min(calc(100vw - 2 * var(--tweet-gutter)), 28rem);
    width: min(calc(100vw - 2 * var(--tweet-gutter)), 28rem);
  }
}

.tweet-fallback {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 28rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  align-self: flex-start;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 1rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.2);
}

.btn-primary:hover {
  background: #8af5cd;
  box-shadow: 0 14px 48px rgba(52, 211, 153, 0.28);
}

.site-footer {
  padding: 3.5rem clamp(1.25rem, 5vw, 3rem) 4.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-tagline {
  margin: 0 0 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-links-sep {
  color: var(--border);
  user-select: none;
}

.site-footer p {
  margin: 0;
}

body.story-post {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 100vh;
}

.post-back {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 2.5rem;
  text-decoration: none;
}

.post-article {
  max-width: 40rem;
  margin: 0 auto;
}

.post-article header {
  margin-bottom: 2rem;
}

.post-article time {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.85rem;
}

.post-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

.post-body {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.post-body p {
  margin: 0 0 1.25em;
}

.post-body strong {
  color: var(--text);
}

.post-body a {
  word-break: break-word;
}

.blog-index {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.blog-index h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
}

.blog-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-index-item {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
}

.blog-index-item a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.blog-index-item a:hover {
  color: var(--accent);
}

.blog-index-item time {
  display: block;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
