/* ============================================================
   Remaking Agency portfolio
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f1ec;
  --muted: #a3a09a;
  --faint: #6d6b67;
  --accent: #a8f0cd;
  --accent-ink: #0b2a1d;

  --display: "Inter Tight", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
code { font-size: 0.9em; background: var(--bg-3); padding: 2px 6px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- icons ---------- */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--check { color: var(--accent); }

/* ---------- split text ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.12em; margin: 0 -0.04em -0.12em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.loader__logo { height: 64px; width: auto; }
.loader__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.loader__label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.loader__count { font: 600 clamp(72px, 14vw, 200px)/0.8 var(--display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.loader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- global layers ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 150; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-30px, 20px); }
  50% { transform: translate(20px, -40px); }
  75% { transform: translate(-10px, 30px); }
  100% { transform: translate(0, 0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.cursor, .cursor-dot { display: none; }
.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; top: 0; left: 0; z-index: 160; pointer-events: none;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  border: 2px solid rgba(243, 241, 236, 0.5);
  transform: scale(0.4);
  transition: background 0.3s, border-color 0.3s;
}
.has-cursor .cursor.is-view { background: var(--accent); border-color: var(--accent); }
.has-cursor .cursor.is-link { border-color: var(--accent); }
.cursor__label { font: 600 14px/1 var(--display); color: var(--accent-ink); opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.4s var(--ease); }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.has-cursor .cursor-dot {
  display: block; position: fixed; top: 0; left: 0; z-index: 161; pointer-events: none;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--text);
}
@media (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role=button] { cursor: none; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font: 600 15px/1 var(--body); letter-spacing: -0.005em;
  white-space: nowrap; transition: color 0.4s var(--ease), border-color 0.4s;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--accent); transform: translateY(101%); border-radius: 50% 50% 0 0;
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { color: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn--small { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--text); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }

/* rolling text links */
.roll { display: inline-block; overflow: hidden; vertical-align: top; }
.roll span { display: inline-block; position: relative; transition: transform 0.5s var(--ease); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--text); }
.roll:hover span { transform: translateY(-100%); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: transform 0.6s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav__inner { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { height: 34px; width: auto; transition: transform 0.6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name { font: 600 16px/1 var(--display); letter-spacing: -0.02em; }
.brand__name span { color: var(--muted); font-weight: 500; }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }

/* ---------- type ---------- */
.eyebrow {
  font: 500 13px/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px rgba(168,240,205,0.12); }
.h2 { font-size: clamp(40px, 5.8vw, 84px); line-height: 1; letter-spacing: -0.04em; }
.h2 em, .hero__title em, .contact__title em { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(120px, 15vh, 170px); overflow: hidden; overflow: clip; }
.hero__glow {
  position: absolute; top: 0; left: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(168, 240, 205, 0.13), transparent 70%);
  transform: translate(70vw, 30vh);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center; flex: 1; }
.hero__title { font-size: clamp(50px, 7.2vw, 124px); line-height: 0.92; letter-spacing: -0.05em; font-weight: 600; }
.hero__title em { font-size: 1.08em; letter-spacing: -0.02em; }
.ring { display: inline-block; transform-origin: 30% 80%; }
.hero__sub { margin-top: 32px; max-width: 480px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.55; }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.deck-wrap { position: relative; height: min(62vh, 600px); perspective: 1800px; }
.deck { position: absolute; inset: 0; transform-style: preserve-3d; }
.deck__card {
  position: absolute; top: 50%; left: 50%; width: 70%; margin: 0;
  transform-style: preserve-3d; cursor: pointer;
}
.deck__card .browser { box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06); }
.deck__card .browser__bar { height: 26px; }
.deck__card .dots i { width: 8px; height: 8px; }
.deck__card .browser__url { height: 16px; font-size: 10px; }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.hero__places { font-size: 14px; color: var(--muted); max-width: 640px; }
.hero__places strong { color: var(--text); font-weight: 500; }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 48px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- ticker ---------- */
.ticker { padding: clamp(40px, 7vw, 100px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__row { overflow: hidden; }
.ticker__row + .ticker__row { margin-top: 4px; }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__item { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); }
.ticker__item span { font: 600 clamp(56px, 9.5vw, 160px)/1.05 var(--display); letter-spacing: -0.05em; white-space: nowrap; }
.ticker__item span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 241, 236, 0.55); }
.ticker__item svg { width: clamp(28px, 3.5vw, 56px); height: auto; fill: var(--accent); flex: none; }

