/* =========================================================================
   daniel.berestean.com — v2 ("phone")
   ========================================================================= */

:root {
  --bg: #F2F2F7;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --label: #000000;
  --label-2: rgba(60, 60, 67, .64);
  --label-3: rgba(60, 60, 67, .34);
  --sep: rgba(60, 60, 67, .16);
  --tint: #007AFF;
  --green: #34C759;
  --glass: rgba(255, 255, 255, .68);
  --glass-line: rgba(255, 255, 255, .7);
  --shadow: 0 10px 34px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .22);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --pad: 20px;
  --maxw: 1180px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  --tab-b: max(14px, var(--safe-b));
  --spring: cubic-bezier(.32, .72, 0, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #1C1C1E;
    --card: #1C1C1E;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .34);
    --label: #FFFFFF;
    --label-2: rgba(235, 235, 245, .64);
    --label-3: rgba(235, 235, 245, .32);
    --sep: rgba(84, 84, 88, .55);
    --tint: #0A84FF;
    --green: #30D158;
    --glass: rgba(36, 36, 40, .66);
    --glass-line: rgba(255, 255, 255, .1);
    --shadow: 0 10px 34px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .7);
  }
}
@media (min-width: 700px) { :root { --pad: 28px; } }
@media (min-width: 1100px) { :root { --pad: 40px; } }

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.press { transition: transform .35s var(--spring); }
.press:active { transform: scale(.96); }

/* ---------------- "get" pill ---------------- */
.get {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 30px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--fill);
  color: var(--tint);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}
.get--light { background: rgba(255, 255, 255, .26); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* =========================================================================
   LOCK SCREEN
   ========================================================================= */
.lock { display: none; }
html.locked .lock, .lock.is-live {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  background: #05070C;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
html.locked, html.locked body { overflow: hidden; }
.lock-wall { position: absolute; inset: -4%; display: block; will-change: transform; }
.lock-wall img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lock-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .55) 100%); }

.lock-top { position: relative; z-index: 1; padding-top: calc(var(--safe-t) + 34px); text-align: center; }
.lock-pad { width: 20px; height: 20px; opacity: .9; stroke-width: 2; }
.lock-date { margin: 8px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; opacity: .92; }
.lock-time {
  margin: -6px 0 0;
  font-family: var(--rounded);
  font-size: clamp(88px, 27vw, 140px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .25));
}
.lock-place { margin: 4px 0 0; font-size: 14px; font-weight: 600; opacity: .7; letter-spacing: .02em; }

