/* ============================================================
   Kamil Szwed — portfolio
   Dark pinned hero → light manifesto/work → dark contact
   ============================================================ */

:root {
  --ink: #0b0b0c;
  --ink-soft: #2a2a2d;
  --paper: #efece5;
  --paper-dim: #e5e1d8;
  --bone: #f2efe9;
  --bone-dim: rgba(242, 239, 233, 0.72);
  --bone-faint: rgba(242, 239, 233, 0.52);
  --hairline-light: rgba(242, 239, 233, 0.16);
  --hairline-dark: rgba(11, 11, 12, 0.14);
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --pad-x: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  background: #050505;
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: 0.005em;
}

/* ============ Small-caps utility ============ */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
}
.eyebrow span {
  display: inline-block;
  padding: 7px 12px 6px;
  background: var(--bone);
  color: var(--ink);
}
.eyebrow-dark span { background: var(--ink); color: var(--bone); }

/* ============ Fixed chrome ============ */
.site-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px var(--pad-x);
  z-index: 50;
  pointer-events: none;
}
.site-chrome > * { pointer-events: auto; }

/* body-level so mix-blend-mode sees the page, not an isolated header group */
.brand {
  position: fixed;
  top: 22px;
  left: var(--pad-x);
  z-index: 51;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: #fff;
  mix-blend-mode: difference;
}
.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  opacity: 0.62;
}

.pill-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(16, 16, 17, 0.85);
  border: 1px solid rgba(242, 239, 233, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pill-nav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.pill-nav a:hover { color: var(--bone); }
.pill-nav a.is-active {
  color: var(--ink);
  background: var(--bone);
}

.motion-toggle {
  position: fixed;
  top: 22px;
  right: var(--pad-x);
  z-index: 51;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  mix-blend-mode: difference;
  transition: opacity 0.25s ease;
}
.motion-toggle:hover { opacity: 0.75; }
.motion-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.6, 0, 0.2, 1);
}
.motion-toggle[aria-checked="false"] .motion-toggle-knob {
  transform: translateX(20px);
  background: rgba(255, 255, 255, 0.35);
}

/* ============ Side rails ============ */
.rail {
  position: fixed;
  z-index: 40;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  line-height: 1.9;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.rail-top-right {
  top: 86px;
  right: var(--pad-x);
  text-align: right;
  opacity: 0.55;
}
.rail-mid-right {
  top: 50%;
  right: var(--pad-x);
  transform: translateY(-50%);
  text-align: right;
  letter-spacing: 0.14em;
  font-size: 10px;
}
.rail-mid-right .rail-label { opacity: 0.75; font-size: 9px; letter-spacing: 0.26em; }
.rail-mid-right .rail-strong { font-weight: 600; }
.rail-mid-right .rail-gap { margin-top: 14px; }
.rail-bottom-right {
  bottom: 26px;
  right: var(--pad-x);
  opacity: 0.55;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 280vh;
  background: #050505;
}
.hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 5, 5, 0.3) 0%,
    rgba(5, 5, 5, 0) 22%,
    rgba(5, 5, 5, 0) 62%,
    rgba(5, 5, 5, 0.5) 100%);
}
.hero-fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 80%;
}

.hero-copy {
  position: absolute;
  left: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  max-width: min(560px, 44vw);
}
.hero-headlines { position: relative; }
.hero-headline {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
}
.hero-headline.is-current {
  position: relative;
  top: auto;
  opacity: 1;
  visibility: visible;
}
.hero-headline .eyebrow { margin-bottom: 22px; }
.hero-headline h1,
.hero-headline h2 {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--bone);
}
.hero-sub {
  margin-top: 24px;
  max-width: 40ch;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  line-height: 1.65;
  color: var(--bone-dim);
  font-weight: 400;
}

.hero-foot {
  position: absolute;
  left: var(--pad-x);
  bottom: 26px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--bone-faint);
  z-index: 5;
}

/* ============ Telemetry HUD ============ */
.hud {
  position: absolute;
  right: var(--pad-x);
  bottom: 64px;
  z-index: 5;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  line-height: 2;
  color: var(--bone-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hud-label {
  color: var(--bone-faint);
  margin-right: 10px;
}
.hud #hudSys { color: #8fd18f; }

/* ============ Path / timeline ============ */
.path {
  background: var(--paper);
  color: var(--ink);
  padding: 12vh var(--pad-x) 10vh;
}
.path-head { margin-bottom: 7vh; }
.path-title {
  margin-top: 26px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.path-list {
  list-style: none;
  position: relative;
  max-width: 860px;
}
.path-list::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--hairline-dark);
}
.path-line {
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(0);
}
.path-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(18px, 3vw, 44px);
  padding: 26px 0 26px 34px;
  position: relative;
}
.path-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 36px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.path-when {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
  padding-top: 6px;
  white-space: nowrap;
}
.path-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.path-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
  opacity: 0.85;
}
.path-body strong { font-weight: 600; }

