/* Landing motion (2026-10-23), round 2: a cinematic video loop behind a centred hero (Mycelium + Lumen),
   calm fade-rise text. Only transform/opacity animate; reduced motion gets the still poster. */

/* ---------- hero: centred copy over the video ---------- */
.hero { position: relative; padding-top: 0; }
.hero > .frame { position: relative; z-index: 1; border-color: transparent; }
.hv-copy { min-height: calc(100vw * 2162 / 3840 * .8); display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(72px, 12vh, 132px); }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: .98; letter-spacing: -0.03em; max-width: 1000px; text-wrap: balance; }
.hero .hv-copy .sub { margin-top: 28px; max-width: 640px; font-size: 20px; font-weight: 500; color: var(--ink); text-wrap: pretty;
  text-shadow: 0 0 22px rgba(253, 252, 250, .95), 0 0 8px rgba(253, 252, 250, .8); }   /* stronger over the light: ink, 500, a soft cream halo */
.hv-copy .hero-cta { margin-top: 40px; align-items: center; }
/* the one glass element, Apple-style: almost clear, a strong blur that makes the colour behind richer,
   and a rim of light on the edge, brightest top-left and bottom-right */
.hv-copy .apply.big { position: relative; isolation: isolate; color: var(--ink); border: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .16));
  -webkit-backdrop-filter: blur(7px) saturate(1.1) brightness(1.1); backdrop-filter: blur(7px) saturate(1.1) brightness(1.1); padding: 15px 34px; font-size: 17px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -10px 18px -10px rgba(255, 255, 255, .5), 0 14px 34px -16px rgba(90, 64, 24, .45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5); transition: transform .35s var(--e-out), box-shadow .35s var(--e-out); }
.hv-copy .apply.big::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 38%, rgba(255, 255, 255, .1) 62%, rgba(255, 255, 255, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hv-copy .apply.big:hover { transform: translateY(-1px) scale(1.015); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -10px 18px -10px rgba(255, 255, 255, .6), 0 18px 40px -16px rgba(90, 64, 24, .5); }

/* the hero's cost pair: the same job, first run and next morning as a reflex (Arian 2026-10-24) */
.hv-cost { margin: 26px 0 0; display: flex; align-items: center; justify-content: center; gap: 22px;
  text-shadow: 0 0 18px rgba(253, 252, 250, .95), 0 0 6px rgba(253, 252, 250, .85); }
.hc-i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hc-k { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; }
.hc-v { font-family: var(--f-display); font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hc-z { color: var(--ok); }
.hc-n { position: absolute; top: 100%; left: 0; right: 0; text-align: center; white-space: nowrap; font-size: 12px; color: var(--ink-3); }   /* under the value, out of the flow, so both values sit on one line */
.hc-ar { font-size: 20px; color: var(--ink-3); margin-top: 18px; }

/* the video fills the first screen and fades itself in and out with a mask, so it has no edge:
   transparent behind the headline, full in the lower middle, soft at the sides and the bottom */
.hv-media { position: absolute; left: 0; right: 0; top: calc(100vw * 2162 / 3840 * -.2); aspect-ratio: 3840 / 2162; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 18%, rgba(0,0,0,.45) 32%, #000 46%, #000 78%, rgba(0,0,0,.35) 90%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, transparent 18%, rgba(0,0,0,.45) 32%, #000 46%, #000 78%, rgba(0,0,0,.35) 90%, transparent 100%); }   /* the clip's own shape: the whole frame, no crop, no zoom */
.hv-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateX(-2.2%) scale(1.045); }
.hv-v.on { opacity: 1; }
.hv-v:first-of-type.on { transition: opacity .8s linear; }   /* the intro fades in once; the swap to the loop is instant (same frame) */
.hv-fade { display: none; }

/* ---------- text: words rise out of a mask, once ---------- */
html.mo #hero-h:not(.mo-ready), html.mo h2[id$="-h"]:not(.cl-line):not(.mo-ready) { opacity: 0; }
.mo-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.mo-w > span { display: inline-block; transform: translateY(108%); transition: transform .95s var(--e-out) calc(var(--i, 0) * 42ms + var(--d, 0ms)); }
.mo-in .mo-w > span { transform: none; }
.mo-n { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* the lumen: one soft band of warm light passes through a heading's key words, once */
.mo-k { --lum: #E7B65A; }
.mo-lit .mo-k { background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 38%, var(--lum) 47%, #FFF3D6 50%, var(--lum) 53%, var(--ink) 62%, var(--ink) 100%);
  background-size: 320% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mo-lumen 1.5s var(--e-move) calc(var(--k, 0) * 110ms) both; }
@keyframes mo-lumen { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* small caps labels wipe in left to right */
html.mo .mo-wipe { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--e-out); }
html.mo .mo-wipe.mo-in { clip-path: inset(0 0 0 0); }

/* scroll lighting: faint → ink as you read past */
.mo-sl { color: rgba(107, 101, 95, .3); transition: color .35s ease-out; }
.mo-sl.on { color: inherit; }
.mo-c { display: inline-block; font-variant-numeric: tabular-nums; }

/* labels, grey sentences, the hero's sub, button and demo: fade-rise, once */
html.mo .mo-f { opacity: 0; transform: translateY(20px); transition: opacity .8s ease-out var(--d, 0ms), transform .8s ease-out var(--d, 0ms); }
html.mo .mo-f.mo-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .hv-copy { min-height: 0; padding-top: 56px; padding-bottom: 300px; }
  .hv-media { aspect-ratio: 9 / 16; top: 0; }
  .hero .hv-copy .sub { font-size: 17px; }
  .hv-cost { gap: 14px; margin-top: 20px; }
  .hc-v { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mo-w > span, html.mo .mo-f { transform: none !important; opacity: 1 !important; transition: none !important; }
  html.mo .mo-wipe { clip-path: none !important; }
  .mo-lit .mo-k { animation: none; background: none; color: inherit; }
  .hv-v { transition: none; }
}