.lock-notifs { position: relative; z-index: 1; margin-top: auto; padding: 0 10px; display: grid; gap: 8px; width: 100%; max-width: 440px; align-self: center; }
.notif {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 22px;
  text-align: left;
  color: #fff;
  background: rgba(40, 40, 46, .42);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  backdrop-filter: saturate(180%) blur(26px);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22);
  transition: transform .35s var(--spring), background-color .2s;
}
.notif:active { transform: scale(.97); background: rgba(60, 60, 66, .5); }
.notif-ic { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: #222; }
.notif-ic img { width: 100%; height: 100%; object-fit: cover; }
.notif-ic--db { background: radial-gradient(circle at 30% 25%, #6AA9FF, #0A63E8 60%, #0844A8); font-size: 14px; font-weight: 800; letter-spacing: -.03em; }
.notif-body { min-width: 0; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; line-height: 1.25; }
.notif-head b { font-weight: 600; }
.notif-head time { font-size: 13px; opacity: .62; flex: none; }
.notif-text { display: block; margin-top: 1px; font-size: 15px; line-height: 1.3; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lock-bottom { position: relative; z-index: 1; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: 10px; padding: 22px 44px calc(var(--safe-b) + 26px); }
.lock-btn { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: rgba(40, 40, 46, .42); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); transition: transform .3s var(--bounce), background-color .2s; }
.lock-btn:active { transform: scale(1.12); background: rgba(255, 255, 255, .9); color: #000; }
.lock-btn .ic { width: 22px; height: 22px; }
.lock-open { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.lock-open .ic { width: 20px; height: 20px; stroke-width: 2.4; animation: nudge 1.8s var(--ease) infinite; }
.lock-hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .lock-hint-touch { display: none; } .lock-hint-mouse { display: inline; } }
@keyframes nudge { 0%, 100% { transform: translateY(2px); opacity: .55; } 50% { transform: translateY(-5px); opacity: 1; } }
.home-bar { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 8px); width: 134px; height: 5px; border-radius: 3px; background: #fff; transform: translateX(-50%); opacity: .9; }

@media (min-width: 900px) {
  .lock-top { padding-top: 9vh; }
  .lock-time { font-size: 150px; }
  .lock-notifs { max-width: 400px; margin-bottom: 4vh; }
  .lock-bottom { max-width: 560px; width: 100%; align-self: center; }
}

/* =========================================================================
   NAV BAR (compact title)
   ========================================================================= */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: calc(var(--safe-t) + 50px);
  padding: var(--safe-t) var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: .5px solid var(--sep);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--spring);
}
.navbar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.navbar-title { grid-column: 2; font-size: 17px; font-weight: 600; }
.navbar-btn { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px 0 10px; border-radius: 99px; background: var(--tint); color: #fff; font-size: 14px; font-weight: 600; }
.navbar-btn .ic { width: 16px; height: 16px; }

/* =========================================================================
   APP + LARGE TITLE
   ========================================================================= */
.app { padding-bottom: calc(var(--tab-h) + var(--tab-b) + 24px); transform-origin: 50% 40vh; }
html.locked .app { visibility: hidden; }

.lt { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; max-width: var(--maxw); margin: 0 auto; padding: calc(var(--safe-t) + 18px) var(--pad) 6px; }
.lt-date { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--label-2); text-transform: uppercase; }
.lt-title { margin: 2px 0 0; font-family: var(--display); font-size: clamp(34px, 9vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.lt-title .w { display: inline-block; }
.lt-avatar { position: relative; flex: none; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #6AA9FF, #0A63E8 60%, #0844A8); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.03em; transition: transform .35s var(--spring); }
.lt-avatar:active { transform: scale(.9); }
.lt-avatar i { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px var(--bg); }

/* ---------------- stories ---------------- */
.stories {
  display: flex;
  gap: 14px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad) 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stories::-webkit-scrollbar { display: none; }
.story-bub { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start; transition: transform .35s var(--spring); }
.story-bub:active { transform: scale(.92); }
.ring { position: relative; width: 72px; height: 72px; padding: 3px; border-radius: 50%; display: grid; place-items: center; isolation: isolate; }
.ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 50%;
  background: conic-gradient(from var(--a, 0deg), #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75);
  animation: spin 4s linear infinite;
}
.ring::after { content: ""; position: absolute; inset: 2.5px; z-index: -1; border-radius: 50%; background: var(--bg); }
.story-bub.is-seen .ring::before { background: var(--fill-2); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.bub-img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--card); }
.bub-img--db { background: radial-gradient(circle at 30% 25%, #6AA9FF, #0A63E8 60%, #0844A8); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.bub-name { max-width: 76px; font-size: 12px; font-weight: 500; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.story-bub--me .bub-name { color: var(--label-2); }

/* ---------------- hero card ---------------- */
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(132vw, 600px);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform .45s var(--spring);
  will-change: transform;
}
.hero-card:active { transform: scale(.975); }
.hero-img { position: absolute; inset: -8% -4%; z-index: -2; width: 108%; height: 116%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, -2%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .1) 38%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, .78) 100%); }
.hero-top { padding: 22px 22px 0; }
.hero-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.hero-title { margin: 6px 0 0; font-family: var(--display); font-size: clamp(38px, 11vw, 64px); font-weight: 800; line-height: .98; letter-spacing: -.04em; max-width: 11ch; }
.hero-title em { font-style: normal; background: linear-gradient(90deg, #7DD3FC, #A78BFA 50%, #F0ABFC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-bottom { padding: 0 14px 14px; }
.hero-lead { margin: 0 8px 14px; font-size: 16px; line-height: 1.45; opacity: .9; }
.glass-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); }
.glass-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #6AA9FF, #0A63E8 60%, #0844A8); font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.glass-txt { min-width: 0; }
.glass-txt b { display: block; font-size: 15px; font-weight: 600; }
.glass-txt span { display: block; font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-chip { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35); }
.play-chip i { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------------- widgets ---------------- */
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.wd { position: relative; overflow: hidden; border-radius: 24px; padding: 16px; background: var(--card); box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 6px 22px rgba(0, 0, 0, .06); isolation: isolate; }
.wd--s { aspect-ratio: 1; display: flex; flex-direction: column; }
.wd--m { grid-column: span 2; min-height: 160px; }
.wd-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--label-2); }
.wd-label--tint { color: var(--tint); }
.wd-title { margin: 2px 0 0; font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.wd-num { margin: 0; font-family: var(--rounded); font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wd-sub { margin: 4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--label-2); }
.wd-text { margin: 12px 0 0; font-size: 15px; line-height: 1.42; color: var(--label-2); }

.wd--clock { align-items: center; justify-content: center; gap: 6px; background: #1C1C1E; color: #fff; padding: 12px; }
.clock { width: 82%; flex: 1; min-height: 0; }
.clock-face { fill: #2C2C2E; }
.clock-ticks line { stroke: rgba(255, 255, 255, .35); stroke-width: .8; stroke-linecap: round; }
.clock-ticks line.maj { stroke: #fff; stroke-width: 1.6; }
.clock-nums text { fill: #fff; font: 600 9px var(--rounded); text-anchor: middle; }
.hand { stroke-linecap: round; transform-origin: 50px 50px; }
.hand-h { stroke: #fff; stroke-width: 3.6; }
.hand-m { stroke: #fff; stroke-width: 2.6; }
.hand-s { stroke: #FF9F0A; stroke-width: 1.2; }
.clock-pin { fill: #FF9F0A; stroke: #1C1C1E; stroke-width: .8; }
.wd-cap { margin: 0; display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.wd-cap b { font-weight: 600; }
.wd-cap span { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }

.wd--years { background: linear-gradient(150deg, #0A84FF, #5E5CE6 70%, #BF5AF2); color: #fff; }
.wd--years .wd-label, .wd--years .wd-sub { color: rgba(255, 255, 255, .78); }
.wd--years .wd-num { margin-top: auto; font-size: 64px; }
.wd-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: -1; opacity: .35; }
.wd-spark path { fill: none; stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 260; stroke-dashoffset: 260; }
.wd--years.in .wd-spark path { animation: draw 2.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.wd--now { display: flex; flex-direction: column; }
.wd-now-row { display: flex; align-items: center; gap: 12px; }
.kng { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, #1F2937, #0B0F17); color: #E9C46A; font-size: 13px; font-weight: 900; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .35); }
.wd-also { margin: auto 0 0; padding-top: 12px; font-size: 14px; color: var(--label-2); }
.wd-also span { margin-right: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tint); }

.wd--photo { color: #fff; justify-content: flex-end; padding: 0; }
.wd--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.15); transition: transform 1.2s var(--ease); }
.wd--photo.in img { transform: scale(1); }
.wd--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .75)); }
.wd-photo-txt { padding: 16px; }
.wd--photo .wd-sub { color: rgba(255, 255, 255, .82); }

.wd--status { justify-content: flex-end; background: linear-gradient(160deg, #0F2E1B, #0B1A10); color: #fff; }
@media (prefers-color-scheme: light) { .wd--status { background: linear-gradient(160deg, #E8F9EE, #FFFFFF); color: #000; } }
.wd--status .wd-title { font-size: 24px; }
.wd--status .wd-sub { margin-top: 0; }
.wd-foot { margin: 10px 0 0; font-size: 12px; font-weight: 600; color: var(--green); }
.pulse { position: absolute; top: 18px; left: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.4s var(--ease) infinite; }
.pulse::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: .6; } to { transform: scale(4); opacity: 0; } }

.wd--markets { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; background: linear-gradient(150deg, #0D3B3E, #062224); color: #fff; padding: 16px 0; }
@media (prefers-color-scheme: light) { .wd--markets { background: linear-gradient(150deg, #E6FAF8, #FFFFFF); color: #000; } }
.wd-markets-head { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px; }
.wd--markets .wd-sub { margin: 0 0 5px; }
.marquee { display: grid; gap: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-row { display: flex; gap: 8px; width: max-content; animation: mq 32s linear infinite; }
.mq-row--rev { animation-direction: reverse; animation-duration: 38s; }
.mq-row span { display: grid; place-items: center; min-width: 46px; height: 30px; padding: 0 10px; border-radius: 9px; background: rgba(45, 212, 191, .14); color: #2DD4BF; font: 700 13px/1 var(--rounded); letter-spacing: .04em; }
@media (prefers-color-scheme: light) { .mq-row span { color: #0F766E; background: rgba(13, 148, 136, .1); } }
@keyframes mq { to { transform: translateX(-50%); } }

@media (min-width: 900px) {
  .widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
  .hero-card { min-height: 560px; }
  .hero-title { font-size: 84px; max-width: 12ch; }
  .hero-top { padding: 40px 40px 0; }
  .hero-bottom { padding: 0 28px 28px; display: grid; grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 28px; }
  .hero-lead { margin: 0 12px 6px; font-size: 18px; max-width: 34em; }
  .play-chip { top: 32px; right: 32px; }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.tab-sec { scroll-margin-top: calc(var(--safe-t) + 50px); }
.tab-sec + .tab-sec { padding-top: 56px; }
.sec-head { margin: 0 0 16px; padding-top: 8px; }
.sec-head--row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 40px; margin-bottom: 8px; padding-top: 18px; border-top: .5px solid var(--sep); }
.sec-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--label-2); }
.sec-title { margin: 2px 0 0; font-family: var(--display); font-size: clamp(34px, 9vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.sec-title--sm { font-size: 24px; letter-spacing: -.02em; }
.sec-sub { margin: 6px 0 0; color: var(--label-2); font-size: 16px; }
.sec-count { font-size: 15px; color: var(--tint); font-weight: 500; }

/* ---------------- App Store "Today" cards ---------------- */
.feed { display: grid; gap: 28px; }
@media (min-width: 760px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }

.tc { position: relative; perspective: 1200px; }
.tc.is-lifted { visibility: hidden; }
.tc-link {
  position: relative;
  display: block;
  height: min(124vw, 520px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .45s var(--spring), box-shadow .3s;
  will-change: transform;
}
@media (min-width: 760px) { .tc-link { height: 540px; } }
.tc-link:active { transform: scale(.965); }

.cov { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cov--photo .cov-img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.cov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .12) 36%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); }
.cov--shot { background: radial-gradient(120% 80% at 100% 100%, var(--g2), transparent 60%), radial-gradient(90% 60% at 0% 0%, color-mix(in oklab, var(--g2) 40%, transparent), transparent 70%), var(--g1); perspective: 900px; }
.cov--shot::after { background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55) 100%); }
.cov-win {
  position: absolute;
  left: 14%;
  top: 40%;
  width: 118%;
  border-radius: 12px 0 0 0;
  overflow: hidden;
  background: #0B0F17;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .55);
  transform: rotateY(-18deg) rotateX(10deg) rotateZ(2deg);
  transform-origin: 0 50%;
  will-change: transform;
}
.cov-win-bar { display: flex; gap: 6px; align-items: center; height: 22px; padding: 0 11px; background: #161B24; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cov-win-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.cov-win-bar i:first-child { background: #FF5F57; }
.cov-win-bar i:nth-child(2) { background: #FEBC2E; }
.cov-win-bar i:nth-child(3) { background: #28C840; }
.cov-win img { display: block; width: 100%; height: auto; }

.cov-txt { position: relative; padding: 22px 22px 0; }
.cov-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.cov-title { margin: 6px 0 0; font-family: var(--display); font-size: clamp(30px, 8.4vw, 40px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; max-width: 12ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.cov-sub { margin: 8px 0 0; max-width: 26em; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.cov-app {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(30, 30, 34, .38);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25);
}
.cov-app .app-ic { width: 46px; height: 46px; }
.cov-app-txt { min-width: 0; }
.cov-app-txt b { display: block; font-size: 15px; font-weight: 600; }
.cov-app-txt span { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-app .get { background: rgba(255, 255, 255, .25); color: #fff; }

.app-ic { flex: none; width: 60px; height: 60px; border-radius: 22.5%; object-fit: cover; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .12); background: var(--fill); }

/* ---------------- App list (horizontal, 3 rows) ---------------- */
.applist {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-auto-columns: calc(100% - 2 * var(--pad) - 24px);
  column-gap: 16px;
  padding: 0 var(--pad) 4px;
  scroll-padding-inline: var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  max-width: var(--maxw);
  margin: 0 auto;
}
.applist::-webkit-scrollbar { display: none; }
.app-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; scroll-snap-align: start; position: relative; transition: opacity .2s; }
.app-row:active { opacity: .6; }
.app-row::after { content: ""; position: absolute; left: 74px; right: 0; bottom: 0; height: .5px; background: var(--sep); }
.app-row:nth-child(3n)::after, .app-row:last-child::after { display: none; }
.app-txt { min-width: 0; }
.app-txt b { display: block; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-txt span { display: block; font-size: 14px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 760px) { .applist { grid-auto-columns: calc(50% - 8px); padding-inline: var(--pad); } }
@media (min-width: 1100px) { .applist { grid-auto-columns: calc(33.333% - 11px); } }

/* =========================================================================
   EXPERIENCE: wallet + messages + home grid
   ========================================================================= */
.exp-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .exp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.wallet { position: relative; padding-bottom: 8px; }
.pass {
  --pc: #1C1C1E;
  --pt: #fff;
  --ps: rgba(255, 255, 255, .62);
  position: relative;
  display: block;
  border-radius: 18px;
  background: var(--pc);
  color: var(--pt);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .06) inset, 0 -6px 18px rgba(0, 0, 0, .14), 0 10px 30px rgba(0, 0, 0, .12);
  cursor: pointer;
  overflow: hidden;
  transition: margin-top .55s var(--spring), transform .45s var(--spring), box-shadow .3s;
  -webkit-user-select: none;
  user-select: none;
}
.pass + .pass { margin-top: -142px; }
.pass.is-open + .pass { margin-top: 14px; }
.wallet.has-open .pass:not(.is-open) { transform: scale(.985); }
.pass:active { transform: translateY(-3px); }
.pass-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.pass-logo { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.pass-org { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-hf { text-align: right; }
.pass small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--ps); }
.pass b { font-weight: 600; }
.pass-hf b { font-size: 15px; }
.pass-strip { position: relative; display: block; height: 118px; overflow: hidden; }
.pass-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pass-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); }
.pass-strip--plain { height: 96px; }
.pass-strip--plain::after { display: none; }
.pass-primary { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; }
.pass-strip:not(.pass-strip--plain) .pass-primary small { color: rgba(255, 255, 255, .72); }
.pass-primary b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.pass-strip--plain .pass-primary b { color: var(--pt); }
.pass-fields { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 16px 16px; }
.pass-fields b { display: block; font-size: 15px; }
.pass-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--spring); }
.pass.is-open .pass-more { grid-template-rows: 1fr; }
.pass-more-in { overflow: hidden; min-height: 0; }
.pass-text { margin: 0; padding: 4px 16px 0; font-size: 15px; line-height: 1.5; color: var(--pt); opacity: .9; }
.pass-list { margin: 10px 0 0; padding: 0 16px 0 34px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; opacity: .9; }
.pass-roles { list-style: none; margin: 12px 0 0; padding: 0 16px; display: grid; gap: 12px; }
.pass-roles li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.pass-roles b { display: block; font-size: 15px; }
.pass-roles span { display: block; font-size: 12px; font-weight: 600; color: var(--ps); margin-top: 2px; }
.pass-roles p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; opacity: .9; }
.barcode { display: block; margin: 18px auto 18px; width: 72%; height: 54px; border-radius: 8px; background: #fff; padding: 8px 12px; background-clip: content-box; box-shadow: 0 0 0 8px #fff inset; }
.barcode { background-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px 5px, transparent 5px 8px, #000 8px 11px, transparent 11px 12px, #000 12px 13px, transparent 13px 16px); background-color: #fff; background-clip: border-box; border: 8px solid #fff; border-width: 8px 12px; }

.pass--kng { --pc: linear-gradient(150deg, #1E293B, #0B0F17); background: linear-gradient(150deg, #1E293B, #0B0F17); --ps: rgba(233, 196, 106, .85); }
.pass--kng .pass-logo { background: rgba(233, 196, 106, .16); color: #E9C46A; }
.pass--lemon { background: linear-gradient(150deg, #FDE047, #FACC15); --pt: #1A1600; --ps: rgba(26, 22, 0, .55); color: #1A1600; }
.pass--lemon .pass-logo { background: rgba(0, 0, 0, .1); }
.pass--dafur { background: linear-gradient(150deg, #0F766E, #064E3B); }
.pass--unifun { background: linear-gradient(150deg, #0284C7, #075985); }
.pass--edu { background: linear-gradient(150deg, #7C3AED, #4C1D95); }
.pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 16px 4px; }
.pass-route b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pass-route em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; opacity: .75; line-height: 1.3; }
.pass-route .r { text-align: right; }
.pass-route .ic { width: 26px; height: 26px; transform: rotate(90deg); opacity: .9; }

/* messages */
.exp-side { display: grid; gap: 40px; }
.imsg { border-radius: 26px; background: var(--card); box-shadow: 0 6px 22px rgba(0, 0, 0, .06); overflow: hidden; }
.imsg-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0 12px; background: var(--glass); border-bottom: .5px solid var(--sep); }
.imsg-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #A1A1AA, #71717A); color: #fff; font-size: 19px; font-weight: 700; }
.imsg-name { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; color: var(--label); }
.imsg-name .ic { width: 12px; height: 12px; color: var(--label-3); stroke-width: 2.6; }
.imsg-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 18px; min-height: 380px; }
.imsg-time { align-self: center; margin: 0 0 6px; font-size: 11px; font-weight: 600; color: var(--label-2); }
.bubble { position: relative; max-width: 78%; margin: 0; padding: 8px 13px; border-radius: 19px; font-size: 16px; line-height: 1.32; letter-spacing: -.01em; transform-origin: 0 100%; }
.bubble.out { align-self: flex-end; background: #0A84FF; color: #fff; transform-origin: 100% 100%; }
.bubble.in { align-self: flex-start; background: #E9E9EB; color: #000; }
@media (prefers-color-scheme: dark) { .bubble.in { background: #26252A; color: #fff; } }
.bubble.out + .bubble.in, .bubble.in + .bubble.out { margin-top: 8px; }
.bubble--quote p { margin: 0; font-style: italic; }
.bubble--quote span { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; opacity: .6; font-style: normal; }
.bubble--link { padding: 0; overflow: hidden; width: 78%; }
.link-card { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 10px 12px; }
.link-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #26A5E4; color: #fff; }
.link-card b { display: block; font-size: 15px; }
.link-card > span > span { display: block; font-size: 13px; opacity: .6; }
.imsg-read { align-self: flex-end; margin: 2px 2px 0; font-size: 11px; color: var(--label-2); }
.bubble.is-pending, .imsg-read.is-pending { display: none; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 19px; background: #E9E9EB; }
@media (prefers-color-scheme: dark) { .typing { background: #26252A; } }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #8E8E93; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.bubble.pop-in { animation: bubblein .5s var(--bounce) both; }
@keyframes bubblein { from { transform: scale(.4) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* home-screen stack grid */
.home { position: relative; padding: 18px 16px 16px; border-radius: 30px; overflow: hidden; isolation: isolate; color: #fff; }
.home::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/static/v2/img/ph/gradient.webp") center / cover; }
.home::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .12); }
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.home-head .sec-eyebrow { color: rgba(255, 255, 255, .9); }
.home-edit { height: 28px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; }
.hi { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hi-ic { width: min(62px, 17vw); aspect-ratio: 1; border-radius: 23%; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in oklab, var(--c) 82%, #fff), var(--c) 55%, color-mix(in oklab, var(--c) 80%, #000)); box-shadow: 0 6px 16px rgba(0, 0, 0, .2), inset 0 0 0 .5px rgba(255, 255, 255, .25); transition: transform .35s var(--bounce); }
.hi-ic svg { width: 52%; height: 52%; fill: var(--g); }
.hi:active .hi-ic { transform: scale(.88); }
.hi-label { font-size: 12px; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); white-space: nowrap; }
.home.is-jiggle .hi-ic { animation: jiggle .28s ease-in-out infinite alternate; }
.home.is-jiggle .hi:nth-child(2n) .hi-ic { animation-delay: -.14s; animation-duration: .25s; }
.home.is-jiggle .hi:nth-child(3n) .hi-ic { animation-duration: .31s; }
@keyframes jiggle { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
.home-hint { margin: 16px 0 0; text-align: center; font-size: 12px; opacity: .78; }
@media (min-width: 700px) { .home-grid { grid-template-columns: repeat(8, 1fr); } }
@media (min-width: 1000px) { .home-grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.poster { position: relative; overflow: hidden; border-radius: 32px; min-height: min(118vw, 560px); display: flex; isolation: isolate; color: #fff; box-shadow: var(--shadow); }
.poster-bg {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(35% 35% at 20% 30%, #0A84FF 0%, transparent 70%),
    radial-gradient(40% 40% at 80% 20%, #BF5AF2 0%, transparent 70%),
    radial-gradient(45% 45% at 70% 80%, #FF375F 0%, transparent 70%),
    radial-gradient(40% 40% at 25% 85%, #30D158 0%, transparent 70%),
    #111;
  filter: blur(30px) saturate(140%);
  animation: blobs 18s ease-in-out infinite alternate;
}
@keyframes blobs {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(40deg) scale(1.12); }
  100% { transform: rotate(-20deg) scale(1.05); }
}
.poster-in { margin-top: auto; padding: 26px; width: 100%; }
.poster-av { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.poster-first, .poster-last { margin: 0; font-family: var(--display); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.poster-first { margin-top: 18px; font-size: clamp(64px, 20vw, 120px); }
.poster-last { font-size: clamp(40px, 12.5vw, 76px); opacity: .9; }
.poster-role { margin: 14px 0 0; font-size: 16px; font-weight: 600; opacity: .85; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 66px; border-radius: 16px; background: var(--card); color: var(--tint); font-size: 12px; font-weight: 500; transition: transform .3s var(--spring), background-color .2s; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.act:active { transform: scale(.94); background: var(--fill); }
.act .ic { width: 24px; height: 24px; }
.fields { list-style: none; margin: 20px 0 0; padding: 0; border-radius: 16px; background: var(--card); overflow: hidden; }
.fields li { position: relative; display: flex; align-items: center; }
.fields li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.fields li > a, .fields li > div { flex: 1; min-width: 0; display: block; padding: 11px 16px; }
.fields li > a:active { background: var(--fill); }
.f-label { display: block; font-size: 14px; color: var(--label); }
.f-val { display: block; font-size: 17px; color: var(--tint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fields li > div .f-val { color: var(--label); }
.f-copy { flex: none; width: 44px; height: 44px; margin-right: 8px; border-radius: 12px; display: grid; place-items: center; color: var(--label-2); }
.f-copy:active { background: var(--fill); }
.f-copy .ic { width: 19px; height: 19px; }
.fields--actions button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: var(--tint); font-size: 17px; text-align: left; }
.fields--actions button:active { background: var(--fill); }
.fields--actions .ic { width: 22px; height: 22px; }

.foot { max-width: var(--maxw); margin: 40px auto 0; padding: 0 var(--pad); text-align: center; font-size: 12px; line-height: 1.6; color: var(--label-3); }
.foot p { margin: 0; }
.foot a { text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================================
   TAB BAR (floating glass, sliding pill)
   ========================================================================= */
.tabbar {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: var(--tab-b);
  width: min(calc(100% - 24px), 420px);
  height: var(--tab-h);
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 32px;
  transform: translateX(-50%);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(200%) blur(26px);
  backdrop-filter: saturate(200%) blur(26px);
  box-shadow: inset 0 0 0 .5px var(--glass-line), 0 10px 40px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .08);
  transition: transform .55s var(--spring), opacity .35s;
}
html.locked .tabbar, html.no-scroll .tabbar { transform: translate(-50%, calc(100% + var(--tab-b) + 10px)); opacity: 0; }
.tab-pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 27px; background: var(--fill); transition: transform .55s var(--spring), width .55s var(--spring); }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px; color: var(--label-2); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; transition: color .25s, transform .35s var(--spring); }
.tabbar a:active { transform: scale(.9); }
.tabbar a.is-active { color: var(--tint); }
.tabbar .ic { width: 25px; height: 25px; stroke-width: 1.8; }
.tabbar a.is-active .ic { stroke-width: 2.2; }

/* =========================================================================
   READER (expanded case study)
   ========================================================================= */
.reader { position: fixed; inset: 0; z-index: 200; }
.reader[hidden] { display: none; }
.reader-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }
.reader-panel {
  position: fixed;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  outline: none;
  will-change: top, left, width, height, transform;
}
.reader-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.reader-x, .reader-share {
  position: absolute;
  z-index: 5;
  top: calc(var(--safe-t) + 14px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(30, 30, 34, .5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform .3s var(--spring), opacity .25s;
}
.reader-x { right: 16px; }
.reader-share { right: 58px; }
.reader-x .ic, .reader-share .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.reader-x:active, .reader-share:active { transform: scale(.88); }
.reader.is-anim .reader-x, .reader.is-anim .reader-share { opacity: 0; }

.art[hidden] { display: none; }
.art-hero { position: relative; height: var(--hero-h, 520px); overflow: hidden; isolation: isolate; color: #fff; }
.art-hero .cov-txt { padding-top: calc(var(--safe-t) + 22px); }
.reader.is-start .art-hero .cov-txt { padding-top: 22px; }
.art-hero .cov-app { transition: opacity .3s; }
.reader.is-open .art-hero .cov-app { opacity: 0; pointer-events: none; }
.art-body { position: relative; padding: 4px 0 20px; background: var(--bg-2); }
.reader.is-anim .art-body, .reader.is-anim .reader-next { opacity: 0; transform: translateY(24px); }
.art-body, .reader-next { transition: opacity .45s var(--ease) .1s, transform .55s var(--spring) .1s; }

/* --- v1 case content, restyled --- */
.art-body { --cp: 22px; }
.case-head { padding: 24px var(--cp) 0; }
.case-head .kicker { display: none; }
.case-title { margin: 0; font-family: var(--display); font-size: clamp(26px, 6.6vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.case-lead { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: var(--label-2); }
.case-head .btn { margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--fill); color: var(--tint); font-size: 15px; font-weight: 600; transition: transform .3s var(--spring); }
.btn:active { transform: scale(.95); }
.btn .ic { width: 18px; height: 18px; }
.note { margin: 0; padding: 10px var(--cp) 0; font-size: 13px; color: var(--label-2); }
.case-sec .note { padding: 10px 0 0; }
.gallery { display: flex; gap: 12px; margin-top: 20px; padding: 0 var(--cp) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cp); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 86%; margin: 0; scroll-snap-align: start; }
.gallery figure.fig-phone { flex-basis: calc(86% * .2889); }
.gallery img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 .5px var(--sep), 0 8px 24px rgba(0, 0, 0, .12); }
.gallery .fig-phone img { border-radius: 16px; }
.gallery figcaption { margin-top: 8px; font-size: 13px; color: var(--label-2); }
.facts { margin: 22px var(--cp) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; background: var(--fill); overflow: hidden; }
.facts div { padding: 12px 14px; }
.facts div:nth-child(even) { box-shadow: -.5px 0 0 var(--sep); }
.facts div:nth-child(n+3) { border-top: .5px solid var(--sep); }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label-2); }
.facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts div:nth-child(n+3) { border-top: 0; } .facts div + div { box-shadow: -.5px 0 0 var(--sep); } }
.case-sec { padding: 30px var(--cp) 0; }
.case-sec h3 { margin: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.case-sec > p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: var(--label-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; color: var(--label-2); }
.checks li b { color: var(--label); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks--warn li::before { background: #FF9F0A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.5v.01'/%3E%3C/svg%3E") center / 13px no-repeat; }
.flow, .stages { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.flow li, .stages li { position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding-bottom: 16px; }
.flow li::before { counter-increment: s; content: counter(s); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: #fff; font: 700 13px/1 var(--rounded); }
.flow li:not(:last-child)::after, .stages li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 2px; width: 1.5px; background: var(--sep); }
.flow b { padding-top: 4px; font-size: 16px; }
.flow span { font-size: 15px; line-height: 1.45; color: var(--label-2); }
.stages b { grid-row: 1; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #FF9F0A; color: #fff; font: 800 13px/1 var(--rounded); }
.stages span { padding-top: 5px; font-size: 15px; line-height: 1.45; color: var(--label-2); }
.aside { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--fill); font-size: 16px; line-height: 1.5; }
.decisions { display: grid; gap: 10px; }
.decision { padding: 16px; border-radius: 16px; background: var(--fill); }
.decision h4 { margin: 0; font-size: 16px; font-weight: 700; }
.decision p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--label-2); }
@media (min-width: 640px) { .decisions { grid-template-columns: 1fr 1fr; } }
.findings { border-radius: 16px; background: var(--fill); padding: 0 16px; }
.finding { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 0; }
.finding + .finding { border-top: .5px solid var(--sep); }
.finding p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--label-2); }
.tag { justify-self: start; padding: 4px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.tag--amber { background: rgba(255, 159, 10, .16); color: #FF9F0A; }
.tag--red { background: rgba(255, 69, 58, .16); color: #FF453A; }
.bigstats { margin: 22px var(--cp) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bigstats div { padding: 16px; border-radius: 16px; background: var(--fill); }
.bigstats b { display: block; font-family: var(--rounded); font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.bigstats span { display: block; margin-top: 6px; font-size: 13px; color: var(--label-2); }
.bigstats--sm { margin: 16px 0 0; }
@media (min-width: 560px) { .bigstats { grid-template-columns: repeat(4, 1fr); } }
.arch { display: grid; gap: 8px; }
.arch-row--main { display: flex; align-items: center; }
.arch span { display: grid; place-items: center; min-height: 40px; padding: 8px 10px; border-radius: 12px; background: var(--fill); font: 600 12.5px/1.25 var(--mono); text-align: center; }
.arch-row--main i { flex: 1; min-width: 8px; height: 1.5px; background: var(--sep); }
.arch span.hi { background: var(--tint); color: #fff; }
.arch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case .chips, .art .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.art .chips li { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 99px; background: var(--fill); font-size: 14px; font-weight: 500; }
.vas { display: grid; gap: 20px; margin-top: 18px; align-items: center; }
.vas-phone { justify-self: center; width: 170px; height: 300px; padding: 7px; border-radius: 32px; background: #1C1C1E; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.vas-screen { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 26px; background: radial-gradient(120% 80% at 80% 0%, #1D4E7A, transparent 60%), linear-gradient(170deg, #12263F, #0A1220 70%); }
.vas-time { position: absolute; top: 32px; left: 0; right: 0; text-align: center; font: 600 40px/1 var(--rounded); color: #fff; }
.vas-pop { width: 84%; margin-top: 40px; padding: 12px; border-radius: 14px; background: rgba(240, 244, 250, .96); color: #0B1220; }
.vas-pop span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0284C7; }
.vas-pop p { margin: 6px 0 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.vas-pop div { display: flex; justify-content: flex-end; gap: 16px; font-size: 14px; }
.vas-pop i { font-style: normal; color: #64748B; }
.vas-pop b { color: #0284C7; }
@media (min-width: 600px) { .vas { grid-template-columns: 170px 1fr; gap: 28px; } }

.reader-next { padding: 34px 22px calc(var(--safe-b) + 34px); background: var(--bg-2); }
.next-card { width: 100%; margin-top: 10px; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: var(--fill); text-align: left; transition: transform .3s var(--spring); }
.next-card:active { transform: scale(.97); }
.next-card img { width: 60px; height: 60px; border-radius: 22.5%; object-fit: cover; }
.next-card b { display: block; font-size: 17px; }
.next-card > span > span { display: block; font-size: 14px; color: var(--label-2); }

@media (min-width: 900px) {
  .art-body { --cp: 48px; }
  .reader-next { padding-inline: 48px; }
  .art-hero .cov-txt { padding: 40px 48px 0; }
  .art-hero .cov-title { font-size: 52px; }
  .reader-x, .reader-share { top: 18px; }
  .reader-x { right: 18px; }
  .reader-share { right: 62px; }
}

/* =========================================================================
   STORY VIEWER
   ========================================================================= */
.story { position: fixed; inset: 0; z-index: 300; background: #000; color: #fff; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.story[hidden] { display: none; }
.story-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(50px) saturate(150%) brightness(.55); transform: scale(1.1); transition: background-image .4s; }
.story-stage { position: absolute; inset: 0; perspective: 1400px; }
.sp { position: absolute; inset: 0; overflow: hidden; background: #000; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; }
.sp-bars { position: absolute; z-index: 5; top: calc(var(--safe-t) + 8px); left: 8px; right: 8px; display: flex; gap: 4px; }
.sp-bar { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: #fff; }
.sp-head { position: absolute; z-index: 5; top: calc(var(--safe-t) + 20px); left: 12px; right: 8px; display: flex; align-items: center; gap: 10px; }
.sp-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #6AA9FF, #0A63E8 60%, #0844A8); font-size: 12px; font-weight: 800; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6); }
.sp-name { min-width: 0; flex: 1; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.sp-name span { margin-left: 6px; font-weight: 400; opacity: .7; }
.sp-x { width: 44px; height: 44px; display: grid; place-items: center; }
.sp-x .ic { width: 26px; height: 26px; stroke-width: 2.2; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4)); }
.sl { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.sl.is-on { opacity: 1; visibility: visible; transition: opacity .35s; }
.sl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl.is-on .sl-img { animation: kb 7s ease-out both; }
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1); } }
.sl-grad { position: absolute; inset: 0; }
.sl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .82) 100%); }
.sl-blur { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(30px) brightness(.6) saturate(140%); }
.sl-win { position: absolute; left: 7%; right: -18%; top: 17%; border-radius: 12px 0 0 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); transform: perspective(900px) rotateY(-14deg) rotateX(6deg); transform-origin: 0 50%; }
.sl.is-on .sl-win { animation: winin 1s var(--spring) both; }
@keyframes winin { from { transform: perspective(900px) rotateY(-40deg) rotateX(14deg) translateX(30%); opacity: 0; } }
.sl-win img { display: block; width: 100%; }
.sl-phone { position: absolute; left: 50%; top: 14%; width: min(56%, 290px); aspect-ratio: 780 / 1688; padding: 2.4%; border-radius: 13% / 6%; background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 90px rgba(0, 0, 0, .65); transform: translateX(-50%); }
.sl.is-on .sl-phone { animation: phonein .9s var(--spring) both; }
@keyframes phonein { from { transform: translate(-50%, 40%) rotate(-8deg); opacity: 0; } }
.sl-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10.6% / 4.9%; display: block; }
.sl-stat { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font-family: var(--rounded); font-size: clamp(96px, 34vw, 190px); font-weight: 800; letter-spacing: -.05em; line-height: 1; text-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.sl.is-on .sl-stat { animation: statin .9s var(--bounce) both; }
@keyframes statin { from { transform: scale(.4); opacity: 0; } }
.sl-chat { position: absolute; left: 7%; right: 7%; top: 18%; display: flex; flex-direction: column; gap: 8px; }
.sl-chat .bubble { max-width: 82%; font-size: 17px; }
.sl-chat .bubble.in { background: rgba(255, 255, 255, .92); color: #000; }
.sl-chat .ev { align-self: center; margin-top: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(48, 209, 88, .22); color: #4ADE80; font-size: 14px; font-weight: 700; }
.sl.is-on .sl-chat > * { animation: bubblein .55s var(--bounce) both; }
.sl.is-on .sl-chat > :nth-child(2) { animation-delay: .5s; }
.sl.is-on .sl-chat > :nth-child(3) { animation-delay: 1.1s; }
.sl.is-on .sl-chat > :nth-child(4) { animation-delay: 1.7s; }
.sl-txt { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 92px); padding: 0 22px; }
.sl-h { margin: 0; font-family: var(--display); font-size: clamp(30px, 8.6vw, 44px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.sl-s { margin: 10px 0 0; font-size: 17px; line-height: 1.4; opacity: .9; max-width: 30em; }
.sl.is-on .sl-h, .sl.is-on .sl-s { animation: txtin .7s var(--spring) both; }
.sl.is-on .sl-s { animation-delay: .12s; }
@keyframes txtin { from { transform: translateY(26px); opacity: 0; } }
.sticker { position: absolute; z-index: 2; right: 8%; top: 13%; padding: 8px 14px; border-radius: 12px; background: #fff; color: #000; font-size: 16px; font-weight: 800; letter-spacing: -.01em; transform: rotate(-6deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sl.is-on .sticker { animation: stick .7s var(--bounce) .45s both; }
@keyframes stick { from { transform: rotate(-30deg) scale(0); } to { transform: rotate(-6deg) scale(1); } }
.sp-cta { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(var(--safe-b) + 22px); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; }
.sp-cta .ic { width: 22px; height: 22px; stroke-width: 2.4; animation: nudge 1.6s var(--ease) infinite; }
.sp-cta span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 99px; background: rgba(255, 255, 255, .95); color: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.story-nav { display: none; }
@media (min-width: 900px) {
  .story-stage { inset: 3vh auto; left: 50%; width: calc(94vh * 9 / 16); transform: translateX(-50%); }
  .sp { border-radius: 16px; }
  .sp-bars, .sp-head { top: 10px; }
  .sp-head { top: 22px; }
  .sl-txt { bottom: 96px; }
  .sp-cta { bottom: 24px; }
  .story-nav { position: absolute; top: 50%; z-index: 10; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #000; transition: transform .2s; }
  .story-nav:hover { transform: scale(1.08); }
  .story-nav--prev { left: calc(50% - 47vh * 9 / 16 - 70px); }
  .story-nav--next { right: calc(50% - 47vh * 9 / 16 - 70px); }
}

/* ---------------- toast ---------------- */
.toast { position: fixed; z-index: 500; left: 50%; top: calc(var(--safe-t) + 12px); padding: 12px 18px; border-radius: 99px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: var(--shadow), inset 0 0 0 .5px var(--glass-line); font-size: 15px; font-weight: 600; transform: translate(-50%, -150%); transition: transform .5s var(--spring); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

/* ---------------- motion helpers ---------------- */
.js .pop { opacity: 0; transform: scale(.9) translateY(18px); }
.js .pop.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--bounce); transition-delay: var(--d, 0s); }
.js .reveal-up { opacity: 0; transform: translateY(40px) scale(.97); }
.js .reveal-up.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform 1s var(--spring); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .pop, .js .reveal-up { opacity: 1; transform: none; }
}

/* v2 fixes */
.art-hero .cov-txt { transition: padding .55s var(--spring); }
.sp-bars, .sp-head, .sp-cta, .sl-txt, .sticker { transition: opacity .25s; }
.sp.is-held .sp-bars, .sp.is-held .sp-head, .sp.is-held .sp-cta, .sp.is-held .sl-txt, .sp.is-held .sticker { opacity: 0; }
@media (max-height: 900px) { .notif:nth-child(n+4) { display: none; } }
@media (max-height: 700px) { .notif:nth-child(n+3) { display: none; } .lock-top { padding-top: calc(var(--safe-t) + 20px); } }
.lock-bottom { padding-top: 16px; }
.hero-img { inset: -6% 0 auto 0; width: 100%; height: 112%; }
.stories { scroll-padding-inline: var(--pad); }
.cov--photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .34) 34%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .55) 100%); }
.hi-ic { height: min(62px, 17vw); }
.hi-ic svg { width: 30px; height: 30px; }
.pass { isolation: isolate; }
.toast { opacity: 0; visibility: hidden; transition: transform .5s var(--spring), opacity .3s, visibility 0s .5s; }
.toast.show { opacity: 1; visibility: visible; transition: transform .5s var(--spring), opacity .2s; }
@media (min-width: 900px) { .hero-title { max-width: 15ch; font-size: clamp(72px, 6.4vw, 92px); } }
