/* =========================================================
   TONUS v2 — warm editorial brand
   Paper · Ink · Tangerine
   ========================================================= */
:root {
  --paper: #f3eee5;
  --paper-2: #e9e1d3;
  --card: #fbf8f3;
  --ink: #15120e;
  --ink-2: #26211b;
  --soft: #554d42;
  --muted: #8a8173;
  --line: rgba(21, 18, 14, 0.12);
  --line-strong: rgba(21, 18, 14, 0.22);

  --accent: #ff5a1f;
  --accent-2: #ff8a4c;
  --accent-deep: #c9400c;
  --accent-tint: #ffe3d4;
  --green: #1f8a5b;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --wrap: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --sans: 'Assistant', 'Heebo', -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.display { font-family: var(--serif); font-weight: 900; letter-spacing: -0.01em; }
.accent-text { color: var(--accent); }
.muted-text { color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -12px rgba(255, 90, 31, 0.75); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); background: rgba(21, 18, 14, 0.04); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; color: var(--accent-deep); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--accent-2); }

.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; margin: 0 0 16px; }
.section-head p { margin: 0; font-size: 1.15rem; color: var(--soft); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.nav.scrolled { background: rgba(243, 238, 229, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); direction: ltr; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.logo-word { font-family: var(--sans); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.22em; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 0.98rem; position: relative; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; right: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; min-height: 560px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; color: var(--soft); margin-bottom: 26px;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); animation: blink 2.4s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgba(255, 90, 31, 0); } }

.hero-title { font-size: clamp(2.15rem, 3.85vw, 3.55rem); line-height: 1.08; margin: 0 0 26px; }
.hero-title-line { display: block; }
@media (min-width: 641px) { .hero-title-nowrap { white-space: nowrap; } }
.rotator { position: relative; display: inline-block; color: var(--accent); white-space: nowrap; }
.rotator-word { display: inline-block; transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
.rotator-word.pre { opacity: 0; transform: translateY(0.22em); transition: none; }
.rotator-ghost { position: absolute; inset-inline-start: 0; top: 0; white-space: nowrap; pointer-events: none; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); }
.rotator-ghost.out { opacity: 0; transform: translateY(-0.22em); }
.squiggle { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: 0.24em; color: var(--accent); opacity: 0.55; }

.hero-lead { font-size: 1.2rem; color: var(--soft); max-width: 620px; margin: 0 0 34px; line-height: 1.75; }
.hero-lead strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--soft); font-weight: 600; font-size: 0.95rem; }
.tick { color: var(--accent); font-weight: 900; margin-left: 6px; }

/* Hero visual */
.hero-visual { position: relative; height: 560px; }
.sun {
  position: absolute; width: 420px; height: 420px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #ffb38a 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: 0 40px 90px -30px rgba(201, 64, 12, 0.6);
}
.orbit {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 1.5px dashed var(--line-strong); animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: 0 30px 60px -28px rgba(21, 18, 14, 0.45), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.6s var(--ease); will-change: transform;
}
.fc-robi { width: 300px; top: 40px; right: -10px; animation: bob 7s ease-in-out infinite; }
.fc-alfred { width: 270px; bottom: 60px; right: 40px; animation: bob 8s ease-in-out -2s infinite; }
.fc-stat { width: 200px; top: 190px; left: -10px; animation: bob 9s ease-in-out -4s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

.fc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fc-name { font-weight: 800; line-height: 1.2; }
.fc-meta { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.fc-live { margin-right: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.15); }
.fc-text { margin: 0 0 12px; font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); }
.fc-actions { display: flex; gap: 8px; }
.fc-btn { font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); }
.fc-btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.fc-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { aspect-ratio: 9 / 14; border-radius: 10px; display: flex; align-items: flex-end; padding: 6px; background-size: cover; background-position: center; overflow: hidden; }
.thumb i { font-style: normal; font-size: 0.64rem; font-weight: 800; color: #fff; background: rgba(15, 13, 10, 0.58); backdrop-filter: blur(4px); padding: 2px 6px; border-radius: 6px; }
.t1 { background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 35%, rgba(234, 88, 12, 0.85) 100%), url('./assets/demos/running-shoes.jpg'); }
.t2 { background-image: linear-gradient(180deg, rgba(21, 18, 14, 0.1) 35%, rgba(59, 40, 30, 0.88) 100%), url('./assets/demos/espresso-machine.jpg'); }
.t3 { background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 35%, rgba(15, 23, 42, 0.9) 100%), url('./assets/demos/chronograph-watch.jpg'); }
.fc-big { font-family: var(--serif); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--accent); margin: 6px 0 4px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 12px; }
.bars span { flex: 1; height: var(--h); background: var(--paper-2); border-radius: 4px; }
.bars span:last-child { background: var(--accent); }

