/* ==========================================================================
   S01 — Cinematic hero
   ========================================================================== */
.s01 {
  --px: 0; --py: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(52, 127, 131, .55) 0%, rgba(32, 61, 61, 0) 58%),
    radial-gradient(80% 70% at 10% 100%, rgba(52, 127, 131, .35) 0%, rgba(32, 61, 61, 0) 60%),
    linear-gradient(160deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .18) 100%),
    var(--forest);
  color: #fff;
  padding: calc(var(--nav-h) + 2.5rem) 0 clamp(7rem, 11vw, 9.5rem);
}

/* ---------- Background ---------- */
.s01__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.s01__glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.s01__glow--a { width: 46vw; height: 46vw; right: -6vw; top: -10vw; background: radial-gradient(circle, rgba(197, 222, 107, .28), transparent 65%); animation: s01-drift 18s var(--ease-in-out) infinite alternate; }
.s01__glow--b { width: 38vw; height: 38vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, rgba(52, 127, 131, .7), transparent 65%); animation: s01-drift 22s var(--ease-in-out) infinite alternate-reverse; }
.s01__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 75%);
}
.s01__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.s01__waves { position: absolute; left: 0; right: 0; bottom: 3vw; width: 100%; height: clamp(140px, 22vw, 300px); overflow: hidden; opacity: 0; animation: s01-fade 2s var(--ease-out) 1.1s forwards; }
.s01__wave path { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.s01__wave { animation: s01-wave 16s linear infinite; }
.s01__wave--1 path { stroke: rgba(197, 222, 107, .45); }
.s01__wave--2 { animation-duration: 22s; } .s01__wave--2 path { stroke: rgba(141, 187, 189, .35); }
.s01__wave--3 { animation-duration: 28s; animation-direction: reverse; } .s01__wave--3 path { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 2 6; }
.s01__wave--4 { animation-duration: 19s; } .s01__wave--4 path { stroke: rgba(197, 222, 107, .18); }

/* ---------- Layout ---------- */
.s01__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}
.s01__inner { will-change: transform, opacity; }

/* ---------- Copy ---------- */
.s01__copy { position: relative; z-index: 2; max-width: 680px; }
.s01__eyebrow { opacity: 0; animation: s01-rise .9s var(--ease-out) .15s forwards; }
.s01__title { margin: 1.4rem 0 1.6rem; font-size: clamp(2.6rem, 5.4vw, 5.3rem); --delay: 250ms; }
.s01__accent { color: var(--lime); }

.s01__lead { color: rgba(255, 255, 255, .78); max-width: 52ch; opacity: 0; animation: s01-rise 1s var(--ease-out) .95s forwards; }
.s01__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; opacity: 0; animation: s01-rise 1s var(--ease-out) 1.15s forwards; }
.s01__ctas .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.s01__tags { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.6rem; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.s01__tags li { display: inline-flex; align-items: center; gap: .55rem; opacity: 0; animation: s01-rise .8s var(--ease-out) forwards; }
.s01__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.s01__tags li:nth-child(1) { animation-delay: 1.35s; }
.s01__tags li:nth-child(2) { animation-delay: 1.45s; }
.s01__tags li:nth-child(3) { animation-delay: 1.55s; }
.s01__tags li:nth-child(4) { animation-delay: 1.65s; }

/* ---------- Stage (circle composition) ---------- */
.s01__stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: end; }
.s01__depth { position: absolute; inset: 0; transform: translate3d(calc(var(--px) * var(--d, 1) * 18px), calc(var(--py) * var(--d, 1) * 18px), 0); }
.s01__depth[data-depth="0.5"] { --d: .5; } .s01__depth[data-depth="0.9"] { --d: .9; } .s01__depth[data-depth="1.2"] { --d: 1.2; }
.s01__depth[data-depth="1.4"] { --d: 1.4; } .s01__depth[data-depth="1.9"] { --d: 1.9; } .s01__depth[data-depth="2.2"] { --d: 2.2; }

