/* =========================================
   Logo 3D layer + homepage storytelling
   ========================================= */

.logo-3d-layer,
.logo-3d-layer canvas,
.logo-3d-layer__canvas {
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.logo-3d-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none !important;
  display: none;
  opacity: 0;
}

body.has-logo-3d .logo-3d-layer {
  display: block;
}

.logo-3d-layer.is-hero-hidden {
  visibility: hidden;
}

.logo-3d-layer.is-ready:not(.is-hero-hidden) {
  visibility: visible;
}

.logo-3d-layer__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.logo-3d-layer__fallback {
  display: none;
}

.logo-3d-layer.is-fallback .logo-3d-layer__canvas {
  display: none;
}

.logo-3d-layer.is-fallback:not(.is-hero-hidden) .logo-3d-layer__fallback {
  display: block;
  position: absolute;
  top: 45%;
  left: 60%;
  width: min(28vw, 300px);
  opacity: 0.2;
  pointer-events: none !important;
}

/* Header must NOT create a stacking/containing context that traps .nav (fixed).
   Otherwise the bar can scroll away and never come back until reload. */
body.has-logo-3d .site-header,
body.has-logo-3d header {
  position: static;
  z-index: auto;
}

body.has-logo-3d footer {
  position: relative;
  z-index: 2;
}

body.has-logo-3d .nav {
  position: fixed;
  z-index: 200;
}

/* Keep original absolute/fixed menu — never force relative (it inflated the header ~442px) */
body.has-logo-3d .nav__mobile-menu {
  z-index: 210;
}

body.has-logo-3d .loader,
body.has-logo-3d .transition-overlay {
  z-index: var(--z-loader, 400);
}

/*
  Hero must keep its original absolute deco / bottom layout.
  Never force position:relative on those elements — that pushed the
  title down and broke the validated composition.
*/
body.has-logo-3d .home-hero {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg, #ffffff);
}

/* Keep title above hero chrome only — never change its position scheme */
body.has-logo-3d .home-hero__title {
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 800;
}

/* Let the fixed 3D layer sit under section content, not under a whole main stacking context */
body.has-logo-3d main {
  position: relative;
  z-index: auto;
}

/* =========================================
   Sections layering — readable + 3D peek
   ========================================= */

.home-sections {
  position: relative;
  z-index: 1;
  color: var(--text-primary, #111);
}

.home-section {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 12vh, 9rem) clamp(1.15rem, 5vw, 4.5rem);
  overflow: hidden;
}

.home-section-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.home-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.42);
}

.home-manifesto::before {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.12) 100%);
}

.home-craft::before {
  background: linear-gradient(280deg, rgba(246, 247, 249, 0.62) 0%, rgba(246, 247, 249, 0.32) 48%, rgba(246, 247, 249, 0.1) 100%);
}

.home-method.method-scroll::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 62%, rgba(255, 255, 255, 0.12) 100%);
}

.home-work::before {
  background: linear-gradient(90deg, rgba(246, 247, 249, 0.78) 0%, rgba(246, 247, 249, 0.55) 70%, rgba(246, 247, 249, 0.2) 100%);
}

.home-proofs::before {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.38) 60%, rgba(255, 255, 255, 0.15) 100%);
}

.home-cta::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0.88) 100%);
}

.home-section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  margin-bottom: 1.5rem;
}

