/* ═══════════════════════════════════════════════════════════════════
   AlmaA · mobile2 — calm phone layouts + smooth motion
   Loaded after mobile.css. Everything here is progressive: without
   JS the pages still read fine, with it they get carousels, folds,
   a marquee and gentle autoplay. Respects "reduce motion".
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Page transitions (all screens) ─────────────────────────── */
@view-transition{navigation:auto}
::view-transition-old(root){animation:vtOut .26s cubic-bezier(.4,0,.2,1) both}
::view-transition-new(root){animation:vtIn .55s cubic-bezier(.22,1,.36,1) both}
@keyframes vtOut{to{opacity:0;transform:translateY(-6px) scale(.995)}}
@keyframes vtIn{from{opacity:0;transform:translateY(14px)}}
/* browsers without cross-page transitions get a soft entrance + exit instead */
@keyframes pgIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@supports not (view-transition-name:none){main{animation:pgIn .7s cubic-bezier(.22,1,.36,1) both}}
html.leaving body{opacity:0;transform:translateY(-6px);transition:opacity .22s ease,transform .22s ease}
/* safety net: if scripts are slow, never leave content invisible */
html.reveal-all .alma-fade{opacity:1!important;transform:none!important}

/* translate button shows it is working */
@keyframes mSpin{to{transform:rotate(360deg)}}
.tr-busy #tr-btn svg{animation:mSpin 1s linear infinite}

