/* ELjagi — round 1: nav, intro, hero, about, work */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/albert-sans-latin-ext-wght-normal.woff2) format("woff2-variations"),
       url(../fonts/albert-sans-latin-ext-wght-normal.woff2) format("woff2");
  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;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/albert-sans-latin-wght-normal.woff2) format("woff2-variations"),
       url(../fonts/albert-sans-latin-wght-normal.woff2) format("woff2");
  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;
}

/* ---------- tokens ---------- */
:root {
  --bg: #ECEAE6;
  --card: #F7F6F3;
  --ink: #141416;
  --ink-2: #6E6C68;
  --line: #D9D6D0;
  --accent: #E8452C;
  --souvi: #1E7A55;
  --fuji: #1B1B1D;
  --dim: #B9B6B0;          /* unlit words in About */
  --skel: #E3E0DA;
  --skel-hi: #EFEDE9;
  --r-big: 32px;
  --r-small: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F10; --card: #1A1A1C; --ink: #F2F1EE; --ink-2: #9A9893; --line: #2A2A2D;
    --accent: #FF5A3D; --dim: #48474A; --skel: #232326; --skel-hi: #2C2C30;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0F10; --card: #1A1A1C; --ink: #F2F1EE; --ink-2: #9A9893; --line: #2A2A2D;
  --accent: #FF5A3D; --dim: #48474A; --skel: #232326; --skel-hi: #2C2C30;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s, color .35s;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px;
  font-size: 19px; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn:hover { box-shadow: 0 10px 24px -12px rgba(232, 69, 44, .7); }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .45);
  transform: scale(0); animation: ripple .5s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .35);
  transition: padding .35s var(--ease), gap .35s var(--ease), background-color .35s, border-color .35s;
}
.nav.is-compact .nav-pill {
  padding: 4px 6px 4px 16px; gap: 2px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
.nav-mark {
  font-weight: 800; letter-spacing: -.03em; font-size: 19px;
  text-decoration: none; margin-right: 10px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links > a, .nav-drop > a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px;
  font-size: 16px; font-weight: 500;
  text-decoration: none; color: var(--ink-2);
  transition: color .25s, transform .22s var(--ease);
}
.nav-links a:hover { color: var(--ink); transform: translateY(-2px); }
.nav-links a.is-current { color: var(--ink); }
.nav-indicator {
  position: absolute; left: 0; top: 50%; height: 40px; width: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  opacity: 0;
  transition: transform .42s var(--ease), width .42s var(--ease), opacity .3s;
}
.nav-links.has-indicator .nav-indicator { opacity: 1; }
.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-2); text-decoration: none;
  transition: color .25s, background-color .25s, transform .22s var(--ease);
}
.nav-icon:hover { color: var(--ink); background: var(--bg); transform: translateY(-2px); }

/* dropdown */
.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 320px; margin-left: -160px;
  padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-small);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s, transform .22s var(--ease), visibility 0s;
}
.nav-product, .drawer-product {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 16px;
  text-decoration: none; line-height: 1.3;
  transition: background-color .2s, transform .22s var(--ease);
}
.nav-product:hover { background: var(--bg); transform: translateY(-2px); }
.nav-product img, .drawer-product img { width: 40px; height: 40px; border-radius: 22%; flex: none; }
.nav-product strong, .drawer-product strong { display: block; font-weight: 700; font-size: 16px; }
.nav-product small, .drawer-product small { display: block; color: var(--ink-2); font-size: 14px; }
.mark-s {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 22%;
  background: var(--souvi); color: #fff;
  font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1;
}

