/* Romeworks studio site. Concrete & Cobalt; each product card wears its own palette. */
@import url("fonts/fonts.css");

:root {
  --bg: #e4e3de;
  --bg-2: #d8d7d1;
  --ink: #111114;
  --muted: #4f4f57;
  --line: rgba(17, 17, 20, 0.14);
  --line-2: rgba(17, 17, 20, 0.3);
  --cobalt: #2443ff;
  --cobalt-deep: #1a30d6;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --nav-h: 80px;
  --ticker-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Swiss column rules behind everything on concrete. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--line) 1px, transparent 1px) var(--pad) 0 / calc((100% - 2 * var(--pad)) / 12) 100%; }
@media (max-width: 700px) {
  body::before { background-size: calc((100% - 2 * var(--pad)) / 4) 100%; }
}

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Mark ---------- */
.mark path { transform-box: fill-box; transform-origin: 0% 100%; }
.mark-anim path { animation: swipe 0.75s var(--ease) both; }
.mark-anim path:nth-child(1) { animation-delay: 0.05s; }
.mark-anim path:nth-child(2) { animation-delay: 0.14s; }
.mark-anim path:nth-child(3) { animation-delay: 0.23s; }
@keyframes swipe { from { opacity: 0; transform: translate(-40%, 30%) scale(0.4) rotate(-12deg); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background 0.3s, box-shadow 0.3s; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.scrolled { background: rgba(228, 227, 222, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: 0.16em; }
.brand .mark { width: 34px; height: 36px; color: var(--cobalt); }
.links { display: flex; align-items: center; gap: 34px; font-weight: 600; font-size: 15px; }
.links a { text-decoration: none; opacity: 0.82; position: relative; }
.links a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--cobalt);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.links a:not(.pill):hover { opacity: 1; }
.links a:not(.pill):hover::after { transform: scaleX(1); }
.pill { opacity: 1 !important; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; transition: background 0.25s; }
.pill:hover { background: var(--cobalt); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: transparent;
  align-items: center; justify-content: center; cursor: pointer; }
.menu-btn i, .menu-btn i::before { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.menu-btn i { position: relative; transform: translateY(-3px); }
.menu-btn i::before { content: ""; position: absolute; top: 6px; }
.nav.open .menu-btn i { transform: rotate(45deg); }
.nav.open .menu-btn i::before { transform: translateY(-6px) rotate(-90deg); }
@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .menu-btn { display: flex; }
  .links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 20px; background: rgba(228, 227, 222, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.3); font-size: 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.3s; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links .pill { margin-top: 16px; text-align: center; border-bottom: 0; }
  .nav.open { background: rgba(228, 227, 222, 0.97); }
  .nav.open .links { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 16px; font-weight: 700; font-size: 17px;
  text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn img { width: 36px; height: 36px; border-radius: 9px; }
.btn-primary { background: var(--cobalt); color: #fff; padding: 12px 22px 12px 12px; box-shadow: 0 12px 28px -14px rgba(36, 67, 255, 0.8); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-ghost { border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Phones ---------- */
.phone { --w: 260px; position: relative; width: var(--w); aspect-ratio: 9 / 19; padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.15); background: #0c0c10;
  box-shadow: 0 50px 70px -34px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.09); }
.phone > .screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.12); background: #000; }
.screen > img, .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center;
  gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.chip img { width: 24px; height: 24px; border-radius: 7px; }
.chip.live { background: var(--cobalt); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 16px; align-items: center;
  min-height: clamp(600px, calc(var(--vh, 100svh) - var(--nav-h) - var(--ticker-h)), 860px); padding-top: 8px; padding-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--cobalt); }
.hero h1 { font-weight: 900; font-size: clamp(58px, 7vw, 104px); line-height: 0.9; letter-spacing: -0.05em; margin: 22px 0 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; animation: lineUp 1s var(--ease) both; animation-delay: var(--d, 0s); }
.hero h1 em { font-style: normal; color: var(--cobalt); white-space: nowrap; }
@keyframes lineUp { from { transform: translateY(105%); } }
.lede { font-size: 20px; line-height: 1.5; max-width: 31ch; margin: 0; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.rise { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.stage { position: relative; height: 620px; }
.stage .block { position: absolute; left: 50%; top: 150px; width: 560px; height: 470px; margin-left: -280px; background: var(--cobalt);
  transform-origin: 50% 100%; animation: grow 1.1s var(--ease) 0.25s both; }
@keyframes grow { from { transform: scaleY(0); } }
.layer { position: absolute; transform: translate3d(calc(var(--mx, 0) * var(--depth, 10px)), calc(var(--my, 0) * var(--depth, 10px)), 0);
  transition: transform 0.6s var(--ease); }
.layer .phone { animation: phoneIn 1.1s var(--ease) both, float 6s ease-in-out infinite; animation-delay: var(--d, 0s), calc(var(--d, 0s) + 1.1s); }
@keyframes phoneIn { from { opacity: 0; translate: 0 80px; } }
@keyframes float { 50% { translate: 0 -10px; } }
.layer.sd { left: 18px; top: 118px; --depth: 14px; }
.layer.sd .phone { --w: 222px; rotate: -5deg; --d: 0.35s; }
.layer.cc { left: 50%; top: 12px; margin-left: -126px; z-index: 3; --depth: 6px; }
.layer.cc .phone { --w: 252px; --d: 0.2s; }
.layer.td { right: 18px; top: 66px; --depth: 18px; }
.layer.td .phone { --w: 222px; rotate: 5deg; --d: 0.5s; }

/* ---------- Ticker ---------- */
.ticker { height: var(--ticker-h); overflow: hidden; display: flex; align-items: center; background: var(--ink); color: var(--bg);
  font-weight: 900; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; }
.ticker-track a { text-decoration: none; }
.ticker-track a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cobalt); text-underline-offset: 5px; }
.ticker .mark { width: 20px; height: 22px; color: var(--cobalt); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0 0; }
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: end; border-top: 2px solid var(--ink); padding-top: 18px;
  margin-bottom: clamp(32px, 4vw, 56px); }
