:root {
  --bg: #000000;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1);
  --glass-bg: rgba(255, 255, 255, 0.028);
  --glass-border: rgba(255, 255, 255, 0.078);
  --glass-inner: rgba(255, 255, 255, 0.022);
}

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

html {
  background: var(--bg);
  height: 100%;
  scroll-behavior: auto;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.9);
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.philo-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.philo-skip:focus {
  left: max(0.5rem, env(safe-area-inset-left));
  top: max(0.5rem, env(safe-area-inset-top));
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111;
  z-index: 10120;
  outline: 1px solid rgba(255, 255, 255, 0.3);
}

/* Intro gate covers page until Begin (same pattern as Alma home) */
body:not(.alma-ready) {
  overflow: hidden;
}

body:not(.alma-ready) .philo-main,
body:not(.alma-ready) .top-glass-dock,
body:not(.alma-ready) .bottom-glass {
  visibility: hidden;
  pointer-events: none;
}

/* —— Top nav (Alma) —— */
.top-glass {
  position: fixed;
  top: max(0.65rem, calc(env(safe-area-inset-top) + 0.35rem));
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.15rem, 1.2vw, 0.45rem);
  padding: 0.42rem clamp(0.45rem, 1.5vw, 0.65rem);
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 var(--glass-inner) inset;
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  pointer-events: auto;
  overflow: visible;
  isolation: isolate;
  max-width: calc(100vw - 1.25rem);
}

@supports (-webkit-touch-callout: none) {
  .top-glass {
    backdrop-filter: blur(12px) saturate(1.03);
    -webkit-backdrop-filter: blur(12px) saturate(1.03);
  }
}

.top-glass nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.05rem, 0.8vw, 0.28rem);
}

.top-glass a {
  font-size: clamp(0.52rem, 1.05vw, 0.62rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  padding: 0.38rem clamp(0.5rem, 1.4vw, 0.72rem);
  border-radius: 9999px;
  transition: color 0.45s var(--ease), background 0.45s var(--ease);
  white-space: nowrap;
}

.top-glass a:hover,
.top-glass a:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.top-glass a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.22);
  outline-offset: 2px;
}

.top-glass a.top-glass__core {
  letter-spacing: 0.14em;
}

.top-glass a.top-glass__here {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.top-glass__lab-home {
  position: relative;
  z-index: 1;
  isolation: isolate;
  color: rgba(255, 255, 255, 0.52) !important;
  padding-inline: clamp(0.5rem, 1.5vw, 0.78rem) !important;
}

.top-glass__lab-home::before {
  content: "";
  position: absolute;
  inset: -12px -16px;
  border-radius: 9999px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 145% at 32% 38%, rgba(255, 252, 248, 0.2) 0%, rgba(255, 255, 255, 0.06) 44%, transparent 72%),
    radial-gradient(ellipse 90% 130% at 72% 58%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 48%, transparent 70%),
    radial-gradient(ellipse 70% 95% at 50% 82%, rgba(255, 252, 248, 0.1) 0%, transparent 58%);
  filter: blur(14px);
  opacity: 0.56;
  animation: top-glass-nebula 10.5s ease-in-out infinite;
}

@keyframes top-glass-nebula {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.98);
    filter: blur(12px);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.04);
    filter: blur(15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-glass__lab-home::before {
    animation: none;
  }
}

/* Footer shell: alma-universal.css */

/* —— Main —— */
.philo-main {
  position: relative;
}

/* Page 1: Daena studio philosophy (butterflies + glass) */
.philo-alma {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(5.5rem, 14vh, 7.5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(3.5rem, 10vh, 5.5rem);
  background: radial-gradient(ellipse 100% 80% at 50% 20%, #0a0a0c 0%, #000 55%, #020203 100%);
  overflow-x: visible;
  overflow-y: hidden;
}

.philo-alma__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.philo-alma__bf-layer {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  z-index: 0;
  pointer-events: none;
}

.philo-alma-bf {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(16px, 2.4vw, 24px);
  height: clamp(12px, 1.85vw, 18px);
  opacity: var(--bf-op, 0.45);
  transform: translate3d(-50%, -50%, 0) translate(var(--bf-tx, 0px), var(--bf-ty, 0px)) rotate(var(--bf-rot, 0deg))
    scale(var(--bf-sc, 0.35));
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px rgba(198, 172, 255, 0.22)) drop-shadow(0 0 16px rgba(112, 198, 255, 0.12))
    drop-shadow(0 0 24px rgba(255, 252, 248, 0.05));
}

.philo-alma-bf svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
}