.home-section__label::after {
  content: '';
  width: 0;
  height: 1px;
  background: var(--accent-blue, #146ef5);
  transition: width 0.9s ease;
}

.reveal-label.is-in::after,
.home-section__label.is-in::after {
  width: 2.5rem;
}

/* =========================================
   Reveal system
   ========================================= */

.reveal-line {
  display: block;
  overflow: hidden;
  margin: 0;
}

.reveal-line__inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.reveal-line.is-in .reveal-line__inner,
.reveal-line__inner.is-in {
  transform: translateY(0);
  opacity: 1;
}

.reveal-label {
  opacity: 0;
  transform: translateX(-12px);
  letter-spacing: 0.28em;
  transition: opacity 0.7s ease, transform 0.7s ease, letter-spacing 0.9s ease;
}

.reveal-label.is-in {
  opacity: 1;
  transform: none;
  letter-spacing: 0.16em;
}

.reveal-copy {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-copy.is-in {
  opacity: 1;
  transform: none;
}

.reveal-blue-word {
  color: var(--accent-blue, #146ef5);
  position: relative;
  display: inline-block;
}

.reveal-blue-word::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 0;
  height: 0.08em;
  background: currentColor;
  transition: width 0.8s ease 0.25s;
}

.reveal-line.is-in .reveal-blue-word::after,
.is-in .reveal-blue-word::after {
  width: 100%;
}

.reveal-line:nth-child(2) .reveal-line__inner { transition-delay: 0.08s; }
.reveal-line:nth-child(3) .reveal-line__inner { transition-delay: 0.16s; }
.reveal-line:nth-child(4) .reveal-line__inner { transition-delay: 0.24s; }
.reveal-copy { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-line__inner,
  .reveal-label,
  .reveal-copy {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    letter-spacing: 0.16em !important;
  }
  .reveal-blue-word::after { width: 100%; transition: none; }
}

/* =========================================
   Manifesto
   ========================================= */

.home-manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-manifesto__lines {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
  color: #111;
}

.home-manifesto__sub {
  margin-top: 2rem;
  max-width: 28ch;
  color: var(--text-secondary, #4b5563);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* =========================================
   Craft (new immersive section)
   ========================================= */

.home-craft {
  min-height: 120vh;
  display: flex;
  align-items: center;
}

.home-craft__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  min-height: 70vh;
}

.home-craft__title {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.home-craft__lead {
  margin: 0;
  max-width: 34ch;
  color: var(--text-secondary, #4b5563);
  line-height: 1.6;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.home-craft__aside {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.25rem;
  max-width: 22rem;
}

.home-craft__note {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.home-craft__keywords {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-craft__keywords li {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-craft__float {
  position: absolute;
  inset: 10% 0 auto;
  pointer-events: none;
  z-index: 1;
}

.home-craft__word {
  position: absolute;
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 110, 245, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-craft.is-in .home-craft__word {
  opacity: 1;
  transform: none;
}

.home-craft__word:nth-child(1) { top: 8%; right: 8%; transition-delay: 0.1s; }
.home-craft__word:nth-child(2) { top: 34%; right: 22%; transition-delay: 0.22s; }
.home-craft__word:nth-child(3) { top: 58%; right: 6%; transition-delay: 0.34s; }
.home-craft__word:nth-child(4) { top: 78%; right: 28%; transition-delay: 0.46s; }

@media (min-width: 900px) {
  .home-craft__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.55fr);
    align-items: end;
  }
}

/* =========================================
   Method — vertical scroll → horizontal chapters
   Pin via position:fixed; panel width via --method-panel-w (JS).
   Hold + soft snap handled in home-sections.js.
   ========================================= */

.method-scroll {
  --method-panels: 5;
  --method-panel-w: 100%;
  position: relative;
  z-index: 1;
  height: calc(var(--method-panels) * 120vh);
  height: calc(var(--method-panels) * 120dvh);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.method-sticky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  z-index: 2;
  display: flex;
  align-items: stretch;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.28) 55%,
    rgba(255, 255, 255, 0.08) 100%
  );
  transform: none;
}

.method-sticky.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
}

.method-sticky.is-end {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
}

.method-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 100%;
  width: max-content;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.method-panel {
  flex: 0 0 var(--method-panel-w);
  width: var(--method-panel-w);
  height: 100%;
  min-height: 100%;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  display: grid;
  align-items: stretch;
  box-sizing: border-box;
  padding: 0;
  transform: none;
  opacity: 1;
}

.method-panel__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  column-gap: clamp(1.25rem, 4vw, 4rem);
  row-gap: 0.35rem;
  padding-inline: clamp(20px, 5vw, 72px);
  padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 72px));
  padding-bottom: max(42px, calc(env(safe-area-inset-bottom, 0px) + 28px));
  align-content: stretch;
  overflow: hidden;
}

.method-panel__label {
  grid-column: 1 / -1;
  grid-row: 1;
  display: inline-block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  margin: 0 0 0.35rem;
  max-width: 100%;
}

.method-panel__section-title {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 clamp(0.75rem, 2vh, 1.5rem);
  color: var(--text-primary, #111);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.method-panel__num {
  grid-column: 1;
  grid-row: 3 / 5;
  align-self: center;
  display: block;
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(6rem, 12vw, 12rem);
  font-weight: 800;
  line-height: 0.78;
  color: var(--accent-blue, #146ef5);
  letter-spacing: -0.055em;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  opacity: 0.5;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.method-panel__heading {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(2.5rem, 4.8vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 0.35rem;
  color: var(--text-primary, #111);
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
  text-wrap: balance;
  opacity: 0.4;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.method-panel__heading--long {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

/* Desktop / tablet landscape: keep long titles fully inside the panel */
@media (min-width: 769px) {
  .method-panel__heading--long {
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
  }

  .method-panel__heading--xl {
    font-size: clamp(1.75rem, 2.7vw, 2.85rem);
    letter-spacing: -0.045em;
  }
}

.method-panel__copy {
  grid-column: 2;
  grid-row: 4;
  align-self: start;
  justify-self: start;
  margin: 0.65rem 0 0;
  width: 100%;
  max-width: min(36rem, 100%);
  min-width: 0;
  color: var(--text-secondary, #4b5563);
  line-height: 1.5;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  overflow-wrap: break-word;
  opacity: 0.35;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.method-panel__meta {
  grid-column: 1 / -1;
  grid-row: 5;
  align-self: end;
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(28rem, 100%);
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 0.5;
  transition: opacity 0.65s ease 0.15s;
}

.method-panel__count {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.method-panel__bar {
  height: 3px;
  width: 100%;
  max-width: 100%;
  background: #e5e7eb;
  overflow: hidden;
  border-radius: 1px;
}

.method-panel__bar span {
  display: block;
  height: 100%;
  background: var(--accent-blue, #146ef5);
}

.method-panel.is-active .method-panel__num,
.method-panel.is-active .method-panel__heading,
.method-panel.is-active .method-panel__copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.method-panel.is-active .method-panel__meta {
  opacity: 1;
}

.method-panel:not(:has(.method-panel__section-title)) .method-panel__inner {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.method-panel:not(:has(.method-panel__section-title)) .method-panel__num {
  grid-row: 1 / 3;
}

.method-panel:not(:has(.method-panel__section-title)) .method-panel__heading {
  grid-row: 1;
}

.method-panel:not(:has(.method-panel__section-title)) .method-panel__copy {
  grid-row: 2;
}

.method-panel:not(:has(.method-panel__section-title)) .method-panel__meta {
  grid-row: 3;
}

.method-stack {
  display: none;
  list-style: none;
  margin: 0;
  padding: clamp(4.5rem, 12vh, 7rem) clamp(1.15rem, 5vw, 4.5rem);
  flex-direction: column;
  gap: clamp(2rem, 6vh, 3.5rem);
  position: relative;
  z-index: 2;
}

.method-stack li {
  display: grid;
  grid-template-columns: minmax(3.5rem, 5rem) 1fr;
  gap: 1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.35rem;
}

.method-stack__num {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-blue, #146ef5);
  letter-spacing: -0.04em;
}

.method-stack h3 {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.method-stack p {
  margin: 0;
  max-width: 38ch;
  color: var(--text-secondary, #4b5563);
  line-height: 1.6;
}

.method-scroll.is-reduced {
  height: auto !important;
  overflow: visible;
}

.method-scroll.is-reduced .method-sticky {
  display: none;
}

.method-scroll.is-reduced .method-stack {
  display: flex;
}

@media (max-width: 1024px) {
  .method-panel__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    row-gap: 0.3rem;
    padding-inline: clamp(20px, 4vw, 40px);
  }

  .method-panel__label { grid-row: 1; }
  .method-panel__section-title { grid-row: 2; }

  .method-panel__num {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    font-size: clamp(5.5rem, 18vw, 9rem);
    max-width: 100%;
  }

  .method-panel__heading {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    max-width: 100%;
  }

  .method-panel__copy {
    grid-column: 1;
    grid-row: 5;
    align-self: start;
    margin-top: 0;
    max-width: min(36rem, 100%);
  }

  .method-panel__meta {
    grid-column: 1;
    grid-row: 6;
    width: 100%;
  }

  .method-panel:not(:has(.method-panel__section-title)) .method-panel__inner {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .method-panel:not(:has(.method-panel__section-title)) .method-panel__num { grid-row: 1; }
  .method-panel:not(:has(.method-panel__section-title)) .method-panel__heading { grid-row: 2; }
  .method-panel:not(:has(.method-panel__section-title)) .method-panel__copy { grid-row: 3; }
  .method-panel:not(:has(.method-panel__section-title)) .method-panel__meta { grid-row: 4; }
}

@media (max-width: 767px) {
  .method-panel {
    min-height: 100svh;
    overflow: hidden;
    overflow: clip;
  }

  .method-panel__inner {
    min-height: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    align-items: start;
    row-gap: 0.4rem;
    padding-inline: clamp(20px, 5vw, 28px);
    padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 72px));
    padding-bottom: max(42px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  }

  .method-panel__label {
    grid-row: 1;
    font-size: 0.7rem;
  }

  .method-panel__section-title {
    grid-row: 1;
    font-size: clamp(1.45rem, 6.5vw, 1.95rem);
    margin-bottom: 0.5rem;
  }

  .method-panel:has(.method-panel__section-title) .method-panel__inner {
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  }

  .method-panel:has(.method-panel__section-title) .method-panel__label { grid-row: 1; }
  .method-panel:has(.method-panel__section-title) .method-panel__section-title { grid-row: 2; }
  .method-panel:has(.method-panel__section-title) .method-panel__num { grid-row: 3; }
  .method-panel:has(.method-panel__section-title) .method-panel__heading { grid-row: 4; }
  .method-panel:has(.method-panel__section-title) .method-panel__copy {
    grid-row: 5;
    align-self: center;
    margin-top: 0;
  }
  .method-panel:has(.method-panel__section-title) .method-panel__meta { grid-row: 6; }

  .method-panel__num {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    font-size: clamp(5.5rem, 24vw, 8.5rem);
    line-height: 0.78;
    max-width: 100%;
    margin: 0;
  }

  .method-panel__heading {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin: 0;
  }

  .method-panel__heading--long {
    font-size: clamp(1.7rem, 7.2vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .method-panel__heading--xl {
    font-size: clamp(1.4rem, 5.8vw, 2.35rem);
    letter-spacing: -0.045em;
  }

  .method-panel__copy {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    width: 100%;
    max-width: min(36rem, calc(100vw - 40px));
    margin-top: 0;
    font-size: clamp(1rem, 4.3vw, 1.3rem);
    line-height: 1.45;
  }

  .method-panel__meta {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    align-self: end;
  }

  .method-panel__bar {
    height: 4px;
    width: 100%;
    max-width: 100%;
  }

  .method-panel:not(:has(.method-panel__section-title)) .method-panel__inner {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .method-panel:not(:has(.method-panel__section-title)) .method-panel__num { grid-row: 1; }
  .method-panel:not(:has(.method-panel__section-title)) .method-panel__heading { grid-row: 2; }
  .method-panel:not(:has(.method-panel__section-title)) .method-panel__copy { grid-row: 3; align-self: center; margin-top: 0; }
  .method-panel:not(:has(.method-panel__section-title)) .method-panel__meta { grid-row: 4; }
}

@media (max-width: 390px) {
  .method-panel__heading--long {
    font-size: clamp(1.55rem, 6.8vw, 2.6rem);
  }

  .method-panel__heading--xl {
    font-size: clamp(1.25rem, 5.4vw, 2rem);
  }
}

@media (max-width: 380px) {
  .method-panel__inner {
    padding-inline: 18px;
  }

  .method-panel__num {
    font-size: clamp(4.75rem, 26vw, 7rem);
  }

  .method-panel__heading {
    font-size: clamp(1.85rem, 9vw, 2.75rem);
  }

  .method-panel__heading--long {
    font-size: clamp(1.55rem, 6.8vw, 2.6rem);
  }

  .method-panel__heading--xl {
    font-size: clamp(1.25rem, 5.4vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-panel__num,
  .method-panel__heading,
  .method-panel__copy,
  .method-panel__meta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .method-scroll:not(.is-horizontal) {
    height: auto !important;
  }

  .method-scroll:not(.is-horizontal) .method-sticky {
    display: none;
  }

  .method-scroll:not(.is-horizontal) .method-stack {
    display: flex;
  }
}

/* =========================================
   Projects horizontal slider
   ========================================= */

.home-work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}

.home-work__title {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.home-work__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.home-work__all {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue, #146ef5);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.home-work__nav {
  display: flex;
  gap: 0.5rem;
}

.home-work__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.home-work__arrow:hover {
  border-color: #111;
}

.home-work__viewport {
  overflow: hidden;
}

.home-work__track {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.home-work__track::-webkit-scrollbar {
  display: none;
}

.home-work__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.home-work__slide {
  flex: 0 0 min(82vw, 980px);
  scroll-snap-align: center;
}

.home-work__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-work__media {
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
}

.home-work__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.home-work__card:hover .home-work__media img {
  transform: scale(1.035);
}

.home-work__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: baseline;
  margin-top: 1rem;
}

.home-work__name {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 800;
  margin: 0;
  width: 100%;
}

.home-work__tag,
.home-work__place,
.home-work__year,
.home-work__hint {
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
}

.home-work__hint {
  margin-left: auto;
  color: var(--accent-blue, #146ef5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.home-work__pager {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.home-work__pager button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #d1d5db;
  padding: 0;
  cursor: pointer;
}

.home-work__pager button.is-active {
  background: var(--accent-blue, #146ef5);
  width: 22px;
}

/* =========================================
   Proofs + CTA
   ========================================= */

.home-proofs__title {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
}

.home-proofs__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.home-proofs__item {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.15rem;
}

.home-proofs__kicker {
  display: block;
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.home-proofs__item p {
  margin: 0;
  color: var(--text-secondary, #4b5563);
  max-width: 28ch;
  line-height: 1.55;
}

.home-cta {
  padding-block: clamp(5.5rem, 14vh, 10rem);
}

.home-cta__title {
  font-family: var(--font-display, 'Syne', 'Inter', sans-serif);
  font-size: clamp(2.1rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.home-cta__copy {
  margin: 0 0 2rem;
  max-width: 34ch;
  color: var(--text-secondary, #4b5563);
  line-height: 1.55;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.home-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.home-cta__btn--primary {
  background: var(--accent-blue, #146ef5);
  color: #fff;
}

.home-cta__btn--ghost {
  border: 1px solid #d1d5db;
  color: #111;
}

/* Zoom transition overlay */
.project-zoom-clone {
  position: fixed;
  z-index: 9999;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  will-change: top, left, width, height, border-radius;
}

.project-zoom-clone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-zoom-veil {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.project-zoom-veil.is-on {
  opacity: 1;
}

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

@media (min-width: 1100px) {
  .home-proofs__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .home-craft {
    min-height: auto;
    padding-block: clamp(4rem, 12vh, 6rem);
  }

  .home-craft__float {
    display: none;
  }

  .home-manifesto {
    min-height: auto;
    padding-block: clamp(4.5rem, 14vh, 7rem);
  }

  .home-work__slide {
    flex-basis: min(86vw, 420px);
  }

  .method-stack li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .home-cta__btn {
    width: 100%;
  }
}
