:root {
  --bg: #050505;
  --bg-elev: #0e0e10;
  --text: #f5f2ef;
  --muted: #9a928e;
  --line: rgba(255,255,255,.08);
  --accent: #c81e3a;
  --accent-2: #ff2d4f;
  --accent-soft: rgba(200,30,58,.2);
  --radius: 24px;
  --font: "Inter", system-ui, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.noise {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 0; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  pointer-events: none;
  position: fixed; width: 520px; height: 520px; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,30,58,.18), transparent 68%);
  transform: translate(-50%, -50%);
  left: 50%; top: 20%;
  filter: blur(8px);
  transition: opacity .4s ease;
  opacity: .9;
}

.site-header, main, .site-footer, .mobile-nav { position: relative; z-index: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(18px, 4vw, 40px);
  backdrop-filter: blur(18px);
  background: rgba(5,5,5,.7);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px;
}
.brand-logo { width: clamp(112px, 16vw, 180px); height: auto; }
.brand:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 4px; }
.nav { display: flex; gap: 26px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; color: var(--muted);
}
.lang-toggle .is-active { color: var(--text); }
.lang-toggle .sep { opacity: .4; }
.menu-btn { display: none; width: 42px; height: 42px; place-items: center; gap: 6px; flex-direction: column; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); transition: .25s ease; }
.menu-btn.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 76px 0 0 auto; z-index: 49;
  display: flex; flex-direction: column; gap: 12px;
  width: min(360px, 88vw); padding: 32px 24px max(32px, env(safe-area-inset-bottom));
  background: #0a0a0c; border-left: 1px solid var(--line);
  font-size: 22px; font-weight: 700; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), visibility .35s;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav a { padding: 12px 0; min-height: 48px; }
.menu-backdrop { position: fixed; inset: 76px 0 0; z-index: 48; background: rgba(0,0,0,.65); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu-backdrop.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mobile-nav, .menu-backdrop { transition: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); transition: .25s cubic-bezier(.2,.7,.2,1);
}
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), #8f1028);
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 44px rgba(200,30,58,.35);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.03); }

/* —— HERO —— */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tear-hero { height: 230svh; position: relative; background: var(--bg); }
.tear-stage { position: sticky; top: 76px; height: calc(100svh - 76px); overflow: hidden; }
.tear-art { display: block; width: 100%; height: 100%; }
.tear-tagline { position: absolute; top: 9%; left: 16px; right: 16px; margin: 0; text-align: center; color: var(--muted); font-size: clamp(11px, 1.3vw, 15px); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; }
.tear-skip { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 20px; font-size: 13px; white-space: nowrap; color: var(--text); }
.tear-skip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.hero.hero-details { min-height: auto; padding-top: 64px; padding-bottom: 72px; }
@media (prefers-reduced-motion: reduce) { .tear-hero { height: calc(100svh - 76px); } .tear-stage { position: relative; top: 0; } }
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 14vw, 160px) clamp(18px, 4vw, 40px) 60px;
  min-height: 88vh; display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  color: var(--accent-2); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin: 0 0 28px;
}
.hero-title {
  margin: 0; font-size: clamp(56px, 13vw, 128px);
  line-height: .88; letter-spacing: -.07em; font-weight: 900;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(100deg, #fff 0%, var(--accent-2) 48%, #ff8fa3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 540px; margin: 32px 0 0; color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-scroll {
  margin-top: auto; padding-top: 72px;
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
}
.hero-scroll i {
  display: block; width: 48px; height: 1px; background: var(--accent);
  position: relative; overflow: hidden;
}
.hero-scroll i::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  animation: scan 1.8s ease-in-out infinite;
}
@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* —— IMPACT —— */
.impact {
  padding: clamp(40px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.impact-track {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap; padding: 0 clamp(18px, 4vw, 40px);
}
.impact-word {
  font-size: clamp(28px, 7vw, 72px); font-weight: 900;
  letter-spacing: -.05em; line-height: 1; text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.impact-word.accent { color: var(--accent-2); text-shadow: 0 0 60px rgba(255,45,79,.35); }
.impact-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 20px rgba(200,30,58,.6);
}

/* —— SECTIONS —— */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) clamp(18px, 4vw, 40px);
}
.section-kicker {
  margin: 0 0 14px; color: var(--accent-2); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.section-head h2 {
  margin: 0; max-width: 760px;
  font-size: clamp(32px, 5.5vw, 56px); letter-spacing: -.045em; line-height: 1.05; font-weight: 900;
}

.about-grid {
  margin-top: 40px; max-width: 760px;
}
.about-lead { margin: 0; color: #d8d1cd; font-size: clamp(17px, 2vw, 20px); }
.stack-marquee { padding: 24px 0 32px; border-bottom: 1px solid var(--line); }
.stack-toolbar { max-width: var(--max); margin: 0 auto 20px; padding-inline: clamp(18px, 4vw, 40px); text-align: center; }
.stack-toolbar .section-kicker { margin: 0; }
.stack-window { overflow: hidden; width: 100%; }
.stack-track { display: flex; width: max-content; animation: stack-scroll 45s linear infinite; }
.stack-list { display: flex; align-items: center; flex-shrink: 0; gap: 16px; list-style: none; margin: 0; padding: 0 16px 0 0; }
.stack-list li { white-space: nowrap; padding: 14px 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); color: var(--text); font-size: clamp(16px, 2vw, 20px); font-weight: 600; }
.stack-list .stack-tool { color: var(--accent-2); border-color: var(--accent-soft); }
@keyframes stack-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .stack-track { animation: none; width: 100%; }
  .stack-list { flex-wrap: wrap; justify-content: center; width: 100%; padding: 0 18px; }
  .stack-list[aria-hidden="true"] { display: none; }
}

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -.05em;
  color: var(--accent-2); line-height: 1;
}
.stat-num.soft { color: var(--text); font-size: clamp(24px, 3.5vw, 36px); }
.stat-label { color: var(--muted); font-size: 13px; }

