/* Alma website. Dark (Tokyo Night) and light "paper" sections alternate, with solid colour blocks in the seven
   category colours. Type: Bricolage Grotesque, variable in weight (200-800) and width (75-100 %), used big. */
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/Caveat.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/Bricolage-full-latin.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/Bricolage-full-latin-ext.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --everything: linear-gradient(90deg, #e8590c, #f17a22, #f59f3a, #fcc96b, #f59f3a, #f17a22, #e8590c); /* the logo's warm colours */
  --ink: #14151e; --ink-2: #1a1b26; --ink-3: #24283b;
  --light: #c0caf5; --light-2: #a9b1d6; --light-3: #6b73a0;
  --paper: #f2eee6; --paper-2: #e7e1d5; --paper-text: #16171f; --paper-mute: #5b5e72;
  --red: #f7768e; --orange: #eb927b; --yellow: #e0af68; --green: #9ece6a; --cyan: #449dab; --blue: #7aa2f7; --magenta: #ad8ee6;
  --c-movie: var(--red); --c-series: var(--magenta); --c-game: var(--blue); --c-book: var(--green);
  --c-audiobook: var(--yellow); --c-music: var(--cyan); --c-podcast: var(--orange);
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --max: 1600px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--light-2); font: 400 17.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 64px); }