/* ---------- showcase (desktop) ---------- */
.showcase { display: none; }
.showcase.on { display: block; }
.showcase__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.showcase__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.showcase__media { position: relative; padding: 0 60px 60px 0; }
.showcase__media .screen { aspect-ratio: 16 / 10; }
.showcase__media .screen img { transition: none; }
.showcase__phone { position: absolute; right: 0; bottom: 0; width: 25%; }
.showcase__phone .phone { width: 100%; border-radius: 32px; padding: 7px; }
.showcase__phone .phone .screen { border-radius: 26px; }
.showcase__phone .phone::before { top: 14px; height: 16px; }
.showcase__info .eyebrow { margin-bottom: 18px; }
.showcase__name { font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.showcase__meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.showcase__list { list-style: none; padding: 0; margin: 32px 0 36px; counter-reset: f; }
.showcase__list li {
  counter-increment: f; display: flex; gap: 16px; align-items: baseline; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 16px; color: var(--faint);
  transition: color 0.5s, padding-left 0.6s var(--ease);
}
.showcase__list li::before { content: counter(f, decimal-leading-zero); font: 500 12px/1 var(--display); color: var(--faint); transition: color 0.5s; }
.showcase__list li.on { color: var(--text); padding-left: 6px; }
.showcase__list li.on::before { color: var(--accent); }
.showcase__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: clamp(100px, 13vw, 180px) 0; position: relative; }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; flex-wrap: wrap; }
.section__note { max-width: 340px; color: var(--muted); font-size: 15px; }

/* ---------- filters ---------- */
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.filters__pill { position: absolute; top: 0; left: 0; height: 42px; border-radius: 999px; background: var(--text); z-index: 0; pointer-events: none; }
.chip {
  position: relative; z-index: 1;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.35s, border-color 0.35s;
}
.chip span { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; transition: color 0.35s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-selected="true"] { color: var(--bg); border-color: transparent; }
.chip[aria-selected="true"] span { color: #6d6b67; }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 44px); }
.card { display: block; text-align: left; width: 100%; perspective: 1400px; }
.card.hide { display: none; }
.card__frame { transform-style: preserve-3d; will-change: transform; }
.card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 22px; }
.card__idx { font: 500 12px/1 var(--display); color: var(--faint); letter-spacing: 0.04em; display: block; margin-bottom: 10px; }
.card__name { font: 600 clamp(20px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: -0.02em; }
.card__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; flex: none;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.card:hover .card__arrow, .card:focus-visible .card__arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }

/* browser frame */
.browser {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 30px 60px -30px rgba(0,0,0,0.8);
  transition: box-shadow 0.6s var(--ease), border-color 0.4s;
}
.browser::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.12), transparent 45%);
  transition: opacity 0.4s;
}
.card:hover .browser { border-color: rgba(255,255,255,0.24); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 60px 90px -30px rgba(0,0,0,0.95); }
.card:hover .browser::after { opacity: 1; }
.browser__bar {
  height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: #1c1c1f; border-bottom: 1px solid var(--line); position: relative; z-index: 2;
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3e; transition: background 0.3s; }
.card:hover .dots i:nth-child(1), .modal .dots i:nth-child(1), .deck .dots i:nth-child(1), .showcase .dots i:nth-child(1) { background: #ff5f57; }
.card:hover .dots i:nth-child(2), .modal .dots i:nth-child(2), .deck .dots i:nth-child(2), .showcase .dots i:nth-child(2) { background: #febc2e; }
.card:hover .dots i:nth-child(3), .modal .dots i:nth-child(3), .deck .dots i:nth-child(3), .showcase .dots i:nth-child(3) { background: #28c840; }
.browser__url {
  flex: 1; max-width: 340px; margin: 0 auto; height: 24px; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: var(--muted);
  font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px;
}
.browser__url .i { width: 11px; height: 11px; }
.browser__spacer { width: 47px; }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.screen--dark { background: var(--bg-3); }
.screen img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  will-change: transform;
  transition: transform var(--back, 0.9s) var(--ease);
}
.scrolling .screen img { transition: transform var(--dur, 8s) linear; transform: translateY(var(--dist, 0)); }

/* ---------- process ---------- */
.process__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.process__head { position: sticky; top: 140px; }
.process__note { color: var(--muted); margin-top: 24px; font-size: 17px; }
.steps { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; }
.steps__line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.steps__line i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.step:first-child { padding-top: 0; }
.step__num {
  font: 600 clamp(64px, 8vw, 128px)/0.8 var(--display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 236, 0.25);
  transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s;
}
.step.active .step__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); margin: 6px 0 14px; }
.step p { color: var(--muted); font-size: 17px; max-width: 460px; }