.philo-alma__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 38%, transparent 0%, rgba(0, 0, 0, 0.24) 62%, rgba(0, 0, 0, 0.55) 100%);
}

.philo-alma__content {
  position: relative;
  z-index: 10;
  isolation: isolate;
  max-width: 38rem;
  margin: 0 auto;
  pointer-events: auto;
}

.philo-alma__kicker {
  font-size: clamp(0.5rem, 1vw, 0.58rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
  margin-bottom: 1rem;
  text-align: center;
}

.philo-alma__title {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 0.35rem;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.06);
}

.philo-alma__sub {
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.15rem;
}

.philo-alma__lead {
  font-size: clamp(0.76rem, 1.45vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.055em;
  line-height: 1.65;
  text-align: center;
  color: rgba(255, 255, 255, 0.52);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.philo-alma__lead strong {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

/* Schedule-aligned liquid glass panels (same radii / padding / stack rhythm as .schedule-glass) */
.philo-alma__glass {
  position: relative;
  z-index: 1;
  background: var(--alma-liquid-shine), var(--alma-liquid-veil);
  border: 1px solid var(--alma-liquid-border);
  border-radius: 1.1rem;
  padding: clamp(1rem, 2.6vw, 1.35rem) clamp(1.05rem, 2.8vw, 1.5rem);
  margin-bottom: 0.75rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.32) inset,
    0 1px 0 var(--alma-liquid-inset) inset,
    var(--alma-liquid-shadow);
  backdrop-filter: blur(var(--alma-liquid-blur)) saturate(var(--alma-liquid-sat));
  -webkit-backdrop-filter: blur(var(--alma-liquid-blur)) saturate(var(--alma-liquid-sat));
}

.philo-alma__glass p {
  font-size: clamp(0.76rem, 1.5vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.philo-alma__glass p + p {
  margin-top: 0.8rem;
}

.philo-alma__glass em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

.philo-alma__foot {
  margin-top: 2rem;
  text-align: center;
}

.philo-alma__credit {
  margin-bottom: 1.25rem;
}

.philo-alma__credit-name {
  font-size: clamp(0.62rem, 1.15vw, 0.74rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.45rem;
}

.philo-alma__credit-roles {
  font-size: clamp(0.68rem, 1.28vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.philo-alma__credit-line {
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.65;
  color: rgba(255, 250, 245, 0.76);
  margin: 1.1rem 0 0;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.philo-alma__credit-line em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 28px rgba(255, 252, 248, 0.22);
}

.philo-alma__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(0.68rem, 1.25vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 0.95rem 1.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.philo-alma__continue:hover,
.philo-alma__continue:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 36px rgba(198, 172, 255, 0.1);
}

.philo-alma__continue:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.25);
  outline-offset: 3px;
}

.philo-alma__hint {
  margin-top: 1.15rem;
  font-size: clamp(0.56rem, 1.05vw, 0.64rem);
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .philo-alma-bf {
    display: none;
  }
}

/*
 * Safari (macOS + iOS): WebKit often mis-orders backdrop-filter + animated layers vs siblings.
 * html.alma-safari is set in philosophy-gate.js (UA sniff).
 */
html.alma-safari .philo-alma {
  isolation: auto;
}

html.alma-safari .philo-alma__bg {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

html.alma-safari .philo-alma__bf-layer {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

html.alma-safari .philo-alma-bf {
  will-change: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.alma-safari .philo-alma__content {
  isolation: auto;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

html.alma-safari .philo-alma__glass {
  background: linear-gradient(168deg, rgba(255, 252, 248, 0.1) 0%, rgba(22, 22, 26, 0.04) 100%), rgba(6, 6, 8, 0.38);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
  backdrop-filter: blur(16px) saturate(1.06);
}

html.alma-safari .philo-alma__continue {
  background: rgba(32, 32, 36, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  backdrop-filter: blur(14px) saturate(1.04);
}

html.alma-safari .philo-intro__frame {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

html.alma-safari .philo-intro__copy {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

html.alma-safari .philo-intro__media-inner {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Section 2: chief editor biography — visual intro */
.philo-intro {
  position: relative;
  width: 100%;
}

.philo-intro__frame {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #030303;
}

.philo-intro__media,
.philo-intro__media-inner,
.philo-img,
.philo-portrait,
.philo-portrait__layer,
.philo-portrait__shift,
.philo-portrait__bg,
.philo-portrait__fg {
  pointer-events: none;
}

.philo-intro__media {
  position: absolute;
  inset: 0;
}

.philo-intro__media-inner {
  position: absolute;
  inset: 0;
  --philo-g: 1;
  --philo-s: 0.22;
  --philo-b: 0.76;
  --philo-c: 1.1;
  filter: grayscale(var(--philo-g)) saturate(var(--philo-s)) brightness(var(--philo-b)) contrast(var(--philo-c));
  will-change: filter, transform;
}

.philo-img {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  will-change: transform, opacity;
}

.philo-img--wide {
  z-index: 1;
}

.philo-img--zoom {
  z-index: 2;
  opacity: 0;
}

.philo-portrait {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

/* Background plate + cutout model: scroll parallax on layers, pointer parallax on shifts */
.philo-portrait__layer {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  will-change: transform;
  pointer-events: none;
}

.philo-portrait__layer--bg {
  z-index: 1;
}

.philo-portrait__layer--fg {
  z-index: 2;
}

.philo-portrait__shift {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.philo-portrait__bg,
.philo-portrait__fg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 28%;
  pointer-events: none;
}

.philo-portrait__fg {
  filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.4));
}

.philo-intro__veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.philo-intro__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem);
  padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 5rem));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.22) 52%, transparent 100%);
  pointer-events: none;
}

.philo-intro__quote {
  margin: 0 0 1.15rem;
  padding: 0 0 0 0.85rem;
  border-left: 1px solid rgba(200, 215, 255, 0.35);
  max-width: 36ch;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.philo-intro__quote p {
  margin: 0;
  font-size: clamp(0.72rem, 1.45vw, 0.86rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.035em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.philo-intro__quote em {
  font-style: normal;
  color: rgba(230, 238, 255, 0.82);
}

.philo-intro__kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  opacity: 0;
  line-height: 1.45;
  max-width: 38ch;
}

.philo-intro__name {
  display: block;
  font-size: clamp(0.58rem, 1.1vw, 0.68rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.philo-intro__role-line {
  display: block;
  font-size: clamp(0.52rem, 1vw, 0.6rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.52);
}

.philo-intro__thinking-line {
  display: block;
  font-size: clamp(0.58rem, 1.08vw, 0.68rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: rgba(255, 248, 240, 0.72);
  max-width: 36ch;
}

.philo-intro__thinking-line em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 20px rgba(255, 252, 248, 0.2);
}

.philo-intro__title {
  font-size: clamp(1.35rem, 4.2vw, 2.35rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 20ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  color: rgba(255, 255, 255, 0.96);
}

.philo-intro__stanza {
  font-size: clamp(0.76rem, 1.55vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.045em;
  line-height: 1.68;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.65rem;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.philo-intro__stanza:last-of-type {
  margin-bottom: 0.35rem;
}

.philo-intro__hint {
  margin-top: 1.35rem;
  font-size: clamp(0.48rem, 0.95vw, 0.55rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  opacity: 0;
}

body.philo-static .philo-alma__kicker,
body.philo-static .philo-alma__title,
body.philo-static .philo-alma__sub,
body.philo-static .philo-alma__lead,
body.philo-static .philo-alma__glass,
body.philo-static .philo-scroll-reveal,
body.philo-static .philo-manifesto__p,
body.philo-static .philo-alma__foot {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

body.philo-static .philo-intro__media-inner {
  --philo-g: 0;
  --philo-s: 1;
  --philo-b: 1;
  --philo-c: 1;
}

body.philo-static .philo-intro__quote,
body.philo-static .philo-intro__kicker,
body.philo-static .philo-intro__title,
body.philo-static .philo-intro__stanza,
body.philo-static .philo-intro__hint {
  opacity: 1;
  transform: none;
}

body.philo-static .philo-img--wide {
  opacity: 0;
}

body.philo-static .philo-img--zoom {
  opacity: 0;
}

body.philo-static .philo-portrait {
  opacity: 1;
}

/* Section 2: video */
.philo-video {
  position: relative;
  min-height: 280vh;
  background: #000;
}

.philo-video__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #000;
}

.philo-video__scale {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: scale(0.78);
  transform-origin: 50% 45%;
}

.philo-video__scale video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) brightness(0.98);
}

.philo-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0%,
    transparent 38%,
    transparent 58%,
    rgba(0, 0, 0, 0.52) 100%
  );
  pointer-events: none;
}

.philo-video__copy {
  position: absolute;
  z-index: 3;
  left: clamp(1rem, 5vw, 4rem);
  right: clamp(1rem, 5vw, 4rem);
  bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 3.25rem));
  max-width: min(96vw, 52rem);
  margin: 0 auto;
}

.philo-video__fragment {
  font-size: clamp(1.45rem, 7.2vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: clamp(0.65rem, 2.5vw, 1.35rem);
  opacity: 0.94;
  will-change: opacity, transform;
  text-wrap: balance;
}

.philo-video__fragment:last-child {
  margin-bottom: 0;
}

/* Footer “Media” preference — lighter treatment for philosophy imagery (saved on device) */
html[data-alma-media="save"] .philo-intro__media-inner .philo-img,
html[data-alma-media="save"] .philo-intro__media-inner .philo-portrait__bg,
html[data-alma-media="save"] .philo-intro__media-inner .philo-portrait__fg {
  filter: grayscale(0.12) saturate(0.9) contrast(0.98) brightness(0.95);
}

html[data-alma-media="save"] .philo-close__img {
  filter: grayscale(0.1) saturate(0.88) contrast(0.98) brightness(0.94);
}

html[data-alma-media="save"] .philo-video__scale video {
  filter: contrast(1.02) brightness(0.9) saturate(0.82);
}

html[data-alma-media="super"] .philo-intro__media-inner .philo-img,
html[data-alma-media="super"] .philo-intro__media-inner .philo-portrait__bg,
html[data-alma-media="super"] .philo-intro__media-inner .philo-portrait__fg {
  filter: saturate(1.05) contrast(1.03) brightness(1.02);
}

html[data-alma-media="super"] .philo-close__img {
  filter: grayscale(0.04) saturate(1.06) contrast(1.03) brightness(1.02);
}

/* Section 3: closing — tall track + sticky viewport for scroll-driven zoom */
.philo-close {
  position: relative;
  min-height: 260vh;
  background: #020202;
}

.philo-close__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.philo-close__zoom {
  position: absolute;
  inset: -1%;
  width: 102%;
  height: 102%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: scale(0.84);
  transform-origin: 50% 45%;
}

.philo-close__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: grayscale(0.06) saturate(1) contrast(1.02) brightness(1);
  pointer-events: none;
  will-change: transform, filter;
}

.philo-close__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.38) 48%, transparent 78%);
  z-index: 1;
  pointer-events: none;
}

.philo-close__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 5.5rem));
}

@media (prefers-reduced-motion: reduce) {
  .philo-close {
    min-height: 100vh;
    min-height: 100svh;
  }

  .philo-close__zoom {
    transform: scale(1);
  }

  .philo-close__img {
    filter: grayscale(0.9) saturate(0.28) contrast(1.06) brightness(0.95);
  }
}

.philo-close__word {
  font-size: clamp(0.48rem, 0.95vw, 0.55rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.philo-close__title {
  font-size: clamp(1.2rem, 3.5vw, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.35;
  max-width: 22ch;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.philo-close__body {
  font-size: clamp(0.8rem, 1.55vw, 0.92rem);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.75;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.35rem;
}

.philo-close__highlight {
  display: block;
  margin-top: 1.35rem;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.55vw, 1.38rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.045em;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 48px rgba(198, 172, 255, 0.18),
    0 0 96px rgba(112, 198, 255, 0.08);
}

.philo-close__highlight::before {
  content: "\201C";
  margin-right: 0.12em;
  font-style: normal;
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.06em;
  color: rgba(198, 172, 255, 0.65);
  text-shadow: 0 0 28px rgba(198, 172, 255, 0.35);
}

.philo-close__highlight::after {
  content: "\201D";
  margin-left: 0.08em;
  font-style: normal;
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.06em;
  color: rgba(198, 172, 255, 0.65);
  text-shadow: 0 0 28px rgba(198, 172, 255, 0.35);
}

.philo-close__invite {
  font-size: clamp(0.88rem, 1.65vw, 1.02rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 1.75rem 0 1.5rem;
  max-width: 28ch;
}

.philo-close__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.35vw, 0.84rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 1rem 2rem;
  border-radius: 9999px;
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset;
}

.philo-close__cta:hover,
.philo-close__cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.philo-close__cta:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.28);
  outline-offset: 4px;
}

/* —— Responsive: phone / tablet / desktop —— */
@media (max-width: 480px) {
  .top-glass {
    max-width: calc(100vw - 0.75rem);
    padding: 0.35rem 0.4rem;
  }

  .top-glass a {
    font-size: clamp(0.46rem, 2.8vw, 0.54rem);
    letter-spacing: 0.08em;
    padding: 0.32rem 0.42rem;
  }

  .philo-intro__copy {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 4.25rem));
  }

  .philo-intro__title {
    max-width: 100%;
  }

  .philo-intro__stanza {
    max-width: 100%;
  }

  .philo-video__copy {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    max-width: none;
  }

  .philo-video__fragment {
    font-size: clamp(1.2rem, 8.2vw, 2.65rem);
    line-height: 1.14;
  }

  .philo-close__inner {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .philo-close__body,
  .philo-close__highlight,
  .philo-close__invite {
    max-width: 100%;
  }

  .philo-close__cta {
    width: 100%;
    max-width: 22rem;
    box-sizing: border-box;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .philo-intro__title {
    max-width: 22ch;
  }

  .philo-video {
    min-height: 260vh;
  }

  .philo-close {
    min-height: 240vh;
  }
}

@media (max-width: 640px) {
  .philo-intro__copy {
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .philo-portrait__bg,
  .philo-portrait__fg {
    object-position: center 24%;
  }

  .philo-close__zoom {
    transform-origin: 50% 42%;
  }

  .philo-close__img {
    object-position: 50% 42%;
  }
}

/* —— Manifesto: second “page” after glass — vertically centered, two columns —— */
.philo-manifesto-page {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: min(100dvh, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Break out of .philo-alma__content max-width; 50% = half parent, 50vw = half viewport */
  width: 100vw;
  max-width: 100vw;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.philo-manifesto--plain.philo-manifesto--compact-cols {
  margin: 0;
  padding: 0;
  border: none;
  max-width: min(68rem, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  column-count: 2;
  column-gap: clamp(1.15rem, 3.2vw, 2rem);
  column-fill: balance;
}

.philo-manifesto {
  margin: 0 auto;
}

.philo-manifesto--compact-cols .philo-manifesto__p {
  font-size: clamp(0.88rem, 1.55vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.028em;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 clamp(0.55rem, 1.4vw, 0.75rem);
  text-wrap: pretty;
  break-inside: avoid;
  page-break-inside: avoid;
}

.philo-manifesto--compact-cols .philo-manifesto__p:last-child {
  margin-bottom: 0;
}

.philo-manifesto__p {
  font-size: clamp(0.92rem, 1.75vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 clamp(0.95rem, 2.2vw, 1.25rem);
  text-wrap: pretty;
}

.philo-manifesto__p:last-child {
  margin-bottom: 0;
}

.philo-manifesto__p--caps {
  letter-spacing: 0.1em;
  line-height: 1.65;
  margin-bottom: 0.55rem;
}

.philo-manifesto--compact-cols .philo-manifesto__p--caps {
  line-height: 1.38;
  margin-bottom: 0.32rem;
}

.philo-manifesto__p--dropcap::first-letter {
  float: left;
  font-size: clamp(3rem, 7.5vw, 4rem);
  line-height: 0.8;
  margin: 0.03em 0.12em 0 0;
  font-weight: 200;
  letter-spacing: 0;
  color: rgba(255, 248, 240, 0.95);
  text-shadow:
    0 0 36px rgba(255, 240, 220, 0.2),
    0 0 72px rgba(200, 180, 255, 0.1);
}

.philo-manifesto--compact-cols .philo-manifesto__p--dropcap::first-letter {
  font-size: clamp(2.35rem, 5.8vw, 3.1rem);
  line-height: 0.82;
}

@media (min-width: 900px) {
  .philo-manifesto__p {
    line-height: 1.78;
  }

  .philo-manifesto--compact-cols .philo-manifesto__p {
    line-height: 1.62;
  }
}

@media (max-width: 720px) {
  .philo-manifesto-page {
    min-height: 0;
    display: block;
    padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  }

  .philo-manifesto--plain.philo-manifesto--compact-cols {
    column-count: 1;
    column-gap: 0;
  }

  .philo-manifesto--compact-cols .philo-manifesto__p {
    font-size: clamp(0.9rem, 1.65vw, 1.02rem);
    line-height: 1.68;
    break-inside: auto;
  }
}

@media (max-width: 640px) {
  .philo-alma {
    padding-top: max(clamp(6.5rem, 38vw, 10rem), calc(env(safe-area-inset-top) + 5.5rem));
  }
}
