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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #ffffff;
}

/* ── Page frame — header + footer are fixed, content fills between ────── */

.home {
  padding-top: 52px; /* header height */
  padding-bottom: 52px; /* footer height */
  min-height: 100vh;
}

/* ── Hero — full viewport ────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero { height: 33vh; min-height: 280px; }
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background-image: url("/whistler-nocturne.webp?__frsh_c=ba4c017b41298901a7b870459a93f84de1b0c7d2");
  background-size: cover;
  background-position: center 40%;
  animation: hero-drift 45s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  0% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(5%, -8%) scale(1.04); }
  40% { transform: translate(-3%, 6%) scale(1.06); }
  60% { transform: translate(-6%, -10%) scale(1.03); }
  80% { transform: translate(4%, 5%) scale(1.05); }
  100% { transform: translate(2%, -6%) scale(1.04); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* ── Hero Animation — cinematic beat sequence ────────────────────────── */

.hero-anim {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Phase 1 container — beats + typewriter */
.ha-p1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transition: opacity 2s ease;
}
.ha-p1.ha-out {
  opacity: 0;
  pointer-events: none;
}

/* Beat words — zoom from center */
.ha-beats {
  display: flex;
  justify-content: center;
  gap: 0.4em;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.ha-beat {
  display: inline-block;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease-out;
}
.ha-beat.ha-in {
  transform: scale(1);
  opacity: 1;
}

/* Typewriter — Special Elite font */
.ha-type {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: clamp(0.95rem, 2.2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.55);
  min-height: 2.5em;
  max-width: 650px;
  line-height: 1.6;
}
.ha-cur {
  animation: ha-blink 0.53s step-end infinite;
  color: rgba(255, 255, 255, 0.4);
}
.ha-cur.ha-cur-done {
  animation: ha-blink 0.53s step-end 3;
}
@keyframes ha-blink {
  50% { opacity: 0; }
}

/* Guineas text wrap */
.ha-guineas-wrap {
  position: relative;
  display: inline;
}

/* Currency fly-through — appears from nothing, exits through the viewer */
.ha-curr {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  color: #fff;
  pointer-events: none;
  z-index: 3;
  transform: scale(0);
  opacity: 0;
  animation: ha-curr-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ha-curr.ha-curr-exit {
  animation: ha-curr-out 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes ha-curr-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ha-curr-out {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(18); opacity: 0; }
}

/* Ruskin attribution scene — calm, deliberate contrast */
.ha-ruskin {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 2s ease, transform 2s cubic-bezier(0.2, 0, 0.1, 1);
  z-index: 3;
}
.ha-ruskin.ha-ruskin-in {
  opacity: 1;
  transform: translateY(0);
}
.ha-ruskin.ha-ruskin-out {
  opacity: 0;
  transition: opacity 1.5s ease;
}
.ha-ruskin-quote {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  text-align: center;
  line-height: 1.8;
}
.ha-ruskin-who {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* NO — rushes from behind (scale 18 → 1) */
.ha-no {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(10rem, 35vw, 28rem);
  color: #fff;
  transform: scale(18);
  opacity: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.1, 1),
              opacity 0.12s ease-out;
  z-index: 5;
}
.ha-no.ha-no-land {
  transform: scale(1);
  opacity: 1;
}
.ha-no.ha-no-out {
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* Final line — settles in center */
.ha-fin {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%) translateY(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.2, 0, 0.1, 1);
}
.ha-fin.ha-fin-in {
  opacity: 1;
  transform: translateY(-50%);
}
.ha-fin-text {
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}
.ha-fin-big {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(4.5rem, 14vw, 11rem);
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1;
}
.ha-fin-in .ha-fin-big {
  animation: ha-lifetime-pulse 1.2s ease-out;
}
@keyframes ha-lifetime-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Individual letters for disassembly */
.ha-l {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 1, 1),
              opacity 0.5s ease;
}
.ha-fly .ha-l {
  transform: translate(var(--ex, 0), var(--ey, 0)) rotate(var(--er, 0deg));
  opacity: 0;
  transition-delay: var(--ed, 0ms);
}

/* Attribution — Ruskin v. Whistler */
.ha-attr {
  position: absolute;
  top: calc(50% + 7rem);
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 1.5s ease;
}
.ha-attr.ha-vis { opacity: 1; }

/* Learn the story link */
.ha-link {
  position: absolute;
  top: calc(50% + 9.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.25);
  padding-bottom: 0.2em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease, color 0.2s;
  cursor: pointer;
}
.ha-link.ha-vis { opacity: 1; animation: ha-link-pulse 3s ease-in-out 2s infinite; }
@keyframes ha-link-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.ha-link:hover {
  color: rgba(200, 169, 110, 0.9);
  border-bottom-color: rgba(200, 169, 110, 0.5);
}

/* Flying state hides attr + link */
.ha-fly .ha-attr,
.ha-fly .ha-link {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

/* Fade out first scene when summary enters */
.ha-fade-out {
  opacity: 0 !important;
  transition: opacity 1.5s ease !important;
}

/* Summary slide — fades over the final frame */
.ha-summary {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}
.ha-summary.ha-summary-in {
  opacity: 1;
  pointer-events: auto;
}
.ha-summary-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 760px;
  width: 100%;
  padding: 2rem;
  margin: 0 auto;
}
.ha-summary-painting {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ha-summary-painting img {
  max-width: 200px;
  max-height: 40vh;
  object-fit: contain;
  border: 6px solid #c8a96e;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.ha-summary-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ha-summary-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
}
.ha-summary-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}
.ha-summary-cta {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.25);
  padding-bottom: 0.2em;
  align-self: flex-start;
  transition: color 0.2s;
}
.ha-summary-cta:hover {
  color: rgba(200, 169, 110, 0.9);
}

