@font-face{font-family:Outfit;src:url(fonts/Outfit-Light.ttf) format("truetype");font-weight:300;font-display:swap}
@font-face{font-family:Outfit;src:url(fonts/Outfit-Regular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Outfit;src:url(fonts/Outfit-Medium.ttf) format("truetype");font-weight:500;font-display:swap}
:root{ /* one green look for everyone, whatever their light or dark setting */
  color-scheme:dark;
  --bg:#24402f; --fg:#f4f2ea; --muted:#c9d3c3; --line:rgba(244,242,234,.28);
  --brand:#f4f2ea; --brand-fg:#24402f; --accent:#efd998;
  --scrim:14,26,18;   /* the dark behind the copy on the video, as r,g,b */
  --glow:.75;         /* how strong the blurred frame behind the whole page is (0 leaves plain green) */
  --font: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font:400 17px/1.6 var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* the spotlight: a darkening towards the window's edges, over the glow, so the video in the middle stays the brightest spot */
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 70% 80% at 50% 42%,rgba(var(--scrim),0) 35%,rgba(var(--scrim),.6) 100%)}
/* the glow, the page background: the current frame stretched over the whole window, blurred and darkened so text stays
   readable. It stays put while the page scrolls; the green under it shows through as it fades. */
.glow{position:fixed;left:-10%;top:-10%;width:120%;height:120%;z-index:-1;pointer-events:none;
  opacity:var(--glow);filter:blur(60px) saturate(1.25) brightness(.7)}

/* ---- first screen: header, place tabs, then the video takes every pixel that's left */
.screen{height:100svh;min-height:540px;display:flex;flex-direction:column;max-width:1160px;margin:0 auto}
header{display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}
.mark{display:flex;gap:10px;align-items:center;font-weight:500;font-size:17px;text-decoration:none;letter-spacing:-.01em}
.mark img{width:30px;height:30px}
.jump{font-size:15px;font-weight:500;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:1px;white-space:nowrap}

.listen{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;gap:8px;margin:0 auto}

/* place tabs: one row, three equal rectangles across the column; the pressed one is lit (lighter green, white outline and text) */
.places{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;
  padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}
.places button{position:relative;min-height:48px;padding:6px 10px;border-radius:7px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;
  font:500 13.5px/1.15 var(--font);letter-spacing:-.005em;text-wrap:balance;
  color:var(--muted);background:transparent;border:1px solid var(--line);
  -webkit-tap-highlight-color:transparent;transition:background-color .2s,color .2s,border-color .2s}
.places button:hover{color:var(--fg);border-color:rgba(244,242,234,.55)}
.places button[aria-pressed="true"]{background:rgba(244,242,234,.15);color:var(--fg);border-color:var(--fg)}
.places .habitat{font-size:.8em;font-weight:400;color:var(--muted);line-height:1.2}
@media (max-width:400px){.places button{font-size:13px;padding:6px 5px}}
/* the little bars in the pressed tab while its video plays */
.eq{position:absolute;top:6px;right:7px;height:9px;display:none;gap:1.5px;align-items:flex-end}
.eq b{width:2px;height:100%;background:currentColor;border-radius:1px;transform-origin:bottom;animation:eq 1.1s ease-in-out infinite}
.eq b:nth-child(2){animation-delay:-.4s}
.eq b:nth-child(3){animation-delay:-.75s}
.listen.is-playing .places [aria-pressed="true"] .eq{display:flex}
@keyframes eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}

/* the stage: the video, whole and centred, on the glow behind the page (the stage itself is see-through) */
.stage{position:relative;flex:1;min-height:0;overflow:hidden;isolation:isolate;cursor:pointer;
  container-type:size;-webkit-tap-highlight-color:transparent}
/* the video is sized to its own frame (not the stage), so it can be a lit screen floating on the glow:
   rounded, a faint edge, and a deep shadow under it */
#player{position:absolute;z-index:1;left:50%;top:0;height:100%;width:auto;max-width:100%;aspect-ratio:720/1560;
  transform:translateX(-50%);object-fit:contain;background:#16241b;border-radius:18px;
  box-shadow:0 0 0 1px rgba(244,242,234,.14),0 28px 80px -8px rgba(0,0,0,.6),0 0 120px rgba(0,0,0,.25)}

/* the copy on the video: shown whenever the video isn't playing (before, paused, ended) */
.overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;isolation:isolate;
  padding:12px clamp(18px,6cqi,36px) calc(20px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(var(--scrim),.3),rgba(var(--scrim),.42) 30%,rgba(var(--scrim),.88) 60%,rgba(var(--scrim),.95));
  transition:opacity .35s ease,visibility 0s}
