/* Kai and Lune — design pass 2 (Sep 30, 2026)
   Palette: sky #02C8F0 (hero only), ivory sand #EEE7DC (reviews, story), white (arcs), deep sea #06303F (footer, text),
   gold #C8965A (small accents, footer focus rings only).
   Ivory sand was sampled from the white sand in Anum's beach photos (medians #E5DDD1, #E2D4BD, #E8D7D4) and lifted to
   #EEE7DC; deep sea on it is about 11:1. Type: Familjen Grotesk only. Motion: hero, the three arcs and the reviews
   marquee. Everything else holds still. */

:root{
  --sky:#02C8F0;
  --sea:#06303F;
  --white:#FFFFFF;
  --ivory:#EEE7DC;
  --gold:#C8965A;
  --font:"Familjen Grotesk",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --pad:clamp(20px,4vw,56px);
  --nav-h:72px;
  --radius:18px;
  /* Viewport units as custom properties so the phone layout can be simulated in tests: --svh is Safari with its
     toolbars expanded, --lvh with them collapsed. Safe-area insets are 0 everywhere except notched phones. */
  --svh:100svh;
  --lvh:100lvh;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box}
html{background:var(--white);color:var(--sea);font-family:var(--font);-webkit-text-size-adjust:100%}
body{margin:0;font-size:17px;line-height:1.5;font-weight:400;background:var(--white);color:var(--sea);-webkit-font-smoothing:antialiased;overflow-x:clip}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p,figure,ul{margin:0}
ul{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
a,button{-webkit-tap-highlight-color:transparent}

h1,h2{font-weight:600;letter-spacing:-.03em;line-height:1}
h2{font-size:clamp(38px,5.4vw,74px)}

/* Focus rings: deep sea on white, ivory and sky; gold only on the deep sea footer; white over the cave. */
:focus-visible{outline:3px solid var(--sea);outline-offset:3px;border-radius:4px}
.footer :focus-visible{outline-color:var(--gold)}
.nav[data-tone="light"] :focus-visible{outline-color:var(--white)}

.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.tint{display:none}
.skip{position:fixed;top:-100px;left:16px;z-index:200;background-image:linear-gradient(var(--white),var(--white));color:var(--sea);padding:10px 14px;border-radius:999px;font-weight:600}
.skip:focus{top:14px}

/* Buttons */
.button{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 22px;border-radius:999px;font-weight:600;font-size:15px;line-height:1;white-space:nowrap;transition:transform .2s ease,opacity .2s ease}
.button:hover{transform:translateY(-1px)}
.button-sea{background:var(--sea);color:var(--white)}
.button-white{background:var(--white);color:var(--sea)}
.text-link{display:inline-block;font-weight:600;border-bottom:2px solid currentColor;padding-bottom:2px;line-height:1.2}
.text-link:hover{opacity:.7}

/* NAV: two stacked layers (white / deep sea). The tone switch is an opacity crossfade, never a colour animation. */
.nav{position:fixed;inset:0 0 auto 0;height:var(--nav-h);z-index:50;pointer-events:none}
.nav-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 var(--pad);pointer-events:none;transition:opacity .22s ease}
.nav-layer>*{pointer-events:auto}
.nav-light{color:var(--white)}
.nav-dark{color:var(--sea)}
.nav[data-tone="light"] .nav-dark,.nav[data-tone="dark"] .nav-light{opacity:0}
.nav[data-tone="light"] .nav-dark>*,.nav[data-tone="dark"] .nav-light>*{pointer-events:none}
.wordmark{font-weight:700;font-size:22px;letter-spacing:-.02em}
.nav nav{display:flex;align-items:center;gap:28px;font-weight:500;font-size:15px}
.nav-light .button{background:var(--white);color:var(--sea)}
.nav-dark .button{background:var(--sea);color:var(--white)}
.nav-light .button:hover,.nav-dark .button:hover{transform:none;opacity:.9}

/* HERO */
.hero{height:400svh;position:relative;background:var(--sky)}
.hero-stage{position:sticky;top:0;height:100svh;overflow:hidden;isolation:isolate;--stone:82svh;--cloud-back-w:130vw;--cloud-front-w:165vw}
/* The sky is painted with a background-image only (no background-color): iOS Safari samples the background-color
   of a fixed or sticky element touching the screen edge for its toolbar tint, and the tint strips must win. */