/* Mobile animation */
@media (max-width: 600px) {
  .ha-summary-inner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .ha-summary-painting {
    flex: 0 0 auto;
    max-height: 35%;
  }
  .ha-beats {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }
  .ha-no {
    font-size: clamp(6rem, 40vw, 14rem);
  }
  .ha-fin-big {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }
}

/* ── Site header ──────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-logo {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.site-logo:hover {
  color: #fff;
}

/* ── Site navigation ──────────────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
  .site-nav {
    display: none; /* hide on mobile for now */
  }
}

/* ── Hero body — portrait + identity, reveals on assembly ─────────────── */

.hero-body {
  position: relative;
  z-index: 1;
  padding: 0 3.5rem;
  width: 100%;
}

.hero-ident {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0, 0.1, 1);
}

.hero-ident.assembled {
  opacity: 1;
  transform: translateY(0);
}

.hero-portrait {
  width: clamp(90px, 12vw, 140px);
  height: clamp(90px, 12vw, 140px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.hero-ident-text h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* ── Home content — bio + CTA, bottom 50% ────────────────────────────── */

.home-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 3.5rem;
  max-width: 680px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.home-content.assembled {
  opacity: 1;
  transform: translateY(0);
}

.home-bio {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.2em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease, color 0.2s, border-color 0.2s;
}

.hero-cta.assembled {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta:hover {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.portrait {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.bio p {
  font-size: 1rem;
  opacity: 0.72;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* ── Writing ──────────────────────────────────────────────────────────── */

.writing {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.writing h2 {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 2rem;
  font-weight: 400;
}

.writing-empty {
  font-size: 1rem;
  opacity: 0.35;
  font-style: italic;
}

/* ── Footer — fixed to bottom, always visible, rises on assembly ──────── */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.01em;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
}

.footer-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Trial page ───────────────────────────────────────────────────────── */

.trial-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.trial-painting {
  position: absolute;
  inset: 0;
  background-image: url("/whistler-nocturne.webp?__frsh_c=ba4c017b41298901a7b870459a93f84de1b0c7d2");
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* Portrait layer — Ruskin and Whistler occupy the left panel during the split */
.trial-ruskin-portrait,
.trial-whistler-portrait {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 55%;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  will-change: opacity;
}

.trial-ruskin-portrait {
  background-image: url("/ruskin.webp?__frsh_c=ba4c017b41298901a7b870459a93f84de1b0c7d2");
  z-index: 2;
}

.trial-whistler-portrait {
  background-image: url("/whistler-portrait.webp?__frsh_c=ba4c017b41298901a7b870459a93f84de1b0c7d2");
  background-position: center 15%;
  z-index: 3;
}

/* Hairline divider between left (painting) and right (text) panels */
.trial-split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  z-index: 5;
}

.trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.trial-act-label {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0;
  z-index: 10;
}

/* Stage — all text elements absolutely centered */
.trial-stage {
  position: absolute;
  inset: 0;
}

/* Base: horizontally centered, vertically placed per element */
.trial-stage > * {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  max-width: 800px;
  padding: 0 2rem;
  will-change: transform, opacity;
}

/* Act I — Setting */
.trial-year {
  top: 28%;
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.trial-city {
  top: 62%;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.trial-context {
  top: 71%;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 600px;
}

/* Act II — The Accusation */
.trial-ruskin-name {
  top: 33%;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.trial-ruskin-quote {
  top: 46%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 680px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.5rem;
  text-align: left;
}

.trq-1,
.trq-2,
.trq-3 {
  display: block;
}

/* Act III — The Painting */
.trial-painting-label {
  top: 68%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.tpl-title {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}

.tpl-price {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: rgba(200, 170, 100, 0.75);
  letter-spacing: 0.08em;
}

/* Act IV — The Courtroom */
.trial-counsel-1,
.trial-counsel-2 {
  font-size: clamp(0.95rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.trial-counsel-1 {
  top: 20%;
}
.trial-counsel-2 {
  top: 29%;
}

.trial-whistler-no {
  top: 41%;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.trial-whistler-reply {
  top: 64%;
  font-size: clamp(1.3rem, 3.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.4;
  max-width: 700px;
}

.trial-lifetime {
  top: 75%;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1;
}

/* Assembled quote */
.trial-assembled {
  top: 28%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
  max-width: 700px;
}

.ta-counsel {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.ta-reply {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.ta-attr {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* Act V — The Verdict */
.trial-verdict {
  top: 35%;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.trial-damages {
  top: 47%;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 200;
  letter-spacing: 0.05em;
  color: rgba(200, 170, 100, 0.8);
}

.trial-consequence {
  top: 66%;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.9;
  max-width: 560px;
  font-style: italic;
}

/* Act VI — The Claim */
.trial-claim {
  top: 38%;
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.3;
  max-width: 700px;
}

.trial-claim-sub {
  top: 57%;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
}

/* Back nav */
.trial-back {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  letter-spacing: 0.05em;
  z-index: 100;
  transition: color 0.2s;
}

.trial-back:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Scrub bar ────────────────────────────────────────────────────────── */

.trial-scrub {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ts-play {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 0.25rem;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}

.ts-play:hover {
  color: rgba(255, 255, 255, 0.9);
}

.ts-bar {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}

.ts-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.ts-bar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: none;
  cursor: pointer;
}

.ts-time {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  text-align: right;
}

/* ── Inner pages — standard layout (not the animated homepage) ───────── */

.page-main {
  padding-top: 52px;
  padding-bottom: 52px;
  min-height: 100vh;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  margin-bottom: 3rem;
}

.prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.02em;
}

/* assembled class applied immediately on inner pages (no animation) */
.site-header.assembled,
.site-footer.assembled {
  opacity: 1;
  transform: none;
}

/* ── Blog index ───────────────────────────────────────────────────────── */

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
}

.post-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.post-link {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.post-link:hover .post-title {
  color: #fff;
}

.post-date {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
  flex: 1;
}

.post-category {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.post-excerpt {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 600px;
}

.post-empty {
  font-style: italic;
  color: rgba(255, 255, 255, 0.25);
}

.active {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Blog post ────────────────────────────────────────────────────────── */

.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.post-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.post-lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  line-height: 1.7;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.back-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Blog post body (GFM rendered) ───────────────────────────────────── */

.post-body h1,
.post-body h2,
.post-body h3 {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 2rem 0 1rem;
}

.post-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 1.4rem;
  max-width: 640px;
}

.post-body a {
  color: rgba(200, 169, 110, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post-body blockquote {
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.post-body ol,
.post-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.68);
}

.post-body li {
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

/* ── Projects ─────────────────────────────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-name {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.project-status {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  flex-shrink: 0;
}

.status-active {
  color: rgba(100, 220, 140, 0.8);
  background: rgba(100, 220, 140, 0.08);
}

.status-in-progress {
  color: rgba(200, 169, 110, 0.8);
  background: rgba(200, 169, 110, 0.08);
}

.status-archive {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.project-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.project-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.5em;
  border-radius: 2px;
}

.project-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.6);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

.project-link:hover {
  color: rgba(200, 169, 110, 0.9);
}

/* ── Tools ────────────────────────────────────────────────────────────── */

.tool-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.tool-category-name {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 80px;
  text-decoration: none;
  color: inherit;
}

.tool-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}

.tool-item img[src*="-no"] {
  filter: none;
  opacity: 0.8;
}

.tool-item:hover img {
  opacity: 0.9;
}

.tool-item:hover img[src*="-no"] {
  opacity: 1;
}

.tool-name {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
}

.tool-item-placeholder {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .exchange-reply {
    font-size: 1.5rem;
  }

  .identity {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 4rem 1.5rem;
  }

  .writing {
    padding: 2rem 1.5rem 4rem;
  }
}

/* ── Carousel Slide Backgrounds ────────────────────────────────────── */
.slide-whistler { background: #0a0a0a; }
.slide-bg-nocturne { position: absolute; inset: 0; background-image: url("/whistler-nocturne.webp?__frsh_c=ba4c017b41298901a7b870459a93f84de1b0c7d2"); background-size: cover; background-position: center 40%; }
.slide-bg-nocturne::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.7); }

.slide-memorials { background: #1a1714; }
.slide-timeline { background: #0d0d12; }
.slide-writing { background: #0a0a0a; }

.slide-content { position: relative; z-index: 1; padding: 3rem; max-width: 760px; display: flex; flex-direction: column; gap: 1.5rem; }
.slide-label { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.slide-heading { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; color: rgba(255,255,255,0.9); }
.slide-desc { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.5); max-width: 560px; }
.slide-cta { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(200,169,110,0.6); text-decoration: none; border-bottom: 1px solid rgba(200,169,110,0.25); padding-bottom: 0.2em; align-self: flex-start; transition: color 0.2s; }
.slide-cta:hover { color: rgba(200,169,110,0.9); }

/* Memorial preview cards */
.memorial-cards { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.memorial-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 1.25rem; min-width: 180px; flex: 1; }
.memorial-card h3 { font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,0.85); margin-bottom: 0.3rem; }
.memorial-years { font-size: 0.78rem; color: rgba(200,169,110,0.6); letter-spacing: 0.05em; }
.memorial-card p { font-size: 0.85rem; color: rgba(255,255,255,0.4); font-style: italic; margin-top: 0.4rem; }

/* ── Hero Carousel ─────────────────────────────────────────────────── */
.carousel { position: relative; height: calc(100vh - 104px); min-height: 400px; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.carousel-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.75rem; z-index: 10; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); border: none; cursor: pointer; padding: 0; transition: background 0.2s; }
.carousel-dot.active { background: rgba(255,255,255,0.8); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.3); font-size: 1.5rem; cursor: pointer; z-index: 10; padding: 1rem; transition: color 0.2s, opacity 0.2s; opacity: 0; }
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { color: rgba(255,255,255,0.8); }
.carousel-arrow-prev { left: 1rem; }
.carousel-arrow-next { right: 1rem; }

/* ── Identity Section ──────────────────────────────────────────────── */
.section-identity { display: flex; align-items: center; gap: 2.5rem; padding: 5rem 3.5rem; max-width: 760px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,0.07); }
.identity-portrait { width: clamp(90px, 12vw, 130px); height: clamp(90px, 12vw, 130px); border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.identity-name { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 200; letter-spacing: -0.02em; margin-bottom: 0.75rem; color: rgba(255,255,255,0.9); }
.identity-bio { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(0.95rem, 1.8vw, 1.05rem); line-height: 1.8; color: rgba(255,255,255,0.55); }

/* ── Ecosystem Section ─────────────────────────────────────────────── */
.section-ecosystem { padding: 4rem 3.5rem; max-width: 900px; margin: 0 auto; }
.section-label { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.5rem; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.ecosystem-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.ecosystem-card:hover { border-color: rgba(255,255,255,0.15); }
.ecosystem-card h3 { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 0.5rem; }
.ecosystem-card p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.5; }
.ecosystem-current { border-color: rgba(200,169,110,0.3); }

/* ── Social Icons ──────────────────────────────────────────────────── */
.footer-social { display: flex; gap: 1.2rem; align-items: center; }
.footer-social a { display: flex; align-items: center; transition: opacity 0.2s; }
.social-icon { width: 18px; height: 18px; opacity: 0.35; filter: brightness(0) invert(1); transition: opacity 0.2s; }
.footer-social a:hover .social-icon { opacity: 0.8; }
.social-text-link { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.social-text-link:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 600px) {
  .section-identity { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
}

/* ── Full-width content sections ──────────────────────────────────── */

.section-full {
  padding: 5rem 3.5rem;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 600px;
  margin-bottom: 2rem;
}

.section-cta {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.25);
  padding-bottom: 0.2em;
  display: inline-block;
  transition: color 0.2s;
}
.section-cta:hover {
  color: rgba(200, 169, 110, 0.9);
  border-bottom-color: rgba(200, 169, 110, 0.5);
}

/* Memorial blocks */
.memorial-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.memorial-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  min-width: 220px;
  flex: 1;
  transition: border-color 0.2s;
}
.memorial-block:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.memorial-block h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.4rem;
}
.memorial-years {
  font-size: 0.85rem;
  color: rgba(200, 169, 110, 0.6);
  letter-spacing: 0.05em;
}
.memorial-role {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: 0.5rem;
}
.memorial-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .section-full {
    padding: 3rem 1.5rem;
  }
  .memorial-grid {
    flex-direction: column;
  }
}

/* ── Social Ticker ────────────────────────────────────────────────── */

.social-ticker {
  width: 100%;
  overflow: hidden;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 2.5rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ticker-item:hover {
  transform: scale(1.15);
}

.ticker-icon {
  width: 25px;
  height: 25px;
  opacity: 0.35;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.ticker-item:hover .ticker-icon {
  opacity: 0.9;
}

.ticker-name {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
}
.ticker-item:hover .ticker-name {
  color: rgba(255, 255, 255, 0.7);
}

.ticker-handle {
  font-size: 0.6rem;
  color: rgba(200, 169, 110, 0.4);
  letter-spacing: 0.03em;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.2s, max-height 0.2s;
}
.ticker-item:hover .ticker-handle {
  opacity: 1;
  max-height: 1.5em;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .ticker-item { padding: 0.5rem 1.5rem; }
  .ticker-icon { width: 20px; height: 20px; }
}

/* ── Companies Section — left brain / right brain ────────────────── */

.section-companies { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }

.companies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.company-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: border-color 0.2s;
}
.company-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.company-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.company-card:hover .company-logo {
  opacity: 1;
}

.company-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.company-hemisphere {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.55);
}

.company-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 320px;
}

@media (max-width: 600px) {
  .companies-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Inline Tools section on homepage ────────────────────────────── */

.section-tools .tool-category:last-child {
  margin-bottom: 0;
}

/* ── Inline Projects section on homepage ─────────────────────────── */

.section-projects .project-grid {
  margin-top: 1.5rem;
}

/* ── Scroll offset for anchor nav (accounts for fixed header) ───── */

:target {
  scroll-margin-top: 70px;
}

/* ── Mobile polish ────────────────────────────────────────────────── */

@media (max-width: 600px) {
  /* Header tighter on mobile */
  .site-header {
    padding: 0.9rem 1.2rem;
  }

  /* Footer stacks on mobile */
  .site-footer {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    text-align: center;
  }
  .footer-quote {
    font-size: 0.72rem;
  }

  /* Project cards single column on small screens */
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 1.25rem;
  }

  /* Post layout on mobile */
  .post-link {
    flex-direction: column;
    gap: 0.3rem;
  }
  .post-article {
    padding: 2.5rem 1.2rem 4rem;
  }

  /* Blog post images responsive */
  .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
  }

  /* Tool items tighter */
  .tool-grid {
    gap: 0.75rem;
  }
  .tool-item {
    width: 70px;
  }
  .tool-item img {
    width: 30px;
    height: 30px;
  }
}

/* Blog post images — desktop too */
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}