/* Marquee */
.marquee {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 42s linear infinite; will-change: transform; }
.marquee-track span {
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem; line-height: 1.15; color: var(--soft);
  display: inline-flex; align-items: center; gap: 32px; padding-inline-end: 32px;
  white-space: nowrap; direction: rtl;
}
.marquee-track span::after {
  content: '✦'; color: var(--accent); font-family: var(--sans); font-size: 0.9rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transform: translateY(0.04em);
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Story (dark) ---------- */
.story { background: var(--ink); color: var(--paper); padding: 130px 0 110px; position: relative; overflow: hidden; }
.story::before {
  content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%; top: -260px; left: -260px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.22), transparent 65%); pointer-events: none;
}
.story-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; align-items: start; position: relative; }
.story-head { position: sticky; top: 120px; }
.story-head h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.05; margin: 0 0 24px; }
.story-head p { color: rgba(243, 238, 229, 0.72); font-size: 1.12rem; margin: 0 0 40px; max-width: 520px; }
.story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid rgba(243, 238, 229, 0.14); padding-top: 28px; }
.story-stats b { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 900; color: var(--accent-2); line-height: 1; margin-bottom: 8px; direction: ltr; text-align: right; }
.story-stats span { font-size: 0.88rem; color: rgba(243, 238, 229, 0.6); line-height: 1.4; display: block; }

.timeline { list-style: none; margin: 0; padding: 0 56px 0 0; position: relative; }
.timeline-line { position: absolute; right: 15px; top: 10px; bottom: 10px; width: 2px; background: rgba(243, 238, 229, 0.12); border-radius: 2px; }
.timeline-fill { position: absolute; top: 0; right: 0; width: 100%; height: 0%; background: linear-gradient(var(--accent-2), var(--accent)); border-radius: 2px; }
.t-item { position: relative; padding: 0 0 64px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ''; position: absolute; right: -48px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--ink);
}
.t-num { font-family: var(--serif); font-weight: 700; font-size: 0.95rem; color: var(--accent-2); letter-spacing: 0.1em; }
.t-item h3 { font-family: var(--serif); font-size: 1.85rem; font-weight: 900; margin: 6px 0 12px; line-height: 1.2; }
.t-item p { margin: 0; color: rgba(243, 238, 229, 0.72); font-size: 1.08rem; max-width: 540px; }

.name-block {
  margin-top: 110px; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center;
  padding: 44px 48px; border-radius: var(--r-lg); border: 1px solid rgba(243, 238, 229, 0.14); background: rgba(243, 238, 229, 0.04);
}
.name-word { display: flex; flex-direction: column; gap: 4px; }
.name-word .display { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.9; letter-spacing: 0.06em; color: var(--paper); direction: ltr; }
.name-phon { color: var(--accent-2); font-weight: 700; font-size: 0.95rem; }
.name-def p { margin: 0; color: rgba(243, 238, 229, 0.72); font-size: 1.1rem; }
.name-def .name-dict { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--paper); line-height: 1.35; margin-bottom: 14px; }
.name-def strong { color: var(--accent-2); }