.s01__rings { width: 100%; height: 100%; overflow: visible; opacity: 0; animation: s01-scale-in 1.6s var(--ease-out) .1s forwards; }
.s01__ring { fill: none; transform-origin: 300px 300px; }
.s01__ring--ticks { stroke: rgba(255, 255, 255, .22); stroke-width: 10; stroke-dasharray: 1 13.2; animation: hh-spin 120s linear infinite; }
.s01__ring--dash { stroke: rgba(141, 187, 189, .4); stroke-width: 1; stroke-dasharray: 4 10; animation: hh-spin-rev 80s linear infinite; }
.s01__ring-arcs { transform-origin: 300px 300px; animation: hh-spin 46s linear infinite; }
.s01__arc { fill: none; stroke-width: 3; stroke-linecap: round; }
.s01__arc--t { stroke: var(--teal-300); opacity: .7; }
.s01__arc--l { stroke: var(--lime); }
.s01__orbit { transform-origin: 300px 300px; animation: hh-spin-rev 30s linear infinite; }
.s01__dot--l { fill: var(--lime); filter: drop-shadow(0 0 8px rgba(197, 222, 107, .9)); }
.s01__dot--w { fill: #fff; }
.s01__dot--t { fill: var(--teal-300); }

.s01__photo {
  position: absolute; inset: 15%;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12);
  clip-path: circle(0% at 50% 50%);
  animation: s01-iris 1.6s var(--ease-in-out) .35s forwards;
  background: var(--teal-700);
}
.s01__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); animation: s01-kenburns 24s var(--ease-in-out) .35s infinite alternate; }
.s01__photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(200deg, rgba(197, 222, 107, .14) 0%, rgba(32, 61, 61, 0) 40%, rgba(32, 61, 61, .55) 100%); }

.s01__mark {
  position: absolute; left: 4%; bottom: 6%;
  width: 27%; aspect-ratio: 1; padding: 4.2%;
  border-radius: 50%;
  background: rgba(32, 61, 61, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
  opacity: 0; animation: s01-pop .9s var(--ease-spring) .7s forwards;
}
.s01__mark svg { width: 100%; height: 100%; overflow: visible; animation: hh-spin 40s linear 2.6s infinite; }
.s01 .mk { stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 1; animation: s01-draw 1.1s var(--ease-out) forwards; }
.s01 .mk--in { stroke-width: 7; }
.s01 .mk--t { stroke: var(--teal-300); }
.s01 .mk--l { stroke: var(--lime); }
.s01 .mk:nth-child(1) { animation-delay: .95s; } .s01 .mk:nth-child(2) { animation-delay: 1.05s; }
.s01 .mk:nth-child(3) { animation-delay: 1.15s; } .s01 .mk:nth-child(4) { animation-delay: 1.25s; }
.s01 .mk:nth-child(5) { animation-delay: 1.45s; } .s01 .mk:nth-child(6) { animation-delay: 1.55s; }
.s01 .mk-core { fill: var(--lime); transform-origin: 50px 50px; transform: scale(0); animation: s01-pop-core .7s var(--ease-spring) 1.7s forwards; }

.s01__float {
  position: absolute; display: inline-flex; align-items: center; gap: .7rem;
  padding: .65rem 1rem .65rem .7rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .82rem; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
  opacity: 0;
}
.s01__float b { display: block; font-weight: 600; }
.s01__float small { display: block; color: rgba(255, 255, 255, .62); font-size: .74rem; }
.s01__float-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--forest); flex: none; }
.s01__float-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s01__float--1 { right: -2%; top: 14%; animation: s01-rise .9s var(--ease-out) 1.6s forwards, hh-float 6s var(--ease-in-out) 2.5s infinite; }
.s01__float--2 { right: 4%; bottom: 12%; animation: s01-rise .9s var(--ease-out) 1.8s forwards, hh-float 7s var(--ease-in-out) 2.7s infinite; }
.s01__float--3 { left: 6%; top: 10%; gap: .6rem; padding: .5rem .9rem; animation: s01-rise .9s var(--ease-out) 2s forwards, hh-float 8s var(--ease-in-out) 2.9s infinite; }
.s01__float--3 .label { font-size: .66rem; color: rgba(255, 255, 255, .8); }
.s01__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.s01__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: hh-ping 2s var(--ease-out) infinite; }