/* ── 2. The welcome night sky (all screens) ────────────────────── */
.sky{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.sky i{position:absolute;display:block;border-radius:50%;background:#EBCF95;opacity:.1;box-shadow:0 0 6px 1px rgba(212,180,131,.5);animation:skyTw var(--d,4s) ease-in-out var(--l,0s) infinite;will-change:opacity,transform}
@keyframes skyTw{0%,100%{opacity:.08;transform:scale(.6)}50%{opacity:.95;transform:scale(1.2)}}
.sky b{position:absolute;display:block;top:-12vh;width:2px;border-radius:2px;background:linear-gradient(to bottom,rgba(235,207,149,0),rgba(235,207,149,.95));transform:rotate(16deg);transform-origin:top;opacity:0;animation:skyFall var(--d,7s) linear var(--l,0s) infinite;will-change:transform,opacity}
@keyframes skyFall{0%{opacity:0;transform:translate3d(0,0,0) rotate(16deg)}8%{opacity:.95}75%{opacity:.7}100%{opacity:0;transform:translate3d(-34vw,118vh,0) rotate(16deg)}}

/* scrolling ticker (beliefs, trust badges) */
.m-mask{overflow:hidden;contain:inline-size;max-width:100%;min-width:0;white-space:nowrap;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);margin-left:-1.25rem;margin-right:-1.25rem}
.m-track{display:inline-flex;animation:mMarq 26s linear infinite;will-change:transform}
.m-track>*{flex:none;padding-right:2.4rem;white-space:nowrap}
@keyframes mMarq{to{transform:translateX(-50%)}}
.m-mask.slow .m-track{animation-duration:38s}
.trustbar.m-mask{display:block}
.trustbar.m-mask .m-track{gap:0}
.trustbar.m-mask .m-track>span{padding:0 1.1rem 0 0}
.trustbar.m-mask .m-track>span::before{margin-right:1.1rem}

.beliefs.m-mask .m-track>*{padding-right:0}
.beliefs.m-mask .m-track>*::after{content:'·';padding:0 1.2rem}
.faq-more{display:none}
.faq-more[hidden]{display:none!important}

/* ── 3. Phones ─────────────────────────────────────────────────── */
@media(max-width:899px){
  html,body{overflow-x:clip}
  .hero-inner,.hero>*,.mag-cover>*,.wrap{min-width:0}

  /* tools used by the scripts */
  .m-clamp{display:-webkit-box;-webkit-line-clamp:var(--lc,3);-webkit-box-orient:vertical;overflow:hidden}
  .m-clamp.open{display:block;-webkit-line-clamp:unset}
  .m-rm{display:block;margin:.3rem auto 0;padding:0 .4rem;background:none;border:0;min-height:44px;cursor:pointer;font-family:'Cormorant SC',serif;font-weight:600;letter-spacing:.16em;font-size:.8rem;color:var(--gold-text);-webkit-tap-highlight-color:transparent}
  .m-rm::after{content:' +';font-family:'Jost',sans-serif}
  .m-rm.on::after{content:' −'}
  .dark .m-rm,.hero.dark .m-rm,.hero .m-rm,.band .m-rm{color:var(--gold-lt)}

  /* carousels: one calm card at a time, with dots */
  .m-snap{display:flex!important;gap:.9rem;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;margin-left:-1.25rem!important;margin-right:-1.25rem!important;padding:.4rem 1.25rem 1rem!important;scrollbar-width:none;overscroll-behavior-x:contain}
  .m-snap::-webkit-scrollbar{display:none}
  .m-snap>*{flex:0 0 84%!important;max-width:84%;scroll-snap-align:center;margin:0!important;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s}
  .m-snap>*:not(.cur){opacity:.72;transform:scale(.97)}
  .m-snap>.cur{opacity:1;transform:none}

  /* shorter sections, calmer rhythm */
  .sec{padding:2.3rem 0}
  .sec-head{margin-bottom:1.3rem}
  .hero{padding-top:6.2rem}

  /* ─ Welcome: three worlds, less to read ─ */
  .door-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .welcome .doors{gap:.8rem}
  .w-foot{margin-top:1.6rem}

  /* ─ Magazine home ─ (the cover itself is in the 759px block at the end) */
  .beliefs.m-mask{margin-top:1.4rem;font-size:.82rem}
  #philosophy .sec-title{font-size:clamp(1.8rem,8vw,2.3rem)}
  .join-end{padding:2.4rem 1rem}
  .join-card{padding:2rem 1.2rem 1.7rem}
  .join-points{display:flex!important;flex-wrap:wrap;gap:.45rem!important;justify-content:center;border:0!important;margin-bottom:1.4rem!important}
  .join-points li{flex-direction:row!important;padding:.5rem .95rem!important;border:1px solid var(--gold)!important;border-radius:999px;background:transparent!important}
  .join-points span{display:none}
  .join-points b{font-size:.82rem}

  /* ─ Advisory: chapters, carousels, ticker ─ */
  .hero-title{font-size:clamp(2.5rem,12.5vw,3.6rem)}
  .hero .row-btns{flex-direction:column;align-items:stretch}
  .hero .row-btns .btn{justify-content:center;text-align:center}
  .why3.m-snap>div{padding:1.4rem 1.2rem;background:#FFFDF9;border:1px solid rgba(184,147,90,.38)}
  .testi.m-snap>figure{background:#FFFDF9;padding:1.4rem 1.2rem;border:1px solid rgba(184,147,90,.38)}
  .faq.m-collapsed>details:nth-child(n+5){display:none}
  .faq-more{display:block;margin:1rem auto 0}
  .band h2{font-size:clamp(1.9rem,8vw,2.6rem)}

  /* ─ Cookbook: a lighter first screen ─ */
  .cbn-slide span{font-size:.98rem}
  .cb-founding{font-size:.95rem}
  .chips.m-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-1.25rem;margin-right:-1.25rem;padding:.1rem 1.25rem .5rem}
  .chips.m-row::-webkit-scrollbar{display:none}
  .chips.m-row .chip{flex:none}
  .chips.m-row .chips-t{width:auto;flex:none}
  .stepper{position:sticky;top:var(--nav-h,4.5rem);z-index:30;background:rgba(247,242,234,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:.5rem 0;margin-left:-1.25rem;margin-right:-1.25rem;padding-left:1.25rem;padding-right:1.25rem;border-bottom:1px solid var(--border)}
  .stepper ~ .panel{padding-left:1rem;padding-right:1rem}
  .stepper{margin-bottom:1.2rem!important}
  .stepper .st .c{width:34px;height:34px;font-size:1.1rem;margin-bottom:.2rem}
  .stepper .st::before{top:17px}
  .stepper .st .l{font-size:.66rem;letter-spacing:.08em}
  .stepper .st:not(.on) .l{opacity:.7}

  /* cookie notice: same words, far less screen */
  .ck-in{gap:.5rem}
  .ck-t b{font-size:.85rem;margin-bottom:.15rem}
  .ck-t p{font-size:.8rem;line-height:1.42}
  .ck-b button{min-height:44px;font-size:.82rem}

  /* ─ Booking: friendly taps, shorter hero ─ */
  body:has(#cal) .hero{padding-bottom:1.6rem!important}
  body:has(#cal) .hero-desc{font-size:1.05rem}
  #cal-grid button,#slots button{min-height:46px}
}

/* very small phones */
@media(max-width:380px){
  .m-snap>*{flex-basis:90%!important;max-width:90%}
  .mag-masthead{letter-spacing:.1em}
}
@media(prefers-reduced-motion:reduce){
  .m-track{animation:none}
  .m-mask{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .m-snap>*{transition:none}
}


/* ═════════ MAGAZINE COVER · phones: a moving, colourful, swipeable cover ═════════
   (computers and tablets keep the classic cover) */
.mag-orbs,.mag-badge,.mag-ticker{display:none}
@media(max-width:759px){
  .mag-cover{position:relative;overflow:hidden;background:#F8F3EA;padding:.9rem 0 0}
  .mag-cover>.wrap{position:relative;z-index:2}
  /* colour glows drifting behind everything */
  .mag-orbs{display:block;position:absolute;inset:0;z-index:0;pointer-events:none}
  .mag-orbs i{position:absolute;display:block;border-radius:50%;will-change:transform}
  .mag-orbs i:nth-child(1){width:330px;height:330px;left:-110px;top:30px;background:radial-gradient(circle,rgba(240,176,160,.75),rgba(240,176,160,0) 68%);animation:orbA 16s ease-in-out infinite alternate}
  .mag-orbs i:nth-child(2){width:300px;height:300px;right:-120px;top:230px;background:radial-gradient(circle,rgba(173,204,170,.8),rgba(173,204,170,0) 68%);animation:orbB 19s ease-in-out infinite alternate}
  .mag-orbs i:nth-child(3){width:280px;height:280px;left:20%;bottom:-60px;background:radial-gradient(circle,rgba(233,200,130,.8),rgba(233,200,130,0) 68%);animation:orbC 22s ease-in-out infinite alternate}
  @keyframes orbA{to{transform:translate3d(80px,60px,0) scale(1.15)}}
  @keyframes orbB{to{transform:translate3d(-90px,-70px,0) scale(1.2)}}
  @keyframes orbC{to{transform:translate3d(70px,-50px,0) scale(1.1)}}

  .mag-masthead{background:transparent;animation:mgDown .8s cubic-bezier(.22,1,.36,1) both}
  .mag-stage{position:relative;text-align:center;margin:.5rem 0 0}
  .mag-title{font-size:clamp(3.5rem,17.5vw,5.3rem);line-height:.92;margin:1.5rem 0 .5rem;letter-spacing:-.01em;white-space:nowrap}
  .mag-title em{display:block;margin-top:.04em}
  .mag-title .ch{display:inline-block;opacity:0;animation:mgCh .9s cubic-bezier(.22,1,.36,1) calc(.15s + var(--i)*.055s) both}
  .mag-title .script-a{display:inline-block}
  @keyframes mgCh{from{opacity:0;transform:translateY(60%) rotate(7deg);filter:blur(7px)}to{opacity:1;transform:none;filter:blur(0)}}
  @keyframes mgDown{from{opacity:0;transform:translateY(-14px)}}
  @keyframes mgUp{from{opacity:0;transform:translateY(18px)}}

  /* spinning sticker */
  .mag-badge{display:block;position:absolute;right:-4px;top:-26px;width:76px;height:76px;color:var(--gold-text);font-family:'Cormorant SC',serif;font-weight:600;z-index:3;animation:mgPop .9s cubic-bezier(.34,1.56,.64,1) .9s both,mgSpin 20s linear 1.8s infinite;filter:drop-shadow(0 4px 10px rgba(61,46,30,.12))}
  .mag-badge text{fill:currentColor}
  .mag-badge circle{opacity:.7}
  @keyframes mgSpin{to{transform:rotate(360deg)}}
  @keyframes mgPop{from{opacity:0;transform:scale(.3) rotate(-90deg)}}

  .mag-tag{font-size:1.42rem;line-height:1.28;padding:0 .3rem;text-wrap:balance;animation:mgUp .9s cubic-bezier(.22,1,.36,1) 1s both}
  .mag-sub{display:block;font-size:1rem;line-height:1.55;margin:.7rem auto 0;max-width:30ch;animation:mgUp .9s cubic-bezier(.22,1,.36,1) 1.12s both}

  /* the four doors become swipeable story cards */
  .doors4{margin-top:1.3rem!important;gap:.8rem!important;animation:mgUp .9s cubic-bezier(.22,1,.36,1) 1.25s both;counter-reset:iss}
  .doors4.m-snap{padding-top:.2rem!important;padding-bottom:.7rem!important}
  .doors4.m-snap>a{flex:0 0 66%!important;max-width:66%;counter-increment:iss;position:relative;display:flex!important;flex-direction:column;justify-content:flex-end;min-height:178px;padding:1rem 1rem 1.05rem!important;border:0!important;border-radius:22px;overflow:hidden;box-shadow:0 14px 28px -16px rgba(61,46,30,.45);transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s;-webkit-tap-highlight-color:transparent}
  .doors4.m-snap>a:nth-child(1){background:linear-gradient(155deg,#F7D9CF,#EDB9A8)!important}
  .doors4.m-snap>a:nth-child(2){background:linear-gradient(155deg,#E1ECDD,#BFD5BA)!important}
  .doors4.m-snap>a:nth-child(3){background:linear-gradient(155deg,#F6E8C6,#E5C985)!important}
  .doors4.m-snap>a:nth-child(4){background:linear-gradient(155deg,#4A3826,#2D2013)!important}
  .doors4.m-snap>a::before{content:counter(iss,decimal-leading-zero);position:absolute;left:.9rem;top:.35rem;font-family:'Cormorant Garamond',serif;font-style:italic;font-size:4.2rem;line-height:1;color:rgba(61,46,30,.2);width:auto}
  .doors4.m-snap>a:nth-child(4)::before{color:rgba(233,200,130,.28)}
  .doors4.m-snap>a::after{content:'→';position:absolute;right:.85rem;top:.85rem;width:2.1rem;height:2.1rem;border-radius:50%;background:rgba(255,255,255,.65);display:grid;place-items:center;color:var(--walnut);font-size:1rem;margin:0;transition:transform .4s cubic-bezier(.22,1,.36,1)}
  .doors4.m-snap>a:nth-child(4)::after{background:rgba(233,200,130,.9)}
  .doors4.m-snap>a b{font-size:1.7rem;line-height:1.05;position:relative}
  .doors4.m-snap>a:nth-child(4) b{color:#FAF5EA}
  .doors4.m-snap>a span{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.86rem;line-height:1.35;margin-top:.3rem;color:rgba(61,46,30,.78);position:relative}
  .doors4.m-snap>a:nth-child(4) span{color:rgba(250,245,234,.78)}
  .doors4.m-snap>a:active{transform:scale(.97)}
  .doors4.m-snap>a:active::after{transform:translateX(4px) rotate(-20deg)}
  .doors4.m-snap>a.cur{box-shadow:0 20px 34px -16px rgba(61,46,30,.55)}
  .doors4+.sw-dots{margin-top:0}

  .mag-cta{margin:.4rem 0 1.4rem!important;animation:mgUp .9s cubic-bezier(.22,1,.36,1) 1.4s both}
  .mag-cta .btn{position:relative;overflow:hidden;border-radius:999px;min-height:54px}
  .mag-cta .btn::after{content:'';position:absolute;top:0;bottom:0;width:38%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);transform:skewX(-20deg);animation:mgShine 3.6s ease-in-out 2.2s infinite}
  @keyframes mgShine{0%{left:-60%}55%,100%{left:130%}}

  /* big scrolling ticker closes the cover */
  .mag-ticker{display:block;position:relative;z-index:2;overflow:hidden;border-top:1px solid rgba(61,46,30,.55);border-bottom:3px double rgba(61,46,30,.55);background:rgba(248,243,234,.6);padding:.35rem 0;animation:mgUp .9s ease 1.6s both}
  .mag-ticker>div{display:inline-flex;white-space:nowrap;animation:mMarq 30s linear infinite;will-change:transform}
  .mag-ticker span{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:2.1rem;line-height:1.1;color:transparent;-webkit-text-stroke:1px #8a6a35;padding-right:.2rem}
}

/* ═════════ "Reduce motion" (a common iPhone setting) ═════════
   Before: the site cut every animation to 0.01s, so the intro, the stars and the page changes looked dead.
   Now: no movement (nothing slides, spins or drifts), but everything still fades in softly and calmly. */
@keyframes softIn{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  /* welcome intro: same order and timing, fade only */
  .w-est,.w-welcome,.w-logo,.w-tag,.w-pick,.doors,.w-foot{animation-name:softIn!important;animation-duration:.9s!important}
  .w-rule{animation-duration:.9s!important}
  /* night sky: stars twinkle slowly, no falling streaks */
  .sky b{display:none}
  .sky i{animation-duration:var(--d,4s)!important;animation-name:skyTwSoft!important}
  @keyframes skyTwSoft{0%,100%{opacity:.15}50%{opacity:.85}}
  /* scroll reveals fade instead of jumping in */
  .alma-fade{opacity:0;transform:none;transition:opacity .9s ease}
  .alma-fade.visible{opacity:1}
  html.reveal-all .alma-fade{opacity:1}
  /* page changes: a quick cross-fade only */
  @keyframes vtOut{to{opacity:0}}
  @keyframes vtIn{from{opacity:0}}
  html.leaving body{transform:none}
  main{animation-name:softIn!important;animation-duration:.6s!important}
  /* magazine cover: fades in, but nothing drifts, spins or scrolls */
  .mag-orbs i,.mag-badge,.mag-ticker>div,.mag-cta .btn::after{animation:none!important}
  .mag-masthead,.mag-title .ch,.mag-tag,.mag-sub,.doors4,.mag-cta,.mag-ticker{animation-name:softIn!important;animation-duration:.8s!important}
  .m-track{animation:none}
  .m-mask{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .m-snap>*{transition:none}
}