/* ============ Manifesto (word assembly) ============ */
.manifesto {
  position: relative;
  height: 220vh;
  background: var(--paper);
  color: var(--ink);
}
.manifesto-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 var(--pad-x);
}
.manifesto-text {
  max-width: 30ch;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
}
.manifesto-text .word {
  display: inline-block;
  will-change: transform, filter, opacity;
}

/* ============ Work ============ */
.work {
  background: var(--paper);
  color: var(--ink);
  padding: 12vh var(--pad-x) 12vh;
}
.work-head { margin-bottom: 7vh; }
.work-title {
  margin-top: 26px;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.work-hint {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.5;
}
.work-list { list-style: none; }
.work-row { border-top: 1px solid var(--hairline-dark); }
.work-row:last-child { border-bottom: 1px solid var(--hairline-dark); }

.work-summary {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  width: 100%;
  padding: 34px 0 30px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.work-summary:hover { background: var(--paper-dim); padding-left: 14px; }
.work-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.62;
  font-weight: 600;
}
.work-row-title {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.work-row-sub {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  opacity: 0.85;
}
.work-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  white-space: nowrap;
}
.work-toggle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.5;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.work-row.is-open .work-toggle { transform: rotate(45deg); opacity: 0.9; }

/* expandable detail — grid-rows trick animates height without JS */
.work-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-detail-inner { overflow: hidden; }
.work-row.is-open .work-detail { grid-template-rows: 1fr; }
.work-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 28px 44px;
  padding: 6px 0 42px 64px;
}
.work-group h4 {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
  margin-bottom: 13px;
}
.work-group ul { list-style: none; }
.work-group li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 5px 0;
  opacity: 0.9;
}
.work-group li.proj {
  font-weight: 500;
  color: var(--ink);
}
.work-group li.proj::before {
  content: '\2192\00a0\00a0';
  opacity: 0.45;
}
.work-more {
  display: inline-block;
  margin: 0 0 40px 64px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 0.25s ease;
}
.work-more:hover { opacity: 0.6; }

/* ============ Field sub-pages (work/*.html) ============ */
.page-hero {
  background: #050505;
  color: var(--bone);
  padding: 140px var(--pad-x) 72px;
}
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 16ch;
}
.page-intro {
  margin-top: 26px;
  max-width: 52ch;
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: var(--bone-dim);
}
.page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  list-style: none;
}
.page-chips li {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 13px;
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  color: var(--bone-dim);
  white-space: nowrap;
}

.projects {
  background: var(--paper);
  color: var(--ink);
  padding: 11vh var(--pad-x) 12vh;
}
.projects-head { margin-bottom: 6vh; }
.project {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: 44px 0 48px;
  border-top: 1px solid var(--hairline-dark);
}
.project:last-of-type { border-bottom: 1px solid var(--hairline-dark); }
.project-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.62;
  font-weight: 600;
  padding-top: 8px;
}
.project h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  max-width: 24ch;
}
.project h3 em { font-size: 1.05em; }
.project-body p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 66ch;
  opacity: 0.9;
}
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
}
.project-facts div { font-size: 0.82rem; }
.project-facts dt {
  display: inline;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.5;
  margin-right: 8px;
}
.project-facts dd { display: inline; color: var(--ink-soft); }
/* media slot — drop <figure class="project-media"><img …/></figure> into a
   project to show photos; grid + aspect keep any count of images tidy */
.project-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.project-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.page-foot {
  background: #050505;
  color: var(--bone);
  padding: 12vh var(--pad-x);
  text-align: center;
}
.page-foot h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 38px;
  list-style: none;
}
.page-foot-links a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.25s ease;
}
.page-foot-links a:hover { color: var(--bone); }

@media (max-width: 900px) {
  .page-hero { padding-top: 120px; }
  .project { grid-template-columns: 40px 1fr; }
  .work-more { margin-left: 0; }
}

/* ============ Marquee ============ */
.marquee {
  background: #050505;
  color: var(--bone);
  overflow: hidden;
  padding: 34px 0;
  border-top: 1px solid var(--hairline-light);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 56s linear infinite;
}
.marquee-track span {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.85;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html.no-motion .marquee-track { animation-play-state: paused; }
/* the rails' scroll-driven fade lives in the GSAP context; without motion
   they would sit inverted over the light sections and the footer forever */
html.no-motion .rail { display: none; }

/* ============ Focus ============ */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
.pill-nav a:focus-visible { outline-color: var(--bone); outline-offset: 2px; }
.motion-toggle:focus-visible { outline-color: #fff; }
/* scroll-anchor targets are focused programmatically, not by the keyboard */
main:focus, section:focus, footer:focus { outline: none; }

/* screen-reader-only text (accessible copy of the split manifesto) */
.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;
}

/* ============ Platforms ============ */
.platforms {
  background: #050505;
  color: var(--bone);
  padding: 10vh var(--pad-x) 12vh;
  border-top: 1px solid var(--hairline-light);
}
.platforms > .eyebrow { margin-bottom: 44px; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--hairline-light);
  border: 1px solid var(--hairline-light);
}
.platform-card {
  background: #050505;
  padding: 30px 26px 34px;
  transition: background 0.3s ease;
}
.platform-card:hover { background: #0d0d0e; }
.platform-type {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 18px;
}
.platform-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.platform-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--bone-dim);
}