/* theme icon morph */
.theme-toggle svg { overflow: visible; }
.sun-core { transition: r .35s var(--ease); }
.moon-bite { transition: cx .35s var(--ease), cy .35s var(--ease); }
.sun-rays { transform-origin: 12px 12px; transition: transform .35s var(--ease), opacity .35s; }
/* light theme shows a moon (switch to dark) */
.theme-toggle .sun-core { r: 9px; }
.theme-toggle .moon-bite { cx: 17px; cy: 7px; }
.theme-toggle .sun-rays { opacity: 0; transform: rotate(-45deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .sun-core { r: 5px; }
:root[data-theme="dark"] .theme-toggle .moon-bite { cx: 26px; cy: 2px; }
:root[data-theme="dark"] .theme-toggle .sun-rays { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun-core { r: 5px; }
  :root:not([data-theme="light"]) .theme-toggle .moon-bite { cx: 26px; cy: 2px; }
  :root:not([data-theme="light"]) .theme-toggle .sun-rays { opacity: 1; transform: none; }
}

/* burger + drawer (phone) */
.nav-burger, .drawer { display: none; }
.nav-burger { position: relative; }
.nav-burger span {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .35s var(--ease);
}
.nav-burger span:first-child { transform: translateY(-4px); }
.nav-burger span:last-child { transform: translateY(4px); }
.nav.is-open .nav-burger span:first-child { transform: rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: rotate(-45deg); }

/* nav appears after the intro */
.js.intro-on .nav { opacity: 0; transform: translateY(-24px); }
.js.intro-on.nav-in .nav { opacity: 1; transform: none; }

/* ---------- intro (iris) ---------- */
.intro { display: none; }
.js.intro-on .intro {
  display: block;
  position: fixed; inset: 0; z-index: 100;
  pointer-events: auto;
}
.js.intro-on { overflow: hidden; }
.js.intro-on.nav-in { overflow: auto; }
.intro-stage { position: absolute; inset: 0; }
/* the intro's copy of the ONEcard: sized like the hero card, moved with translate + scale */
.intro-stage .idcard {
  position: fixed; left: 0; top: 0; margin: 0;
  transform-origin: 0 0;
  box-shadow: none;
}
.intro-stage .idcard.is-whole { box-shadow: 0 40px 80px -40px rgba(20, 20, 22, .5), 0 0 0 1px rgba(0, 0, 0, .06); }
.intro-iris { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 90px 10px rgba(232, 69, 44, .85);
}
.intro-flash.is-on { opacity: 1; transition: opacity .06s; }
.intro-skip {
  position: absolute; right: 24px; bottom: 24px;
  min-width: 72px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(20, 20, 22, .55); color: #F2F1EE;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .22s, transform .22s var(--ease);
}
.intro-skip:hover { background: rgba(20, 20, 22, .8); transform: translateY(-2px); }
.intro.is-done { opacity: 0; transition: opacity .3s; pointer-events: none; }
.js.intro-on .hero-card { visibility: hidden; }
.js.intro-on.photo-in .hero-card { visibility: visible; }
/* short screens (phones): keep the sections below the hero out of sight until the intro hands over */
.js.intro-on:not(.nav-in) main > section:not(.hero) { visibility: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; left: 0; top: 0;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 69, 44, .16), rgba(232, 69, 44, 0));
  transform: translate(70vw, 40vh);
  pointer-events: none;
  will-change: transform;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; align-items: center;
}
/* ---------- ONEcard (hero + intro copy) ---------- */
.idcard {
  position: relative; margin: 0;
  width: 100%; aspect-ratio: 640 / 404;
  overflow: hidden;
  /* corner radius scales with the card: 24 px at 640 px wide */
  border-radius: 3.75% / 5.94%;
}
.idcard-svg { display: block; width: 100%; height: 100%; font-family: "Albert Sans", system-ui, sans-serif; }
.idcard-svg text { font-family: "Albert Sans", system-ui, sans-serif; }
.k-face { filter: brightness(1.3) contrast(.96) saturate(.78); }
.k-holo { mix-blend-mode: screen; }
/* hologram foil: a rainbow that only shows through the onecard pattern and slides with the light */
.idcard-foil {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .2;
  background: linear-gradient(115deg, #ff7ab6 0%, #ffd36e 12%, #8cffb5 24%, #6ed8ff 36%, #b89cff 48%, #ff7ab6 60%, #ffd36e 72%, #8cffb5 84%, #6ed8ff 100%);
  background-size: 300% 300%; background-position: var(--px, 50%) var(--py, 50%);
  -webkit-mask: url("../images/holo-mask.svg") 0 0 / 100% 100% no-repeat;
          mask: url("../images/holo-mask.svg") 0 0 / 100% 100% no-repeat;
}
/* soft light spot that follows the pointer */
.idcard-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .9;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 45%);
}
/* thin diagonal glint across the laminate */
.idcard-glint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent calc(var(--gp, -30%) - 8%), rgba(255, 255, 255, .55) var(--gp, -30%), transparent calc(var(--gp, -30%) + 8%));
}