.overlay::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
  -webkit-mask-image:linear-gradient(180deg,transparent 28%,#000 56%);mask-image:linear-gradient(180deg,transparent 28%,#000 56%)}
.listen.is-playing .overlay{opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s linear .35s}
.play-area{flex:1 0 92px;display:grid;place-items:center}
.play{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--fg);
  background:rgba(244,242,234,.14);border:1px solid rgba(244,242,234,.5);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:transform .2s,background-color .2s}
.play:hover{background:rgba(244,242,234,.24);transform:scale(1.05)}
.play svg{width:30px;height:30px;fill:currentColor}
.play .i-play{margin-left:3px}
.play .i-again,.listen.is-ended .play .i-play{display:none}
.listen.is-ended .play .i-again{display:block}

/* the text scrolls if it's too long for the video; the button and note under it always stay in view */
.copy{flex:0 1 auto;min-height:0;max-width:36em;display:flex;flex-direction:column;text-shadow:0 1px 14px rgba(0,0,0,.35)}
.read{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.read.is-cut{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent)}
h1{font-weight:300;font-size:34px;font-size:clamp(26px,min(8.6cqi,6.4cqb),52px);line-height:1.04;letter-spacing:-.03em;
  margin-bottom:12px;text-wrap:balance}
h1 em{font-style:normal;color:var(--muted)}
.sub{font-size:15px;font-size:clamp(14px,min(3.7cqi,2.6cqb),17px);line-height:1.5;color:var(--muted);max-width:32em;padding-bottom:18px}
.get{display:flex;gap:10px 16px;align-items:center;flex-wrap:wrap;flex:none}
a.cta{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 24px;font-weight:500;font-size:17px;text-decoration:none;
  border-radius:99px;background:var(--brand);color:var(--brand-fg);text-shadow:none}
a.cta svg{width:18px;height:18px;fill:currentColor}
.note{font-size:13.5px;line-height:1.5;color:var(--muted);margin-top:10px;max-width:30em;flex:none}

/* the waitlist: a quiet outline button under the cream one; tapping it swaps in the email row.
   The state on .wl decides what shows: closed, open, sending, done, error. */
.wl{flex:0 0 100%;max-width:22em;text-shadow:none}
.wl-open,.wl input,.wl-row button{font:400 16px/1.2 var(--font)}
.wl-open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:99px;cursor:pointer;
  color:var(--fg);background:transparent;border:1px solid var(--line);font-weight:500;-webkit-tap-highlight-color:transparent;
  transition:background-color .2s,border-color .2s}
.wl-open:hover{border-color:rgba(244,242,234,.6);background:rgba(244,242,234,.08)}
.wl-row{display:flex;gap:8px}
.wl input{flex:1;min-width:0;height:44px;padding:0 18px;border-radius:99px;color:var(--fg);background:rgba(var(--scrim),.5);
  border:1px solid var(--line);-webkit-appearance:none;appearance:none}
.wl input::placeholder{color:var(--muted);opacity:.8}
.wl input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.wl-row button{flex:none;height:44px;padding:0 20px;border-radius:99px;cursor:pointer;font-weight:500;
  color:var(--fg);background:rgba(244,242,234,.16);border:1px solid var(--fg);transition:background-color .2s}
.wl-row button:hover{background:rgba(244,242,234,.26)}
.wl-row button:disabled{opacity:.55;cursor:default}
.wl-done,.wl-error{font-size:14.5px;line-height:1.45;color:var(--fg)}
.wl-error{margin-top:8px;color:#f3c9b8}
.wl-error a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.wl-why{font-size:13.5px;line-height:1.45;color:var(--muted);margin:10px 0}
.wl-fine{font-size:12.5px;line-height:1.4;color:var(--muted);margin-top:8px}
.wl[data-state="done"] :is(.wl-why,.wl-fine),.wl[data-state="closed"] .wl-fine{display:none}
.wl[data-state="closed"] .waitlist,.wl:not([data-state="closed"]) .wl-open{display:none}
.wl:is([data-state="closed"],[data-state="open"],[data-state="sending"],[data-state="done"]) .wl-error,
.wl:not([data-state="done"]) .wl-done,.wl[data-state="done"] .wl-row{display:none}
.wl[data-state="sending"] .wl-row button{opacity:.55;pointer-events:none}

@container (max-height:500px){
  .overlay{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .play-area{flex-basis:76px}
  .play{width:62px;height:62px}
  .play svg{width:26px;height:26px}
  h1{margin-bottom:8px}
  .sub{line-height:1.4;padding-bottom:14px}
  a.cta{height:46px;font-size:16px;padding:0 20px}
  .note{font-size:12.5px;margin-top:8px}
  .get{gap:8px 16px}
}

/* while playing: a small pause button whose outline fills as the video plays (taps anywhere on the video also pause),
   and a spinner while it loads */
.pause{position:absolute;z-index:4;top:12px;right:12px;width:40px;height:40px;padding:0;border:0;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;color:var(--fg);background:rgba(var(--scrim),.28);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s linear .3s}
.pause .icon{width:14px;height:14px;fill:currentColor;opacity:.75}
.pause .ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:1.5}
.pause .track{stroke:rgba(244,242,234,.1)}
.pause .fill{stroke:rgba(244,242,234,.5);stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--p,0));
  transition:stroke-dashoffset .25s linear}