.sec-tag { display: flex; gap: 14px; align-items: baseline; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); align-self: start; }
.sec-tag b { color: var(--cobalt); font-size: 15px; }
.sec-head h2 { margin: 0; font-weight: 900; font-size: clamp(40px, 5.4vw, 80px); line-height: 0.95; letter-spacing: -0.045em; }
.sec-head h2 em { font-style: normal; color: var(--cobalt); }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; gap: 14px; } }

.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Product cards ---------- */
.product { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 32px;
  background: var(--p-bg); color: var(--p-ink); min-height: 660px; }
.product + .product { margin-top: 28px; }
.product.flip { grid-template-columns: 1fr 1.05fr; }
.product.flip .p-copy { order: 2; }
.product > *, .page-hero .wrap > * { min-width: 0; }
.p-copy { position: relative; z-index: 2; padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.p-media { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.p-head { display: flex; align-items: center; gap: 18px; }
.p-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.p-kicker { margin: 0 0 4px; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-accent); }
.p-title { margin: 0; font-family: var(--p-display); font-weight: var(--p-display-w, 700); font-size: clamp(40px, 4.4vw, 60px); line-height: 1;
  letter-spacing: var(--p-display-t, 0); }
.p-lede { font-size: 21px; line-height: 1.45; margin: 26px 0 0; max-width: 34ch; }
.p-body { color: var(--p-muted); margin: 14px 0 0; max-width: 46ch; }
.p-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--p-muted); max-width: 48ch; }
.p-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.p-points li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--p-accent); }
.p-points b { color: var(--p-ink); }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 32px; }
.play-badge { display: block; margin: -14px; transition: transform 0.25s var(--ease); }
.play-badge:hover { transform: translateY(-2px); }
.play-badge img { width: 200px; height: auto; }
.soon-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid var(--p-accent);
  color: var(--p-accent); font-weight: 700; font-size: 15px; }
.soon-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.p-links { margin: 0; font-size: 15px; color: var(--p-muted); }
.p-links a { color: var(--p-ink); text-underline-offset: 3px; text-decoration-color: var(--p-line); }
.p-links a:hover { text-decoration-color: var(--p-accent); }
@media (max-width: 960px) {
  .product, .product.flip { grid-template-columns: 1fr; min-height: 0; }
  .product.flip .p-copy { order: 0; }
  .p-media { min-height: 0; padding: 8px 16px 48px; }
}

/* Core Courier */
.theme-cc { --p-bg: #0d1f33; --p-ink: #f5f2df; --p-muted: #a9bcc6; --p-accent: #7cf9d5; --p-line: rgba(245, 242, 223, 0.3);
  --p-display: "Barlow", var(--font); --p-display-w: 500; --p-display-t: 0.04em; }