.hero-card {
  grid-column: 1 / span 6;
  /* leaves clear air between the card and the name (64 px on wide screens, never under 24 px) */
  width: min(540px, calc(100% - clamp(24px, 5vw, 72px)));
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  box-shadow: 0 40px 80px -40px rgba(20, 20, 22, .5), 0 0 0 1px rgba(0, 0, 0, .06);
}
.hero-card.is-live { transition: transform .08s linear; }
.hero-text { grid-column: 7 / span 6; }
.hero-name {
  font-size: clamp(72px, 11vw, 160px);
  font-weight: 800; letter-spacing: -.03em; line-height: .95;
  display: flex; overflow: hidden; padding: .06em 0 .12em; margin: -.06em 0 0;
}
.hero-name .ch { display: inline-block; }
.hero-role { margin-top: 18px; font-size: 22px; color: var(--ink-2); font-weight: 500; }
.hero-build { margin-top: 10px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; }
.rw { grid-area: 1 / 1; white-space: nowrap; color: var(--accent); }
.rw:not(.is-on) { visibility: hidden; }
.js-ok .rw { visibility: visible; }
.hero-text .btn { margin-top: 36px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 64px; min-height: 44px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  transition: opacity .5s, transform .5s var(--ease);
}
.scroll-hint i { width: 1px; height: 28px; background: var(--ink-2); transform-origin: top; }
.js-ok .scroll-hint i { animation: hint 1.8s var(--ease) 2; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* hero entrance (only after JS confirms it is running) */
.js-ok .hero-name .ch { transform: translateY(110%); transition: transform .4s var(--ease); }
.js-ok.hero-in .hero-name .ch { transform: none; }
.js-ok .hero .rise { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease); }
.js-ok.hero-in .hero .rise { opacity: 1; transform: none; }
.js-ok.hero-in .hero .rise:nth-of-type(1) { transition-delay: .32s; }
.js-ok.hero-in .hero .rise:nth-of-type(2) { transition-delay: .44s; }
.js-ok.hero-in .hero .rise:nth-of-type(3) { transition-delay: .56s; }
.js-ok .scroll-hint { opacity: 0; }
.js-ok.hint-in .scroll-hint { opacity: 1; }
/* once the visitor has started scrolling the hint has done its job: fade it out (back at the top it returns) */
.js-ok.hint-in.hint-gone .scroll-hint { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }

/* rotator states */
.js-ok .rw { transform: translateY(100%); opacity: 0; transition: transform .5s var(--ease), opacity .3s; }
.js-ok .rw.is-on { transform: none; opacity: 1; }
.js-ok .rw.is-out { transform: translateY(-100%); opacity: 0; }

/* ---------- section titles ---------- */
.reveal-title { overflow: hidden; }
.reveal-title > span { display: inline-block; }
.js-ok .reveal-title > span { transform: translateY(105%); transition: transform .4s var(--ease); }
.js-ok .reveal-title.is-in > span { transform: none; }

/* ---------- about ---------- */
.about { padding: 140px 0 72px; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.eyebrow {
  grid-column: 1 / span 3;
  font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); padding-top: 14px;
}
.about-text {
  grid-column: 4 / span 9;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.3; font-weight: 600; letter-spacing: -.015em;
}
.about-text .w { transition: color .3s; }
.js-ok .about-text .w { color: var(--dim); }
.js-ok .about-text .w.is-lit { color: var(--ink); }
.hl {
  color: inherit;
  background: linear-gradient(rgba(232, 69, 44, .32), rgba(232, 69, 44, .32)) no-repeat 0 88% / 100% 40%;
  padding: 0 .06em; border-radius: 3px;
}
.js-ok .hl { background-size: 0% 40%; transition: background-size .4s var(--ease); }
.js-ok .hl.is-on { background-size: 100% 40%; }