/* —— STICKY INTRO —— */
.sticky-intro {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px clamp(18px, 4vw, 40px);
  background:
    radial-gradient(700px 400px at 50% 40%, rgba(200,30,58,.18), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.sticky-intro-pin {
  position: sticky; top: 28vh; text-align: center; max-width: 900px; margin: 0 auto;
}
.mega-title {
  margin: 0; font-size: clamp(64px, 16vw, 160px);
  line-height: .88; letter-spacing: -.07em; font-weight: 900;
}
.mega-title span { display: block; }
.mega-title .accent { color: var(--accent-2); }
.sticky-lead {
  max-width: 560px; margin: 28px auto 0; color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.role-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px;
}
.role-pills span {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ddd6d2;
}

/* —— CASE BLOCKS —— */
.case-block {
  display: block;
}
.case-copy { max-width: 760px; margin-inline: auto; }
.case-index {
  margin: 0 0 10px; color: var(--accent); font-weight: 800;
  letter-spacing: .12em; font-size: 13px;
}
.case-copy h3 {
  margin: 0 0 16px; font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -.045em; font-weight: 900; line-height: 1.05;
}
.case-desc { margin: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 65ch; }
.case-link {
  display: inline-flex; font-weight: 800; font-size: 15px;
  color: #fff; border-bottom: 2px solid rgba(255,45,79,.65); padding-bottom: 3px;
  transition: color .2s ease;
}
.case-link:hover { color: var(--accent-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags span {
  font-size: 12px; color: #cfc7c3; padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 600;
}

.frame {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: #111114;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  will-change: transform;
}
.frame.desk img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.frame.desk.small img { aspect-ratio: 16/11; }
/* Full phone-in-frame mockups (already include device + glow — no extra bezel) */
.mockup {
  margin: 0;
  width: min(240px, 30vw);
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  will-change: transform;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.55));
}
.mockup img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 853 / 1844;
  object-fit: contain;
  background: transparent;
}

.shot-grid {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 14px; align-items: end;
}
.shot-grid .frame.desk:first-child { grid-row: span 2; }
.phone-row {
  display: flex; justify-content: center; align-items: flex-end; gap: 8px;
  padding: 8px 0 4px;
}
.phone-row .mockup:nth-child(2) { transform: translateY(-28px); }

/* —— BOT —— */
.case-bot { display: block; }
.bot-card {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: clamp(36px, 7vw, 72px);
  background: linear-gradient(160deg, #141416 0%, #0a0a0c 100%);
  border: 1px solid var(--line);
  text-align: center; max-width: 820px; margin: 0 auto;
}
.bot-glow {
  position: absolute; inset: -20% 20% auto; height: 280px;
  background: radial-gradient(circle, rgba(255,45,79,.28), transparent 70%);
  pointer-events: none;
}
.bot-card .case-index, .bot-card h3, .bot-card .case-desc, .bot-card .tags, .bot-card .bot-links {
  position: relative;
}
.bot-card h3 {
  margin: 0 0 16px; font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -.05em; font-weight: 900;
}
.bot-card .case-desc { margin: 0 auto 24px; max-width: 48ch; }
.bot-card .tags { justify-content: center; }
.bot-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* —— PROCESS —— */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 44px;
}
.process-card {
  padding: 28px 22px; border-radius: 22px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease;
}
.process-card:hover {
  border-color: rgba(255,45,79,.4);
  transform: translateY(-4px);
}
.process-n {
  display: block; color: var(--accent); font-weight: 800;
  letter-spacing: .1em; font-size: 12px; margin-bottom: 18px;
}
.process-card h4 {
  margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.03em;
}
.process-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* —— CONTACT —— */
.journey { position: relative; padding-block: 48px; }
.journey-pin { padding: 40px clamp(18px, 4vw, 64px); }
.journey-heading { max-width: var(--max); margin: 0 auto 28px; }
.journey-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -.045em; }
.journey-heading > p:last-child { color: var(--muted); }
.journey-window { overflow: hidden; }
.journey-track { list-style: none; margin: 0; padding: 0; }
.journey-item { position: relative; padding: 0 0 32px 30px; border-left: 1px solid var(--line); }
.journey-item::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; left: -5px; top: 8px; background: var(--accent-2); }
.journey-copy { max-width: 360px; }
.journey-number { color: var(--accent-2); font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.journey-copy h3 { margin: 10px 0 12px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.1; }
.journey-copy p { margin: 0; color: #d8d1cd; font-size: 16px; line-height: 1.6; }
.journey.is-animated { padding: 0; }
.is-animated .journey-pin { position: sticky; top: 76px; height: calc(100vh - 76px); height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; }
.is-animated .journey-heading { width: 100%; }
.is-animated .journey-track { display: flex; width: max-content; padding: 0 28px; will-change: transform; }
.is-animated .journey-item { width: clamp(290px, 30vw, 420px); height: 360px; padding: 0 44px 0 20px; border-left: 0; }
.is-animated .journey-item::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--line); }
.is-animated .journey-item::before { top: calc(50% - 5px); left: 0; z-index: 1; transition: box-shadow .3s; }
.is-animated .journey-copy { position: relative; padding-left: 16px; border-left: 1px solid var(--accent-soft); }
.is-animated .journey-item:nth-child(odd) .journey-copy { position: absolute; bottom: 50%; padding-bottom: 20px; padding-right: 44px; }
.is-animated .journey-item:nth-child(even) .journey-copy { position: absolute; top: 50%; padding-top: 20px; padding-right: 44px; }
.is-animated .journey-item.is-reached::after { background: var(--accent-2); }
.is-animated .journey-item.is-reached::before { box-shadow: 0 0 20px var(--accent-soft); }