.sky{position:absolute;inset:0;background-image:linear-gradient(180deg,#00C3EE 0%,#02C8F0 45%,#0BCCF2 100%)}
.layer{position:absolute;will-change:transform,opacity;backface-visibility:hidden}
.clouds{left:50%;top:0;max-width:none;height:auto}
.clouds-back{width:var(--cloud-back-w);margin-left:calc(var(--cloud-back-w) / -2)}
.clouds-front{width:var(--cloud-front-w);margin-left:calc(var(--cloud-front-w) / -2)}
.stone{left:calc(50% - var(--stone) / 2);top:calc(50% - var(--stone) / 2);width:var(--stone);height:var(--stone);max-width:none;transform-origin:50% 50%;opacity:0;visibility:hidden}
.stone.ready{visibility:visible}
/* Hand photo: app.js sizes the container to the landed box (60% of the viewport width on desktop; the stone at 70%
   of the viewport width on phones) and locks its transform to the cut-out during the landing. Wide elliptical feather
   (the outer 18% of the width and height) so no straight edge or corner shows. The veil reveals the photo from the
   stone outward; its hole mask is set in px by app.js. */
.hand{left:0;top:0;overflow:hidden;opacity:0;
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 64%,transparent 100%);
  mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 64%,transparent 100%)}
.hand img{position:absolute;inset:0;width:100%;height:100%;max-width:none}
.veil{position:absolute;background:var(--sky);transform-origin:50% 50%;will-change:transform;pointer-events:none}
/* Cave: app.js sizes it to cover the stage. The zoom origin is the centre of the keyed opening, measured from the
   image: desktop 52.79% 40.59% of cave-desktop.png, mobile 55.51% 45.88% of cave-mobile.png. */
.cave{left:0;top:0;max-width:none;transform-origin:52.79% 40.59%;visibility:hidden;pointer-events:none}
.cave.ready{visibility:visible}
.cave.gone{visibility:hidden}
.hero-title{position:absolute;left:var(--pad);top:30svh;color:var(--white);will-change:transform,opacity;pointer-events:none}
.hero-title h1{font-size:clamp(46px,5.8vw,92px);line-height:.95;max-width:9ch;text-shadow:0 2px 24px rgba(20,8,40,.5)}
.hero-hold{position:absolute;left:var(--pad);top:calc(var(--nav-h) + 3svh);max-width:520px;opacity:0;will-change:transform,opacity;padding:14px 18px 18px 0}
/* Soft sky-coloured wash so the deep sea text stays readable over the photo's clouds. Not a box: it fades out. */
.hero-hold::before{content:"";position:absolute;inset:-40px -80px -40px -60px;z-index:-1;background:radial-gradient(ellipse at 40% 50%,rgba(2,200,240,.85) 0%,rgba(2,200,240,.55) 45%,rgba(2,200,240,0) 75%);pointer-events:none}
.hold-lead{font-size:clamp(26px,2.6vw,38px);font-weight:600;letter-spacing:-.02em;line-height:1.1;margin-bottom:22px;max-width:14ch}