.keys {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.key {
  display: block; width: 100%; height: 220px; padding: 0;
  border: 0; background: transparent; cursor: pointer; text-align: left;
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
}
.key-in {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.key-face {
  position: absolute; inset: 0;
  display: flex; padding: 28px;
  border-radius: var(--r-small);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.key-front {
  background: var(--card); border: 1px solid var(--line);
  align-items: flex-end;
  font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.key-back {
  background: var(--ink); color: var(--bg);
  align-items: flex-end;
  font-size: 22px; font-weight: 600; line-height: 1.35;
  transform: rotateY(180deg);
}
.key[aria-pressed="true"] .key-in { transform: rotateY(180deg); }
@media (hover: hover) {
  .key:hover .key-in { transform: rotateY(180deg); }
}

/* ---------- work ---------- */
.work { padding: 72px 0 160px; }
.sec-head { margin-bottom: 48px; }
.sec-title { font-size: clamp(56px, 8vw, 112px); font-weight: 800; letter-spacing: -.03em; line-height: 1; padding-bottom: .06em; }
.sec-sub { margin-top: 14px; font-size: 22px; color: var(--ink-2); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.bento-row2 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }

.card {
  position: relative;
  border-radius: var(--r-big);
  padding: 36px;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .5s var(--ease), box-shadow .3s;
}
.card[data-card] { cursor: pointer; }
.card[data-card]:hover { --lift: -4px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55); }
.card-souvi { grid-column: 1 / span 7; height: 560px; background: var(--souvi); color: #fff; display: flex; flex-direction: column; }
.card-fuji { grid-column: 8 / span 5; height: 560px; background: var(--fuji); color: #F2F1EE; display: flex; flex-direction: column; }
.card-next { grid-column: 1 / span 5; height: 260px; background: var(--card); border: 1px solid var(--line); }
.card-more { grid-column: 6 / span 7; height: 260px; background: var(--card); border: 1px solid var(--line); }

.card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-link:focus-visible { outline-offset: -4px; outline-color: #fff; }
.card-spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 100%);
}
.card:hover .card-spot { opacity: 1; }
.card-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; }
.app-icon { width: 56px; height: 56px; border-radius: 22%; }
.card-souvi .app-icon.mark-s { background: #fff; color: var(--souvi); font-size: 30px; }
.card-arrow {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease), background-color .3s;
}
.card:hover .card-arrow { transform: translate(4px, -4px); background: rgba(255, 255, 255, .24); }
.card-name { position: relative; z-index: 1; margin-top: 22px; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.card-desc { position: relative; z-index: 1; margin-top: 8px; font-size: 18px; line-height: 1.5; max-width: 34em; opacity: .86; }
.card-next .card-desc, .card-more .card-desc { color: var(--ink-2); opacity: 1; }
.card-next .card-name, .card-more .card-name { margin-top: 0; font-size: 32px; }

/* platform tags + tooltip */
.tags { position: relative; z-index: 3; margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { position: relative; }
.tag button {
  min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: inherit;
  font-size: 15px; font-weight: 600; cursor: help;
  transition: background-color .22s, transform .22s var(--ease);
}
.tag button:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.tag button::after { content: ""; position: absolute; inset: -4px; } /* 44px hit area */
.tip {
  position: absolute; left: 0; bottom: calc(100% + 10px);
  width: max-content; max-width: 260px;
  padding: 8px 12px; border-radius: 12px;
  background: #F7F6F3; color: #141416;
  font-size: 14px; line-height: 1.4; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s;
  pointer-events: none; z-index: 5;
}
.tag:hover .tip, .tag button:focus-visible + .tip, .tag.is-open .tip {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s, transform .22s var(--ease), visibility 0s;
}

/* visual area */
.card-visual { position: relative; z-index: 1; flex: 1; margin-top: 24px; min-height: 0; }

/* SOUVI chat */
.chat {
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; padding-top: 34px;
}
.chat::before { /* older messages fade out under the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 1;
  background: linear-gradient(var(--souvi) 40%, rgba(30, 122, 85, 0));
  pointer-events: none;
}
.chat-list { flex: none; }
.demo-badge {
  position: absolute; top: 0; right: 0; z-index: 2;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16);
}
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.bub {
  max-width: 72%; padding: 10px 16px; border-radius: 20px;
  font-size: 16px; line-height: 1.35; transform-origin: bottom left;
}
.bub.l { align-self: flex-start; background: rgba(255, 255, 255, .16); border-bottom-left-radius: 6px; }
.bub.r { align-self: flex-end; background: #fff; color: #141416; border-bottom-right-radius: 6px; transform-origin: bottom right; }
.bub.report {
  align-self: center; margin-top: 8px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 22px; border-radius: 18px;
  background: #F7F6F3; color: #141416; text-align: center; transform-origin: bottom center;
}
.bub.report small { font-size: 13px; font-weight: 600; color: #6E6C68; letter-spacing: .04em; text-transform: uppercase; }
.bub.report strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.js-ok .chat .bub { opacity: 0; transform: translateY(12px) scale(.9); }
.js-ok .chat.is-in .bub { animation: pop .4s var(--ease) forwards; }
.js-ok .chat.is-in .bub:nth-child(2) { animation-delay: .12s; }
.js-ok .chat.is-in .bub:nth-child(3) { animation-delay: .24s; }
.js-ok .chat.is-in .bub:nth-child(4) { animation-delay: .36s; }
.js-ok .chat.is-in .bub:nth-child(5) { animation-delay: .60s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* Fuji ring */
.fuji-visual { display: flex; align-items: center; justify-content: center; }
.ring {
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 300px; margin: -150px 0 0 -150px;
  overflow: visible;
}
.ring text { font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: .02em; fill: rgba(242, 241, 238, .62); }
.js-ok .ring.is-spinning { animation: spin 22s linear 2; }
.card-fuji:hover .ring, .card-fuji:focus-within .ring { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.fuji-big { position: relative; width: 168px; height: 168px; border-radius: 22%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

/* Next streak */
.streak { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.streak rect {
  width: calc(100% - 2px); height: calc(100% - 2px);
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 14 86; stroke-dashoffset: 0; opacity: 0;
  /* corners follow the card's own radius, so the streak stays visible all the way round */
  rx: calc(var(--r-big) - 1px); ry: calc(var(--r-big) - 1px);
}
.streak.is-run rect { animation: streak 2.6s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes streak {
  0% { stroke-dashoffset: 0; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* skeletons */
.skel { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.skel i {
  display: block; height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, var(--skel) 0, var(--skel-hi) 50%, var(--skel) 100%) 0 0 / 200% 100%;
}
.skel i.short { width: 55%; }
.skel-row { flex-direction: row; gap: 16px; }
.skel-row i { flex: 1; height: 72px; border-radius: 18px; }
.js-ok .skel i { animation: shimmer 1.6s linear 2; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* curtain */
.curtain {
  position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 90;
  pointer-events: none; visibility: hidden;
}
.curtain.is-on { visibility: visible; pointer-events: auto; }
/* hand-off to the product site: its paper color grows out from the icon,
   so the page is already the destination's background when it loads */
.curtain-paper, .curtain-icon { position: fixed; z-index: 91; pointer-events: none; }
.curtain-paper { border-radius: 50%; transform: scale(0); }
.curtain-icon { border-radius: 22%; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35); }

/* ---------- reveal on scroll ---------- */
.js-ok .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .8s var(--ease); }
.js-ok .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .hero-card { grid-column: 1 / span 6; }
  .hero-text { grid-column: 7 / span 6; }
  .card { padding: 28px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }

  .nav { top: 10px; padding: 0 16px; }
  .nav-pill { width: 100%; justify-content: space-between; padding: 4px 4px 4px 18px; }
  .nav.is-compact .nav-pill { padding: 4px 4px 4px 18px; }
  .nav-links, .nav-sep, .nav-pill > .nav-gh, .nav-pill > .theme-toggle { display: none; }
  .nav-burger { display: inline-flex; color: var(--ink); }
  .drawer {
    display: flex; flex-direction: column;
    position: absolute; left: 16px; right: 16px; top: 62px;
    padding: 12px 16px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-small);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
    pointer-events: auto;
    transform-origin: top center;
    opacity: 0; visibility: hidden; transform: translateY(-12px) scaleY(.96);
    transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .nav.is-open .drawer { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease), visibility 0s; }
  .drawer > a:not(.drawer-product) {
    display: flex; align-items: center; min-height: 56px;
    font-size: 32px; font-weight: 800; letter-spacing: -.03em; text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .drawer-product { min-height: 56px; padding: 8px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .drawer-product:active { transform: scale(.97); }
  .drawer-row { display: flex; justify-content: flex-end; gap: 4px; padding-top: 12px; }
  .drawer-row .nav-icon { color: var(--ink); }

  .hero { padding: 92px 0 88px; min-height: 0; display: block; }
  .hero-grid { display: block; }
  .hero-card { width: 100%; }
  .js-ok .hero-card.floating { animation: float 4s ease-in-out 2; }
  @keyframes float { 50% { translate: 0 -8px; } }
  .hero-text { margin-top: 28px; }
  .hero-name { font-size: clamp(72px, 24vw, 104px); }
  .hero-role { font-size: 18px; margin-top: 12px; }
  .hero-build { font-size: 22px; }
  .hero-text .btn { margin-top: 26px; }
  .scroll-hint { display: none; }

  .about { padding: 72px 0 64px; }
  .about-grid { display: block; }
  .eyebrow { padding-top: 0; margin-bottom: 16px; }
  .about-text { font-size: 28px; }

  /* sideways scrollers: same-kind cards swipe, the next one peeks */
  .scroller {
    display: flex !important; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-left: -16px; margin-right: -16px; padding: 4px 16px 12px;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { flex: 0 0 80%; scroll-snap-align: start; }
  .keys { margin-top: 40px; }
  .key { height: 200px; }
  .key:active .key-in { scale: .97; }
  .key-front { font-size: 40px; }

  .work { padding: 48px 0 96px; }
  .sec-title { font-size: 64px; }
  .sec-sub { font-size: 18px; }
  .sec-head { margin-bottom: 28px; }
  .bento { display: flex; flex-direction: column; gap: 16px; }
  .card { padding: 24px; border-radius: var(--r-small); }
  .streak rect { rx: calc(var(--r-small) - 1px); ry: calc(var(--r-small) - 1px); }
  .card-souvi, .card-fuji { height: 500px; } /* plan says 440; 16px text + 4 bubbles + report need ~500 */
  .card:active { scale: .985; }
  .card-name { font-size: 32px; margin-top: 16px; }
  .card-desc { font-size: 16px; }
  .app-icon { width: 48px; height: 48px; }
  .card-souvi .app-icon.mark-s { font-size: 26px; }
  .bento-row2 { display: flex; }
  .card-next, .card-more { height: 220px; }
  .bub { font-size: 16px; padding: 8px 14px; }
  .chat-list { gap: 8px; }
  .bub.report { padding: 10px 18px; }
  .bub.report strong { font-size: 20px; }
  .ring { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .fuji-big { width: 120px; height: 120px; }
  .btn:active { transform: scale(.97); }
  .drawer-product small, .tag button, .tip { font-size: 16px; }
  .card-souvi .card-name { margin-top: 12px; }
  .card-souvi .tags { margin-top: 10px; }
  .card-souvi .card-visual { margin-top: 4px; }
  .chat { padding-top: 26px; }
  .chat-list { gap: 6px; }
  .bub { padding: 6px 12px; border-radius: 16px; }
  .bub.report { margin-top: 4px; padding: 8px 16px; }
  .bub.report strong { font-size: 18px; }
  .tag button { min-height: 44px; padding: 0 16px; }
}

/* ---------- reduced motion: everything visible, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js-ok .hero-name .ch, .js-ok .hero .rise, .js-ok .reveal-title > span, .js-ok .reveal { transform: none !important; opacity: 1 !important; }
  .js-ok .chat .bub { opacity: 1; transform: none; }
  .js-ok .about-text .w { color: var(--ink); }
  .js-ok .hl { background-size: 100% 40%; }
  .js-ok .scroll-hint { opacity: 1; }
  .key-back { transform: none; opacity: 0; }
  .key-in { transform: none !important; }
  .key[aria-pressed="true"] .key-back { opacity: 1; }
  @media (hover: hover) { .key:hover .key-back { opacity: 1; } }
  .card, .hero-card { transform: none !important; }
}

/* glow is quieter on the dark ground */
:root[data-theme="dark"] .hero-glow { opacity: .6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-glow { opacity: .6; } }

/* ================= round 2: Photos, Now, Contact, footer ================= */

/* ---------- nav over the dark Photos section ---------- */
.nav.is-inverse .nav-pill { background: #1A1A1C; border-color: #2A2A2D; color: #F2F1EE; }
.nav.is-inverse.is-compact .nav-pill { background: rgba(26, 26, 28, .78); }
.nav.is-inverse .nav-links > a, .nav.is-inverse .nav-drop > a, .nav.is-inverse .nav-icon { color: #9A9893; }
.nav.is-inverse .nav-links a.is-current, .nav.is-inverse .nav-links a:hover, .nav.is-inverse .nav-icon:hover { color: #F2F1EE; }
.nav.is-inverse .nav-icon:hover { background: #0F0F10; }
.nav.is-inverse .nav-indicator { background: #0F0F10; border-color: #2A2A2D; }
.nav.is-inverse .nav-sep { background: #2A2A2D; }
.nav.is-inverse .nav-burger { color: #F2F1EE; }

/* ---------- Photos ---------- */
.photos { background: #111113; color: #F2F1EE; padding: 120px 0 120px; }
.photos .sec-sub { color: #9A9893; }
.carousel { position: relative; }
.track {
  display: flex; align-items: flex-start; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 max(40px, calc((100vw - 1240px) / 2 + 40px));
  scroll-padding: 0 max(40px, calc((100vw - 1240px) / 2 + 40px));
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.track.is-dragging .slide-frame { pointer-events: none; }
.slide { flex: none; scroll-snap-align: start; }
.slide-frame {
  --h: clamp(320px, 60vh, 640px);
  position: relative; display: block;
  height: var(--h); width: calc(var(--h) * var(--r, 1.5));
  padding: 0; border: 0; border-radius: var(--r-small); overflow: hidden;
  background: #2A2A2D; color: #9A9893; cursor: zoom-in;
  transition: transform .22s var(--ease);
}
.slide-frame:hover { transform: translateY(-3px); }
.slide-frame img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; letter-spacing: .02em;
}
.ph::before { /* skeleton sheen: twice, then rests */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, 0) 70%) 0 0 / 200% 100%;
  background-position: 150% 0;
}
.js-ok .photos.is-in .ph::before { animation: sheen 1.8s linear 2; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.cap { margin-top: 12px; font-size: 16px; color: #9A9893; }
@media (hover: hover) and (pointer: fine) {
  .js-ok .track { cursor: none; }
  .js-ok .track .slide-frame { cursor: none; }
}
.carousel-ctrl { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 0; }
.dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: #48474A;
  transition: width .3s var(--ease), background-color .3s;
}
.dot[aria-current="true"]::before { width: 24px; background: #F2F1EE; }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #2A2A2D; background: #1A1A1C; color: #F2F1EE; cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s, opacity .22s;
}
.arrow:hover { transform: translateY(-3px); background: #232326; }
.arrow:disabled { opacity: .35; cursor: default; transform: none; }
.drag-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js-ok .drag-cursor {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; top: 0; z-index: 80;
    width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
    background: #F2F1EE; color: #141416;
    font-size: 15px; font-weight: 700; letter-spacing: .02em;
    pointer-events: none;
    opacity: 0; scale: .5;
    transition: opacity .2s, scale .25s var(--ease);
  }
  .js-ok .drag-cursor.is-on { opacity: 1; scale: 1; }
  .js-ok .drag-cursor.is-down { scale: .82; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; }
.lightbox[hidden] { display: none; }
.lightbox::before {
  content: ""; position: absolute; inset: 0; background: rgba(8, 8, 9, .9);
  opacity: 0; transition: opacity .4s;
}
.lightbox.is-open::before { opacity: 1; }
.lightbox-frame {
  position: absolute; left: 0; top: 0;
  border-radius: var(--r-small); overflow: hidden;
  background: #2A2A2D; color: #9A9893;
  transform-origin: 0 0;
}
.lightbox-frame .ph { font-size: 22px; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 48px; height: 48px; background: #1A1A1C; color: #F2F1EE; border: 1px solid #2A2A2D;
  opacity: 0; transition: opacity .3s, background-color .2s, transform .22s var(--ease);
}
.lightbox.is-open .lightbox-close { opacity: 1; }
.lightbox-close:hover { background: #2A2A2D; color: #fff; }

/* ---------- Now ---------- */
.now { padding: 140px 0 80px; }
.now-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.now-updated { font-size: 16px; color: var(--ink-2); font-weight: 500; }
.now-stack { display: flex; flex-direction: column; gap: 32px; padding-bottom: 40px; }
.now-card {
  position: sticky; top: calc(112px + var(--i) * 14px);
  min-height: 280px; padding: 44px 48px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-big);
  box-shadow: 0 -18px 40px -30px rgba(0, 0, 0, .35);
  transform-origin: 50% 0;
  transform: scale(var(--s, 1));
  transition: background-color .35s, border-color .35s;
}
.now-card h3 { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.now-card p { font-size: 26px; line-height: 1.35; font-weight: 500; }
/* short screens: no stacking, a plain 2×2 grid */
@media (min-width: 761px) and (max-height: 699px) {
  .now-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .now-card { position: relative; top: auto; transform: none; min-height: 240px; grid-template-columns: 1fr; align-content: space-between; }
  .now-card h3 { font-size: 44px; }
  .now-card p { font-size: 22px; }
}

/* ---------- Contact ---------- */
.contact { padding: 120px 0 140px; }
.contact-title { font-size: clamp(56px, 9vw, 136px); font-weight: 800; letter-spacing: -.03em; line-height: 1; padding-bottom: .08em; }
.contact-sub { margin-top: 18px; font-size: 22px; color: var(--ink-2); }
.contact-btns { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4); transform: translateY(-3px); }
.copy-email { display: inline-grid; cursor: pointer; border: 0; }
.copy-label, .copy-done { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s, transform .3s var(--ease); }
.copy-done { opacity: 0; transform: translateY(10px); }
.copy-email.is-copied .copy-label { opacity: 0; transform: translateY(-10px); }
.copy-email.is-copied .copy-done { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 85;
  margin: 0; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 16px; font-weight: 600;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 28px; font-size: 16px; color: var(--ink-2); }
.to-top { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-2); transition: color .2s, transform .22s var(--ease); }
.to-top:hover { color: var(--ink); transform: translateY(-2px); }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .photos { padding: 72px 0 72px; }
  .track { gap: 12px; padding: 0 16px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; align-items: flex-end; }
  .slide-frame {
    --h: min(400px, calc(82vw / var(--r, 1.5)));
    border-radius: 20px;
  }
  .carousel-ctrl { margin-top: 20px; }
  .arrows { display: none; }   /* fingers swipe; dots still jump */
  .dot { width: 36px; }        /* six dots fit; each is 44px tall and 36px wide, touching */

  .now { padding: 72px 0 40px; }
  .now-stack { gap: 16px; }
  .now-card {
    top: calc(76px + var(--i) * 14px);
    min-height: 220px; padding: 28px 24px;
    grid-template-columns: 1fr; align-content: space-between; gap: 16px;
    border-radius: var(--r-small);
    transform: none;           /* phones stack without scaling */
  }
  .now-card h3 { font-size: 40px; }
  .now-card p { font-size: 20px; }

  .contact { padding: 72px 0 88px; }
  .contact-title { font-size: 56px; }
  .contact-sub { font-size: 18px; }
  .contact-btns { margin-top: 32px; }
  .contact-btns .btn { flex: 1 1 auto; }
  .lightbox-frame { border-radius: 0; }
  .toast { bottom: 16px; max-width: calc(100vw - 32px); }
}
/* short phones: no stacking, same-kind cards swipe sideways */
@media (max-width: 760px) and (max-height: 699px) {
  .now-stack {
    flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .now-stack::-webkit-scrollbar { display: none; }
  .now-card { position: relative; top: auto; flex: 0 0 80%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .now-card { transform: none !important; }
  .toast { transition: none; }
}