/* ---------- Principles ---------- */
.principles { padding: 130px 0 40px; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.principle { padding: 34px 28px 10px; border-left: 1px solid var(--line); position: relative; transition: background 0.4s; }
.principle:last-child { border-left: 0; }
.principle:hover { background: var(--card); }
.p-num { display: block; font-size: 3.4rem; line-height: 1; color: var(--accent); margin-bottom: 22px; }
.principle h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 900; line-height: 1.25; margin: 0 0 12px; }
.principle p { margin: 0; color: var(--soft); font-size: 1rem; }

/* ---------- Team ---------- */
.team { padding: 120px 0 60px; }
.member {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
  padding: 64px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); margin-bottom: 36px;
  box-shadow: 0 40px 80px -60px rgba(21, 18, 14, 0.4);
}
.member-alt { background: var(--paper-2); }
.member-alt .member-info { order: 2; }
.member-alt .member-demo { order: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 14px; padding-block: 10px; padding-inline: 10px 26px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); margin-bottom: 28px;
}
.member-alt .badge { background: var(--card); }
.badge img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.badge div { display: flex; flex-direction: column; line-height: 1.25; }
.badge strong { font-size: 1.1rem; }
.badge span { font-size: 0.85rem; color: var(--muted); }
.badge .badge-id { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-deep); }

.member-title { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; margin: 0 0 20px; }
.member-lead { font-size: 1.12rem; color: var(--soft); margin: 0 0 28px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { padding: 16px 0; }
.specs div + div { border-right: 1px solid var(--line); padding-right: 18px; }
.specs dt { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.specs dd { margin: 2px 0 0; font-weight: 800; font-size: 1.08rem; }
.member-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.member-demo { position: relative; display: flex; flex-direction: column; align-items: center; }

/* Robi phone demo */
.demo-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--paper-2); margin-bottom: 22px; gap: 4px; }
.demo-switch button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 0.93rem; color: var(--soft); cursor: pointer; transition: background 0.25s, color 0.25s; }
.demo-switch button.active { background: var(--ink); color: var(--paper); }

.phone-stage { position: relative; display: inline-flex; justify-content: center; }
.phone-replay {
  position: absolute; top: 20px; left: -46px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.85); backdrop-filter: blur(6px);
  color: var(--muted); opacity: 0.72; cursor: pointer; z-index: 4;
  transition: opacity 0.25s var(--ease), color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.phone-replay:hover { opacity: 1; color: var(--ink); border-color: var(--line-strong); background: var(--card); transform: scale(1.06); }
.phone-replay.spin svg { animation: replaySpin 0.55s var(--ease); }
@keyframes replaySpin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.phone {
  width: 320px; height: 560px; border-radius: 46px; background: #ece5dd; border: 10px solid var(--ink);
  box-shadow: 0 50px 80px -40px rgba(21, 18, 14, 0.7); position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 999px; background: var(--ink); z-index: 3; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; background: var(--ink-2); color: var(--paper); }
.phone-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.phone-head strong { display: block; font-size: 0.98rem; line-height: 1.2; }
.phone-head span { font-size: 0.78rem; color: #8fe3b4; }
.phone-body {
  flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth;
  background-image: radial-gradient(rgba(21, 18, 14, 0.05) 1px, transparent 1px); background-size: 14px 14px;
}
.phone-body::-webkit-scrollbar { width: 0; }
.bubble {
  max-width: 82%; padding: 8px 12px 6px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); animation: pop 0.35s var(--ease);
}
.bubble time { display: block; font-size: 0.66rem; color: rgba(21, 18, 14, 0.45); text-align: left; margin-top: 2px; }
.bubble-in { align-self: flex-start; background: #fff; border-top-right-radius: 4px; }
.bubble-out { align-self: flex-end; background: #d9fdd3; border-top-left-radius: 4px; }
.typing { align-self: flex-start; background: #fff; padding: 12px 14px; border-radius: 14px; border-top-right-radius: 4px; display: flex; gap: 4px; animation: pop 0.3s var(--ease); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9186; animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.phone-input { margin: 8px 10px 14px; padding: 10px 16px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.88rem; }
.phone-input i { width: 30px; height: 30px; border-radius: 50%; background: var(--green); }

.lead-toast {
  position: absolute; bottom: 70px; left: -34px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--paper);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); z-index: 4;
}
.lead-toast.show { opacity: 1; transform: none; }
.toast-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 900; }
.lead-toast strong { display: block; font-size: 0.95rem; }
.lead-toast span { font-size: 0.82rem; color: rgba(243, 238, 229, 0.7); }