/* ---------- offer ---------- */
.offer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(32px, 6vw, 88px);
  background:
    radial-gradient(600px circle at var(--mx, 20%) var(--my, 10%), rgba(168, 240, 205, 0.11), transparent 45%),
    var(--bg-2);
}
.offer__price { font: 600 clamp(96px, 15vw, 210px)/0.85 var(--display); letter-spacing: -0.065em; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.offer__cur { font-size: 0.38em; margin: 0.16em 0.06em 0 0; color: var(--muted); letter-spacing: 0; }
.offer__terms { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; margin: 26px 0 38px; font-family: var(--display); letter-spacing: -0.02em; }
.offer__list { list-style: none; margin: 0; padding: 0; align-self: center; }
.offer__list li { display: flex; align-items: center; gap: 14px; padding: 19px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.offer__list li:last-child { border-bottom: 0; }
.offer__list .i--check path { stroke-dasharray: 24; stroke-dashoffset: 0; }

/* ---------- contact ---------- */
.contact__title { font-size: clamp(50px, 9.6vw, 168px); line-height: 0.92; letter-spacing: -0.055em; max-width: 12ch; }
.contact__sub { margin-top: 34px; max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.contact__btns { margin-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1000px; }
.contact__card {
  display: flex; align-items: center; gap: 18px; padding: 28px 30px;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2);
  transition: border-color 0.4s, background 0.4s;
  min-width: 0;
}
.contact__card:hover { border-color: var(--accent); background: #141917; }
.contact__card > .i:first-child { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.5; }
.contact__card span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact__card small { color: var(--muted); font-size: 13px; }
.contact__card strong { font: 600 clamp(16px, 1.45vw, 20px)/1.3 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact__arrow { transition: transform 0.5s var(--ease); color: var(--muted); }
.contact__card:hover .contact__arrow { transform: rotate(45deg); color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 120px) 0 32px; color: var(--faint); font-size: 14px; overflow: hidden; }
.footer__big { display: flex; justify-content: center; margin-bottom: clamp(48px, 7vw, 96px); }
.footer__big img { width: min(420px, 70vw); height: auto; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer a:hover { color: var(--text); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-end; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.5s; }
.modal__panel {
  position: relative; width: 100%; max-width: 1440px; height: calc(100% - 24px);
  background: var(--bg); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 22px 22px 0 0; overflow: hidden; display: flex; flex-direction: column;
  clip-path: circle(0px at var(--cx, 50%) var(--cy, 100%));
  transition: clip-path 0.9s var(--ease-io);
  outline: none;
}
.modal.open .modal__bg { opacity: 1; }
.modal.open .modal__panel { clip-path: circle(160vmax at var(--cx, 50%) var(--cy, 100%)); }
.modal.closing .modal__panel { transition-duration: 0.6s; }
.modal__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal__count { color: var(--muted); font-size: 13px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.modal__close { margin-left: auto; }
.modal__body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }

.detail { padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px) 80px; }
.detail__stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(20px, 3.5vw, 48px); border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(700px 360px at 30% 0%, var(--glow, rgba(168,240,205,0.12)), transparent 70%), var(--bg-2);
  overflow: hidden;
}
.detail__stage .browser { box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9); }
.screen--live { overflow-y: auto; scrollbar-width: none; }
.screen--live::-webkit-scrollbar { display: none; }
.screen--live img { position: static; transition: none; }

.phone {
  width: clamp(200px, 19vw, 270px); aspect-ratio: 390 / 844;
  border-radius: 44px; padding: 10px; background: #050505;
  border: 1px solid #2c2c30;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 2px #1c1c1f, 0 40px 80px -30px rgba(0,0,0,0.95);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; border-radius: 20px; background: #000; z-index: 3;
}
.phone .screen { aspect-ratio: auto; height: 100%; border-radius: 34px; }

.detail__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.detail__cat { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.detail__cat span { display: inline-flex; align-items: center; gap: 7px; }
.detail__cat .i { width: 15px; height: 15px; }
.detail__name { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.detail__summary { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 520px; }
.detail__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.detail h3 { font: 500 13px/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.features { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.features li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 15px; }
.features .i { margin-top: 3px; }
.pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pages span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.detail__block + .detail__block { margin-top: 40px; }
.detail__cta {
  margin-top: 64px; padding: 32px; border-radius: 18px; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.detail__cta p { font: 600 clamp(20px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .deck-wrap { height: min(58vw, 440px); }
  .process__grid { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .offer { grid-template-columns: 1fr; }
  .detail__info { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .detail__stage { grid-template-columns: 1fr; justify-items: center; }
  .detail__stage .browser { width: 100%; }
  .phone { width: min(270px, 72vw); }
}
@media (hover: none) {
  .screen--live { overflow: hidden; }
}
@media (max-width: 560px) {
  .nav__inner { height: 64px; gap: 12px; }
  .brand__name span { display: none; }
  .btn--small { padding: 0 16px; }
  .hero { padding-top: 104px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .deck-wrap { height: 64vw; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }
  .steps { padding-left: 24px; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .features { columns: 1; }
  .contact__btns { grid-template-columns: 1fr; }
  .contact__card { padding: 22px; }
  .browser__bar { height: 32px; padding: 0 10px; }
  .dots i { width: 9px; height: 9px; }
  .browser__spacer { display: none; }
  .modal__panel { height: calc(100% - 12px); border-radius: 18px 18px 0 0; }
  .detail__stage { padding: 16px; border-radius: 16px; }
  .detail__cta { padding: 24px; }
  .detail__cta .btn { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .scroll-hint i::after { animation: none; }
  .scrolling .screen img { transition: none; transform: none; }
  .modal__panel { transition: none; }
}