.contact { padding-bottom: 110px; }
.contact-card {
  border-radius: 32px; padding: clamp(40px, 7vw, 80px);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(200,30,58,.32), transparent 60%),
    linear-gradient(180deg, #151518, #0a0a0c);
  border: 1px solid var(--line);
  text-align: center;
}
.contact-card h2 {
  margin: 0 auto 14px; max-width: 14ch;
  font-size: clamp(36px, 7vw, 64px); letter-spacing: -.05em; line-height: 1.02; font-weight: 900;
}
.contact-card > p { color: var(--muted); }
.contact-card .btn { margin-top: 26px; }
.contact-note { margin-top: 16px; font-size: 13px; }

.site-footer {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 40px) 32px;
  color: var(--muted); font-size: 14px;
}
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-socials, .footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--bg-elev); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s; }
.footer-social:hover { background: var(--accent-soft); border-color: var(--accent-2); transform: translateY(-2px); }
.footer-bottom { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.footer-nav { grid-column: 2; grid-row: 1; }
.footer-nav ul { justify-content: flex-end; gap: 8px 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-underline-offset: 5px; }
.footer-nav a:hover { color: var(--accent-2); text-decoration: underline; }
.footer-copyright { grid-column: 1; grid-row: 1; line-height: 1.7; }
.footer-copyright p { margin: 0; }
.footer-copyright p + p { margin-top: 4px; }
.site-footer a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
@media (max-width: 700px) {
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-nav, .footer-copyright { grid-column: 1; grid-row: auto; }
  .footer-nav ul { justify-content: flex-start; }
}

/* —— REVEALS —— */
.reveal, .reveal-up, .reveal-scale {
  opacity: 0;
  transition:
    opacity .95s cubic-bezier(.16,1,.3,1),
    transform 1.05s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal { transform: translateY(48px); }
.reveal-up { transform: translateY(72px); }
.reveal-scale { transform: translateY(40px) scale(.94); }
.reveal.is-in, .reveal-up.is-in, .reveal-scale.is-in {
  opacity: 1; transform: none;
}
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .hero-scroll i::after { animation: none; }
  .parallax { transform: none !important; }
}

@media (max-width: 980px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; height: 76px; padding-block: 0; }
  .site-header > .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-actions { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-actions > .btn { display: none; }
  .lang-toggle { min-height: 44px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; grid-column: 3; grid-row: 1; justify-self: end; width: 44px; height: 44px; }
  .about-grid, .case-block, .case-alt { grid-template-columns: 1fr; }
  .case-alt .case-visual, .case-alt .case-copy { order: initial; }
  .stat-row, .process-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-grid .frame.desk:first-child { grid-row: auto; }
  .phone-row { gap: 4px; }
  .mockup { width: min(170px, 32vw); }
  .phone-row .mockup:nth-child(2) { transform: translateY(-16px); }
  .phone-row .mockup:nth-child(3) { display: none; }
}

@media (max-width: 560px) {
  .site-header { gap: 8px; padding-inline: 12px; }
  .header-actions { gap: 6px; }
  .header-actions > .btn { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .impact-dot { display: none; }
}