/* Alfred studio demo */
.studio { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 50px 80px -50px rgba(21, 18, 14, 0.6); }
.studio-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); direction: ltr; }
.studio-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.studio-bar i:first-child { background: var(--accent); }
.studio-bar span { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.studio-body { padding: 22px; }
.studio-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.studio-input-row { display: flex; gap: 8px; margin-bottom: 14px; }
.studio-input-row input {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--paper);
  font-family: inherit; font-size: 0.98rem; color: var(--ink); outline: none; transition: border-color 0.2s;
}
.studio-input-row input:focus { border-color: var(--accent); }
.studio-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.studio-chips .studio-label { margin: 0 0 0 4px; }
.studio-chips button { border: 1px solid var(--line-strong); background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: var(--soft); cursor: pointer; transition: all 0.2s; }
.studio-chips button.active, .studio-chips button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.studio-status { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--soft); padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); margin-bottom: 16px; min-height: 44px; }
.status-text { flex: 1; min-width: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.studio-status.working .status-dot { background: var(--accent); animation: blink 1s infinite; }
.studio-status.done .status-dot { background: var(--green); }
.status-palette { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.status-palette span {
  width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(21, 18, 14, 0.22); transform: scale(0);
  animation: swatchPop 0.35s var(--ease) var(--sd, 0ms) forwards;
}
@keyframes swatchPop { to { transform: scale(1); } }

.ads-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ad {
  container-type: inline-size;
  aspect-ratio: 9 / 16.5; border-radius: 14px; padding: 9px 8px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; background: #0d0b09;
  box-shadow: 0 16px 30px -20px rgba(21, 18, 14, 0.65);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ad:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 24px 40px -18px rgba(21, 18, 14, 0.78); }
.ad-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0;
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.ad:hover .ad-photo { transform: scale(1.06); }
.ad-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ad[data-angle="offer"] .ad-scrim { background: linear-gradient(180deg, rgba(16, 14, 11, 0.14) 0%, rgba(16, 14, 11, 0) 34%, rgba(16, 14, 11, 0.08) 54%, rgba(13, 11, 9, 0.84) 76%, rgba(10, 8, 6, 0.96) 100%); }
.ad[data-angle="premium"] .ad-scrim { background: linear-gradient(180deg, rgba(18, 16, 13, 0.22) 0%, rgba(18, 16, 13, 0) 34%, rgba(18, 16, 13, 0.08) 54%, rgba(13, 11, 9, 0.84) 76%, rgba(10, 8, 6, 0.96) 100%); }
.ad[data-angle="social"] .ad-scrim { background: linear-gradient(180deg, rgba(18, 16, 13, 0.24) 0%, rgba(18, 16, 13, 0) 34%, rgba(18, 16, 13, 0.1) 54%, rgba(13, 11, 9, 0.86) 76%, rgba(10, 8, 6, 0.96) 100%); }

.ad-scanline {
  position: absolute; left: 0; right: 0; top: -10%; height: 3px; z-index: 4; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-2), #fff, var(--accent), transparent);
  box-shadow: 0 0 14px 3px rgba(255, 90, 31, 0.65);
}
.ad.loading { background: linear-gradient(110deg, var(--paper-2) 25%, #f7f3eb 50%, var(--paper-2) 75%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.ad.loading > :not(.ad-scanline) { opacity: 0; }
.ad.loading .ad-scanline { opacity: 1; animation: scanSweep 1.35s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes scanSweep { 0% { top: -6%; } 50% { top: 98%; } 100% { top: -6%; } }

.ad.ready { animation: pop 0.48s var(--ease); }
.ad.ready .ad-photo { animation: photoReveal 0.65s var(--ease) both; }
.ad.ready .ad-top, .ad.ready .ad-bottom { animation: copyReveal 0.45s var(--ease) 0.1s both; }
@keyframes photoReveal { from { filter: blur(8px) brightness(1.1); transform: scale(1.08); } to { filter: none; transform: scale(1); } }
@keyframes copyReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ad-top, .ad-bottom { position: relative; z-index: 2; }
.ad-top { display: flex; justify-content: flex-start; }
.ad-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.ad-tag {
  font-size: clamp(7.5px, 6.2cqi, 9.5px); font-weight: 800; padding: 2.5px 6.5px; border-radius: 999px;
  background: rgba(21, 18, 14, 0.62); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad[data-angle="offer"] .ad-tag { background: var(--accent); border-color: transparent; box-shadow: 0 4px 12px -4px rgba(255, 90, 31, 0.8); }
.ad[data-angle="premium"] .ad-bottom::before { content: ''; width: 18px; height: 1.5px; background: rgba(255, 255, 255, 0.55); margin: 0 auto 1px; border-radius: 2px; }
.ad-quote-box {
  background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 5px 5px 4px;
}
.ad-head { font-family: var(--serif); font-weight: 900; font-size: clamp(9.5px, 8.2cqi, 12.5px); line-height: 1.12; margin: 0; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.ad-sub { font-size: clamp(7.2px, 5.8cqi, 9px); line-height: 1.2; opacity: 0.85; margin: 1px 0 0; text-align: center; }
.ad-cta {
  align-self: center; margin-top: 2px; font-size: clamp(8px, 6.8cqi, 10.5px); font-weight: 800;
  padding: 3.5px 10px; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.55); white-space: nowrap;
}
.ad[data-angle="premium"] .ad-cta { background: var(--paper); }

@container (max-width: 112px) {
  .ad-sub { display: none; }
  .ad-quote-box { padding: 3.5px 4px; }
  .ad-head { font-size: clamp(8.5px, 9.6cqi, 10.5px); line-height: 1.14; }
  .ad-cta { font-size: clamp(7.5px, 9cqi, 9.5px); padding: 2.5px 8px; }
  .ad-tag { font-size: clamp(6.8px, 7.8cqi, 8.5px); padding: 2px 5px; }
}
.ads-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; text-align: center; font-size: 0.76rem; font-weight: 700; color: var(--muted); }

/* ---------- How ---------- */
.how { padding: 100px 0; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 24px; align-items: stretch; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -36px rgba(21, 18, 14, 0.5); }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.6rem; margin-bottom: 22px; }
.step h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; margin: 0 0 10px; }
.step p { margin: 0; color: var(--soft); }
.step-arrow { align-self: center; font-size: 2rem; color: var(--accent); font-weight: 300; }

/* ---------- Value ---------- */
.value { padding: 60px 0 120px; }
.value-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 60px; align-items: center; }
.value-controls h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin: 0 0 12px; }
.value-intro { color: var(--soft); font-size: 1.12rem; margin: 0 0 36px; }
.slider { margin-bottom: 26px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 700; }
.slider-top output { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; color: var(--accent-deep); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--paper-2); outline: none; cursor: pointer; background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: var(--fill, 50%) 100%; background-position: right; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); box-shadow: 0 4px 10px -2px rgba(201, 64, 12, 0.5); transition: transform 0.2s; }
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }

.value-result { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: 46px 42px; position: relative; overflow: hidden; }
.value-result::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; bottom: -180px; left: -120px; background: radial-gradient(circle, rgba(255, 90, 31, 0.4), transparent 65%); }
.value-result > * { position: relative; }
.vr-label { font-size: 0.98rem; color: rgba(243, 238, 229, 0.65); font-weight: 600; }
.vr-total { font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; color: var(--accent-2); margin: 14px 0 30px; }
.vr-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(243, 238, 229, 0.14); border-bottom: 1px solid rgba(243, 238, 229, 0.14); margin-bottom: 30px; }
.vr-split div { padding: 18px 0; }
.vr-split div + div { border-right: 1px solid rgba(243, 238, 229, 0.14); padding-right: 16px; }
.vr-split span { display: block; font-size: 0.8rem; color: rgba(243, 238, 229, 0.6); line-height: 1.35; margin-bottom: 4px; }
.vr-split b { font-size: 1.35rem; font-weight: 800; }
.value-result small { display: block; margin-top: 16px; font-size: 0.76rem; color: rgba(243, 238, 229, 0.45); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { padding: 0 0 110px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 64px;
  background: var(--accent); color: #fff; border-radius: var(--r-xl); position: relative; overflow: hidden;
}
.contact-card::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -240px; right: -160px; border: 2px dashed rgba(255, 255, 255, 0.25); }
.contact-card > * { position: relative; }
.contact-copy h2 { font-size: clamp(2.35rem, 4.4vw, 3.8rem); line-height: 1.05; margin: 0 0 20px; text-wrap: balance; }
.contact-copy p { font-size: 1.15rem; margin: 0 0 26px; color: rgba(255, 255, 255, 0.9); }
.contact-copy ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.contact-copy li::before { content: '✦'; margin-left: 10px; color: var(--ink); }

