/* ============ Fonts (self-hosted, latin subset) ============ */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/playfair-latin.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("assets/fonts/playfair-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); }

/* ============ Tokens ============ */
:root {
  --ink: #0d241a;
  --forest: #143426;
  --forest-2: #1c4532;
  --green: #45b649;
  --green-ink-lg: #2f8a37; /* brand green darkened for large text on light backgrounds (3:1+) */
  --green-ink: #267a30;    /* for small text on light backgrounds (4.5:1+) */
  --lime: #dce35b;
  --lime-soft: #eef3b4;
  --citrus: #ff8a3d;
  --cream: #f5f1e6;
  --paper: #fbf9f3;
  --muted: #5b6a61;
  --line: rgba(13, 36, 26, 0.12);
  --line-light: rgba(245, 241, 230, 0.16);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; }
::selection { background: var(--lime); color: var(--ink); }

.section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.h1, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
.h1 { font-size: clamp(44px, 7vw, 104px); }
.h2 { font-size: clamp(36px, 5.2vw, 72px); max-width: 16ch; }
em { font-style: italic; color: var(--green-ink-lg); }

.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 24px 48px; margin-bottom: clamp(48px, 7vw, 88px);
}
.section__sub { max-width: 380px; color: var(--muted); margin: 0; font-size: 17px; }
.section__head--light .section__sub { color: rgba(245, 241, 230, 0.7); }

/* ============ Buttons ============ */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--lime:hover { color: var(--lime); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }
.link { color: var(--green-ink); border-bottom: 1px solid currentColor; }

/* ============ Progress + cursor ============ */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--lime); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
  display: grid; place-items: center; opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--lime); }
.cursor__label { font-size: 13px; font-weight: 700; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1180px);
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(13,36,26,.35);
  transition: transform .6s var(--ease), background .4s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