.theme-cc .p-title { text-transform: uppercase; }
.theme-cc .p-media::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #16324f; }
.cycle .screen > img { opacity: 0; transition: opacity 0.7s ease; }
.cycle .screen > img.on { opacity: 1; }
.arenas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.arena { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--p-line); background: transparent; color: var(--p-muted); font-family: "Barlow", var(--font); font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: color 0.3s, border-color 0.3s; }
.arena::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.arena::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; }
.arena.on { color: var(--p-ink); border-color: var(--c); }
.arena.on::after { animation: progress var(--cycle, 2.8s) linear both; }
.arenas.paused .arena.on::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.p-media .phone { z-index: 1; }

/* Silo Drop */
.theme-sd { --p-bg: #121315; --p-ink: #f2efe6; --p-muted: #aaa69c; --p-accent: #ffc61a; --p-line: rgba(242, 239, 230, 0.3);
  --p-display: "Saira Stencil One", var(--font); --p-display-w: 400; --p-display-t: 0.06em; }
.theme-sd .p-kicker { font-family: "Saira Condensed", var(--font); font-size: 15px; letter-spacing: 0.14em; }
.theme-sd .p-title span { color: #ffc61a; }
.hazard { position: absolute; left: -10%; right: -10%; height: 46px; top: 50%; margin-top: -23px; transform: rotate(-12deg);
  background: repeating-linear-gradient(-45deg, #ffc61a 0 18px, #121315 18px 36px); background-size: 50.91px 50.91px;
  animation: hazard 1.6s linear infinite; opacity: 0.95; }
.hazard.two { transform: rotate(-12deg) translateY(170px); opacity: 0.3; animation-direction: reverse; }
@keyframes hazard { to { background-position: 50.91px 0; } }
.theme-sd .p-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(18, 19, 21, 0) 60%, #121315); pointer-events: none; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; max-width: 460px; }
.controls div { padding: 12px 14px; border-radius: 12px; background: #1d1f22; border: 1px solid rgba(242, 239, 230, 0.08);
  font-family: "Saira Condensed", var(--font); font-weight: 500; font-size: 16px; color: var(--p-muted); line-height: 1.25; }
.controls b { display: block; font-weight: 700; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; color: #ffc61a; }
.sound { position: absolute; z-index: 4; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 999px; border: 0; background: rgba(12, 12, 16, 0.78); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sound svg { width: 16px; height: 16px; }
.sound .on-icon, .sound.unmuted .off-icon { display: none; }
.sound.unmuted .on-icon { display: block; }

/* Tindero */
.theme-td { --p-bg: #52237d; --p-ink: #fff8ec; --p-muted: #dccbef; --p-accent: #ffc53d; --p-line: rgba(255, 248, 236, 0.3);
  --p-display: "Bricolage Grotesque", var(--font); --p-display-w: 800; --p-display-t: -0.02em; }
.theme-td .p-lede { font-family: "Bricolage Grotesque", var(--font); font-weight: 600; }
.theme-td .p-media::before { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 197, 61, 0.35), rgba(255, 197, 61, 0) 65%); }
.price-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.price-row span { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 15px; }
.price-row span b { color: var(--p-accent); }
.fan { position: relative; width: 470px; height: 560px; }
.fan .phone { position: absolute; --w: 210px; transition: transform 1s var(--ease), rotate 1s var(--ease), translate 1s var(--ease); }
.fan .f1 { left: 0; top: 70px; rotate: -7deg; }
.fan .f2 { left: 130px; top: 0; z-index: 2; --w: 224px; }
.fan .f3 { right: 0; top: 70px; rotate: 7deg; }
.js .fan:not(.in) .f1 { translate: 130px 0; rotate: 0deg; }
.js .fan:not(.in) .f3 { translate: -130px 0; rotate: 0deg; }
.scan-card { position: absolute; z-index: 3; left: 3%; bottom: 36px; width: 270px; border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7); outline: 4px solid #52237d; }
.scan-card video, .scan-card img { width: 100%; aspect-ratio: 600 / 376; object-fit: cover; }
.scan-card p { margin: 0; padding: 8px 12px; background: #fff8ec; color: #2a1240; font-family: "Bricolage Grotesque", var(--font);
  font-weight: 700; font-size: 14px; }

/* ---------- Studio ---------- */
.statement { margin: 0; font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.035em; max-width: 22ch; }
.statement em { font-style: normal; color: var(--cobalt); }
.studio-top { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.studio-top p { margin: 22px 0 0; font-size: 19px; color: var(--muted); max-width: 52ch; }
.principles { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2); }
.principles li { padding: 26px 26px 10px 0; }
.principles li + li { padding-left: 26px; border-left: 1px solid var(--line-2); }
.principles .n { display: block; font-weight: 700; font-size: 14px; color: var(--cobalt); letter-spacing: 0.1em; }
.principles h3 { margin: 40px 0 10px; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .studio-top { grid-template-columns: 1fr; gap: 0; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 22px 0 18px; border-left: 0; }
  .principles li + li { border-top: 1px solid var(--line-2); }
  .principles h3 { margin-top: 14px; }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; margin-top: clamp(80px, 10vw, 140px); background: var(--cobalt); color: #fff;
  padding: clamp(72px, 9vw, 130px) 0; }
.contact .big-mark { position: absolute; right: -60px; top: 50%; width: 560px; height: 580px; margin-top: -290px; color: #fff; opacity: 0.12; }
.contact .sec-tag { color: rgba(255, 255, 255, 0.75); }
.contact .sec-tag b { color: #fff; }
.contact h2 { position: relative; margin: 24px 0 18px; font-weight: 900; font-size: clamp(56px, 9vw, 140px); line-height: 0.88; letter-spacing: -0.055em; }
.contact p { position: relative; margin: 0; font-size: 20px; color: rgba(255, 255, 255, 0.85); max-width: 40ch; }
.mail { position: relative; display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; font-weight: 800;
  font-size: clamp(22px, 3.2vw, 44px); letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(#fff, #fff) 0 100% / 0 3px no-repeat; transition: background-size 0.45s var(--ease); padding-bottom: 6px; }
.mail:hover { background-size: 100% 3px; }
.mail .arrow { width: 0.8em; height: 0.8em; flex: none; transition: transform 0.3s var(--ease); }
.mail:hover .arrow { transform: translateX(6px); }
.contact .btn-light { position: relative; margin-top: 34px; background: #fff; color: var(--cobalt); }
.contact .btn-light:hover { background: var(--ink); color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: rgba(228, 227, 222, 0.75); padding: 56px 0 40px; font-size: 15px; }
.foot .top { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
.foot .brand { color: var(--bg); }
.foot .brand .mark { color: #6e83ff; }
.foot h3 { margin: 0 0 12px; color: var(--bg); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(228, 227, 222, 0.15); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 10px 24px; font-size: 13px; color: rgba(228, 227, 222, 0.55); }
@media (max-width: 860px) { .foot .top { grid-template-columns: 1fr 1fr; } .foot .top > :first-child { grid-column: 1 / -1; } }

/* ---------- Phone-width hero ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 18px; gap: 0; }
  .lede { font-size: 18px; }
  .stage { height: 440px; margin: 36px auto 10px; width: 100%; max-width: 520px; }
  .stage .block { width: 82%; height: 250px; top: 100px; margin-left: -41%; }
  .layer.sd .chip, .layer.td .chip { display: none; }
  .layer.sd { left: 0; top: 70px; }
  .layer.td { right: 0; top: 40px; }
  .layer.cc { margin-left: -86px; top: 0; }
  .layer.cc .phone { --w: 172px; }
  .layer.sd .phone, .layer.td .phone { --w: 150px; }
  .chip { font-size: 10px; letter-spacing: 0.06em; padding: 4px 9px 4px 4px; gap: 6px; bottom: -15px; }
  .chip img { width: 18px; height: 18px; border-radius: 5px; }
}
@media (max-width: 420px) {
  .stage { height: 390px; }
  .layer.cc { margin-left: -74px; }
  .layer.cc .phone { --w: 148px; }
  .layer.sd .phone, .layer.td .phone { --w: 126px; }
  .ticker { font-size: 15px; --ticker-h: 52px; }
  .p-media .phone { --w: 230px !important; }
  .fan { scale: 0.66; transform-origin: 50% 0; margin-bottom: -190px; }
  .controls { grid-template-columns: 1fr; }
}
@media (min-width: 421px) and (max-width: 960px) {
  .fan { scale: 0.82; transform-origin: 50% 0; margin-bottom: -100px; }
}
@media (max-width: 960px) {
  .theme-td .p-media { flex-direction: column; }
  .scan-card { position: relative; left: auto; bottom: auto; width: min(100%, 340px); margin-top: 20px !important; }
}

/* ---------- Product pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--p-bg); color: var(--p-ink); }
.page-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
  min-height: clamp(620px, calc(var(--vh, 100svh) - var(--nav-h)), 900px); padding-top: 40px; padding-bottom: 56px; }
.page-hero .p-copy { padding: 0; }
.page-hero .p-title { font-size: clamp(60px, 7.4vw, 112px); }
.page-hero .p-lede { font-size: clamp(21px, 1.8vw, 26px); }
.page-hero .p-media { min-height: 620px; padding: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--p-muted); }
.back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.back:hover { color: var(--p-ink); }
.band { position: relative; padding: clamp(72px, 9vw, 120px) 0; background: var(--b-bg, var(--p-bg)); color: var(--b-ink, var(--p-ink)); }
.band-head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head .p-kicker { align-self: start; }
.band-head h2 { margin: 0; font-family: var(--p-display); font-weight: var(--p-display-w, 700); font-size: clamp(36px, 4.6vw, 68px); line-height: 1;
  letter-spacing: var(--p-display-t, 0); }
.band-head h2 span { color: var(--p-accent); }
@media (max-width: 760px) { .band-head { grid-template-columns: 1fr; gap: 10px; } }
.gallery { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 28px; justify-items: center; }
.gallery figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.gallery .phone { --w: 236px; }
.gallery figcaption { max-width: 236px; text-align: center; font-weight: 600; font-size: 16px; line-height: 1.35; }
.gallery figcaption b { display: block; color: var(--p-accent); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 1100px) {
  .gallery { display: flex; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px;
    margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 18px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { scroll-snap-align: center; flex: none; }
  .gallery .phone { --w: 210px; }
}
.cards { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; }
.card { padding: 26px; border-radius: 22px; background: var(--c-bg, rgba(255, 255, 255, 0.06)); border: 1px solid var(--c-line, rgba(255, 255, 255, 0.1)); }
.card h3 { margin: 0 0 8px; font-family: var(--p-display); font-weight: var(--p-display-w, 700); font-size: 24px; letter-spacing: var(--p-display-t, 0); line-height: 1.1; }
.card p { margin: 0; color: var(--b-muted, var(--p-muted)); }
.card .tag { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 8px; background: var(--p-accent); color: var(--p-accent-ink, #111);
  font-weight: 700; font-size: 13px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.closing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.closing p { margin: 0; font-size: 19px; color: var(--b-muted, var(--p-muted)); max-width: 52ch; }
.closing .links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.closing .links-row a { padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--b-line, var(--p-line)); text-decoration: none; font-weight: 700; font-size: 15px; }
.closing .links-row a:hover { border-color: var(--p-accent); }
.banner { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8); }
@media (max-width: 960px) {
  .page-hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .page-hero .p-media { min-height: 0; padding: 12px 0 0; }
  .closing { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.doc { background: var(--bg); }
.doc-bar { position: sticky; top: 0; z-index: 10; background: rgba(228, 227, 222, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.doc-bar .wrap { max-width: 820px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-bar .brand { font-size: 15px; }
.doc-bar .brand .mark { width: 28px; height: 30px; }
.doc-bar .app { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.doc-bar .app img { width: 30px; height: 30px; border-radius: 8px; }
.doc main { max-width: 820px; margin: 0 auto; padding: 48px var(--pad) 80px; }
.doc main > * { max-width: 70ch; }
.doc h1 { font-weight: 900; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 10px; }
.doc h2 { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.doc p, .doc li { color: #2a2a30; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc a { color: var(--doc-accent, var(--cobalt)); text-underline-offset: 3px; }
.doc pre { max-width: none; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: #2a2a30;
  background: #efeeea; border: 1px solid var(--line); padding: 20px; border-radius: 14px; }
.doc-td { --doc-accent: #5b2a86; }
.doc-td h1 { color: #2a1240; }
.doc-sd h2 { border-top-color: #ffc61a; border-top-width: 3px; }
.doc-foot { border-top: 1px solid var(--line); }
.doc-foot .wrap { max-width: 820px; padding-top: 22px; padding-bottom: 40px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px 20px; }

/* Screenshot mode (?shot): everything in its final state. */
.shot *, .shot *::before, .shot *::after { animation: none !important; transition: none !important; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .fan:not(.in) .f1, .js .fan:not(.in) .f3 { translate: none; }
  .js .fan:not(.in) .f1 { rotate: -7deg; }
  .js .fan:not(.in) .f3 { rotate: 7deg; }
}