/* ---------- Scroll indicator ---------- */
.s01__scroll {
  position: absolute; left: 50%; bottom: clamp(2.2rem, 4.2vw, 3.4rem); z-index: 3;
  width: 104px; height: 104px; margin-left: -52px;
  display: grid; place-items: center; border-radius: 50%;
  opacity: 0; animation: s01-fade 1s var(--ease-out) 2.1s forwards;
}
.s01__scroll-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: hh-spin 18s linear infinite; }
.s01__scroll-ring text { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; fill: rgba(255, 255, 255, .72); }
.s01__scroll-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--forest); transition: transform .5s var(--ease-out); }
.s01__scroll-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: s01-nudge 2.2s var(--ease-in-out) infinite; }
.s01__scroll:hover .s01__scroll-dot { transform: scale(1.12); }

.s01__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 80px); z-index: 2; }
.s01__edge path { fill: var(--white); }

/* ---------- Keyframes ---------- */
@keyframes s01-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes s01-fade { to { opacity: 1; } }
@keyframes s01-scale-in { from { opacity: 0; transform: scale(.82) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes s01-iris { to { clip-path: circle(50% at 50% 50%); } }
@keyframes s01-kenburns { from { transform: scale(1.18) translate(0, 0); } to { transform: scale(1.08) translate(-2%, 1.5%); } }
@keyframes s01-pop { from { opacity: 0; transform: scale(.4) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes s01-pop-core { to { transform: scale(1); } }
@keyframes s01-draw { to { stroke-dashoffset: 0; } }
@keyframes s01-wave { to { transform: translateX(-720px); } }
@keyframes s01-drift { to { transform: translate(-4vw, 3vw) scale(1.1); } }
@keyframes s01-nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .s01__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .s01__float--1 { right: -6%; }
}
@media (max-width: 900px) {
  .s01 { min-height: 0; padding: calc(var(--nav-h) + 1rem) 0 8.5rem; }
  .s01__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .s01__stage { order: -1; justify-self: center; width: min(78vw, 440px); }
  .s01__copy { max-width: 640px; }
  .s01__title { margin: 1.1rem 0 1.2rem; font-size: clamp(2.4rem, 9vw, 4.2rem); }
  .s01__grid { -webkit-mask-image: radial-gradient(90% 50% at 50% 25%, #000 0%, transparent 80%); mask-image: radial-gradient(90% 50% at 50% 25%, #000 0%, transparent 80%); }
  .s01__float--1 { right: -8%; top: 8%; }
  .s01__float--2 { right: -6%; bottom: 6%; }
  .s01__float--3 { left: -4%; top: 2%; }
  .s01__glow--a { width: 90vw; height: 90vw; }
}
@media (max-width: 560px) {
  .s01__stage { width: min(74vw, 330px); }
  .s01__float { font-size: .72rem; padding: .45rem .75rem .45rem .5rem; gap: .5rem; }
  .s01__float small { display: none; }
  .s01__float-ico { width: 26px; height: 26px; }
  .s01__float-ico svg { width: 14px; height: 14px; }
  .s01__float--1 { right: -12%; top: 4%; }
  .s01__float--2 { right: -10%; bottom: 2%; }
  .s01__float--3 { display: none; }
  .s01__ctas { flex-direction: column; align-items: stretch; }
  .s01__tags { gap: .5rem 1rem; margin-top: 2rem; }
  .s01 { padding-bottom: 11.5rem; }
  .s01__scroll { width: 88px; height: 88px; margin-left: -44px; bottom: 3rem; }
  .s01__waves { bottom: 10vw; }
}

@media (prefers-reduced-motion: reduce) {
  .s01__eyebrow, .s01__lead, .s01__ctas, .s01__tags li, .s01__rings, .s01__mark, .s01__float, .s01__scroll, .s01__waves { opacity: 1 !important; transform: none !important; }
  .s01__photo { clip-path: circle(50% at 50% 50%) !important; }
  .s01 .mk { stroke-dashoffset: 0 !important; }
  .s01 .mk-core { transform: none !important; }
  .s01__photo img { transform: scale(1.1) !important; }
}