/* Logo: the leaf mark is the "P"; "oshanic" tucks under its bowl, as in the original artwork */
.brand { --h: 40px; display: inline-flex; align-items: flex-end; color: #3a9a3f; } /* a touch deeper than the brand green so the logo stays crisp on the light header */
.brand__mark { flex: none; width: calc(var(--h) * .817); height: var(--h); }
.brand__word {
  font-family: var(--serif); font-size: calc(var(--h) * .525); line-height: 1; font-weight: 600;
  color: inherit; letter-spacing: -0.01em;
  margin-left: calc(var(--h) * -.529); margin-bottom: calc(var(--h) * .033 - .2em);
}
.brand--light { --mark-dot: var(--lime); color: var(--green); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 600; border-radius: 999px; transition: background .3s; }
.nav__links a:hover, .nav__links a.is-active { background: rgba(13,36,26,.07); }
.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .burger { background: var(--lime); }
.menu-open .burger span { background: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--paper); transition: transform .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 48px) 42px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 48px) 42px); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.15;
  transform: translateY(40px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease), color .3s;
}
.menu__links a:hover { color: var(--lime); }
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .05s } .menu-open .menu__links a:nth-child(3) { transition-delay: .1s }
.menu-open .menu__links a:nth-child(4) { transition-delay: .15s } .menu-open .menu__links a:nth-child(5) { transition-delay: .2s }
.menu-open .menu__links a:nth-child(6) { transition-delay: .25s } .menu-open .menu__links a:nth-child(7) { transition-delay: .3s; color: var(--lime); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; color: rgba(245,241,230,.7); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 130px var(--gutter) 80px; max-width: 1440px; margin: 0 auto;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob--a { width: 46vw; height: 46vw; background: var(--lime-soft); top: -12vw; right: -8vw; }
.blob--b { width: 30vw; height: 30vw; background: #cfe9c8; bottom: -6vw; left: -8vw; animation-duration: 22s; }
.blob--c { width: 18vw; height: 18vw; background: #ffd9bd; top: 40%; left: 40%; opacity: .35; animation-duration: 26s; }
@keyframes drift { to { transform: translate(-6vw, 5vw) scale(1.15); } }

.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 110px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .06s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .12s; }
.hero__lead { max-width: 500px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); margin: 0 0 22px; }
.hero__rotator { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; margin: 0 0 36px; }
.rotator { position: relative; display: inline-grid; align-items: center; height: 1.7em; overflow: hidden; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.rotator span { grid-area: 1/1; line-height: 1.7em; transform: translateY(100%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); white-space: nowrap; }
.rotator span.is-active { transform: none; opacity: 1; }
.rotator span.is-leaving { transform: translateY(-100%); opacity: 0; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__art { position: relative; height: min(78vh, 720px); min-height: 480px; }
.arch {
  position: absolute; right: 6%; top: 0; width: 68%; height: 92%;
  border-radius: 999px 999px 32px 32px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(13,36,26,.5);
  clip-path: inset(40% 0 0 0 round 999px 999px 32px 32px);
  transition: clip-path 1s var(--ease);
}
.is-ready .arch { clip-path: inset(0 0 0 0 round 999px 999px 32px 32px); }
.arch img, .orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.is-ready .arch img, .is-ready .orb img { transform: scale(1.02); }
.orb {
  position: absolute; left: 0; bottom: 4%; width: 40%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 8px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(13,36,26,.5);
  transform: scale(0); transition: transform 1s var(--ease) .3s;
}
.is-ready .orb { transform: scale(1); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px; border-radius: 20px;
  background: rgba(251,249,243,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(13,36,26,.35);
  font-size: 13px; line-height: 1.35; font-weight: 600;
  opacity: 0; transition: opacity .8s var(--ease) .5s;
}
.is-ready .float-card { opacity: 1; }
.float-card > *:first-child { animation: bob 5s ease-in-out infinite; }
.float-card strong { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--green-ink-lg); }
.float-card--a { left: 4%; top: 12%; }
.float-card--b { right: 0; bottom: 18%; flex-direction: column; align-items: flex-start; gap: 4px; }
.stars { color: var(--citrus); letter-spacing: 2px; font-size: 14px; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.spin-badge {
  position: absolute; right: 0; top: 2%; width: 120px; height: 120px; border-radius: 50%;
  background: var(--ink); color: var(--lime); display: grid; place-items: center;
  opacity: 0; transform: scale(.5); transition: opacity .8s var(--ease) .6s, transform .8s var(--ease) .6s;
}
.is-ready .spin-badge { opacity: 1; transform: none; }
.spin-badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.spin-badge text { fill: currentColor; font-size: 11.2px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--sans); }
.spin-badge__arrow { width: 28px; height: 28px; transform: rotate(-45deg); transition: transform .4s var(--ease); }
.spin-badge:hover .spin-badge__arrow { transform: rotate(0); }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateX(-50%); opacity: .5; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Marquee ============ */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: 26px 0; transform: rotate(-1.5deg) scale(1.03); margin: 20px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 48px); font-style: italic; white-space: nowrap; }
.marquee__track i { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); flex: none; }
.marquee__track i:nth-of-type(3n) { background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: translateY(14px); transition-duration: .8s; } /* slide only: hero text is visible from the first paint (helps LCP) */
.is-ready .hero .reveal { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.split.is-in .w > span { transform: none; }
.no-js .reveal, .no-js .split .w > span { opacity: 1; transform: none; }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__frame { position: relative; border-radius: 300px 300px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--lime-soft); }
.about__frame img { width: 100%; height: 115%; object-fit: cover; object-position: 30% 30%; will-change: transform; }
.about__media::before { content: ""; position: absolute; inset: auto -24px -24px auto; width: 60%; height: 60%; border-radius: var(--radius); background: var(--lime); z-index: -1; }
.about__tag {
  position: absolute; left: -20px; bottom: 36px; display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 18px; background: var(--paper);
  box-shadow: 0 20px 40px -20px rgba(13,36,26,.4); color: var(--green);
}
.about__tag svg { width: 24px; height: 32px; }
.about__tag strong { display: block; color: var(--ink); font-size: 15px; }
.about__tag span { display: block; color: var(--muted); font-size: 13px; }
.about__copy .h2 { margin-bottom: 32px; max-width: 14ch; }
.about__copy p { color: var(--muted); margin: 0 0 18px; max-width: 560px; }
.chips { list-style: none; padding: 0; margin: 28px 0 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ============ Partners ============ */
.partners { padding: 0 var(--gutter) clamp(40px, 6vw, 80px); max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.partners__label { margin: 0; color: var(--muted); font-size: 15px; }
.partners__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); }
.partners .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ============ Services ============ */
.services { position: relative; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 70px 1.1fr 1fr 40px; gap: 24px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line); cursor: default; isolation: isolate;
  transition: padding .5s var(--ease), color .4s;
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; border-radius: 4px; }
.svc:hover { color: var(--paper); padding-left: 28px; padding-right: 28px; }
.svc:hover::before { transform: scaleY(1); }
.svc__num { font-size: 14px; font-weight: 700; color: var(--green-ink); }
.svc__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.svc__desc { margin: 0; color: var(--muted); transition: color .4s; }
.svc:hover .svc__desc { color: rgba(245,241,230,.75); }
.svc__arrow { width: 28px; height: 28px; transform: rotate(-45deg); transition: transform .5s var(--ease), color .4s; }
.svc:hover .svc__arrow { transform: rotate(0); color: var(--lime); }
.svc-preview {
  position: fixed; top: 0; left: 0; z-index: 40; width: 280px; height: 340px; border-radius: 20px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.svc-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Programs ============ */
.programs { max-width: none; background: var(--ink); color: var(--paper); border-radius: 48px 48px 0 0; }
.programs > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.stack { position: relative; display: flex; flex-direction: column; gap: 40px; }
.pcard {
  position: sticky; top: calc(100px + var(--i) * 22px);
  display: grid; grid-template-columns: 1fr 1.1fr; min-height: 560px;
  border-radius: 32px; overflow: hidden; background: var(--forest);
  box-shadow: 0 0 0 1px var(--line-light), 0 -20px 60px -30px rgba(0,0,0,.6);
  transform-origin: 50% 0; will-change: transform;
}
.pcard:nth-child(2) { background: var(--forest-2); }
.pcard:nth-child(3) { background: #23533c; }
.pcard:nth-child(4) { background: #2a5d44; }
.pcard__media { position: relative; overflow: hidden; }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.pcard__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pcard__meta span { padding: 6px 14px; border-radius: 999px; background: rgba(245,241,230,.1); font-size: 13px; font-weight: 600; }
.pcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 18px; }
.pcard h3 em { color: var(--lime); }
.pcard p { color: rgba(245,241,230,.75); margin: 0 0 24px; max-width: 480px; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.ticks--cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230d241a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.pcard .btn { margin-top: auto; }

/* ============ Process ============ */
.steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps__line { position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--green); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step__dot {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--green); color: var(--green);
  font-family: var(--serif); font-size: 22px; margin-bottom: 28px; transition: background .5s, color .5s;
}
.step.is-lit .step__dot { background: var(--green); color: var(--paper); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 8px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* ============ Gallery ============ */
.gallery { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; transition: background .3s, color .3s, box-shadow .3s; }
.filter:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filter.is-active { background: var(--ink); color: var(--lime); box-shadow: none; }
.masonry { columns: 3 300px; column-gap: 20px; }
.tile {
  position: relative; margin: 0 0 20px; break-inside: avoid; border-radius: 22px; overflow: hidden; cursor: zoom-in;
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s;
  opacity: 0; transform: translateY(50px) scale(.98);
}
.tile.is-in { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.tile img { width: 100%; height: auto; transition: transform 1s var(--ease); background: var(--cream); min-height: 160px; }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  padding: 10px 14px; border-radius: 14px; background: rgba(13,36,26,.6); color: var(--paper);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600;
  transform: translateY(calc(100% + 20px)); transition: transform .5s var(--ease);
}
.tile:hover figcaption, .tile:focus-visible figcaption { transform: none; }
@media (hover: none) { .tile figcaption { transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(8,22,16,.94); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 40px 16px; opacity: 0; transition: opacity .4s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.lightbox__fig img { max-width: 100%; max-height: 78vh; border-radius: 16px; object-fit: contain; transform: scale(.94); transition: transform .5s var(--ease), opacity .3s; }
.lightbox.is-open .lightbox__fig img { transform: none; }
.lightbox__fig figcaption { color: var(--paper); font-family: var(--serif); font-size: 22px; }
.lightbox__nav, .lightbox__close { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(245,241,230,.3); transition: background .3s, color .3s; justify-self: center; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--lime); color: var(--ink); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; font-size: 30px; line-height: 1; }

/* ============ Stories ============ */
.stories { max-width: none; background: var(--forest); color: var(--paper); border-radius: 48px; margin: 0 clamp(8px, 1.5vw, 20px); }
.stories > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.slider__viewport { overflow: hidden; cursor: grab; touch-action: pan-y; }
.slider__viewport:active { cursor: grabbing; }
.slider__track { display: flex; gap: 24px; transition: transform .9s var(--ease); }
.quote {
  flex: 0 0 min(640px, 86%); margin: 0; padding: clamp(28px, 4vw, 48px);
  border-radius: 28px; background: rgba(245,241,230,.06); box-shadow: inset 0 0 0 1px var(--line-light);
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  opacity: .35; transform: scale(.94); transition: opacity .7s var(--ease), transform .7s var(--ease), background .7s;
  user-select: none;
}
.quote.is-active { opacity: 1; transform: none; background: rgba(245,241,230,.1); }
.quote p { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.32; letter-spacing: -0.01em; }
.quote p::before { content: "\201C"; display: block; font-size: 90px; line-height: .6; color: var(--lime); margin-bottom: 10px; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 700; flex: none; }
.quote strong { display: block; font-size: 16px; }
.quote footer span:not(.avatar) { display: block; color: rgba(245,241,230,.65); font-size: 14px; }
.slider__controls { display: flex; align-items: center; gap: 20px; margin-top: 40px; }
.slider__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(245,241,230,.3); transition: background .3s, color .3s; flex: none; }
.slider__btn:hover { background: var(--lime); color: var(--ink); }
.slider__btn svg { width: 22px; height: 22px; }
.slider__bar { flex: 1; height: 2px; background: var(--line-light); position: relative; overflow: hidden; border-radius: 2px; }
.slider__bar span { position: absolute; inset: 0; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }
.slider__count { font-variant-numeric: tabular-nums; color: rgba(245,241,230,.6); font-size: 14px; }
.slider__count b { color: var(--paper); }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head p { color: var(--muted); margin-top: 24px; }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.01em;
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--green-ink); }
.acc__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, transform .5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc__icon { background: var(--lime); transform: rotate(180deg); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { overflow: hidden; }
.acc__body p { margin: 0; padding: 0 64px 28px 0; color: var(--muted); }

/* ============ Contact ============ */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 100px); align-items: center;
  margin: 0 clamp(8px, 1.5vw, 20px); padding: clamp(64px, 9vw, 130px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  border-radius: 48px; background: var(--cream);
}
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg .blob--a { top: auto; bottom: -20vw; right: -10vw; }
.contact__bg .blob--c { top: -5vw; left: -5vw; }
.contact__copy .h1 { margin-bottom: 28px; max-width: 12ch; }
.contact__copy > p { color: var(--muted); max-width: 440px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.contact__list a { display: inline-block; padding: 6px 0; font-weight: 600; background: linear-gradient(var(--green), var(--green)) 0 100%/0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.contact__list a:hover { background-size: 100% 1.5px; }
.form { background: var(--paper); padding: clamp(24px, 3vw, 40px); border-radius: 32px; box-shadow: 0 40px 80px -40px rgba(13,36,26,.35); display: grid; gap: 16px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 18px 10px; border: 0; border-radius: 16px; background: var(--cream);
  font: inherit; font-size: 16px; color: var(--ink); outline: none; resize: vertical;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; padding-right: 44px; }
.field--select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: inset 0 0 0 1.5px var(--green); }
.field label { position: absolute; left: 18px; top: 18px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: 0 0; transition: transform .3s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-11px) scale(.75); color: var(--green-ink); }
.field.is-error input, .field.is-error select { box-shadow: inset 0 0 0 1.5px var(--citrus); }
.form__note { margin: 4px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.form__note a { color: var(--green-ink); }

/* ============ Footer ============ */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  margin: clamp(8px, 1.5vw, 20px) clamp(8px, 1.5vw, 20px) 0;
  padding: clamp(64px, 9vw, 120px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 28px;
  border-radius: 48px 48px 0 0; background: var(--ink); color: var(--paper);
}
.footer__glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; left: 50%; bottom: -45vw; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(69,182,73,.35), transparent); filter: blur(20px); pointer-events: none; }

