/* Pocketry — the scroll story and the Motion touches. Brand tokens only (see styles.css :root). */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* The story: a tall section whose inner stage stays pinned while the visitor scrolls through it. */
.story{position:relative;height:auto;border-top:1px solid var(--line);background:radial-gradient(ellipse 70% 55% at 62% 50%,#7189551f,transparent 70%),var(--bg)}
.story-sticky{position:relative;min-height:auto;overflow:hidden;padding:110px 0 90px}
.story-canvas{display:none}
.story-copy{position:relative;z-index:2}
.story-copy .eyebrow{margin-bottom:34px}
.story-beats{list-style:none;margin:0;padding:0;display:grid;gap:26px;max-width:520px;counter-reset:beat}
.story-beats li{counter-increment:beat;display:grid;gap:8px;padding-left:46px;position:relative}
.story-beats li:before{content:'0' counter(beat);position:absolute;left:0;top:6px;font:600 11px/1 Manrope,sans-serif;color:#7c8970;letter-spacing:1px}
.story-beats strong{font:500 clamp(26px,3vw,40px)/1.12 Manrope,sans-serif;letter-spacing:-1.4px;color:var(--ivory)}
.story-beats span{font-size:14px;line-height:1.75;color:var(--muted);max-width:430px}
.story-rail,.story-hint{display:none}
.story-static{margin:50px auto 0;width:min(260px,62vw);padding:7px;border-radius:36px;border:1px solid #d4e9a435;background:#0a0d0a;box-shadow:0 30px 60px #0007}
.story-static img{display:block;width:100%;height:auto;border-radius:29px}

/* With 3D: pinned stage, one beat at a time, the scene fills the stage. */
.story.story-3d{height:430vh}
.story.story-3d .story-sticky{position:sticky;top:0;height:100vh;height:100svh;padding:0;display:flex;align-items:center}
.story.story-3d .story-canvas{display:block;position:absolute;inset:0 0 0 max(30%,450px);z-index:1}
.story.story-3d .story-canvas canvas{width:100%;height:100%;display:block}
.story.story-3d .story-static{display:none}
.story.story-3d .story-copy{pointer-events:none;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.story.story-3d .story-beats{display:block;position:relative;min-height:230px;max-width:400px}
.story.story-3d .story-beats li{position:absolute;inset:0 auto auto 0;opacity:0;transform:translateY(18px);transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1)}
.story.story-3d .story-beats li.on{opacity:1;transform:none}
.story.story-3d .story-rail{display:flex;gap:8px;margin-top:30px}
.story-rail i{width:22px;height:3px;border-radius:2px;background:#d4e9a42a;transition:background .4s,width .4s}
.story-rail i.on{background:var(--sage)}
.story-rail i.on:last-of-type{width:34px}
.story.story-3d .story-hint{display:block;position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:2;font-size:10px;letter-spacing:2px;color:#92988e;transition:opacity .4s}
.story.story-3d .story-hint span{color:var(--sage);margin-left:6px}
.story[data-beat="1"] .story-hint,.story[data-beat="2"] .story-hint,.story[data-beat="3"] .story-hint,.story[data-beat="4"] .story-hint{opacity:0}

/* Phones: the scene takes the upper part of the stage, the words sit below it. */
/* Phones AND tablets in portrait: the scene above, the words below (tablets used the cramped desktop layout). */
@media (max-width:720px), (max-width:1100px) and (orientation:portrait){
  .story.story-3d{height:400vh}
  .story.story-3d .story-sticky{align-items:flex-end}
  .story.story-3d .story-canvas{inset:0 0 34% 0}
  .story.story-3d .story-copy{justify-content:flex-end;padding-bottom:58px}
  .story.story-3d .story-beats{min-height:170px;max-width:none}
  .story-beats strong{font-size:26px}
  .story-beats span{font-size:13px}
  .story.story-3d .story-copy .eyebrow{display:none}
}

/* Motion off (Pause control or Reduced Motion): the story is a plain, readable list again. */
.motion-off .story.story-3d{height:auto}
.motion-off .story.story-3d .story-sticky{position:relative;height:auto;padding:110px 0 90px;display:block}
.motion-off .story.story-3d .story-canvas,.motion-off .story.story-3d .story-rail,.motion-off .story.story-3d .story-hint{display:none}
.motion-off .story.story-3d .story-beats{display:grid;min-height:0;max-width:520px}
.motion-off .story.story-3d .story-beats li{position:relative;opacity:1;transform:none}
.motion-off .story.story-3d .story-static{display:block}

/* Words of a headline, revealed in order by motion.js. Visible by default if it never runs. */
.words-ready .word{display:inline-block;opacity:0;will-change:transform,opacity}
.motion-off .words-ready .word{opacity:1!important;transform:none!important}

/* Motion owns these transforms now; CSS transitions would fight its springs. */
.button,.header-cta,.proof-device{transition-property:background,color,border-color,box-shadow}
.button:hover,.proof-device:hover{transform:none}
.start-number b{font:inherit}

/* ── Icons: drawn arrows instead of text characters (an iPhone drew "↗" as a large odd glyph, 3 Oct) ── */
.i{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-0.12em}
.button{gap:18px;padding:8px 8px 8px 26px;min-height:56px}
.button .i{width:40px;height:40px;padding:11px;border-radius:50%;background:#25301c;color:var(--sage);stroke-width:2.2;transition:transform .25s cubic-bezier(.22,1,.36,1)}
.button:hover .i{transform:rotate(45deg)}
.header-cta{align-items:center;gap:10px}
.header-cta .i{width:14px;height:14px}
.text-link .i,.hero-bottom a .i,.questions a .i{width:15px;height:15px}
.stage-arrow .i{width:16px;height:16px}
.tour-send .i{width:16px;height:16px}

/* "5 / 5": the count is its own element now (a bare span picked up the 10-px label style) */
.proof-numbers b{font:inherit;color:inherit}

/* ── Phones ── */
@media (max-width:640px){
  .hero-actions{flex-direction:column;align-items:stretch;gap:16px}
  .hero-actions .button{justify-content:space-between}
  .hero-actions .text-link{justify-content:center}
  .header-cta{padding:9px 14px;gap:8px}
  /* the three real screenshots: a swipeable row instead of three full-screen phones */
  .proof-gallery{max-width:none;width:auto;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;margin:0 -20px;padding:0 20px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .proof-gallery::-webkit-scrollbar{display:none}
  .proof-gallery figure{flex:0 0 74%;scroll-snap-align:center}
  .proof-gallery:after{content:'';flex:0 0 4px}
  .proof-footnote:before{content:'Swipe to see all three · ';color:var(--sage)}
  .start-card .button,.closing .button{width:100%;justify-content:space-between}
}

/* ── Tablets: one column where two were cramped (the logo tile was cut off on the left) ── */
@media (min-width:641px) and (max-width:1100px){
  .freedom.section{grid-template-columns:1fr;gap:40px;justify-items:center;text-align:center}
  .freedom.section .eyebrow{justify-content:center}
  .freedom.section .intro,.freedom.section .quiet-copy{margin-inline:auto}
  .freedom-art{width:100%;max-width:520px;height:360px}
}

/* Portrait tablets share the stacked story layout with phones, but have room for larger captions. */
@media (min-width:641px) and (max-width:1100px) and (orientation:portrait){
  .story-beats strong{font-size:36px}
  .story-beats span{font-size:15px;max-width:560px}
  .story.story-3d .story-beats{min-height:200px}
}

/* ── Header: sticky, frosted once scrolled, out of the way while reading, a real menu on phones and tablets ── */
.site-header{position:sticky;top:0;z-index:60;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.site-header:before{content:'';position:absolute;inset:0;background:rgba(16,19,17,.78);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);border-bottom:1px solid var(--line);opacity:0;transition:opacity .3s}
.site-header[data-state="scrolled"]:before,.site-header[data-open="true"]:before{opacity:1}
.site-header[data-hidden="true"]{transform:translateY(-100%)}
.site-header .header{position:relative;z-index:2;transition:height .35s cubic-bezier(.22,1,.36,1)}
.site-header[data-state="scrolled"] .header{height:72px;border-bottom:0}
.header-end{display:flex;align-items:center;gap:10px}
.header-nav a{position:relative;padding:12px 2px}
.header-nav a[aria-current="true"]{color:var(--ivory)}
.header-nav a[aria-current="true"]:after{content:'';position:absolute;left:2px;right:2px;bottom:4px;height:1px;background:var(--sage)}
.menu-toggle{display:none;width:44px;height:44px;border-radius:50%;border:1px solid #d4e9a43c;background:transparent;position:relative;flex:none}
.menu-toggle span{position:absolute;left:13px;right:13px;height:1.5px;background:var(--ivory);border-radius:2px;transition:transform .35s cubic-bezier(.22,1,.36,1),top .35s cubic-bezier(.22,1,.36,1)}
.menu-toggle span:first-child{top:17px}.menu-toggle span:last-child{top:25px}
.menu-toggle[aria-expanded="true"] span:first-child{top:21px;transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:last-child{top:21px;transform:rotate(-45deg)}
.menu-sheet{position:fixed;inset:0;z-index:1;background:rgba(16,19,17,.97);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);display:flex;flex-direction:column;justify-content:space-between;padding:110px 0 calc(34px + env(safe-area-inset-bottom));overflow:auto}
.menu-sheet[hidden]{display:none}
.menu-links{display:flex;flex-direction:column}
.menu-links a{display:flex;align-items:baseline;gap:18px;padding:16px 0;border-bottom:1px solid var(--line);font:500 clamp(30px,8vw,44px)/1.1 Manrope,sans-serif;letter-spacing:-1.4px;color:var(--ivory)}
.menu-links a span{font:600 11px/1 'DM Sans',sans-serif;letter-spacing:1.5px;color:#7c8970;transform:translateY(-6px)}
.menu-links a[aria-current="true"]{color:var(--sage)}
.menu-foot{display:grid;gap:18px;margin-top:40px}
.menu-foot .button{justify-content:space-between}
.menu-foot p{margin:0;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}
.menu-foot i{width:6px;height:6px;border-radius:50%;background:var(--sage);box-shadow:0 0 10px #d4e9a450}
html.menu-open,html.menu-open body{overflow:hidden}

@media (max-width:1100px){
  .header-nav{display:none}
  .menu-toggle{display:inline-flex}
}
@media (max-width:640px){
  .site-header[data-state="scrolled"] .header{height:64px}
  .header-cta{font-size:11px}
}
@media (max-width:370px){ .header-cta{display:none} }
@media (prefers-reduced-motion:reduce){ .site-header,.site-header .header,.menu-toggle span{transition:none} }