.contact-form { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 70px -40px rgba(80, 20, 0, 0.7); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 800; color: var(--soft); padding: 0; margin-bottom: 6px; }
.field input[type='text'], .field input[type='tel'] {
  padding: 13px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--paper);
  font-family: inherit; font-size: 1rem; color: var(--ink); outline: none; transition: border-color 0.2s, background 0.2s;
}
.field input:focus { border-color: var(--accent); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--soft); line-height: 1.5; cursor: pointer; }
.form-consent input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.form-consent a { color: var(--accent-deep); font-weight: 700; text-decoration: underline; }
.form-done { display: none; padding: 14px 16px; border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; }
.form-done.show { display: block; animation: pop 0.4s var(--ease); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-tag { color: var(--muted); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-links a { color: var(--soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .story-grid, .member, .value-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; }
  .hero-visual { height: 520px; max-width: 560px; margin: 0 auto; width: 100%; }
  .story-head { position: static; }
  .member-alt .member-info, .member-alt .member-demo { order: initial; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2) { border-left: 0; }
  .principle:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(-90deg); justify-self: center; }
  .nav-links { display: none; }
  .name-block { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 24px; }
  .hero-title { font-size: clamp(1.95rem, 8vw, 2.45rem); line-height: 1.1; }
  .member, .contact-card { padding: 34px 22px; border-radius: var(--r-lg); }
  .hero-visual { height: 470px; transform: scale(0.86); transform-origin: top center; margin-bottom: -60px; }
  .sun { width: 300px; height: 300px; }
  .orbit { width: 380px; height: 380px; }
  .fc-robi { right: 0; width: 270px; }
  .fc-stat { left: 0; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-left: 0 !important; border-top: 1px solid var(--line); }
  .story-stats, .vr-split, .specs { grid-template-columns: 1fr; }
  .specs div + div, .vr-split div + div { border-right: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .vr-split div + div { border-top-color: rgba(243, 238, 229, 0.14); }
  .field-row { grid-template-columns: 1fr; }
  .phone { width: 290px; height: 520px; }
  .phone-replay { left: 2px; top: -14px; width: 32px; height: 32px; z-index: 5; background: var(--card); opacity: 0.9; }
  .lead-toast { left: 0; bottom: 62px; }
  .studio-body { padding: 14px; }
  .studio-input-row input { padding: 9px 12px; font-size: 0.85rem; }
  .ads-row { gap: 6px; }
  .ad { padding: 6px 5px; border-radius: 11px; }
  .name-block { padding: 30px 24px; }
  .value-result { padding: 34px 24px; }
  .marquee { margin-top: 40px; padding: 14px 0; }
  .marquee-track span { font-size: 1.15rem; gap: 22px; padding-inline-end: 22px; }
  .marquee-track span::after { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