.footer__cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-light); }
.footer__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 15ch; }
.footer__title em { color: var(--lime); }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--line { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(245,241,230,.35); }
.btn--line::before { background: var(--paper); }
.btn--line:hover { color: var(--ink); }

.footer__grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.1fr 1.2fr; gap: 40px; padding: clamp(48px, 6vw, 72px) 0; }
.footer__brand .brand { --h: 56px; }
.footer__brand p { color: rgba(245,241,230,.65); margin: 20px 0 24px; max-width: 34ch; font-size: 15.5px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--paper); margin: 0 0 8px; }
.footer__col a, .footer__col span { color: rgba(245,241,230,.68); font-size: 15px; line-height: 1.5; }
.footer__col a { position: relative; transition: color .3s, transform .4s var(--ease); }
.footer__col a:hover { color: var(--lime); transform: translateX(6px); }
.footer__contact span { color: rgba(245,241,230,.45); font-size: 14px; margin-top: 4px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-light); transition: background .3s, color .3s, transform .4s var(--ease); }
.footer__social a:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }

/* Giant logo: mark as the P, letters rise in when the footer scrolls into view */
.footer__word { --h: clamp(120px, 24vw, 380px); display: flex; align-items: flex-end; justify-content: center; color: var(--green); margin: 0 0 clamp(16px, 2vw, 28px); user-select: none; }
.footer__mark { flex: none; width: calc(var(--h) * .817); height: var(--h); transform: translateY(30%) rotate(-12deg) scale(.7); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
.footer__letters { display: flex; overflow: hidden; font-family: var(--serif); font-size: calc(var(--h) * .525); line-height: 1.15; letter-spacing: -0.02em; margin-left: calc(var(--h) * -.529); margin-bottom: calc(var(--h) * .033 - .27em); }
.footer__letters span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease), color .3s; }
.footer__letters span:hover { color: var(--lime); transform: translateY(-6%); transition-duration: .3s; }
.footer__word.is-in .footer__mark { transform: none; opacity: 1; }
.footer__word.is-in .footer__letters span { transform: none; }
.footer__letters span:nth-child(1) { transition-delay: .15s } .footer__letters span:nth-child(2) { transition-delay: .2s }
.footer__letters span:nth-child(3) { transition-delay: .25s } .footer__letters span:nth-child(4) { transition-delay: .3s }
.footer__letters span:nth-child(5) { transition-delay: .35s } .footer__letters span:nth-child(6) { transition-delay: .4s }
.footer__letters span:nth-child(7) { transition-delay: .45s }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: rgba(245,241,230,.5); font-size: 14px; border-top: 1px solid var(--line-light); padding-top: 22px; }
.footer__legal { color: rgba(245,241,230,.75); margin-left: 14px; border-bottom: 1px solid rgba(245,241,230,.3); transition: color .3s, border-color .3s; }
.footer__legal:hover { color: var(--lime); border-color: var(--lime); }
.to-top { display: inline-flex; align-items: center; gap: 12px; color: rgba(245,241,230,.75); transition: color .3s; }
.to-top__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); transition: transform .5s var(--ease); }
.to-top__btn svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.to-top:hover { color: var(--lime); }
.to-top:hover .to-top__btn { transform: translateY(-4px); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav .btn--small { margin-left: auto; }
  .burger { display: block; }
  .svc { grid-template-columns: 50px 1fr 32px; }
  .svc__desc { grid-column: 2 / 3; grid-row: 2; }
  .svc__arrow { grid-row: 1 / 3; grid-column: 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__art { height: 520px; min-height: 0; max-width: 560px; width: 100%; margin: 0 auto; }
  .about, .faq, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .faq__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .pcard { grid-template-columns: 1fr; min-height: 0; top: calc(84px + var(--i) * 14px); }
  .pcard__media { height: 220px; }
  .stack { gap: 96px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps__line { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { top: 10px; width: calc(100% - 20px); padding: 8px 8px 8px 16px; gap: 10px; }
  .nav .btn--small { display: none; }
  .burger { margin-left: auto; }
  .hero__art { height: 440px; }
  .arch { width: 74%; right: 0; }
  .orb { width: 44%; }
  .float-card--a { left: 0; top: 8%; }
  .float-card strong { font-size: 34px; }
  .spin-badge { width: 92px; height: 92px; top: auto; bottom: -8px; right: 40%; }
  .spin-badge text { font-size: 11px; }
  .scroll-cue { display: none; }
  .svc { grid-template-columns: 1fr 28px; padding: 24px 4px; }
  .svc__num { grid-column: 1; }
  .svc__title { grid-column: 1; }
  .svc__desc { grid-column: 1; grid-row: auto; }
  .svc__arrow { grid-column: 2; grid-row: 1 / 4; }
  .ticks--cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: 12px; }
  .tile { margin-bottom: 12px; border-radius: 16px; }
  .tile figcaption { font-size: 12px; padding: 8px 10px; left: 8px; right: 8px; bottom: 8px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 70px 16px 24px; }
  .lightbox__fig { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; grid-column: 1; }
  .lightbox__nav--next { grid-row: 2; grid-column: 2; }
  .acc__body p { padding-right: 0; }
  .quote p { font-size: 20px; }
  .quote p::before { font-size: 64px; }
  .about__tag { left: 12px; }
  .about__media::before { inset: auto -10px -10px auto; }
  .programs, .stories, .contact { border-radius: 32px; }
  .footer { border-radius: 32px 32px 0 0; }
  .footer__grid { gap: 32px 20px; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
}

.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; }