.listen.is-playing .pause{opacity:.8;visibility:visible;transition:opacity .3s,visibility 0s}
.pause:hover{opacity:1}
.spin{position:absolute;z-index:2;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;
  border:2px solid rgba(244,242,234,.25);border-top-color:var(--fg);opacity:0;transition:opacity .2s;
  animation:spin .9s linear infinite;animation-play-state:paused}
.listen.is-loading .spin{opacity:1;animation-play-state:running}
@keyframes spin{to{transform:rotate(1turn)}}

/* ---- under the first screen */
.more{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:28px;
  padding:32px max(18px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.still{width:220px;max-width:60%;margin:0 auto;text-align:center}   /* a fixed width, so the 900 px picture can't grow */
.still img{width:100%;height:auto;border-radius:12px}
.still figcaption{font-size:13px;color:var(--muted);margin-top:8px}
.foot{max-width:640px;margin:0 auto;text-align:center;font-size:12.5px;line-height:1.6;color:var(--muted);
  padding:24px max(18px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.foot-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 10px}
.foot button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:transparent}
.foot button:hover,.foot button[aria-expanded="true"]{text-decoration-color:currentColor}
.foot p{margin-top:12px;text-align:left}

/* ---- wider than a phone: everything (header, tabs, stage, what's under) sits in one centred column.
   Narrow (the default) is sized from the video: its width at this height, plus a little glow either side. */
@media (min-width:640px){
  :root{--col:clamp(400px,calc((100svh - 150px) * .4615 + 140px),600px)}
  .screen{width:min(var(--col),calc(100% - 48px));padding-bottom:24px}
  header{padding:16px 0}
  .listen{gap:10px}
  .places{padding:0;gap:6px}
  .places button{font-size:14.5px;border-radius:8px}
  .stage{border-radius:24px}
  .more,.foot{max-width:var(--col)}
}

/* ---- below 900 px and in ?layout=narrow the dark backdrop behind the copy reaches both window edges. The stage stops
   clipping, the overlay is as wide as the window, and its side padding puts the text back inside the column. */
@media (min-width:640px) and (max-width:899px){
  .screen{padding-bottom:0}   /* the backdrop runs to the window's bottom edge too, as on phones */
  .stage{overflow:visible;border-radius:0}
  .overlay{left:calc(50% - 50vw);right:calc(50% - 50vw);background:linear-gradient(180deg,rgba(var(--scrim),0),rgba(var(--scrim),.3) 22%,rgba(var(--scrim),.88) 60%,rgba(var(--scrim),.95));
        padding-left:calc((100vw - 100cqi) / 2 + clamp(18px,6cqi,36px));padding-right:calc((100vw - 100cqi) / 2 + clamp(18px,6cqi,36px))}
}
@media (min-width:640px){
  :root[data-layout="narrow"] .screen{padding-bottom:0}
  :root[data-layout="narrow"] .stage{overflow:visible;border-radius:0}
  :root[data-layout="narrow"] .overlay{left:calc(50% - 50vw);right:calc(50% - 50vw);background:linear-gradient(180deg,rgba(var(--scrim),0),rgba(var(--scrim),.3) 22%,rgba(var(--scrim),.88) 60%,rgba(var(--scrim),.95));
        padding-left:calc((100vw - 100cqi) / 2 + clamp(18px,6cqi,36px));padding-right:calc((100vw - 100cqi) / 2 + clamp(18px,6cqi,36px))}
}

/* ---- laptops (900 px and up) get the wide layout by default; ?layout=narrow keeps the narrow column.
   A 16:9 player like a YouTube video: the copy on the left, the video in the middle, the place buttons stacked
   on the right. The copy and the buttons stay while the video plays; only the play button goes. */
@media (min-width:900px){
  :root:not([data-layout="narrow"]){--col:clamp(760px,calc((100svh - 120px) * 16 / 9),1320px)}
  :root:not([data-layout="narrow"]) .screen{height:auto;min-height:0;max-width:none}
  :root:not([data-layout="narrow"]) .listen{flex:none;display:grid;grid-template:auto / 1fr;margin-top:6px}
  :root:not([data-layout="narrow"]) .stage{grid-area:1/1;flex:none;aspect-ratio:16/9;border-radius:0;overflow:visible}

  /* place buttons: one column to the right of the video */
  :root:not([data-layout="narrow"]) .places{grid-area:1/1;z-index:5;position:relative;align-self:center;justify-self:end;
    width:21%;margin-right:5.5%;padding:0;display:grid;grid-template-columns:1fr;grid-auto-rows:1fr;gap:8px}
  :root:not([data-layout="narrow"]) .places button{min-height:56px;padding:8px 18px;font-size:15px;border-radius:10px;
    background:rgba(var(--scrim),.38);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  :root:not([data-layout="narrow"]) .places button[aria-pressed="true"]{background:rgba(244,242,234,.16)}
  :root:not([data-layout="narrow"]) .eq{top:50%;right:12px;margin-top:-4.5px}

  /* the copy: no box behind it, just a soft dark pool that fades out on every side */
  :root:not([data-layout="narrow"]) .overlay{display:block;padding:0;background:none}
  :root:not([data-layout="narrow"]) .overlay::before{display:none}
  :root:not([data-layout="narrow"]) .play-area{position:absolute;inset:0;pointer-events:none;transition:opacity .3s,visibility 0s}
  :root:not([data-layout="narrow"]) .play{pointer-events:auto}
  :root:not([data-layout="narrow"]) .copy{position:absolute;left:4cqi;top:0;bottom:0;width:30cqi;justify-content:center;padding:4cqi 0}
  :root:not([data-layout="narrow"]) .copy::before{content:"";position:absolute;z-index:-1;left:-14cqi;right:-10cqi;top:8%;bottom:8%;
    pointer-events:none;background:radial-gradient(closest-side,rgba(var(--scrim),.55),rgba(var(--scrim),0))}
  :root:not([data-layout="narrow"]) h1{font-size:clamp(30px,3.9cqi,52px)}
  :root:not([data-layout="narrow"]) .sub{font-size:clamp(14px,1.35cqi,16px)}
  /* the stage has no visible edge here, so the pause button sits on the video's own corner */
  :root:not([data-layout="narrow"]) .pause{right:auto;left:calc(50% + 50cqb * 720 / 1560 - 52px)}
  :root:not([data-layout="narrow"]) .listen.is-playing .overlay{opacity:1;visibility:visible;transition:none}
  :root:not([data-layout="narrow"]) .listen.is-playing .play-area{opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s linear .3s}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .eq b{animation:none;transform:scaleY(.7)}
  .wl-open,.wl-row button{transition:none}
  .overlay,.pause,.pause .fill{transition:none}
}

/* ---- ?frame=iphone (the default; ?frame=none turns it off): our own generic phone drawn around the video. The device is as tall as the old video.
   --u is 1% of the device's height (or less if the stage is too narrow for it). The screen is 44.79u wide and 97.05u tall
   (the video's 720:1560), so the device is 100u tall. Bezel 3.3% of the screen width, screen radius 13.5%, outer radius = both. */
:root[data-frame="iphone"] .stage > *{
  --u:min(1cqb,2.094cqi);
  --f-bezel:calc(1.48 * var(--u));
  --f-top:calc(var(--f-bezel) + 1.26 * var(--u));   /* the Dynamic Island's top: 1.3% of the screen height below the screen top */
}
:root[data-frame="iphone"] #player{
  box-sizing:border-box;height:calc(100 * var(--u));aspect-ratio:1066/2233;border:var(--f-bezel) solid #0b0d0c;border-radius:calc(7.53 * var(--u));background-color:#16241b;
  box-shadow:0 0 0 1.5px #8a908c,0 0 0 2.5px #2b2f2d,0 28px 80px -8px rgba(0,0,0,.6),0 0 120px rgba(0,0,0,.25)}
:root[data-frame="iphone"] .island{display:block;position:absolute;z-index:5;left:50%;top:var(--f-top);
  width:calc(13.44 * var(--u));height:calc(4.48 * var(--u));transform:translateX(-50%);border-radius:99px;background:#000;pointer-events:none}
/* the pause button sits on the screen's top-right corner, level with the island */
:root[data-frame="iphone"] .pause{width:34px;height:34px;right:auto;top:calc(var(--f-top) + calc(2.24 * var(--u)) - 17px);
  left:calc(50% + calc(23.875 * var(--u)) - var(--f-bezel) - 34px - 12px)}
/* below 900 px and in ?layout=narrow the overlay is not touched: the copy sits over the stage as in ?frame=none */
.island{display:none}