/* ARC COMPONENT (sections 1 and 3). Section height scales with the number of cards (--n). */
.arc-section{height:calc(100svh + var(--n,7) * 32svh);background:var(--white);position:relative}
.arc-stage{position:sticky;top:0;height:100svh;overflow:hidden;display:grid;grid-template-rows:auto 1fr auto;--R:1100px;--card-w:196px;--card-h:calc(var(--card-w) * 1.3325 + 46px)}
.arc-stage h2{padding:calc(var(--nav-h) + 20px) var(--pad) 0;text-align:center}
.arc{position:absolute;left:50%;top:calc(52% + var(--R));width:0;height:0}
.card{
  position:absolute;left:calc(var(--card-w) / -2);top:calc(-1 * var(--R) - var(--card-h) / 2);
  width:var(--card-w);height:var(--card-h);
  transform-origin:50% calc(var(--R) + var(--card-h) / 2);
  will-change:transform,opacity;
  display:block;background:var(--white);border-radius:14px;padding:8px 8px 0;
  box-shadow:0 18px 40px -12px rgba(2,200,240,.55),0 4px 12px -4px rgba(2,200,240,.35);
}
.card img{width:100%;aspect-ratio:800/1066;object-fit:cover;border-radius:8px}
.card span{display:flex;align-items:center;justify-content:center;height:46px;padding:0 4px;text-align:center;font-weight:600;font-size:15px;line-height:1.15}
.arc-note{padding:0 var(--pad) 5svh;text-align:center;font-size:16px;align-self:end;grid-row:3}
.arc-note a{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.arc-note a:hover{opacity:.7}

/* SECTION 2: reviews marquee (ivory sand) */
.reviews{background:var(--ivory);padding:clamp(64px,10vh,120px) 0}
.reviews h2,.facts-row,.reviews>.text-link{margin-left:var(--pad);margin-right:var(--pad)}
.reviews h2{margin-bottom:28px}
.facts-row{display:flex;flex-wrap:wrap;gap:12px 36px;font-weight:600;font-size:clamp(18px,1.6vw,22px);margin-bottom:40px}
.marquee{overflow:hidden;margin-bottom:40px;padding:8px 0;--marquee-duration:60s}
.marquee:focus-visible{outline-offset:-3px}
.marquee-track{display:flex;width:max-content;animation:marquee var(--marquee-duration) linear infinite;will-change:transform}
.marquee:hover .marquee-track,.marquee:focus-within .marquee-track,.marquee:focus .marquee-track{animation-play-state:paused}
@keyframes marquee{to{transform:translate3d(-50%,0,0)}}
.marquee-set{display:flex;gap:20px;padding-right:20px}
.review{width:340px;flex:none;background:var(--white);border-radius:var(--radius);padding:22px 24px 20px;display:flex;flex-direction:column;justify-content:space-between;min-height:190px}
.review blockquote{margin:0 0 18px;font-size:18px;font-weight:500;line-height:1.35}
.review figcaption{font-size:14px;opacity:.85}

/* SECTION 5: more from the shop (white, still) */
.shop{background:var(--white);padding:clamp(64px,10vh,120px) var(--pad)}
.shop h2{margin-bottom:36px}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:900px}
.shop-card{display:block;background:var(--white);border-radius:var(--radius);padding:12px 12px 0;box-shadow:0 18px 40px -12px rgba(2,200,240,.45),0 4px 12px -4px rgba(2,200,240,.3)}
.shop-card img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px}
.shop-card span{display:block;font-weight:600;font-size:18px;line-height:1.2;padding:16px 4px 4px}
.shop-card p{font-size:15px;line-height:1.4;padding:0 4px 16px;max-width:none}
.shop-card:hover span{text-decoration:underline;text-underline-offset:4px}

/* SECTION 4: our story (ivory sand) */
.story{background:var(--ivory);padding:clamp(64px,10vh,120px) var(--pad);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(32px,5vw,80px);align-items:start}
.story-photos{display:grid;gap:24px;position:sticky;top:calc(var(--nav-h) + 16px)}
.story-photos img{width:100%;border-radius:var(--radius)}
.story-photos img:last-child{width:78%;margin-left:auto}
.story-text h2{margin-bottom:28px;max-width:14ch}
.story-body{font-size:17px;line-height:1.6;max-width:58ch}
.story-body p{margin-bottom:1.1em}
.signoff{font-weight:600;margin-top:32px}

/* FOOTER */
.footer{background:var(--sea);color:var(--white);padding:clamp(56px,9vh,100px) var(--pad) 28px;text-align:center}
.footer-line{font-size:clamp(26px,3.4vw,44px);font-weight:600;letter-spacing:-.02em;margin-bottom:26px}
.footer-meta{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:64px;font-size:14px;opacity:.9}
#motion-toggle{text-decoration:underline;text-underline-offset:4px;padding:6px 0}
.noscript{padding:24px var(--pad);background:var(--white)}