/* section skins */
.dark { background: var(--ink); color: var(--light-2); }
.paper { background: var(--paper); color: var(--paper-mute); }
.paper h2, .paper h3 { color: var(--paper-text); }
.dark h2, .dark h3 { color: #fff; }
main > section { position: relative; }

/* type */
.kicker { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.paper .kicker { color: var(--paper-mute); }
.dark .kicker { color: var(--light-3); }
h2.big { --w: 800; --w2: 300; --s: 78%; --s2: 100%;
  font-size: clamp(52px, 8.4vw, 132px); line-height: .9; letter-spacing: -.035em; font-weight: 800; font-stretch: 78%; }
.sub { font-size: 19px; max-width: 620px; margin-top: 22px; }
.fine { font-size: 13.5px; opacity: .75; }

/* flexing letters (see site.js): --k = 0 far from the pointer … 1 right under it */
.flex .ch { display: inline-block; white-space: pre;
  font-weight: calc(var(--w, 400) + (var(--w2, 800) - var(--w, 400)) * var(--k, 0));
  font-stretch: calc(var(--s, 100%) + (var(--s2, 100%) - var(--s, 100%)) * var(--k, 0));
  transition: font-weight .35s cubic-bezier(.2, .8, .2, 1), font-stretch .35s cubic-bezier(.2, .8, .2, 1), color .4s; }
.wave .ch { animation: flexwave 1.1s cubic-bezier(.45, 0, .25, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes flexwave { 45% { font-weight: var(--w2, 800); font-stretch: var(--s2, 100%); color: var(--wc, inherit); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  background: #fff; color: var(--ink); font: 700 16.5px var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: none; color: #fff; border-color: rgb(255 255 255 / .3); }
.btn.ghost:hover { border-color: #fff; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.small { padding: 9px 16px; font-size: 14.5px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px max(clamp(20px, 3.5vw, 64px), calc((100vw - var(--max)) / 2 + clamp(20px, 3.5vw, 64px))); background: rgb(20 21 30 / .72);
  backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid rgb(255 255 255 / .06); }
.mark-svg { display: block; height: 38px; width: auto; aspect-ratio: 1700 / 626; overflow: visible; }
.top-nav { display: flex; align-items: center; gap: 34px; }
.top-nav a:not(.nav-beta) { position: relative; color: var(--light-2); text-decoration: none; font-size: 19px; font-weight: 600; font-stretch: 85%; letter-spacing: -.01em;
  transition: color .2s, font-weight .3s, font-stretch .3s; }
.top-nav a:not(.nav-beta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #e8590c, #f59f3a, #fcc96b); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.top-nav a:not(.nav-beta):hover { color: #fff; font-weight: 800; font-stretch: 75%; }
.top-nav a:not(.nav-beta):hover::after { transform: scaleX(1); }
/* the invite button: a dark pill with a slowly turning spectrum border */
.nav-beta { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; isolation: isolate;
  color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.005em; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.nav-beta::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--turn, 0deg), #e8590c, #f59f3a, #fcc96b, #f59f3a, #e8590c);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: turn 6s linear infinite; }
.nav-beta::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit; background: rgb(20 21 30 / .9); transition: background .25s; }
.nav-beta:hover { transform: translateY(-2px); color: var(--ink); }
.nav-beta:hover::after { background: #fff; }
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes turn { to { --turn: 360deg; } }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(158 206 106 / .6); animation: pulse 2s ease-out infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(158 206 106 / 0); } 100% { box-shadow: 0 0 0 0 rgb(158 206 106 / 0); } }

/* ---------- hero ---------- */
.hero { padding: 170px 0 0; overflow: hidden; }
.hero-in { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }
/* light shafts in the category colours */
.rays { position: absolute; inset: 0; pointer-events: none; }
.rays i { position: absolute; top: -20%; width: 34vw; height: 140%; filter: blur(60px); opacity: .22; transform-origin: top; mix-blend-mode: screen; animation: sway 14s ease-in-out infinite alternate; }
.rays i:nth-child(1) { left: -6vw; background: linear-gradient(180deg, #e8590c, transparent 75%); transform: rotate(18deg); }
.rays i:nth-child(2) { left: 34vw; background: linear-gradient(180deg, #fcc96b, transparent 70%); transform: rotate(-4deg); opacity: .16; animation-duration: 18s; }
.rays i:nth-child(3) { right: -8vw; background: linear-gradient(180deg, #f59f3a, transparent 75%); transform: rotate(-20deg); animation-duration: 16s; }
@keyframes sway { to { translate: 3vw 0; rotate: 4deg; } }

/* a wall of covers drifting behind the hero (movies, books, games, music …), only just visible */
.hero-wall { position: absolute; inset: -40px 0 auto; height: 1180px; display: grid; align-content: start; gap: 18px; pointer-events: none;
  opacity: .065; filter: blur(1.5px) saturate(.7); transform: rotate(-6deg) scale(1.15); transform-origin: center top;
  -webkit-mask: radial-gradient(75% 60% at 50% 38%, #000 25%, transparent 78%); mask: radial-gradient(75% 60% at 50% 38%, #000 25%, transparent 78%); }
.hero-wall::after { content: ""; position: absolute; inset: 0; background: var(--ink); mix-blend-mode: color; opacity: .35; } /* calms the colours */
.wall-row { display: flex; gap: 18px; width: max-content; animation: wall-l 150s linear infinite; will-change: transform; }
.wall-row:nth-child(2) { animation-name: wall-r; animation-duration: 190s; margin-left: -120px; }
.wall-row:nth-child(3) { animation-duration: 220s; margin-left: -60px; }
.wall-row:nth-child(4) { animation-name: wall-r; animation-duration: 170s; margin-left: -200px; }
.wall-row img { height: 230px; width: 153px; object-fit: cover; border-radius: 14px; flex: none; box-shadow: 0 10px 30px rgb(0 0 0 / .5); }
.wall-row img.sq { width: 230px; }
@keyframes wall-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wall-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.headline { display: grid; justify-items: center; color: #fff; line-height: .88; margin-bottom: 30px; font-weight: inherit; }
.hl-a, .hl-c { --w: 250; --w2: 800; --s: 100%; --s2: 80%; font-size: clamp(30px, 4.6vw, 70px); font-weight: 250; letter-spacing: -.02em; }
.hl-b { --w: 800; --w2: 250; --s: 75%; --s2: 100%; font-size: clamp(84px, 15vw, 228px); font-weight: 800; font-stretch: 75%; letter-spacing: -.012em; line-height: .86; margin: 6px 0 calc(22px - .2em); padding: 0 .04em .2em; }
.hl-b .ch:nth-child(3n+1) { --wc: #e8590c; } .hl-b .ch:nth-child(3n+2) { --wc: #f59f3a; } .hl-b .ch:nth-child(3n) { --wc: #fcc96b; }
.hl-b { width: max-content; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: var(--everything);
  background-size: 200% 100%; animation: flow 9s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
/* grain: fine dark and light specks printed into the colour, like a risograph; the specks stay put while the colour flows */
.grain .hl-b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0 0.12  2.4 0 0 0 -1.35'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.4 0 0 0 -1.45'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"),
  var(--everything);
  background-size: 160px 160px, 160px 160px, 200% 100%; animation-name: flow-grain; }
@keyframes flow-grain { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, -200% 0; } }
.hl-b .ch { color: transparent; }
.lede { font-size: 20px; max-width: 640px; color: var(--light-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 14px; }
.hero .fine { color: var(--light-3); opacity: 1; }
.hero-shots { position: relative; z-index: 2; margin-top: 80px; padding-bottom: 0; }
.hero-shots .window { position: relative; z-index: 1; }
.window { margin: 0; border-radius: 18px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 100px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .08); }
.hero-shots .window { width: 92%; margin: 0 auto; border-radius: 18px 18px 0 0; }
.phone { margin: 0; border-radius: 34px; overflow: hidden; background: #000; border: 7px solid #0b0b10; box-shadow: 0 30px 70px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .08); }
.hero-shots .phone { position: absolute; z-index: 4; right: 2%; bottom: -150px; width: 19%; }

/* ---------- marquee (bottom of the hero) ---------- */
.marquee { position: relative; z-index: 3; overflow: hidden; padding: 30px 0; margin-top: 0; background: var(--ink); border-top: 1px solid rgb(255 255 255 / .07); }
.mq-track { display: flex; width: max-content; animation: mq 50s linear infinite; }
.mq-row { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.mq-w { display: inline-flex; align-items: center; color: #fff; cursor: default; transition: color .3s; }
.mq-w b { font-size: clamp(56px, 8.5vw, 128px); line-height: 1.05; letter-spacing: -.04em; white-space: nowrap; font-weight: inherit; }
.mq-ico { width: 0; height: .62em; font-size: clamp(56px, 8.5vw, 128px); stroke-width: 2.1; opacity: 0; transform: scale(.3) rotate(-25deg);
  transition: width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, transform .45s cubic-bezier(.3, 1.5, .5, 1), margin .45s cubic-bezier(.2, .8, .2, 1); }
.mq-w:hover { color: var(--c); }
.mq-w:hover .mq-ico { width: .62em; margin-right: .16em; opacity: 1; transform: none; }
.mq-row i { color: var(--c); font-style: normal; font-size: clamp(30px, 4vw, 60px); }
.w1 { font-weight: 800; font-stretch: 75%; } .w2 { font-weight: 250; font-stretch: 100%; } .w3 { font-weight: 800; font-stretch: 100%; }
.w4 { font-weight: 500; font-stretch: 80%; } .w5 { font-weight: 200; font-stretch: 75%; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- features: white cards on paper, lifted by a soft shadow ---------- */
.features { padding: 210px 0 160px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 50px; align-items: end; margin-bottom: 80px; }
.sec-head .sub { margin: 0 0 12px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.card { --a: var(--blue); position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 30px; min-height: 600px;
  background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--a) 11%, transparent), transparent 70%), #fff;
  color: var(--paper-mute); box-shadow: 0 1px 2px rgb(22 23 31 / .04), 0 24px 60px -24px rgb(22 23 31 / .16), 0 0 0 1px rgb(22 23 31 / .03); }
.span-12 { grid-column: span 12; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; }
.card h3 { color: var(--paper-text); font-size: clamp(36px, 3.7vw, 60px); line-height: .95; letter-spacing: -.035em; font-weight: 800; font-stretch: 75%; margin-bottom: 18px; }
.card-text { padding: 44px 44px 34px; }
.card-text p { font-size: 18px; max-width: 540px; }
.num { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--paper-text); }
.num::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--a); }
.shot { margin: auto 0 0 44px; border-radius: 16px 0 0 0; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 24px 60px -20px rgb(22 23 31 / .45), 0 0 0 1px rgb(22 23 31 / .06); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.shot img { width: 100%; height: 340px; object-fit: cover; object-position: left top; }
.shot.sheet img { height: 360px; object-position: center top; }
.card:hover .shot { transform: translate(-6px, -6px); }
/* 01: text beside a big screenshot */
.card.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 640px; }
.card.split .card-text { align-self: center; padding: 56px; }
.card.split h3 { font-size: clamp(44px, 4.6vw, 80px); }
.card.split .shot { margin: 56px 0 0; align-self: end; }
.card.split .shot img { height: 560px; }
/* slideshows (02, 08) */
.slides { position: relative; margin-top: auto; height: 380px; }
.slides .shot { position: absolute; inset: 0 0 0 44px; margin: 0; opacity: 0; transform: translateX(30px); transition: opacity .9s, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.slides .shot.on { opacity: 1; transform: none; }
.slides .shot img { height: 100%; }
/* 03: the seven kinds */
.kinds { list-style: none; margin: auto 0 0; padding: 0 44px 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kinds li { display: flex; align-items: center; gap: 14px; padding: 20px 20px; border-radius: 18px; background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--paper-text); font-size: 23px; font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), background .3s; }
.kinds li:last-child { grid-column: span 2; }
.kinds .ico { width: 28px; height: 28px; color: color-mix(in srgb, var(--c) 80%, #000); flex: none; }
.kinds li:hover { transform: translateY(-3px) rotate(-1deg); background: color-mix(in srgb, var(--c) 26%, #fff); }
/* 04: Memory Lane, polaroids pegged to a line, drifting right to left */
.lane-card { min-height: 0; }
.wide-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 50px; align-items: end; padding-bottom: 10px; }
.wide-text p { margin-bottom: 18px; }
.lane { position: relative; overflow: hidden; padding: 70px 0 70px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lane::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 30px; border-top: 2px solid #b9ae9a;
  border-radius: 50% / 100% 100% 0 0; transform: scaleY(-1); opacity: .9; } /* the line sags a little */
.lane-track { display: flex; width: max-content; animation: lane 90s linear infinite; }
.lane-set { display: flex; align-items: flex-start; gap: 46px; padding-right: 46px; }
.pol { position: relative; flex: none; width: 250px; margin: 0; padding: 14px 14px 18px; background: #fffdf8; border-radius: 3px;
  box-shadow: 0 2px 3px rgb(22 23 31 / .08), 0 18px 34px -12px rgb(22 23 31 / .3); transform: rotate(var(--r)); transform-origin: 50% -20px;
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.pol:nth-child(odd) { margin-top: 12px; }
.pol:hover { transform: rotate(0deg) scale(1.05); z-index: 2; }
.pol .pin { position: absolute; z-index: 2; top: -18px; left: 50%; width: 15px; height: 46px; margin-left: -7.5px; border-radius: 3px; background: linear-gradient(90deg, #c9a77a, #e3c79f 50%, #b8935f); box-shadow: 0 2px 4px rgb(0 0 0 / .2); }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pol .pin::after { content: ""; position: absolute; left: 3px; right: 3px; top: 15px; height: 2px; border-radius: 1px; background: rgb(90 60 30 / .35); }
.pol figcaption { display: grid; gap: 2px; padding-top: 12px; }
.pol b { color: var(--paper-text); font-size: 15px; font-weight: 700; line-height: 1.2; }
.pol span { font-family: 'Caveat', cursive; font-size: 21px; line-height: 1.1; color: #3d3f52; }
.pol em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--paper-mute); text-transform: uppercase; }
.yr { flex: none; align-self: center; margin-top: 40px; color: transparent; -webkit-text-stroke: 1.5px #c9bfae; font-size: 130px; font-weight: 800; font-stretch: 75%; letter-spacing: -.04em; line-height: 1; }
@keyframes lane { to { transform: translateX(-50%); } }

/* ---------- pocket ---------- */
.pocket { padding: 150px 0 120px; overflow: hidden; }
.pocket-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 50px; align-items: center; }
.pocket .sub { color: var(--light-2); }
.phone-pair { position: relative; display: flex; gap: 26px; justify-content: center; }
.sync-arc { position: absolute; z-index: 1; left: 18%; right: 18%; top: -70px; width: 64%; height: 120px; overflow: visible; }
.sync-arc path { fill: none; stroke: rgb(255 255 255 / .25); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sync-arc circle { fill: var(--c-now, var(--yellow)); transition: fill .4s; }
.phone-pair:has([data-state="offline"]) .sync-arc circle { opacity: 0; }
.phone-pair:has([data-state="syncing"]) .sync-arc circle { fill: var(--blue); }
.phone-pair:has([data-state="synced"]) .sync-arc circle { fill: var(--green); }
.sync-chip { position: absolute; z-index: 3; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 999px;
  background: rgb(26 27 38 / .62); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border: 1px solid rgb(255 255 255 / .14);
  box-shadow: 0 24px 60px -10px rgb(0 0 0 / .6); white-space: nowrap; --sc: var(--yellow); transition: --sc .4s; }
.sync-chip[data-state="syncing"] { --sc: var(--blue); } .sync-chip[data-state="synced"] { --sc: var(--green); }
.sc-ico { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 20%, transparent); color: var(--sc); transition: background .4s, color .4s; }
.sc-ico svg { position: absolute; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.sc-text { display: grid; }
.sc-text b { color: #fff; font-size: 20px; font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; line-height: 1.1; }
.sc-text small { color: var(--light-3); font-size: 13.5px; }
.sc-text > * { display: none; }
.sync-chip[data-state="offline"] .s-off, .sync-chip[data-state="syncing"] .s-sync, .sync-chip[data-state="synced"] .s-ok { opacity: 1; transform: none; }
.sync-chip[data-state="syncing"] .s-sync { animation: spin 1.1s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.sync-chip[data-state="offline"] .t-off, .sync-chip[data-state="syncing"] .t-sync, .sync-chip[data-state="synced"] .t-ok { display: block; }
.phone-pair .phone { width: min(250px, 44%); }
.phone-pair .phone:first-child { transform: rotate(-4deg) translateY(10px); }
.phone-pair .phone:last-child { transform: rotate(4deg) translateY(60px); }

/* ---------- make it yours: the section takes on the picked mode ---------- */
.yours { --y-bg: #f4f1ea; --y-tx: #16171f; --y-mute: #5b5e72; --y-pill: #e2dccf;
  background: var(--y-bg); color: var(--y-mute); padding: 150px 0 130px; overflow: hidden; transition: background .7s ease, color .7s ease; }
.yours[data-mode="dim"] { --y-bg: #2a2e42; --y-tx: #dde3ff; --y-mute: #bcc4e6; --y-pill: #3a4060; }
.yours[data-mode="dark"] { --y-bg: #14151e; --y-tx: #ffffff; --y-mute: #a9b1d6; --y-pill: #292e42; }
.yours h2 { color: var(--y-tx); transition: color .7s; }
.yours .kicker { color: var(--y-mute); }
.yours-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 60px; align-items: center; }
.mode-pick { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding: 6px; border-radius: 999px; background: var(--y-pill); transition: background .7s; }
.mode-pick button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--y-mute); font: 700 17px var(--font); font-stretch: 85%; transition: background .3s, color .3s; }
.mode-pick button:hover { color: var(--y-tx); }
.mode-pick button[aria-selected="true"] { background: var(--y-bg); color: var(--y-tx); box-shadow: 0 4px 14px -4px rgb(0 0 0 / .25); }
.sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(127 127 127 / .45); }
.sw-light { background: #f4f1ea; } .sw-dim { background: #2a2e42; } .sw-dark { background: #14151e; }
.sw-auto { background: linear-gradient(135deg, #f4f1ea 50%, #14151e 50%); }
.mode-shots { position: relative; aspect-ratio: 16 / 10; }
.mode-shots .window { position: absolute; inset: 0; opacity: 0; transform: scale(.97) translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / .55), 0 0 0 1px rgb(127 127 127 / .18); }
.mode-shots .window.on { opacity: 1; transform: none; }
.mode-shots img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ---------- import: hover a source and a few of its covers fan out ---------- */
.import { padding: 140px 0; }
.sources { list-style: none; padding: 60px 0 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.sources li { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--c); color: var(--paper-text); cursor: default;
  font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; font-stretch: 85%; letter-spacing: -.02em; transition: background .3s, color .3s, transform .35s cubic-bezier(.3, 1.5, .5, 1), font-weight .3s, font-stretch .3s; }
.src-ico { width: 0; height: .8em; opacity: 0; stroke-width: 2.2; transition: width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, margin .35s; }
.sources li:hover { background: var(--c); transform: translateY(-4px) rotate(-1.5deg); font-weight: 800; font-stretch: 75%; z-index: 2; }
.sources li:hover .src-ico { width: .8em; margin-right: .3em; opacity: 1; }
.fan { position: absolute; left: 50%; bottom: calc(100% - 14px); width: 0; height: 0; pointer-events: none; }
.fan img { position: absolute; bottom: 0; left: -30px; width: 60px; max-width: none; height: 90px; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 24px rgb(22 23 31 / .3);
  opacity: 0; transform: translateY(30px) scale(.6) rotate(0deg); transform-origin: 50% 120%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; }
.fan img.sq { height: 60px; }
.sources li:hover .fan img { opacity: 1; }
.sources li:hover .fan img:nth-child(1) { transform: translate(-52px, -4px) rotate(-14deg); transition-delay: .03s; }
.sources li:hover .fan img:nth-child(2) { transform: translate(0, -16px) rotate(0deg); transition-delay: .07s; }
.sources li:hover .fan img:nth-child(3) { transform: translate(52px, -4px) rotate(14deg); transition-delay: .11s; }
.import .fine { color: var(--paper-mute); }

/* ---------- coming next ---------- */
.soon { padding: 140px 0 150px; background: var(--paper-2); }
.soon .sub { color: var(--paper-mute); }
.soon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.soon-card { position: relative; display: grid; align-content: start; gap: 14px; padding: 30px 28px 34px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(90% 60% at 0% 0%, rgb(245 159 58 / .12), transparent 70%), #fff;
  box-shadow: 0 1px 2px rgb(22 23 31 / .04), 0 24px 60px -24px rgb(22 23 31 / .16), 0 0 0 1px rgb(22 23 31 / .03); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.soon-card:hover { transform: translateY(-6px); }
.soon-card::after { content: "Soon"; position: absolute; top: 24px; right: 24px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #c2410c; background: rgb(245 159 58 / .16); }
.soon-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #e8590c, #f59f3a 60%, #fcc96b); box-shadow: 0 10px 22px -10px rgb(232 89 12 / .6); }
.soon-ico svg { width: 26px; height: 26px; }
.soon-card h3 { color: var(--paper-text); font-size: clamp(26px, 2.2vw, 34px); line-height: 1; font-weight: 800; font-stretch: 78%; letter-spacing: -.03em; margin-top: 18px; }
.soon-card p { font-size: 16px; color: var(--paper-mute); }

/* ---------- beta: frosted glass over slowly drifting orbs in the logo's warm colours, muted ---------- */
.beta { padding: 160px 0; overflow: hidden; }
.orbs { position: absolute; inset: 0; pointer-events: none; }
.orbs i { position: absolute; width: 52vw; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .42; mix-blend-mode: screen; }
.orbs i:nth-child(1) { left: 2%; top: 4%; background: radial-gradient(circle, #c2541a, transparent 62%); animation: orb1 26s ease-in-out infinite alternate; }
.orbs i:nth-child(2) { right: 0; top: 20%; background: radial-gradient(circle, #8a4a1c, transparent 62%); animation: orb2 31s ease-in-out infinite alternate; }
.orbs i:nth-child(3) { left: 30%; bottom: -10%; background: radial-gradient(circle, #d99a45, transparent 62%); animation: orb3 23s ease-in-out infinite alternate; }
.orbs i:nth-child(4) { left: 46%; top: -6%; width: 32vw; background: radial-gradient(circle, #b8692a, transparent 62%); animation: orb2 37s ease-in-out infinite alternate-reverse; }
@keyframes orb1 { to { transform: translate(28vw, 16vh) scale(1.15); } }
@keyframes orb2 { to { transform: translate(-30vw, -10vh) scale(.9); } }
@keyframes orb3 { to { transform: translate(-16vw, -24vh) scale(1.2); } }
.glass { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; padding: 64px; border-radius: 36px;
  background: rgb(20 21 30 / .62); backdrop-filter: blur(40px) saturate(1.2); -webkit-backdrop-filter: blur(40px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 40px 120px -40px rgb(0 0 0 / .6); }
.glass h2 { color: #fff; font-size: clamp(56px, 6.6vw, 112px); margin-top: 24px; }
.glass .sub { color: var(--light-2); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .05);
  color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wave-facts { display: flex; gap: 44px; margin-top: 44px; padding-top: 30px; border-top: 1px solid rgb(255 255 255 / .1); }
.wave-facts div { display: grid; gap: 4px; }
.wave-facts b { color: #fff; font-size: clamp(54px, 5vw, 80px); font-weight: 800; font-stretch: 75%; line-height: .9; letter-spacing: -.04em; }
.wave-facts span { font-size: 15px; color: var(--light-3); max-width: 180px; }
form { display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 8px; }
.field > span, legend { color: #fff; font-weight: 700; font-size: 15.5px; }
small { opacity: .6; font-weight: 400; }
input[type=email], input[type=text] { width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .06);
  color: #fff; font: 16.5px var(--font); outline: none; transition: border-color .2s, background .2s; }
input::placeholder { color: rgb(255 255 255 / .38); }
input[type=email]:focus, input[type=text]:focus { border-color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .1); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); font-size: 14.5px; font-weight: 600; color: var(--light-2); transition: all .15s; user-select: none; }
.checks label:hover span { border-color: rgb(255 255 255 / .5); color: #fff; }
.checks input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.checks input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { justify-self: start; }
.form-msg { min-height: 1.4em; font-weight: 700; color: #fff; }
.form-msg.err { color: var(--red); }
/* the form in steps */
.step { display: grid; gap: 22px; align-content: start; animation: step-in .45s cubic-bezier(.2, .8, .2, 1); }
.step[hidden] { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .12); transition: background .4s; }
form[data-step="1"] .steps li:nth-child(-n+1), form[data-step="2"] .steps li:nth-child(-n+2), form[data-step="3"] .steps li, form[data-step="4"] .steps li { background: linear-gradient(90deg, #e8590c, #f59f3a, #fcc96b); }
.step-k { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--light-3); }
.step-ok { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.step-ok::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 15px; background: linear-gradient(140deg, #e8590c, #f59f3a); }
.step-nav { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.step legend small { margin-left: 6px; font-size: 13px; }
.step { min-height: 300px; }
.step-done { min-height: 0; }
.skip { background: none; border: 0; color: var(--light-2); font: 600 16px var(--font); cursor: pointer; padding: 8px 0; }
.skip:hover { color: #fff; }
.done-big { color: #fff; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; font-weight: 800; font-stretch: 78%; letter-spacing: -.03em; }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

/* ---------- faq ---------- */
.faq { padding: 140px 0 150px; }
.faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 50px; align-items: start; }
.faq h2 { position: sticky; top: 110px; }
details { border-bottom: 1.5px solid var(--paper-2); }
summary { cursor: pointer; list-style: none; padding: 24px 0; color: var(--paper-text); font-weight: 700; font-stretch: 90%; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.015em;
  display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--paper-mute); font-weight: 300; font-size: 30px; line-height: .8; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; max-width: 640px; font-size: 17px; }

/* ---------- footer ---------- */
.foot { padding: 110px 28px 70px; text-align: center; color: var(--light-3); font-size: 14px; }
.foot-mark { width: min(360px, 70vw); aspect-ratio: 1700 / 626; margin: 0 auto 18px; display: block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  /* the logo as a CSS background in the logo's shape: nothing to right-click and "open image" on */
  background: url('assets/logo-texture.webp') center / 100% 100% no-repeat;
  -webkit-mask: url('assets/logo-wordmark.svg') center / 100% 100% no-repeat; mask: url('assets/logo-wordmark.svg') center / 100% 100% no-repeat; }
.foot-tag { color: #fff; font-size: clamp(22px, 2.6vw, 34px); font-weight: 250; letter-spacing: -.02em; margin-bottom: 40px !important; }
.maker { color: var(--light-2); font-size: 16px; margin: -16px 0 34px !important; }
.heart { color: var(--red); display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.credits { max-width: 760px; margin: 6px auto 0 !important; font-size: 12.5px; line-height: 1.7; }
.credits a { color: var(--light-2); }

/* ---------- scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(even) { transition-delay: .08s; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-nav { gap: 22px; } .top-nav a:not(.nav-beta) { font-size: 17px; }
  .top-nav a[href="#memories"] { display: none; }
}
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr; gap: 20px; }
  .span-12, .span-7, .span-6, .span-5 { grid-column: auto; }
  .card { min-height: 0; }
  .card.split, .wide-text, .sec-head, .pocket-in, .glass, .faq-in, .yours-in { grid-template-columns: 1fr; }
  .yours { padding: 110px 0 90px; } .soon-grid { grid-template-columns: 1fr; } .soon { padding-top: 110px; } .mode-pick button { padding: 9px 13px; font-size: 15px; }
  .wide-text { gap: 0; } .lane { padding-top: 50px; } .lane::before { top: 32px; }
  .sec-head { gap: 10px; margin-bottom: 50px; }
  .card-text, .card.split .card-text { padding: 30px 26px 24px; }
  .shot, .card.split .shot { margin: 0 0 0 26px; }
  .shot img, .shot.sheet img { height: 230px; } .card.split .shot img { height: 280px; }
  .slides { height: 230px; } .slides .shot { inset: 0 0 0 26px; }
  .kinds { padding: 0 26px 26px; }
  .pol { width: 190px; } .yr { font-size: 90px; }
  .sync-chip { top: 30%; padding: 10px 16px 10px 10px; } .sc-ico { width: 38px; height: 38px; } .sc-text b { font-size: 17px; } .sync-arc { top: -40px; }
  .faq h2 { position: static; }
  .glass { padding: 34px 24px; gap: 34px; }
  .wave-facts { gap: 28px; }
  .top-nav a:not(.nav-beta) { display: none; }
  .nav-beta { padding: 10px 16px; font-size: 15px; }
  .mark-svg { height: 32px; }
  .hero { padding-top: 120px; }
  .hero-shots .window { width: 100%; }
  .hero-shots .phone { width: 30%; right: -2%; bottom: -60px; }
  .features { padding-top: 130px; }
  .phone-pair .phone:last-child { transform: rotate(4deg) translateY(30px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rays i, .mq-track, .wall-row, .hl-b, .lane-track, .orbs i, .pulse, .heart, .nav-beta::before, .s-sync { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.flex .word { display: inline-block; white-space: nowrap; }


/* ---------- privacy + terms ---------- */
.legal-body { background: var(--paper); color: var(--paper-mute); }
.legal-top { display: flex; align-items: center; justify-content: space-between; max-width: 820px; margin: 0 auto; padding: 28px 24px 0; }
.legal-logo { width: 92px; height: 34px; background: url('assets/logo-texture.webp') center / 100% 100% no-repeat;
  -webkit-mask: url('assets/logo-wordmark.svg') center / 100% 100% no-repeat; mask: url('assets/logo-wordmark.svg') center / 100% 100% no-repeat; }
.legal-back { color: var(--paper-mute); text-decoration: none; font-weight: 600; } .legal-back:hover { color: var(--paper-text); }
.legal { max-width: 820px; margin: 0 auto; padding: 60px 24px 80px; font-size: 17px; line-height: 1.6; }
.legal h1 { color: var(--paper-text); font-size: clamp(56px, 8vw, 104px); line-height: 1; font-weight: 800; font-stretch: 78%; letter-spacing: -.035em; margin: 0 0 22px; }
.legal h2 { color: var(--paper-text); font-size: 28px; font-weight: 800; font-stretch: 82%; letter-spacing: -.015em; margin: 46px 0 10px; }
.legal .lead { font-size: 20px; color: var(--paper-text); }
.legal a { color: #c2410c; }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
.legal dt { color: var(--paper-text); font-weight: 700; margin-top: 16px; } .legal dd { margin: 4px 0 0; }
.legal code { font-size: 15px; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.legal-foot { max-width: 820px; margin: 0 auto; padding: 0 24px 50px; font-size: 14px; } .legal-foot a { color: var(--paper-mute); }
