/* =========================================================
   ECOMPRO — shared styles
   ========================================================= */
:root {
  --bg: #e8ecf4;
  --bg-2: #f1f4fa;
  --bg-3: #dde2ee;
  --surface: #fcfcff;
  --text: #080c10;
  --text-2: #5a6270;
  --text-3: #8a92a2;
  --line: rgba(8, 12, 16, 0.08);
  --accent: #6366f1;
  --accent-ink: #fff;
  --accent-soft: rgba(99, 102, 241, 0.1);
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --violet: #4f46e5;
  --blue: var(--violet);
  --blue-hover: #4338ca;
  --link: var(--text);
  --link-dark: var(--cyan-light);
  --dark: #0b1020;
  --dark-2: #121a2e;
  --dark-3: #1a2340;
  --brand: linear-gradient(120deg, #0891b2 0%, #4f46e5 55%, #7c3aed 100%);
  --brand-light: linear-gradient(120deg, #22d3ee 0%, #818cf8 55%, #a78bfa 100%);
  --grad: linear-gradient(120deg, #06b6d4 0%, #6366f1 55%, #7c3aed 100%);
  --grad-warm: linear-gradient(120deg, #f59e0b 0%, #ec4899 55%, #7c3aed 100%);
  --shadow: 0 2px 8px rgba(8, 12, 16, 0.04), 0 16px 40px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(8, 12, 16, 0.06), 0 28px 56px rgba(15, 23, 42, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --font: "Outfit", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-mono: var(--font);
  --radius: 20px;
  --radius-lg: 28px;
  --gap: 16px;
  --maxw: 1180px;
  --gnav-h: 72px;
  --lnav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--gnav-h) + 12px); }
html.has-lnav { scroll-padding-top: calc(var(--gnav-h) + var(--lnav-h) + 12px); }
body {
  margin: 0;
  padding-top: var(--gnav-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.grad--warm { background-image: var(--grad-warm); }
.on-dark .grad, .theme-dark .grad, .section--dark .grad, .htile--dark .grad, .contact .grad { background-image: var(--brand-light); }
.on-dark .grad--warm, .theme-dark .grad--warm { background-image: linear-gradient(120deg, #fbbf24, #f472b6 55%, #a78bfa); }

.mono, .eyebrow, .hero__eyebrow, .htile__eyebrow, .tile__kicker, .feature__kicker, .story__num, .case__cat, .mega__label, .cmodal__cols h4 {
  font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.55); }
.btn--primary::after { content: "→"; font-weight: 500; transition: transform 0.35s var(--ease); }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 12px 30px -8px rgba(6, 182, 212, 0.6); transform: translateY(-1px); }
.btn--primary:hover::after { transform: translateX(4px); }
.btn--outline { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.on-dark .btn--outline, .theme-dark .btn--outline { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff; box-shadow: none; }
.on-dark .btn--outline:hover, .theme-dark .btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link { color: var(--accent); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.link span { font-size: 1.1em; line-height: 1; transition: transform 0.3s var(--ease); }
.link:hover { color: var(--violet); }
.link:hover span { transform: translateX(3px); }
.on-dark .link, .theme-dark .link { color: var(--cyan-light); }
.on-dark .link:hover, .theme-dark .link:hover { color: #fff; }

.logo-word { font-family: var(--font); font-weight: 800; letter-spacing: -0.04em; background: var(--brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* =========================================================
   Global nav + megamenu
   ========================================================= */
.gnav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(232, 236, 244, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
  color: var(--text);
}
.gnav.is-scrolled:not(.is-dark) { border-bottom-color: var(--line); }
.gnav.is-mega, .gnav.is-mobile { background: var(--bg); border-bottom-color: var(--line); }
.gnav__bar { max-width: calc(var(--maxw) + 56px); height: var(--gnav-h); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 24px; position: relative; z-index: 2; }
.gnav__logo { font-family: var(--font); font-size: 24px; font-weight: 800; letter-spacing: -0.04em; background: var(--brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.gnav__items { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.gnav__link { display: block; font-size: 14px; font-weight: 500; padding: 8px 16px; color: var(--text-2); transition: color 0.2s, background 0.2s; border-radius: 999px; }
.gnav__link:hover, .gnav__link.is-hover { color: var(--text); background: var(--bg-2); }
.gnav__link.is-current { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.gnav__cta { font-size: 14px; font-weight: 600; background: var(--grad); color: #fff; padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.6); transition: box-shadow 0.3s, transform 0.3s var(--ease); white-space: nowrap; }
.gnav__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(6, 182, 212, 0.65); }
.gnav__burger { display: none; width: 36px; height: 36px; position: relative; }
.gnav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.gnav__burger span:first-child { top: 14px; }
.gnav__burger span:last-child { top: 21px; }
.gnav__burger[aria-expanded="true"] span:first-child { top: 17.5px; transform: rotate(45deg); }
.gnav__burger[aria-expanded="true"] span:last-child { top: 17.5px; transform: rotate(-45deg); }

.gnav.is-dark { background: rgba(11, 16, 32, 0.88); color: #eef1f8; }
.gnav.is-clear:not(.is-mega):not(.is-mobile) { background: rgba(3, 5, 11, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gnav.is-dark.is-scrolled, .gnav.is-dark.is-mega { border-bottom-color: rgba(255, 255, 255, 0.1); }
.gnav.is-dark .gnav__logo { background-image: var(--brand-light); }
.gnav.is-dark .gnav__items { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.gnav.is-dark .gnav__link { color: rgba(255, 255, 255, 0.7); }
.gnav.is-dark .gnav__link:hover, .gnav.is-dark .gnav__link.is-hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.gnav.is-dark .gnav__link.is-current { color: var(--cyan-light); background: rgba(34, 211, 238, 0.12); }
.gnav.is-dark.is-mega, .gnav.is-dark.is-mobile { background: var(--dark); }

/* desktop flyout */
.mega { position: absolute; top: var(--gnav-h); left: 0; right: 0; height: 0; overflow: hidden; visibility: hidden; background: var(--bg); border-bottom: 1px solid var(--line); transition: height 0.5s var(--ease), visibility 0s 0.5s; }
.gnav.is-mega .mega { visibility: visible; transition: height 0.5s var(--ease), visibility 0s; }
.mega__inner { max-width: calc(var(--maxw) + 56px); margin: 0 auto; padding: 36px 28px 52px; }
.mega__root, .mega__back { display: none; }
.mega__panel { display: none; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gap); }
.mega__panel.is-active { display: grid; }
.mega__col { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.mega__label { color: var(--text-3); margin-bottom: 14px; }
.mega__col--main ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega__col--main li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--text); transition: background 0.2s, color 0.2s; }
.mega__col--main li a::after { content: "→"; color: var(--text-3); transition: transform 0.3s var(--ease), color 0.2s; }
.mega__col--main li a:hover { background: var(--accent-soft); color: var(--accent); }
.mega__col--main li a:hover::after { color: var(--accent); transform: translateX(3px); }
.mega__col--main li:first-child { grid-column: 1 / -1; }
.mega__col--main li:first-child a { background: var(--dark); color: #fff; font-size: 18px; padding: 16px 18px; }
.mega__col--main li:first-child a::after { color: var(--cyan-light); }
.mega__small li a { display: inline-block; font-size: 14px; font-weight: 500; line-height: 2.1; color: var(--text); }
.mega__small li a:hover { color: var(--accent); }
.gnav.is-mega .mega__panel.is-active .mega__label,
.gnav.is-mega .mega__panel.is-active li { animation: megaIn 0.5s var(--ease) both; animation-delay: calc(0.04s + var(--i, 0) * 0.025s); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.gnav.is-dark .mega { background: var(--dark); border-bottom-color: rgba(255, 255, 255, 0.1); }
.gnav.is-dark .mega__col { background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.gnav.is-dark .mega__label { color: #7a8396; }
.gnav.is-dark .mega__col a { color: #eef1f8; }
.gnav.is-dark .mega__col--main li a { background: rgba(255, 255, 255, 0.05); }
.gnav.is-dark .mega__col--main li:first-child a { background: var(--grad); }
.gnav.is-dark .mega__col--main li:first-child a::after { color: #fff; }
.gnav.is-dark .mega__small a:hover { color: var(--cyan-light); }

.mega-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(8, 12, 16, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; }
.mega-scrim.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s, visibility 0s; }

/* =========================================================
   Local nav (service pages)
   ========================================================= */
.lnav { position: sticky; top: var(--gnav-h); z-index: 80; height: var(--lnav-h); background: rgba(232, 236, 244, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.lnav__inner { max-width: calc(var(--maxw) + 56px); height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 24px; }
.lnav__title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.lnav__title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.lnav__links { display: flex; gap: 2px; }
.lnav__links a { font-size: 13px; font-weight: 500; color: var(--text-2); padding: 6px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.lnav__links a:hover { color: var(--text); }
.lnav__links a.is-active { color: var(--accent); background: var(--accent-soft); }
.lnav__btn { font-size: 13px; font-weight: 600; background: var(--grad); color: #fff; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.theme-dark .lnav { background: rgba(11, 16, 32, 0.9); border-color: rgba(255, 255, 255, 0.1); color: #eef1f8; }
.theme-dark .lnav__links a { color: rgba(255, 255, 255, 0.65); }
.theme-dark .lnav__links a:hover { color: #fff; }
.theme-dark .lnav__links a.is-active { color: var(--cyan-light); background: rgba(34, 211, 238, 0.12); }

/* =========================================================
   Motion primitives
   ========================================================= */
.intro { opacity: 0; animation: intro 1.4s var(--ease) forwards; animation-delay: calc(0.15s + var(--i, 0) * 0.12s); }
@keyframes intro { from { opacity: 0; transform: translateY(32px); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
.fx { opacity: 0; transform: translateY(60px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.fx.is-in { opacity: 1; transform: none; }

/* =========================================================
   Typography blocks
   ========================================================= */
.section { padding: 110px 28px; }
.section--tight { padding-top: 70px; }
.section--gray { background: transparent; }
.section--dark { background: var(--dark); color: #eef1f8; }
.section-head { max-width: var(--maxw); margin: 0 auto 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px 64px; align-items: end; }
.section-head > :not(.display):not(.section-lead) { grid-column: 1 / -1; }
.section-head > .display { grid-column: 1; }
.section-head > .display::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--grad); margin-bottom: 22px; }
.section-head .section-lead { grid-column: 2; margin: 0; }
.eyebrow { color: var(--accent); margin-bottom: 4px; display: inline-flex; align-items: center; gap: 10px; }
.hero__eyebrow, .feature__kicker, .tile__kicker { display: inline-flex; align-items: center; gap: 8px; }
.hero__eyebrow::before, .feature__kicker::before, .tile__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--cyan-light); }
.display { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.display--md { font-size: clamp(32px, 4vw, 52px); }
.section-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 760px; margin: 24px auto 0; }
.on-dark .section-lead, .section--dark .section-lead { color: #9aa3b5; }

.statement { max-width: var(--maxw); margin: 0 auto; font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -0.035em; }
.statement span { color: var(--text-3); }
.on-dark .statement span, .theme-dark .statement span { color: #5f6779; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 28px 0; background: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(99, 102, 241, 0.14), transparent 60%), radial-gradient(ellipse 40% 60% at 0% 100%, rgba(6, 182, 212, 0.1), transparent 60%), var(--surface); border-bottom: 1px solid var(--line); }
.hero--short { padding-bottom: clamp(56px, 8vw, 96px); }
.hero__copy { max-width: var(--maxw); margin: 0 auto; will-change: transform, opacity; }
.hero__eyebrow { color: var(--accent); }
.hero__title { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 800; margin: 20px 0 24px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 620px; }
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.theme-dark .hero__eyebrow, .on-dark .hero__eyebrow { color: var(--cyan-light); }
.theme-dark .hero__lead, .on-dark .hero__lead { color: #9aa3b5; }

/* home hero slider */
.hslider { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--gnav-h)); min-height: max(600px, 100svh); padding-top: var(--gnav-h); background: #03050b; color: #fff; display: flex; flex-direction: column; touch-action: pan-y; }
.hslider__fluid, .hslider__flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hslider__fluid { z-index: -2; }
.hslider__flow { z-index: 0; }
.hslider__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(3, 5, 11, 0.6) 0%, rgba(3, 5, 11, 0) 18%), linear-gradient(90deg, rgba(3, 5, 11, 0.92) 0%, rgba(3, 5, 11, 0.8) 38%, rgba(3, 5, 11, 0.3) 70%, rgba(3, 5, 11, 0.05) 100%), linear-gradient(0deg, rgba(3, 5, 11, 0.85) 0%, rgba(3, 5, 11, 0) 30%); }
.hslider__slides { position: relative; z-index: 1; flex: 1; display: grid; align-items: center; width: 100%; max-width: calc(var(--maxw) + 56px); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 28px 32px; will-change: transform, opacity; }
.hslide { grid-area: 1 / 1; max-width: 620px; visibility: hidden; pointer-events: none; }
.hslide.is-active { visibility: visible; pointer-events: auto; }
.hslide > * { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease); }
.hslide.is-active > * { opacity: 1; transform: none; filter: none; transition-duration: 1s; }
.hslide.is-active > :nth-child(2) { transition-delay: 0.08s; }
.hslide.is-active > :nth-child(3) { transition-delay: 0.16s; }
.hslide.is-active > :nth-child(4) { transition-delay: 0.24s; }
.hslide__title { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.05em; font-weight: 800; margin: 20px 0 22px; text-wrap: balance; }
.hslide__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: rgba(238, 241, 248, 0.78); max-width: 540px; }
.btn--glass { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); }

.hslider__bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; width: 100%; max-width: calc(var(--maxw) + 56px); margin: 0 auto; padding: 0 28px clamp(20px, 3vw, 36px); }
.hslider__tabs { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hslider__tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; text-align: left; color: rgba(255, 255, 255, 0.6); transition: background 0.3s, color 0.3s; }
.hslider__tab span { font-size: 12px; color: rgba(255, 255, 255, 0.4); font-variant-numeric: tabular-nums; }
.hslider__tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.hslider__tab.is-active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.hslider__tab.is-active span { color: var(--cyan-light); }
.hslider__tab i { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hslider__tab i::after { content: ""; position: absolute; inset: 0; background: var(--brand-light); transform: scaleX(0); transform-origin: left; }
.hslider__tab.is-active i::after { animation: hsProgress var(--hs-dur, 7s) linear forwards; }
.hslider.is-paused .hslider__tab.is-active i::after { animation-play-state: paused; }
.hslider.is-static .hslider__tab.is-active i::after { animation: none; transform: scaleX(1); }
@keyframes hsProgress { to { transform: scaleX(1); } }
.hslider__ctrl { display: flex; gap: 6px; }
.hslider__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; line-height: 1; padding-bottom: 3px; color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background 0.2s; }
.hslider__btn:hover { background: rgba(255, 255, 255, 0.18); }
.hslider__pause { width: 12px; height: 14px; margin-top: 3px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.hslider.is-static .hslider__pause { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 4px; }

/* =========================================================
   Device + dashboard
   ========================================================= */
.device-wrap { perspective: 2000px; margin: 80px auto 0; max-width: 1180px; padding-bottom: 40px; }
.device { --p: 0; transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--p)) * 28deg)) scale(calc(0.86 + var(--p) * 0.14)) translateY(calc((1 - var(--p)) * 40px)); will-change: transform; }
.device__screen { container-type: inline-size; aspect-ratio: 16 / 10; border-radius: 22px; padding: 1.1%; background: #0b0b0c; box-shadow: 0 0 0 1px #2a2a2c inset, 0 50px 100px -30px rgba(0, 0, 0, 0.35); }
.device__base { height: 18px; margin: 0 -6%; border-radius: 0 0 22px 22px; background: linear-gradient(#e3e3e6, #b9b9be 60%, #8e8e93); position: relative; }
.device__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 7px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #a1a1a6; }

.dash { font-size: 1.32cqw; height: 100%; border-radius: 12px; overflow: hidden; background: var(--bg-2); display: grid; grid-template-columns: 15em 1fr; text-align: left; letter-spacing: -0.01em; }
.dash__side { background: #fff; border-right: 1px solid #e8e8ed; padding: 1.6em 1.1em; }
.dash__brand { display: flex; align-items: center; gap: 0.6em; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 2em; font-size: 1.05em; }
.dash__brand i { width: 1.6em; height: 1.6em; border-radius: 0.45em; background: var(--grad); }
.dash__side li { display: flex; align-items: center; gap: 0.8em; padding: 0.65em 0.8em; border-radius: 0.6em; color: var(--text-2); margin-bottom: 0.2em; }
.dash__side li b { width: 1em; height: 1em; border-radius: 0.3em; background: #d2d2d7; }
.dash__side li.is-on { background: var(--bg-2); color: var(--text); font-weight: 600; }
.dash__side li.is-on b { background: var(--blue); }
.dash__main { padding: 1.8em 2em; display: flex; flex-direction: column; gap: 1.4em; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: flex-end; }
.dash__top small { display: block; color: var(--text-2); font-size: 0.9em; }
.dash__top strong { font-size: 1.7em; letter-spacing: -0.03em; }
.dash__live { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.85em; background: #fff; padding: 0.5em 0.9em; border-radius: 99em; color: var(--text-2); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.dash__live i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #30d158; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); } 70% { box-shadow: 0 0 0 0.6em rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
.dash__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.stat { background: #fff; border-radius: 1em; padding: 1.1em 1.2em; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.stat small { display: block; color: var(--text-2); font-size: 0.85em; }
.stat strong { display: block; font-size: 2em; letter-spacing: -0.04em; margin: 0.15em 0; font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; font-size: 0.8em; color: #1f9d4c; }
.stat--accent { background: var(--text); color: #fff; }
.stat--accent small, .stat--accent em { color: #a1a1a6; }
.stat--accent strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash__panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1em; flex: 1; min-height: 0; }
.panel { background: #fff; border-radius: 1em; padding: 1.2em; box-shadow: 0 1px 2px rgba(0,0,0,0.04); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.panel__head { font-weight: 600; margin-bottom: 0.8em; }
.orders li { display: grid; grid-template-columns: 5em 1fr auto; gap: 1em; align-items: center; padding: 0.62em 0; border-top: 1px solid #f0f0f3; font-size: 0.92em; }
.orders li span:first-child { font-variant-numeric: tabular-nums; color: var(--text-2); }
.chip { font-size: 0.82em; padding: 0.3em 0.75em; border-radius: 99em; font-weight: 500; transition: background 0.5s, color 0.5s; }
.chip--new { background: #e8f2ff; color: #0066cc; }
.chip--inv { background: #f3eaff; color: #8e44d9; }
.chip--pack { background: #fff4e0; color: #b26a00; }
.chip--sent { background: #e5f8ec; color: #1f8a46; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 0.7em; padding-top: 0.5em; }
.bars i { flex: 1; height: var(--h); border-radius: 0.4em 0.4em 0.2em 0.2em; background: linear-gradient(#6366f1, #06b6d4); transform-origin: bottom; transform: scaleY(0.08); transition: transform 1.4s var(--ease); transition-delay: calc(var(--n, 0) * 0.06s); }
.bars i:nth-child(odd) { background: linear-gradient(#7c3aed, #6366f1); }
.is-live .bars i { transform: scaleY(1); }

/* =========================================================
   Home: service tiles
   ========================================================= */
.htiles { counter-reset: svc; scroll-margin-top: var(--gnav-h); }
.htile { --edge: max(28px, calc((100% - var(--maxw)) / 2)); --g: clamp(32px, 6vw, 96px); position: relative; overflow: hidden; min-height: 640px; display: grid; grid-template-columns: var(--edge) minmax(0, 0.9fr) var(--g) minmax(0, 1.1fr) var(--edge); align-items: center; background: var(--surface); }
.htile--rev { grid-template-columns: var(--edge) minmax(0, 1.1fr) var(--g) minmax(0, 0.9fr) var(--edge); }
.htile__copy { grid-area: 1 / 2; }
.htile__visual { grid-area: 1 / 4; }
.htile--rev .htile__copy { grid-area: 1 / 4; }
.htile--rev .htile__visual { grid-area: 1 / 2; }
.htile__visual--bleed { grid-column: 4 / 6; }
.htile--rev .htile__visual--bleed { grid-column: 1 / 3; }
.htile--white { background: radial-gradient(ellipse 45% 70% at 100% 50%, rgba(99, 102, 241, 0.1), transparent 60%), var(--surface); }
.htile--light { background: radial-gradient(ellipse 45% 70% at 100% 50%, rgba(6, 182, 212, 0.12), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.htile--dark { background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(99, 102, 241, 0.25), transparent 60%), var(--dark); color: #eef1f8; }
.htile__copy { padding: 110px 0; }
.htile__eyebrow { color: var(--text-2); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.htile__eyebrow::before { counter-increment: svc; content: "0" counter(svc); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; letter-spacing: 0; }
.htile--dark .htile__eyebrow { color: #9aa3b5; }
.htile__title { font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.htile__sub { font-size: 18px; line-height: 1.55; margin-top: 16px; color: var(--text-2); max-width: 44ch; }
.htile--dark .htile__sub { color: #9aa3b5; }
.htile__links { display: flex; align-items: center; gap: 10px 20px; margin-top: 30px; flex-wrap: wrap; }
.htile__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.htile__visual .notifs { margin: 0; }
.htile__visual--bottom { align-self: stretch; align-items: flex-end; padding-top: 80px; }
.htile__visual--bleed { align-self: stretch; }
.htile__visual--bleed .htile__studio { position: absolute; inset: 0; min-height: 0; }
.art-id.htile__id { position: relative; width: 100%; min-height: 360px; display: grid; place-items: center; background: transparent; perspective: 1000px; }
.htile__studio { position: relative; width: 100%; min-height: 320px; }

/* notifications (automation tile) */
.notifs { width: min(420px, 100%); display: grid; gap: 10px; margin-bottom: 70px; text-align: left; }
.notif { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-16px) scale(0.96); animation: notif 9s var(--ease) infinite; animation-delay: calc(var(--n) * 1.1s); }
.notif__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.notif__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.notif small { display: block; font-size: 13px; color: var(--text-2); line-height: 1.3; }
.notif time { font-size: 12px; color: var(--text-3); align-self: start; }
@keyframes notif { 0% { opacity: 0; transform: translateY(-16px) scale(0.96); } 6% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* =========================================================
   Home: all-services index
   ========================================================= */
.svc-index { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.svc-index > * { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.svc-index h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.svc-index h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.svc-index h3 a:hover { color: var(--accent); }
.svc-index li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; transition: color 0.2s, padding 0.3s var(--ease); }
.svc-index li a::after { content: "→"; color: var(--text-3); transition: transform 0.3s var(--ease); }
.svc-index li a:hover { color: var(--accent); padding-left: 4px; }
.svc-index li a:hover::after { transform: translateX(3px); color: var(--accent); }

/* =========================================================
   Story (sticky visual + scrolling text)
   ========================================================= */
.story { padding: 140px 22px 80px; }
.story__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story__visual { position: sticky; top: calc(50vh - 220px); height: 520px; order: 2; }
.story__steps { order: 1; }
.story__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.18; transition: opacity 0.6s var(--ease); max-width: 440px; }
.story__step.is-active { opacity: 1; }
.story__num { color: var(--text-3); margin-bottom: 16px; }
.story__step.is-active .story__num { color: var(--text); }
.story__step h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-bottom: 18px; }
.story__step p { font-size: 19px; color: var(--text-2); line-height: 1.45; }

.flow { position: relative; height: 100%; display: grid; place-items: center; --glow: #6366f1; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px) 0 0 / 22px 22px, var(--dark); box-shadow: var(--shadow); }
.flow__glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 65%); opacity: 0.55; filter: blur(50px); transition: background 0.8s; }
.flow__card { position: relative; width: min(420px, calc(100% - 48px)); background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.flow__head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--text-2); margin-bottom: 18px; }
.flow__head b { color: var(--text); }
.flow__status { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: var(--bg-2); color: var(--text-2); transition: background 0.5s, color 0.5s; }
.flow__status.is-done { background: rgba(6, 182, 212, 0.14); color: #0891b2; }
.flow__list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; transition: background 0.6s var(--ease), opacity 0.6s; opacity: 0.4; }
.flow__list li b { display: block; font-size: 16px; font-weight: 600; }
.flow__list li small { display: block; font-size: 13px; color: var(--text-2); line-height: 1.3; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease), opacity 0.6s; }
.flow__dot { width: 34px; height: 34px; border-radius: 10px; font-family: var(--font-mono); display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--bg-2); color: var(--text-2); transition: background 0.5s, color 0.5s, transform 0.5s var(--ease); }
.flow__list li.is-done { opacity: 1; }
.flow__list li.is-done .flow__dot { background: var(--cyan); color: #fff; font-size: 0; }
.flow__list li.is-done .flow__dot::after { content: "✓"; font-size: 14px; }
.flow__list li.is-active { opacity: 1; background: var(--bg-2); }
.flow__list li.is-active .flow__dot { background: var(--grad); color: #fff; transform: scale(1.08); box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.7); }
.flow__list li.is-active small { max-height: 40px; opacity: 1; margin-top: 2px; }
.flow__progress { height: 6px; border-radius: 3px; background: var(--bg-2); margin-top: 18px; overflow: hidden; }
.flow__progress i { display: block; height: 100%; width: 20%; background: var(--grad); border-radius: 3px; transition: width 0.8s var(--ease); }

/* =========================================================
   Word-by-word reveal
   ========================================================= */
.reveal-text { height: 260vh; }
.reveal-text__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 22px; }
.reveal-text__p { max-width: var(--maxw); font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; }
.reveal-text__p .w { opacity: 0.14; transition: opacity 0.35s var(--ease-apple); }
.reveal-text__p .w.is-on { opacity: 1; }
.reveal-text--dark { background: var(--dark); color: #eef1f8; }.reveal-text--dark .reveal-text__p .w { opacity: 0.2; }
.reveal-text--dark .reveal-text__p .w.is-on { opacity: 1; }

/* =========================================================
   Bento tiles
   ========================================================= */
.bento { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.tile { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 44px; overflow: hidden; display: flex; flex-direction: column; gap: 36px; position: relative; min-height: 520px; }
.tile--wide { grid-column: 1 / -1; }
.tile--white { background: var(--surface); }
.tile--dark { background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(6, 182, 212, 0.22), transparent 60%), var(--dark); color: #eef1f8; }
.tile--dark .tile__copy p:not(.tile__kicker) { color: #9aa3b5; }
.tile__kicker { color: var(--text-3); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.tile__copy h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; margin-bottom: 14px; }
.tile__copy p:not(.tile__kicker) { font-size: 17px; color: var(--text-2); max-width: 520px; }
.tile--split { flex-direction: row; align-items: center; min-height: 0; gap: 56px; }
.tile--split .tile__copy { flex: 1; }

/* devices */
.devices { position: relative; height: 340px; width: 100%; margin-top: auto; }
.devices__laptop { position: absolute; left: 50%; bottom: -60px; width: min(640px, 86%); aspect-ratio: 16 / 10; transform: translateX(-50%) translateY(40px); background: #0b0b0c; border-radius: 16px 16px 0 0; padding: 10px; transition: transform 1.4s var(--ease); }
.devices__phone { position: absolute; left: calc(50% + min(240px, 32%)); bottom: -20px; width: 150px; aspect-ratio: 9 / 19; background: #0b0b0c; border-radius: 26px; padding: 7px; box-shadow: 0 30px 50px -20px rgba(0,0,0,0.4); transform: translateY(120px) rotate(6deg); opacity: 0; transition: transform 1.4s var(--ease) 0.25s, opacity 1s 0.25s; }
.is-in .devices__laptop { transform: translateX(-50%); }
.is-in .devices__phone { transform: none; opacity: 1; }
.hero-devices { position: relative; max-width: var(--maxw); height: 420px; margin: var(--gap) auto 0; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(99, 102, 241, 0.35), transparent 70%), var(--dark); box-shadow: var(--shadow); }
.hero-devices .devices { height: 100%; }
.hero-devices .devices__laptop, .hero-devices .devices__phone { bottom: 0; }
.devices--dark .devices__laptop, .devices--dark .devices__phone { background: #2c2c2e; }

.mini-site { height: 100%; background: #fff; border-radius: 8px; padding: 6% 6%; display: flex; flex-direction: column; gap: 7%; overflow: hidden; }
.mini-site--phone { border-radius: 20px; padding: 18% 10% 10%; gap: 5%; }
.mini-site__nav { display: flex; gap: 6%; align-items: center; }
.mini-site__nav i { width: 14%; height: 8px; border-radius: 4px; background: var(--text); }
.mini-site__nav span { width: 9%; height: 6px; border-radius: 3px; background: #d2d2d7; }
.mini-site__nav span:first-of-type { margin-left: auto; }
.mini-site--phone .mini-site__nav i { width: 35%; }
.mini-site__hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4% 0; }
.mini-site__hero b { height: 14px; width: 60%; border-radius: 7px; background: var(--text); }
.mini-site__hero b + b { width: 40%; background: var(--grad); }
.mini-site__hero em { width: 18%; height: 14px; border-radius: 7px; background: var(--blue); margin-top: 6px; }
.mini-site--phone .mini-site__hero b { height: 9px; width: 80%; }
.mini-site--phone .mini-site__hero b + b { width: 55%; }
.mini-site--phone .mini-site__hero em { width: 40%; height: 10px; }
.mini-site__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; flex: 1; }
.mini-site--phone .mini-site__grid { grid-template-columns: 1fr; }
.mini-site__grid i { border-radius: 8px; background: var(--bg-2); }

/* build (WordPress) */
.build { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 60px 80px 50px; gap: 10px; }
.build i { border-radius: 12px; background: #2c2c2e; transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0)); opacity: 0; transition: transform 1.2s var(--ease), opacity 0.8s, background 0.8s; }
.build i:nth-child(1) { grid-column: 1 / -1; --tx: -40px; --ty: -30px; --r: -8deg; }
.build i:nth-child(2) { grid-column: 1 / 3; --tx: 30px; --ty: 40px; --r: 6deg; transition-delay: 0.08s; }
.build i:nth-child(3) { --tx: 50px; --ty: -20px; --r: 12deg; transition-delay: 0.16s; }
.build i:nth-child(4) { --tx: -30px; --ty: 30px; --r: -10deg; transition-delay: 0.24s; }
.build i:nth-child(5) { grid-column: 2 / -1; --tx: 40px; --ty: 30px; --r: 8deg; transition-delay: 0.32s; }
.is-in .build i { --tx: 0; --ty: 0; --r: 0deg; opacity: 1; }
.is-in .build i:nth-child(1) { background: var(--grad); }
.is-in .build i:nth-child(3) { background: var(--cyan); }

/* api */
.api { position: relative; margin-top: auto; height: 180px; }
.api__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.api__lines path { fill: none; stroke: #c7c7cc; stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.api__node, .api__hub { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(0.6); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.6s; }
.api__node { background: var(--surface); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); }
.api__node--dark { background: var(--dark); color: #fff; }
.api__hub { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.6); }
.is-in .api__node, .is-in .api__hub { transform: translate(-50%, -50%); opacity: 1; }
.is-in .api__hub { transition-delay: 0.2s; }
.is-in .api__node--dark { transition-delay: 0.35s; }

/* product card */
.pcard { flex: 0 0 300px; background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); transform: translateY(40px) rotate(3deg); transition: transform 1.4s var(--ease); }
.is-in .pcard { transform: rotate(-2deg); }
.pcard__img { height: 220px; border-radius: 14px; background: radial-gradient(circle at 50% 80%, #e8e8ed 0 25%, var(--bg-2) 60%); display: grid; place-items: center; }
.pcard__body { padding: 16px 6px 4px; display: grid; gap: 10px; }
.pcard__title { height: 14px; width: 70%; border-radius: 7px; background: var(--text); }
.pcard__line { height: 8px; width: 90%; border-radius: 4px; background: #e8e8ed; }
.pcard__variants { display: flex; gap: 8px; }
.pcard__variants i { width: 22px; height: 22px; border-radius: 50%; background: #1d1d1f; box-shadow: 0 0 0 2px #fff; }
.pcard__variants i:nth-child(2) { background: #c9a46a; }
.pcard__variants i:nth-child(3) { background: #8e8e93; }
.pcard__variants i.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--blue); }
.pcard__row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.pcard__price { width: 60px; height: 16px; border-radius: 8px; background: var(--text); }
.pcard__btn { font-size: 12px; font-weight: 600; background: var(--grad); color: #fff; padding: 7px 14px; border-radius: 999px; }

/* =========================================================
   Bottle (CSS product) + studio + zoom
   ========================================================= */
.bottle { position: relative; display: block; font-size: var(--s, 10px); width: 4.4em; height: 10em; margin-top: 2.2em; border-radius: 1.7em 1.7em 0.8em 0.8em; background: linear-gradient(90deg, #121214 0%, #3d3d42 16%, #1b1b1e 32%, #0c0c0e 68%, #2e2e33 86%, #0f0f11 100%); box-shadow: 0 2.2em 2.4em -1.2em rgba(0, 0, 0, 0.55); }
.bottle::before { content: ""; position: absolute; left: 1.3em; width: 1.8em; top: -2.2em; height: 2.4em; border-radius: 0.35em 0.35em 0.1em 0.1em; background: linear-gradient(90deg, #8a6533, #f3dcae 30%, #c9a46a 55%, #7a5629); }
.bottle::after { content: ""; position: absolute; left: 0.55em; right: 0.55em; top: 3.4em; height: 3.8em; border-radius: 0.35em; background: linear-gradient(90deg, #d9d9de, #fff 35%, #ececf0 70%, #c7c7cc); }
.bottle--sm { --s: 13px; }
.bottle--md { --s: clamp(13px, 1.6vw, 18px); }
.bottle--lg { --s: min(3.4vw, 3.6vh, 40px); }
.bottle--dull { filter: grayscale(1) brightness(1.4) contrast(0.6); transform: rotate(-7deg); }

.studio { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 35%, #3a3a3f 0%, #111113 60%, #000 100%); display: grid; place-items: center; }
.studio__light { position: absolute; top: -20%; left: 50%; width: 60%; height: 80%; transform: translateX(-50%); background: radial-gradient(ellipse at top, rgba(255,255,255,0.22), transparent 65%); }
.studio .bottle { z-index: 1; }
.studio__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(transparent, rgba(255,255,255,0.04)); border-top: 1px solid rgba(255,255,255,0.05); }

.zoom { height: 240vh; }
.zoom__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.zoom__frame { --p: 0; position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p)) * 22%) calc((1 - var(--p)) * 26%) round calc((1 - var(--p)) * 44px)); will-change: clip-path; }
.zoom__frame .studio { transform: scale(calc(1.25 - var(--p) * 0.25)); }
.zoom__frame .studio .bottle { margin-top: -8vh; }
.zoom__caption { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; color: #eef1f8; opacity: calc((var(--p) - 0.55) * 2.4); transform: translateY(calc((1 - var(--p)) * 40px)); padding: 0 22px; }
.zoom__caption p { font-size: clamp(19px, 1.8vw, 24px); color: #a1a1a6; max-width: 640px; margin: 14px auto 0; }

/* =========================================================
   Responsive morph (desktop → phone)
   ========================================================= */
.morph { height: 300vh; }
.morph__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: calc(var(--gnav-h) + var(--lnav-h)) 22px 30px; overflow: hidden; }
.morph__copy { text-align: center; }
.morph__labels { position: relative; height: 28px; margin-top: 14px; }
.morph__labels span { position: absolute; left: 50%; transform: translate(-50%, 10px); white-space: nowrap; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #fff; opacity: 0; transition: opacity 0.5s, transform 0.6s var(--ease); }
.morph__labels span.is-on { opacity: 1; transform: translate(-50%, 0); }
.morph__frame { flex: none; background: #0b0b0c; padding: 10px; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.35); will-change: width, height; }
.msite { container-type: inline-size; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.msite__nav { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid #f0f0f3; }
.msite__logo { width: 70px; height: 10px; border-radius: 5px; background: var(--text); }
.msite__links { display: flex; gap: 14px; margin-left: auto; }
.msite__links i { width: 40px; height: 7px; border-radius: 4px; background: #d2d2d7; }
.msite__burger { display: none; width: 22px; height: 12px; margin-left: auto; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); }
.msite__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 22px; align-items: center; }
.msite__text { display: grid; gap: 10px; }
.msite__text b { height: 16px; border-radius: 8px; background: var(--text); width: 90%; }
.msite__text b:nth-child(2) { width: 60%; background: var(--grad); }
.msite__text span { height: 8px; border-radius: 4px; background: #e8e8ed; width: 80%; }
.msite__text em { width: 110px; height: 30px; border-radius: 99px; background: var(--blue); margin-top: 6px; }
.msite__img { aspect-ratio: 4 / 3; border-radius: 14px; background: radial-gradient(circle at 50% 75%, #e3e3e8 0 20%, var(--bg-2) 55%); display: grid; place-items: center; }
.msite__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 22px 22px; }
.msite__grid i { aspect-ratio: 1; border-radius: 12px; background: var(--bg-2); }
@container (max-width: 640px) {
  .msite__hero { grid-template-columns: 1fr; }
  .msite__img { order: -1; }
  .msite__grid { grid-template-columns: repeat(2, 1fr); }
}
@container (max-width: 420px) {
  .msite__links { display: none; }
  .msite__burger { display: block; }
  .msite__hero { padding: 18px 16px; gap: 16px; }
  .msite__grid { padding: 0 16px 16px; gap: 10px; }
}

/* =========================================================
   Feature rows (alternating)
   ========================================================= */
.features { max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--gap); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.feature > :not(.feature__media) { padding: 24px 32px 24px 0; }
.feature--rev > :not(.feature__media) { padding: 24px 0 24px 32px; }
.feature--rev .feature__media { order: 2; }
.feature__media { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; }
.feature__kicker { color: var(--accent); margin-bottom: 16px; }
.feature h2, .feature h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 20px; }
.feature p { font-size: 17px; color: var(--text-2); line-height: 1.6; }
.feature .link { margin-top: 24px; }
.on-dark .feature, .theme-dark .feature { background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.on-dark .feature p { color: #9aa3b5; }
.on-dark .feature__kicker { color: var(--cyan-light); }

/* design arts */
.art-id { background: radial-gradient(circle at 30% 20%, #1e3a8a, #0b1020 70%); perspective: 1000px; }
.art-id__card { position: absolute; width: 300px; height: 180px; border-radius: 16px; background: linear-gradient(135deg, #f5f5f7, #d2d2d7); display: flex; flex-direction: column; justify-content: space-between; padding: 22px; box-shadow: 0 40px 60px -20px rgba(0,0,0,0.7); transform: rotateX(18deg) rotateZ(-8deg) translate(20px, 10px); transition: transform 1.2s var(--ease); }
.art-id__card span { font-weight: 700; font-size: 64px; line-height: 0.8; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-id__card small { font-weight: 700; letter-spacing: 0.2em; font-size: 12px; color: #1d1d1f; }
.art-id__card--back { background: var(--grad); transform: rotateX(18deg) rotateZ(6deg) translate(-40px, -30px); }
.is-in .art-id__card, .art-id:hover .art-id__card { transform: rotateX(8deg) rotateZ(-4deg) translate(40px, 20px); }
.is-in .art-id__card--back, .art-id:hover .art-id__card--back { transform: rotateX(8deg) rotateZ(10deg) translate(-60px, -40px); }

.art-social { background: radial-gradient(circle at 70% 30%, #3b1f6b, #0b1020 70%); display: grid; grid-template-columns: repeat(3, 110px); gap: 14px; place-content: center; place-items: stretch; }
.art-social i { height: 110px; border-radius: 18px; background: #2c2c2e; transition: transform 1.2s var(--ease); }
.art-social i:nth-child(1) { background: var(--grad); }
.art-social i:nth-child(3) { background: var(--grad-warm); }
.art-social i:nth-child(5) { background: linear-gradient(135deg, #22d3ee, #6366f1); }
.art-social i:nth-child(odd) { transform: translateY(-30px); }
.art-social i:nth-child(even) { transform: translateY(30px); }
.is-in .art-social i { transform: none; }

.art-book { background: radial-gradient(circle at 50% 40%, #155e75, #0b1020 70%); perspective: 1200px; }
.art-book__page { position: absolute; width: 180px; height: 250px; top: 50%; margin-top: -125px; background: #f5f5f7; box-shadow: 0 30px 50px -20px rgba(0,0,0,0.8); transition: transform 1.4s var(--ease); }
.art-book__page--l { right: 50%; border-radius: 10px 2px 2px 10px; transform-origin: right center; transform: rotateY(80deg); background: linear-gradient(90deg, #f5f5f7 80%, #d2d2d7); }
.art-book__page--l::before { content: ""; position: absolute; inset: 22px 22px 110px; border-radius: 8px; background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.art-book__page--r { left: 50%; border-radius: 2px 10px 10px 2px; transform-origin: left center; transform: rotateY(-20deg); background: repeating-linear-gradient(#f5f5f7 0 18px, #e1e1e6 18px 20px); background-clip: content-box; padding: 26px 22px; background-color: #f5f5f7; }
.is-in .art-book__page--l { transform: rotateY(18deg); }
.is-in .art-book__page--r { transform: rotateY(-14deg); }

/* photo media */
.photo-media--white { background: radial-gradient(ellipse 60% 18% at 50% 74%, #e3e3e8 0 40%, transparent 70%), #fff; box-shadow: inset 0 0 0 1px #ececf0; }
.photo-media--scene { background: linear-gradient(#f7d9c4 0 64%, #d9a888 64% 100%); }
.photo-media--scene .bottle { margin-top: 0; top: 4%; }
.scene__sun { position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #fff4e3; top: 12%; right: 14%; box-shadow: 0 0 80px 20px rgba(255, 244, 227, 0.7); }
.scene__plant { position: absolute; left: 18%; bottom: 36%; width: 12%; height: 32%; border-radius: 50% 50% 10px 10px / 70% 70% 10px 10px; background: linear-gradient(90deg, #3e6b3a, #5b8c4f); }
.scene__plant::after { content: ""; position: absolute; left: -15%; right: -15%; bottom: -26%; height: 30%; border-radius: 4px 4px 14px 14px; background: #efe5d6; }
.feature__media .bottle { transition: transform 1.4s var(--ease); }
.feature__media:hover .bottle:not(.bottle--dull) { transform: scale(1.05) translateY(-6px); }

.compare { cursor: ew-resize; }
.compare__before, .compare__after { position: absolute; inset: 0; display: grid; place-items: center; }
.compare__before { background: linear-gradient(160deg, #8f8a7e, #6d6a61); }
.compare__before::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(0,0,0,0.15) 0 2px, transparent 3px) 0 0 / 40px 40px, radial-gradient(circle at 70% 60%, rgba(255,255,255,0.15) 0 1px, transparent 2px) 0 0 / 30px 30px; }
.compare__after { background: #fff; clip-path: inset(0 0 0 var(--x)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,0.06); pointer-events: none; }
.compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; font-size: 16px; font-weight: 600; color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,0.15); letter-spacing: 0.1em; }
.compare__label { position: absolute; top: 16px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,0.5); color: #fff; pointer-events: none; }
.compare__label--l { left: 16px; }
.compare__label--r { right: 16px; background: rgba(0,0,0,0.06); color: var(--text); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* parallax helpers */
[data-speed] { will-change: transform; }

/* design hero */
.dhero { position: relative; min-height: calc(100svh - var(--gnav-h) - var(--lnav-h)); margin: 0; display: grid; place-items: center; padding: 80px 28px; overflow: hidden; color: #eef1f8; text-align: center; background: radial-gradient(rgba(255,255,255,0.07) 1.2px, transparent 1.2px) 0 0 / 26px 26px, radial-gradient(ellipse 60% 60% at 20% 0%, rgba(6, 182, 212, 0.25), transparent 60%), radial-gradient(ellipse 60% 60% at 90% 100%, rgba(124, 58, 237, 0.3), transparent 60%), var(--dark-2); }
.dhero__shapes { position: absolute; inset: 0; width: 100%; max-width: calc(var(--maxw) + 120px); margin: 0 auto; pointer-events: none; }
.dhero__shape { position: absolute; border-radius: 24px; opacity: 0.92; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.dhero__shape--1 { width: 220px; height: 140px; left: 6%; top: 16%; background: var(--grad); transform: rotate(-12deg); }
.dhero__shape--2 { width: 150px; height: 150px; right: 8%; top: 12%; border-radius: 50%; background: var(--grad-warm); }
.dhero__shape--3 { width: 180px; height: 240px; left: 10%; bottom: 8%; background: var(--surface); transform: rotate(8deg); }
.dhero__shape--4 { width: 260px; height: 160px; right: 6%; bottom: 14%; background: linear-gradient(135deg, #22d3ee, #4f46e5); transform: rotate(10deg); }
.dhero__shape--5 { width: 90px; height: 90px; left: 46%; top: 8%; border-radius: 22px; background: var(--dark-3); transform: rotate(18deg); }
.dhero .hero__copy { position: relative; z-index: 1; }
.dhero .hero__lead { margin: 0 auto; }
.dhero .hero__actions { justify-content: center; }
.dhero .hero__title { max-width: none; }

/* =========================================================
   Case studies
   ========================================================= */
.case-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); justify-self: start; }
.case-filter { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; color: var(--text-2); transition: background 0.25s, color 0.25s; }
.case-filter:hover { color: var(--text); background: var(--bg-2); }
.case-filter.is-on { background: var(--grad); color: #fff; }

.case { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); color: inherit; text-align: left; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.case__art { aspect-ratio: 16 / 10; position: relative; margin: 10px 10px 0; border-radius: var(--radius); background: linear-gradient(135deg, var(--a), var(--b)); display: grid; place-items: center; overflow: hidden; }
.case__art svg { width: 30%; height: auto; fill: none; stroke: rgba(255,255,255,0.92); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 1s var(--ease); }
.case:hover .case__art svg { transform: scale(1.08) rotate(-3deg); }
.case__art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.case__art--shot::after { background-image: linear-gradient(to top, rgba(8, 12, 16, 0.45), transparent 42%); background-size: auto; }
.case__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 1s var(--ease); }
.case:hover .case__shot { transform: scale(1.04); transition: transform 1s var(--ease); }
.case__industry { position: absolute; left: 14px; bottom: 14px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff; padding: 5px 12px; border-radius: 999px; background: rgba(8, 12, 16, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.case__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case__cat { color: var(--accent); }
.case__body h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; }
.case__body p { color: var(--text-2); font-size: 15px; }
.case__host { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0.01em; }
.case__more { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; }
.case:hover .case__more { color: var(--violet); }
.cmodal__tech { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.cmodal__tech li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--bg-2); color: var(--text); font-weight: 500; border: 1px solid var(--line); }
.cmodal h4.case__cat { margin-top: 28px; }

.cases-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.cases-empty { text-align: center; color: var(--text-2); }
.cases-empty a, .section-head .section-lead a { color: var(--accent); font-weight: 600; }
.cases-all { max-width: var(--maxw); margin: 28px auto 0; }

/* carousel */
.carousel { margin-inline: -28px; }
.carousel__track { --edge: max(28px, calc((100% - var(--maxw)) / 2)); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px var(--edge) 40px; scroll-padding: 0 var(--edge); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 min(82vw, 370px); scroll-snap-align: start; }
.carousel__controls { max-width: calc(var(--maxw) + 56px); margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; }
.carousel__dots { display: flex; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.carousel__dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--bg-3); transition: width 0.5s var(--ease), background 0.3s; cursor: pointer; }
.carousel__dots i.is-on { width: 32px; background: var(--grad); }
.carousel__btns { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-size: 24px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.round-btn:hover:not(:disabled) { background: var(--grad); color: #fff; }
.round-btn:disabled { opacity: 0.4; cursor: default; }

/* modal */
.cmodal { border: 0; padding: 0; width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); overflow: auto; box-shadow: 0 40px 120px -20px rgba(8, 12, 16, 0.45); }
.cmodal[open] { animation: modalIn 0.6s var(--ease); }
.cmodal::backdrop { background: rgba(11, 16, 32, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fade 0.4s; }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.cmodal__close { position: sticky; top: 16px; float: right; margin: 22px 22px -62px 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(8, 12, 16, 0.35); color: #fff; font-size: 20px; line-height: 1; backdrop-filter: blur(10px); transition: background 0.2s; }
.cmodal__close:hover { background: rgba(8, 12, 16, 0.6); }
.cmodal__art { aspect-ratio: 21 / 9; margin: 12px 12px 0; }
.cmodal__art svg { width: 18%; }
.cmodal__body { padding: 40px 52px 52px; }
.cmodal__title { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 800; margin: 8px 0 14px; }
.cmodal__lead { font-size: 20px; color: var(--text-2); line-height: 1.45; }
.cmodal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 32px 0; }
.cmodal__cols > * { padding: 22px 24px; border-radius: var(--radius); background: var(--bg-2); }
.cmodal__cols h4 { color: var(--accent); margin-bottom: 10px; }
.cmodal__cols p { font-size: 16px; line-height: 1.6; }
.cmodal__scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cmodal__scope li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--violet); font-weight: 500; }
.cmodal__actions { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Case study subpage ---------- */
.hero__eyebrow a { color: var(--accent); }
.hero__eyebrow a:hover { color: var(--violet); }
.casehero { padding: clamp(40px, 6vw, 72px) 28px 0; background: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(99, 102, 241, 0.14), transparent 60%), radial-gradient(ellipse 40% 60% at 0% 100%, rgba(6, 182, 212, 0.1), transparent 60%), var(--surface); }
.casehero__copy { max-width: var(--maxw); margin: 0 auto; will-change: transform, opacity; }
.casehero__copy .hero__lead { max-width: 54ch; }
.casehero__copy .case__results { margin: 22px 0 8px; }
.casehero__shot { max-width: var(--maxw); margin: 40px auto 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: var(--shadow); }
.casehero__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cs-brief { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cs-brief article { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-2); }
.cs-brief h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cs-brief p { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.section-head--pad { padding: 110px 28px 40px; margin-bottom: 0; }
.cs-fns { counter-reset: none; }
.cs-fn { --edge: max(28px, calc((100% - var(--maxw)) / 2)); display: grid; grid-template-columns: var(--edge) minmax(0, 1fr) var(--edge); padding: 88px 0; background: var(--surface); border-top: 1px solid var(--line); }
.cs-fn--gray { background: var(--bg-2); }
.cs-fn--dark { background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(99, 102, 241, 0.25), transparent 60%), var(--dark); color: #eef1f8; border-top-color: rgba(255,255,255,0.08); }
.cs-fn__inner { grid-column: 2; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.cs-fn__num { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-fn__copy { max-width: 760px; }
.cs-fn__copy h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.04em; margin: 8px 0 16px; }
.cs-fn__copy > p:last-of-type { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.cs-fn--dark .cs-fn__copy > p:last-of-type { color: #9aa3b5; }
.cs-fn--dark .case__cat { color: var(--cyan-light); }
.cs-fn__points { display: grid; gap: 10px; margin-top: 28px; }
.cs-fn__points li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; color: var(--text); }
.cs-fn--dark .cs-fn__points li { color: #eef1f8; }
.cs-fn__points li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); }
.cs-tech, .cs-scope { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tech { margin-bottom: 20px; }
.cs-tech li { font-size: 15px; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 500; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cs-scope li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--violet); font-weight: 500; }

/* =========================================================
   CTA band + contact
   ========================================================= */
.cta-band { padding: 130px 28px; text-align: center; color: #fff; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(34, 211, 238, 0.35), transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(124, 58, 237, 0.45), transparent 60%), var(--dark); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255,255,255,0.08) 1.2px, transparent 1.2px) 0 0 / 24px 24px; }
.cta-band > * { max-width: var(--maxw); margin-inline: auto; }
.cta-band__title { font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; }
.cta-band .grad { background-image: var(--brand-light); }
.cta-band .section-lead { color: #9aa3b5; }
.cta-band__actions { display: flex; justify-content: center; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 36px; }
.cta-band .link { color: var(--cyan-light); }
.cta-band .link:hover { color: #fff; }

.contact { padding: 120px 28px; color: #eef1f8; background: radial-gradient(ellipse 50% 70% at 0% 0%, rgba(6, 182, 212, 0.22), transparent 60%), radial-gradient(ellipse 50% 70% at 100% 100%, rgba(99, 102, 241, 0.3), transparent 60%), var(--dark); }
.contact__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact__info { grid-column: 1; display: flex; flex-direction: column; }
.contact .eyebrow { color: var(--cyan-light); }
.contact .cta-band__title { font-size: clamp(44px, 5.4vw, 76px); margin-top: 14px; }
.contact .section-lead { margin: 22px 0 0; color: #9aa3b5; }
.contact__inner > .form { grid-column: 2; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); align-content: start; }
.form { margin-top: 0; display: grid; gap: 12px; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-2); border: 1px solid transparent; border-radius: 14px; padding: 26px 16px 10px; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; -webkit-appearance: none; appearance: none; }
.field span { position: absolute; left: 17px; top: 18px; font-size: 16px; color: var(--text-3); pointer-events: none; transition: font-size 0.2s, top 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field--select span { top: 9px; font-size: 12px; }
.field--select::after { content: "⌄"; position: absolute; right: 18px; top: 50%; transform: translateY(-60%); color: var(--text-3); pointer-events: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e11d48; background: #fff1f2; }
.form .btn { margin-top: 6px; }
.form__note { font-size: 13px; color: var(--text-3); text-align: center; }
.contact__mail { margin-top: 0; padding-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.contact__mail > span { color: #7a8396; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.contact__mail a { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; background: var(--brand-light); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact__mail .link { font-size: 15px; color: var(--cyan-light); }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 0 28px; color: #9aa3b5; font-size: 14px; background: var(--dark); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 0 28px; }
.footer__dir { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer__dir h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #eef1f8; margin-bottom: 16px; }
.footer__dir li { margin-bottom: 9px; }
.footer__dir a { transition: color 0.2s; }
.footer__dir a:hover { color: var(--cyan-light); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; color: #5f6779; font-size: 13px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 200; transform: translate(-50%, 20px); background: var(--dark); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Dark theme page ---------- */
.theme-dark { background: var(--dark); color: #eef1f8; }
.theme-dark .case { background: var(--dark-2); color: #eef1f8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.theme-dark .case:hover { box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.theme-dark .case__body p { color: #9aa3b5; }
.theme-dark .case__cat, .theme-dark .case__more { color: var(--cyan-light); }
.theme-dark .case:hover .case__more { color: #fff; }
.theme-dark .case-filters, .theme-dark .carousel__dots { background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.theme-dark .case-filter { color: #9aa3b5; }
.theme-dark .case-filter:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.theme-dark .carousel__dots i { background: rgba(255, 255, 255, 0.18); }
.theme-dark .round-btn { background: var(--dark-2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.theme-dark .cta-band { background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(34, 211, 238, 0.3), transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(124, 58, 237, 0.4), transparent 60%), var(--dark-2); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.theme-dark .section-head .eyebrow { color: var(--cyan-light); }
.theme-dark .footer { background: var(--dark-2); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1068px) {
  .section { padding: 110px 28px; }
  .tile { padding: 36px; }
  .gnav__items { gap: 0; }
  .gnav__link { padding: 8px 10px; font-size: 13px; }
  .feature { gap: 48px; }
  .svc-index { grid-template-columns: repeat(2, 1fr); }
  .hslider__tabs { grid-template-columns: repeat(5, auto); overflow-x: auto; scrollbar-width: none; }
  .hslider__tab { padding-inline: 14px; white-space: nowrap; }
}

@media (max-width: 834px) {
  :root { --gnav-h: 56px; --lnav-h: 48px; }
  .gnav__bar, .lnav__inner { padding: 0 20px; }
  .gnav__items { display: none; }
  .gnav__cta { margin-left: auto; }
  .gnav__burger { display: block; }

  .section-head { grid-template-columns: 1fr; }
  .section-head .section-lead { grid-column: 1; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__info, .contact__inner > .form { grid-column: 1; grid-row: auto; }

  /* mobile menu uses the same panels */
  .mega { position: fixed; top: var(--gnav-h); left: 0; right: 0; bottom: 0; height: auto !important; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s 0.35s; }
  .gnav.is-mobile .mega { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease), visibility 0s; }
  .gnav.is-mobile { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gnav.is-dark.is-mobile, .gnav.is-dark .mega { background: var(--dark); }
  .mega__inner { position: relative; height: 100%; padding: 0; max-width: none; }
  .mega__root, .mega__panel { position: absolute; inset: 0; overflow-y: auto; padding: 20px 20px 60px; transition: transform 0.5s var(--ease), opacity 0.4s; }
  .mega__root { display: block; }
  .mega__rootlink { display: flex; justify-content: space-between; align-items: center; width: 100%; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.035em; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
  .gnav.is-dark .mega__rootlink { border-bottom-color: rgba(255, 255, 255, 0.1); }
  .mega__rootlink span { color: var(--text-3); font-weight: 400; }
  .mega__panel { display: block; transform: translateX(100%); opacity: 0; visibility: hidden; }
  .mega__panel.is-active { display: block; }
  .mega[data-view="panel"] .mega__root { transform: translateX(-30%); opacity: 0; pointer-events: none; }
  .mega[data-view="panel"] .mega__panel.is-active { transform: none; opacity: 1; visibility: visible; }
  .mega__back { display: inline-block; font-size: 15px; color: var(--text-2); margin-bottom: 18px; }
  .mega__col { margin-bottom: 12px; padding: 20px; }
  .mega__col--main ul { grid-template-columns: 1fr; }
  .mega__col--main li a { font-size: 18px; }
  .gnav.is-mobile .mega__root > * { animation: megaIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.04s); }

  .lnav__links { display: none; }
  .case-filters { border-radius: 20px; width: 100%; }
  .htile, .htile--rev { grid-template-columns: var(--edge) minmax(0, 1fr) var(--edge); min-height: 0; }
  .htile__copy, .htile--rev .htile__copy { grid-area: 1 / 2; }
  .htile__visual, .htile--rev .htile__visual { grid-area: 2 / 2; }
  .htile__visual--bleed, .htile--rev .htile__visual--bleed { grid-column: 1 / -1; }
  .htile__copy { padding: 80px 0 40px; }
  .htile__visual { padding-bottom: 72px; }
  .htile__visual--bottom { padding: 0; min-height: 300px; }
  .htile__visual--bleed { min-height: 340px; padding: 0; }

  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__visual { order: 0; top: calc(var(--gnav-h) + var(--lnav-h)); height: 360px; z-index: 2; background-color: transparent; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
  .flow__card { transform: scale(0.84); }
  .story__step { min-height: 55vh; max-width: none; text-align: center; align-items: center; }
  .story__steps { padding-bottom: 20vh; }

  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile--split { flex-direction: column; gap: 36px; }
  .pcard { flex: none; width: min(300px, 100%); }
  .devices { height: 260px; }
  .devices__phone { width: 110px; left: auto; right: 4%; }

  .feature, .feature--rev { grid-template-columns: 1fr; gap: 24px; }
  .feature__copy { padding: 8px 16px 24px; }
  .feature--rev .feature__media { order: 0; }
  .features { gap: var(--gap); }

  .art-social { grid-template-columns: repeat(3, 80px); }
  .art-social i { height: 80px; }
  .art-id__card { width: 230px; height: 140px; }
  .art-book__page { width: 130px; height: 180px; margin-top: -90px; }
  .dhero__shape { transform: scale(0.6); }

  .form__row { grid-template-columns: 1fr; }
  .cmodal__body { padding: 32px 26px 40px; }
  .cmodal__cols { grid-template-columns: 1fr; gap: 24px; }
  .cs-brief { grid-template-columns: 1fr; }
  .cs-fn { --edge: 20px; padding: 64px 0; }
  .cs-fn__inner { grid-template-columns: 1fr; gap: 12px; }
  .section-head--pad { padding: 90px 20px 28px; }
  .casehero { padding-left: 20px; padding-right: 20px; }
  .footer__dir { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 56px; }
  .hslider { min-height: max(560px, 100svh); }
  .hslider__shade { background: linear-gradient(0deg, rgba(3, 5, 11, 0.95) 0%, rgba(3, 5, 11, 0.7) 55%, rgba(3, 5, 11, 0.25) 100%); }
  .hslider__slides { align-items: end; padding: 40px 20px 24px; }
  .hslide__title { font-size: 36px; margin: 14px 0 16px; }
  .hslide__lead--wide { display: none; }
  .perks--hero { margin-top: 0; font-size: 14px; }
  .perks--hero + .hero__actions { margin-top: 24px; }
  .hslider__bar { padding: 0 12px 12px; gap: 8px; }
  .hslider__tabs { display: flex; padding: 4px; }
  .hslider__btn[data-hs="prev"], .hslider__btn[data-hs="next"] { display: none; }
  .hslider__tab { flex: 1; justify-content: center; padding: 12px 0 16px; font-size: 0; gap: 0; }
  .hslider__tab span { font-size: 13px; }
  .hslider__tab i { left: 10px; right: 10px; }
  .hslider__btn { width: 50px; height: 50px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .device__screen { border-radius: 12px; }
  .device__base { height: 10px; border-radius: 0 0 12px 12px; }
  .section { padding: 90px 18px; }
  .carousel { margin-inline: -18px; }
  .carousel__track { --edge: 18px; }
  .carousel__controls { padding: 0 18px; }
  .section-head { margin-bottom: 48px; }
  .tile { padding: 30px 24px; border-radius: 20px; }
  .htile { --edge: 20px; }
  .htile__copy { padding-top: 64px; }
  .zoom__frame { clip-path: inset(calc((1 - var(--p)) * 18%) calc((1 - var(--p)) * 8%) round calc((1 - var(--p)) * 30px)); }
  .svc-index { grid-template-columns: 1fr; gap: 12px; }
  .contact { padding: 80px 18px; }
  .cta-band { padding: 90px 20px; }
  .contact__inner > .form { padding: 24px 18px; border-radius: 20px; }
  .dhero { padding: 70px 20px; }
  .footer { padding: 0 18px; }
  .footer__inner { padding: 48px 0 24px; }
  .feature__media { border-radius: 20px; }
  .footer__dir { grid-template-columns: 1fr 1fr; }
}

/* ---------- Conversion: perks, trust, quotes, booking ---------- */
.hslide.is-active > :nth-child(5) { transition-delay: 0.32s; }
.perks { display: grid; gap: 10px; font-size: 16px; font-weight: 500; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(34, 211, 238, 0.14); fill: none; stroke: var(--cyan-light); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.perks--hero { margin-top: 26px; color: rgba(238, 241, 248, 0.92); }
.perks--hero + .hero__actions { margin-top: 30px; }
.perks--contact { margin-top: 28px; color: #eef1f8; }
.perks--center { width: fit-content; margin: 30px auto 0; text-align: left; color: #eef1f8; }
.contact__book { margin-top: 28px; }

.trust { background: var(--surface); border-bottom: 1px solid var(--line); padding: 32px 28px 36px; }
.trust__inner { max-width: var(--maxw); margin: 0 auto; }
.trust__kicker { margin: 0 0 22px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.trust__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.trust__logos > li { flex: 0 0 auto; }
.trust__logo { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 4px; border-radius: 12px; opacity: 0.88; transition: opacity 0.3s; }
.trust__logo:hover { opacity: 1; }
.trust__logo img { display: block; height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.trust__logo--dark { background: #1a1410; opacity: 1; padding: 0 14px; }
.trust__logo--dark img { height: 26px; max-width: 130px; }

.quotes__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.quote__stars { color: #f5b301; letter-spacing: 2px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote figcaption b { display: block; font-size: 15px; }
.quote figcaption small { display: block; font-size: 13px; color: var(--text-3); }
.quote__avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 14px; font-weight: 700; }
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }

.case__results { display: flex; gap: 22px; margin-top: 4px; }
.case__results dt { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case__results dd { font-size: 13px; color: var(--text-3); }
.cmodal__body .case__results { margin: 26px 0 0; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done { text-align: center; padding: 40px 10px; }
.form__done h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 8px; }
.form__done p { color: var(--text-2); }

.book { border: 0; padding: 0; width: min(1000px, calc(100vw - 32px)); height: min(780px, calc(100vh - 48px)); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); overflow: hidden; box-shadow: 0 40px 120px -20px rgba(8, 12, 16, 0.45); }
.book[open] { display: flex; flex-direction: column; animation: modalIn 0.6s var(--ease); }
.book::backdrop { background: rgba(11, 16, 32, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fade 0.4s; }
.book__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 26px; border-bottom: 1px solid var(--line); }
.book__head h2 { font-size: 18px; letter-spacing: -0.02em; }
.book .cmodal__close { position: static; float: none; margin: 0; background: var(--bg-2); color: var(--text); }
.book .cmodal__close:hover { background: var(--bg-3); }
.book__frame { flex: 1; width: 100%; border: 0; }

.thanks { min-height: calc(100svh - var(--gnav-h) - 200px); display: flex; flex-direction: column; justify-content: center; }
.thanks__icon { width: 76px; height: 76px; margin: 0 auto 30px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); box-shadow: 0 20px 60px -10px rgba(99, 102, 241, 0.6); }
.thanks__icon svg { width: 38px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.thanks .cta-band__title { font-size: clamp(40px, 6vw, 80px); max-width: 900px; }

@media (max-width: 834px) {
  .quotes__grid { grid-template-columns: 1fr; }
  .perks--hero { font-size: 15px; gap: 8px; margin-top: 20px; }
  .trust__logos { gap: 16px 28px; }
}
@media (max-width: 600px) {
  .trust { padding: 24px 16px 28px; }
  .trust__logos { gap: 14px 22px; }
  .trust__logo img { height: 32px; max-width: 130px; }
  .quote { padding: 24px; }
  .book { width: 100vw; height: 100svh; max-width: none; max-height: none; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .intro, .fx, .notif { opacity: 1; transform: none; filter: none; }
}