/* ============ Contact ============ */
.contact {
  background: #050505;
  color: var(--bone);
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16vh var(--pad-x) 12vh;
  position: relative;
}
.contact-title {
  margin-top: 30px;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.contact-email {
  margin-top: 44px;
  color: var(--bone);
  text-decoration: none;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--hairline-light);
  padding-bottom: 6px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact-email:hover { border-color: var(--bone); color: #fff; }
.contact-links {
  list-style: none;
  display: flex;
  gap: 34px;
  margin-top: 54px;
}
.contact-links a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.25s ease;
}
.contact-links a:hover { color: var(--bone); }
.contact-fine {
  position: absolute;
  bottom: 26px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .rail-top-right, .rail-mid-right { display: none; }
  .hud { display: none; }
  .path-item { grid-template-columns: 1fr; gap: 6px; }
  .path-when { padding-top: 0; }
  /* the particle field is full-bleed behind the copy here, so the melt
     streaks need a much stronger scrim to keep the text readable */
  .hero-inner::after {
    background: linear-gradient(180deg,
      rgba(5, 5, 5, 0.3) 0%,
      rgba(5, 5, 5, 0) 20%,
      rgba(5, 5, 5, 0) 42%,
      rgba(5, 5, 5, 0.72) 72%,
      rgba(5, 5, 5, 0.92) 100%);
  }
  .hero-copy {
    max-width: min(520px, 86vw);
    top: auto;
    bottom: 12vh;
    transform: none;
  }
  .hero-headline h1, .hero-headline h2 { font-size: clamp(2.3rem, 9.5vw, 3.4rem); }
  .hero-sub { max-width: 34ch; }
  .work-summary { grid-template-columns: 40px 1fr auto; }
  .work-tag { display: none; }
  .work-groups { padding-left: 0; }
  .brand-sub { display: none; }
}

@media (max-width: 700px) {
  .brand { display: none; }
  .site-chrome { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .pill-nav a { padding: 6px 12px; font-size: 12px; }
  .rail-bottom-right { display: none; }
  .hero-foot { bottom: 18px; }
}

/* Below ~430px a centered top nav collides with the toggle. Float it to the
   bottom instead — more thumb-reachable, and no collision at any width. */
@media (max-width: 430px) {
  .site-chrome {
    inset: auto 0 0 0;
    padding: 0 var(--pad-x) 20px;
  }
  .pill-nav { position: static; transform: none; }
  .pill-nav a { padding: 8px 15px; font-size: 12.5px; }
  .hero-foot { display: none; }
  .hero-copy { bottom: 17vh; }   /* clear the bottom nav pill */
  .contact-links { gap: clamp(16px, 6vw, 34px); }
  .contact-fine { bottom: 74px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .rail { display: none; }
  .work-detail, .work-toggle { transition: none; }
}
html.no-motion .work-detail, html.no-motion .work-toggle { transition: none; }

/* ============ Print ============
   Collapse the pinned scroll spacers, drop the canvas and fixed chrome, and
   flip the dark sections to ink-on-white so the default "no background
   graphics" setting still yields readable pages. */
@media print {
  .site-chrome, .brand, .motion-toggle, .rail, .hud,
  #heroCanvas, .hero-fallback, .marquee { display: none !important; }

  body, .hero, .contact, .platforms {
    background: #fff !important;
    color: var(--ink) !important;
  }
  .hero, .manifesto { height: auto; }
  .hero-inner, .manifesto-pin {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
  }
  .hero-inner::after { display: none; }
  .hero-copy {
    position: static;
    transform: none;
    max-width: 62ch;
    padding: 12mm 0 8mm;
  }
  .hero-headline { position: static; width: auto; }
  .hero-headline[data-headline="1"],
  .hero-headline[data-headline="2"] { display: none; }
  .manifesto { padding: 8mm 0; }
  .manifesto-text { max-width: 62ch; text-align: left; }

  /* GSAP writes inline opacity/transform/filter — override it all */
  .hero-headline, .hero-headline *, .hero-sub, .hero-foot,
  .manifesto-text, .manifesto-text .word,
  .path-head, .path-item, .work-head, .work-row,
  .platform-card, .contact, .contact * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-headline h1, .hero-headline h2, .hero-sub, .hero-foot,
  .platform-card h3, .platform-card p, .platform-type,
  .contact-title, .contact-email, .contact-links a, .contact-fine {
    color: var(--ink) !important;
  }
  .eyebrow span { background: var(--ink) !important; color: #fff !important; }
  .platform-grid { background: none; border-color: var(--hairline-dark); }
  .platform-card { background: none; }
  .contact { min-height: 0; padding: 10mm 0; }
  .contact-fine { position: static; margin-top: 8mm; }
  .path, .work, .platforms { padding: 8mm 0; }
  .path-item, .work-row, .platform-card { break-inside: avoid; }
  /* print everything the accordion holds */
  .work-detail { grid-template-rows: 1fr !important; }
  .work-toggle { display: none; }
  .work-summary { padding: 5mm 0 3mm; }
  .work-groups { padding-bottom: 6mm; }
}