/* MOBILE */
@media (max-width:760px){
  :root{--pad:max(20px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));--nav-h:60px}
  /* The nav sits below the status bar; the cave, sky and clouds draw into the top and bottom safe areas. */
  .nav{top:var(--safe-top)}
  body{font-size:16px}
  .nav nav{gap:16px;font-size:14px}
  .nav nav a:not(.button){display:none}
  .button{height:42px;padding:0 18px;font-size:14px}
  .wordmark{font-size:20px}
  /* The sticky stage is the large viewport (toolbars collapsed) so sky, clouds and cave fill the screen; the hero is
     250svh plus that difference, so the scroll distance stays 150svh and p never jumps when the toolbars move. The
     stone, hand photo, hold text and button are placed within the small viewport (the top 100svh of the stage). */
  .hero{height:calc(var(--svh) * 1.5 + var(--lvh))}
  .hero-stage{height:var(--lvh);--stone:min(87vw,calc(var(--svh) * .6));--cloud-back-w:250vw;--cloud-front-w:320vw}
  .stone{top:calc(var(--svh) / 2 - var(--stone) / 2)}
  /* On phones the cave is fixed to the viewport and sized by app.js to cover 100vw x 100lvh (the largest viewport,
     toolbars collapsed), so no sky shows above, below or beside it however Safari's toolbars sit. It is hidden once
     it has faded out. The transform-origin is set in px by app.js from the cover crop. */
  .cave{position:fixed;transform-origin:55.51% 45.88%}
  .hero-title{top:calc(var(--safe-top) + var(--nav-h) + var(--svh) * .06)}
  .hero-title h1{font-size:clamp(40px,11vw,60px);max-width:8ch}
  .hero-hold{top:calc(var(--safe-top) + var(--nav-h) + var(--svh) * .02);right:var(--pad);max-width:none;padding-right:0}
  .hero-hold::before{display:none}
  .hold-lead{font-size:24px;margin-bottom:14px;max-width:none}
  .arc-section{height:calc(100svh + var(--n,7) * 24svh)}
  .arc-stage{--R:700px;--card-w:132px;--card-h:calc(var(--card-w) * 1.3325 + 40px)}
  .arc-stage h2{padding-top:calc(var(--safe-top) + var(--nav-h) + 20px)}
  .card{padding:6px 6px 0;border-radius:12px}
  .card span{font-size:13px;height:40px}
  .arc-note{font-size:14px;padding-bottom:4svh}
  .review{width:280px;padding:18px 20px 16px;min-height:170px}
  .review blockquote{font-size:16px}
  .shop-grid{grid-template-columns:1fr}
  .shop-card span{font-size:16px;padding-top:14px}
  .shop-card p{font-size:14px;padding-bottom:14px}
  /* Safari tint strips: 6 px, fixed, at the very top (status bar) and bottom (home indicator) edges. */
  .tint{display:block;position:fixed;left:0;right:0;height:6px;z-index:60;pointer-events:none}
  .tint-top{top:0}
  .tint-bottom{bottom:0}
  .story{grid-template-columns:1fr}
  .story-photos{position:static}
  .story-photos img:last-child{width:70%}
  .footer-meta{flex-direction:column;margin-top:40px}
  .footer{padding-bottom:calc(28px + var(--safe-bottom))}
}
@media (min-width:761px) and (max-width:1100px){
  .arc-stage{--R:900px;--card-w:170px}
}

/* REDUCED MOTION: landing state only, still arcs, still review grid, no Lenis (app.js adds body.reduced). */
.reduced .hero{height:auto}
.reduced .hero-stage{position:relative}
.reduced .stone,.reduced .clouds,.reduced .hero-title,.reduced .cave,.reduced .veil{display:none}
.reduced .hand{opacity:1!important;transform:none!important}
.reduced .hero-hold{opacity:1!important;transform:none!important}
.reduced .arc-section{height:auto}
.reduced .arc-stage{position:static;height:auto;display:block;overflow:visible;padding-bottom:40px}
.reduced .arc{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:20px;padding:36px var(--pad);width:auto;height:auto}
.reduced .card{position:static;transform:none!important;opacity:1!important;width:var(--card-w);height:auto;padding-bottom:0}
.reduced .arc-note{padding-top:8px}
.reduced .marquee-track{animation:none;width:auto}
.reduced .marquee-set{flex-wrap:wrap;padding:0 var(--pad);justify-content:center}
.reduced .marquee-set[aria-hidden="true"]{display:none}
.reduced *{transition:none!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
