/* ==========================================================================
   N-FINIT DEVELOPMENT — shared design system
   ========================================================================== */

:root {
  --ink: #0a1120;
  --ink-2: #0e1729;
  --ink-3: #152238;
  --navy: #0d1b2a;
  --paper: #f5f4f0;
  --paper-2: #ebe9e3;
  --text: #0d1b2a;
  --muted: #5a6577;
  --muted-2: #8b95a6;
  --line: rgba(13, 27, 42, 0.1);
  --line-dark: rgba(255, 255, 255, 0.09);
  --accent: #2b5797;
  --accent-2: #3a6db5;
  --sky: #9fbbe3;
  --ice: #dfe8f5;
  --sage: #3a8a6c;
  --amber: #a16207;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-sm: 0 1px 2px rgba(10, 17, 32, 0.05), 0 6px 18px -6px rgba(10, 17, 32, 0.08);
  --shadow-lg: 0 40px 90px -36px rgba(10, 17, 32, 0.38);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* Film grain for a photographic, premium finish */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 980px; }
.section { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; }
.on-dark { background: var(--ink); color: #fff; }
.center { text-align: center; }

/* ─── Scroll progress ─────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--sky));
  pointer-events: none;
}

/* ─── Navigation ──────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px clamp(0.75rem, 2vw, 1.5rem) 0;
}
.nav-shell {
  max-width: 1240px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.5rem 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s, height 0.45s var(--ease);
}
#navbar.solid .nav-shell {
  height: 58px;
  background: rgba(10, 17, 32, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.55);
}
.nav-logo { display: block; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; margin-left: auto; }
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sky);
  transform: translateX(-50%);
}
.nav-cta { margin-left: 0.5rem; }

.hamburger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 18px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobile-menu {
  display: none;
  max-width: 1240px;
  margin: 0.5rem auto 0;
  padding: 0.75rem;
  border-radius: 24px;
  background: rgba(10, 17, 32, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column;
  gap: 0.1rem;
}
#mobile-menu.open { display: flex; animation: menuIn 0.45s var(--ease); }
#mobile-menu .nav-link { padding: 0.85rem 1rem; font-size: 1rem; border-radius: 14px; }
#mobile-menu .btn-primary { margin-top: 0.5rem; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  #navbar .nav-links, #navbar .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn-primary, .btn-outline, .btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 28px -12px rgba(43, 87, 151, 0.75);
}
.btn-primary::before, .btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}
.btn-primary:hover { background: #2f60a6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 36px -12px rgba(43, 87, 151, 0.85); }
.btn-primary:hover::before, .btn-submit:hover::before { transform: translateX(130%); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(13, 27, 42, 0.18);
}
.btn-outline:hover { border-color: var(--text); background: rgba(13, 27, 42, 0.04); }
.btn-outline.is-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-outline.is-light:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 0.97rem; }
.btn-arrow { display: inline-block; transition: transform 0.4s var(--ease); }
a:hover > .btn-arrow, button:hover > .btn-arrow { transform: translateX(4px); }

[data-magnetic] { transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0); }

/* ─── Typography ─────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.15rem;
}
.section-label::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
.on-dark .section-label { color: var(--sky); }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}
.on-dark .section-title { color: #fff; }
.section-title em, .hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.on-dark .section-title em, .hero-title em { color: var(--sky); }

.lead { color: var(--muted); font-size: 1.06rem; line-height: 1.75; max-width: 60ch; }
.on-dark .lead { color: rgba(255, 255, 255, 0.6); }
.center .lead { margin-inline: auto; }
.sec-head { margin-bottom: clamp(2.75rem, 5vw, 4.25rem); }
.sec-head .lead { margin-top: 1.1rem; }
.sec-head--split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: end; }
.sec-head--split .lead { margin-top: 0; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; gap: 1rem; } }

/* ─── Reveal animations ──────────────────────────────────────────── */
.js .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .fade-up.visible { opacity: 1; transform: none; }
.d1 { --delay: 0.08s; } .d2 { --delay: 0.16s; } .d3 { --delay: 0.24s; }
.d4 { --delay: 0.32s; } .d5 { --delay: 0.4s; }  .d6 { --delay: 0.48s; }

.js .rise-3d {
  opacity: 0;
  transform: perspective(1200px) rotateX(18deg) translateY(70px) scale(0.95);
  transform-origin: 50% 0%;
  transition: opacity 1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .rise-3d.visible { opacity: 1; transform: none; }

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.05em 0.1em;
  margin: 0 -0.05em -0.1em;
}
.split .wi {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i) * 42ms + var(--delay, 0s));
}
.split.visible .wi { transform: none; }

/* ─── 3D tilt + glare ────────────────────────────────────────────── */
[data-tilt] {
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
  will-change: transform;
}
[data-tilt].is-tilting { transition: transform 0.12s linear, box-shadow 0.5s var(--ease), border-color 0.4s; }
[data-tilt]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s;
}
[data-tilt]:hover::after { opacity: 1; }

/* ─── Tags ───────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #3b4a60;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.tag-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .tag-pill { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.78); }
.on-dark .tag-pill:hover { background: rgba(159, 187, 227, 0.16); border-color: rgba(159, 187, 227, 0.4); color: #fff; }

/* ─── Marquee (word carousel) ────────────────────────────────────── */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 48s) linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; gap: var(--gap, 3rem); padding-right: var(--gap, 3rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Hero ───────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: -4% 0 -10%; z-index: -4; transform: translate3d(0, var(--py, 0px), 0); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 13, 24, 0.95) 0%, rgba(8, 13, 24, 0.86) 36%, rgba(8, 13, 24, 0.5) 66%, rgba(8, 13, 24, 0.66) 100%),
    linear-gradient(180deg, rgba(8, 13, 24, 0.5) 0%, rgba(8, 13, 24, 0) 28%, rgba(8, 13, 24, 0) 62%, var(--ink) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 28% 45%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 28% 45%, #000 15%, transparent 72%);
}
.hero-glow {
  position: absolute; z-index: -2;
  width: 70vmax; height: 70vmax;
  left: -25vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(58, 109, 181, 0.26), transparent 62%);
  animation: drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translate3d(12vmax, 10vmax, 0); } }

.hero-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8.5rem clamp(1.25rem, 4vw, 2.5rem) 6.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}
.hero-copy { will-change: transform, opacity; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #8fb6ec; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(143, 182, 236, 0.7);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 1.6rem 0 1.5rem;
  color: #fff;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 0.06em 0.08em; margin: 0 -0.06em -0.08em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: lineUp 1.25s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--l, 0) * 0.13s);
}
.hero-title em { font-size: 1.08em; }
@keyframes lineUp { to { transform: none; } }

.hero-intro { opacity: 0; animation: fadeIn 1.2s var(--ease) forwards; animation-delay: var(--a, 0.7s); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.rotator { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.55rem; font-size: 1.02rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 1.4rem; }
.rotator-window { position: relative; display: inline-block; height: 1.6em; overflow: hidden; vertical-align: bottom; transition: width 0.7s var(--ease); color: #fff; font-weight: 600; }
.rotator-window::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: linear-gradient(90deg, var(--sky), transparent); }
.rotator-word { display: inline-block; white-space: nowrap; line-height: 1.6em; }
.rotator-window.is-ready .rotator-word {
  position: absolute; left: 0; top: 0;
  transform: translateY(100%);
  opacity: 0;
  filter: blur(4px);
  transition: transform 0.75s var(--ease), opacity 0.75s, filter 0.75s;
}
.rotator-window.is-ready .rotator-word.is-active { transform: none; opacity: 1; filter: none; }
.rotator-window.is-ready .rotator-word.is-leaving { transform: translateY(-100%); opacity: 0; filter: blur(4px); }

.hero-lead { color: rgba(255, 255, 255, 0.66); font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.78; max-width: 56ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* 3D image orbit */
.orbit {
  position: relative;
  height: clamp(380px, 44vw, 560px);
  perspective: 1500px;
  perspective-origin: 50% 38%;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  animation: fadeIn 1.6s var(--ease) 0.5s forwards;
}
.orbit.is-dragging { cursor: grabbing; }
.orbit-tilt {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--otx, -7deg)) rotateY(var(--oty, 0deg));
  transition: transform 1s var(--ease);
}
.orbit-ring { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.orbit-card {
  position: absolute;
  width: var(--cw, 200px);
  height: calc(var(--cw, 200px) * 1.32);
  left: calc(var(--cw, 200px) / -2);
  top: calc(var(--cw, 200px) * -0.66);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
}
.orbit-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.orbit-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0) 50%, rgba(8, 13, 24, 0.85) 100%);
}
.orbit-card figcaption {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.75rem; z-index: 2;
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: #fff;
}
.orbit-card figcaption::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
.orbit-dim { position: absolute; inset: 0; z-index: 3; background: #070c17; opacity: 0; pointer-events: none; }
.orbit-path {
  position: absolute; left: 50%; top: 46%;
  border-radius: 50%;
  border: 1px solid rgba(159, 187, 227, 0.16);
  box-shadow: 0 0 60px rgba(58, 109, 181, 0.18) inset;
  pointer-events: none;
}
.orbit-floor {
  position: absolute; left: 50%; bottom: 2%;
  width: 78%; height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(127, 170, 230, 0.22), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.orbit-hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; gap: 0.6rem; white-space: nowrap;
}
.orbit-hint::before, .orbit-hint::after { content: ''; width: 22px; height: 1px; background: rgba(255, 255, 255, 0.25); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.scroll-cue i { position: relative; width: 1px; height: 40px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.scroll-cue i::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: linear-gradient(transparent, #fff);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { to { top: 110%; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 7.5rem; padding-bottom: 5.5rem; gap: 0.5rem; }
  .orbit { height: 380px; }
  .scroll-cue { display: none; }
}

/* ─── Trust marquee ──────────────────────────────────────────────── */
.trust-bar { background: var(--ink); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 1.35rem 0; color: rgba(255, 255, 255, 0.74); }
.trust-item { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.trust-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.trust-icon svg { stroke: var(--sky); }
.trust-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); flex-shrink: 0; }

/* ─── Intro video (3D device) ────────────────────────────────────── */
#intro-video { background: var(--paper); }
.device-stage { position: relative; perspective: 1800px; margin-top: 3rem; }
.device {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(180deg, #1c2739, #0b1322);
  box-shadow: 0 60px 120px -50px rgba(10, 17, 32, 0.6), 0 0 0 1px rgba(13, 27, 42, 0.08);
  transform: rotateX(var(--dev-rx, 0deg)) scale(var(--dev-s, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}
.device-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.device-bar span { margin-left: auto; margin-right: auto; font-size: 0.68rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.35); }
.intro-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.device-glow {
  position: absolute; inset: 12% 6% -8%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(58, 109, 181, 0.32), transparent 70%);
  filter: blur(40px);
}

/* ─── Services ───────────────────────────────────────────────────── */
#services { background: #fff; padding-bottom: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.svc-grid > div { display: flex; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.svc-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(43, 87, 151, 0.18); }
.svc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.11); }
.svc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 17, 32, 0) 50%, rgba(10, 17, 32, 0.5)); }
.svc-num { position: absolute; top: 0.9rem; right: 1.2rem; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: rgba(255, 255, 255, 0.92); }
.svc-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 2.4rem 1.85rem 1.85rem; }
.svc-icon {
  position: absolute; top: -28px; left: 1.6rem;
  width: 56px; height: 56px; border-radius: 17px;
  display: grid; place-items: center;
  background: var(--ink);
  border: 4px solid #fff;
  box-shadow: 0 12px 26px -10px rgba(13, 27, 42, 0.55);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.svc-card:hover .svc-icon { transform: translateY(-4px) rotate(-5deg); background: var(--accent); }
.card-title { font-family: var(--display); font-size: 1.38rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.7rem; }
.card-text { color: var(--muted); font-size: 0.94rem; line-height: 1.78; }
.card-text strong, .svc-list strong { color: var(--text); font-weight: 600; }
.svc-list { color: var(--muted); font-size: 0.9rem; line-height: 1.72; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.svc-list li { position: relative; padding-left: 1.15rem; }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.svc-body .tags { margin-top: auto; padding-top: 1.35rem; }
.svc-body .card-text + .tags, .svc-body .svc-list + .tags { border-top: 1px solid var(--line); margin-top: 1.35rem; }
.svc-spacer { flex: 1; }

.word-marquee { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); --gap: 2.4rem; }
.big-word { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.75rem); letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.big-word.outline { color: transparent; -webkit-text-stroke: 1px rgba(13, 27, 42, 0.38); }
.big-star { color: var(--accent-2); flex-shrink: 0; }

/* ─── Tech stack ─────────────────────────────────────────────────── */
#tech-stack { overflow: hidden; }
#tech-stack::before {
  content: ''; position: absolute; left: 50%; top: -20%;
  width: 90vmax; height: 60vmax; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(58, 109, 181, 0.2), transparent 62%);
  pointer-events: none;
}
#tech-stack::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%);
}
#tech-stack .wrap { position: relative; z-index: 1; }
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-group {
  position: relative;
  height: 100%;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.stack-group::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(127, 170, 230, 0.16), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.stack-group:hover { border-color: rgba(159, 187, 227, 0.25); }
.stack-group:hover::before { opacity: 1; }
.stack-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.stack-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(127, 170, 230, 0.1); border: 1px solid rgba(127, 170, 230, 0.24); }
.stack-idx { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: rgba(255, 255, 255, 0.32); }
.stack-group h3 { font-family: var(--display); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.015em; color: #fff; margin-bottom: 0.6rem; }
.stack-group p { color: rgba(255, 255, 255, 0.55); font-size: 0.93rem; line-height: 1.72; margin-bottom: 1.5rem; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.js .stack-group:not(.visible) .tag-pill { opacity: 0; }
.js .stack-group.visible .tag-pill { animation: pillIn 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 0.25s); }
@keyframes pillIn { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }

/* ─── Portfolio ──────────────────────────────────────────────────── */
#portfolio { background: var(--paper); }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.demo-grid > div { display: flex; }
@media (max-width: 820px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-card {
  width: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.demo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.demo-media { position: relative; padding: 10px 10px 0; background: #fff; }
.demo-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--ink); }
.demo-body { flex: 1; display: flex; flex-direction: column; padding: 1.4rem 1.6rem 1.7rem; }
.demo-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.mini-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--ink); transition: background 0.4s, transform 0.6s var(--ease); }
.demo-card:hover .mini-icon { background: var(--accent); transform: rotate(-6deg); }
.demo-card h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.demo-body .card-text { font-size: 0.9rem; flex: 1; }
.demo-body .tags { margin-top: 1.1rem; }
.cta-line { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.cta-line p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.25rem; }

/* ─── Products teaser (home) ─────────────────────────────────────── */
#products { background: #fff; }
.catalog-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem; align-items: stretch; }
.catalog-split > div { display: flex; }
@media (max-width: 980px) { .catalog-split { grid-template-columns: 1fr; } }
.catalog-panel { width: 100%; border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.1rem); background: var(--paper); border: 1px solid var(--line); }
.panel-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.panel-label span:last-child { color: var(--muted-2); letter-spacing: 0.08em; }
.app-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 540px) { .app-chips { grid-template-columns: 1fr; } }
.app-chip {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.app-chip:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(13, 27, 42, 0.35); border-color: rgba(43, 87, 151, 0.3); }
.app-chip > img, .chip-ico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.app-chip > img { object-fit: contain; border: 1px solid var(--line); background: #fff; }
.chip-ico { display: grid; place-items: center; }
.chip-name { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.chip-price { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.chip-note { font-size: 0.7rem; font-weight: 500; color: var(--amber); }
.chip-go { margin-left: auto; color: var(--muted-2); transition: transform 0.35s var(--ease), color 0.3s; flex-shrink: 0; }
.app-chip:hover .chip-go { transform: translateX(3px); color: var(--accent); }

.template-fan { position: relative; height: 380px; perspective: 1400px; }
.fan-card {
  --w: clamp(140px, 34%, 210px);
  position: absolute; left: 50%; top: 50%;
  width: var(--w);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 30px 60px -26px rgba(10, 17, 32, 0.55);
  transform: translate(-50%, -50%) translateX(calc(var(--k) * var(--spread, 74%))) translateY(var(--ky, 0px)) rotate(calc(var(--k) * var(--rot, 7deg))) translateZ(var(--kz, 0px));
  transition: transform 0.8s var(--ease), box-shadow 0.5s;
}
.fan-card:nth-child(1) { --k: -1; --ky: 18px; }
.fan-card:nth-child(2) { --k: 0; --kz: 40px; z-index: 2; }
.fan-card:nth-child(3) { --k: 1; --ky: 18px; }
.template-fan:hover .fan-card { --spread: 88%; --rot: 10deg; }
.template-fan .fan-card:hover { --ky: -16px; --kz: 70px; z-index: 5; box-shadow: 0 46px 80px -30px rgba(10, 17, 32, 0.7); }
.fan-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fan-card:hover img { transform: scale(1.06); }
.fan-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 24, 0) 45%, rgba(8, 13, 24, 0.88)); }
.fan-meta { position: absolute; left: 1rem; right: 1rem; bottom: 0.95rem; z-index: 2; }
.fan-meta b { display: block; font-family: var(--display); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.fan-meta small { display: block; font-size: 0.74rem; color: var(--sky); font-weight: 600; margin-top: 0.15rem; }
.fan-card:nth-child(1) .fan-meta { right: 28%; }
.fan-card:nth-child(3) .fan-meta { left: 28%; text-align: right; }
.fan-card:nth-child(odd) .fan-meta b { font-size: 0.86rem; }
@media (max-width: 540px) { .template-fan { height: 300px; } .fan-card { --w: 44%; } }
.catalog-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.75rem; }

/* ─── Why ────────────────────────────────────────────────────────── */
#why-n-finit { background: var(--paper); }
.why-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why-aside { position: sticky; top: 7rem; }
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 2.25rem; }
.stat { padding: 1.4rem 1.35rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--text); white-space: nowrap; }
.stat > span { display: block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.why-list { position: relative; }
.why-row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.9rem 0; }
.why-row::after, .why-row:first-child::before {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: rgba(13, 27, 42, 0.12);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s var(--ease) 0.15s;
}
.why-row::after { bottom: 0; }
.why-row:first-child::before { top: 0; }
.why-row.visible::after, .why-row.visible:first-child::before, html:not(.js) .why-row::after { transform: scaleX(1); }
.why-icon {
  width: 56px; height: 56px; border-radius: 17px;
  display: grid; place-items: center;
  background: #fff; color: var(--accent);
  border: 1px solid var(--line);
  transition: background 0.45s, color 0.45s, transform 0.6s var(--ease), border-color 0.45s;
}
.why-row:hover .why-icon { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-6deg) scale(1.05); }
.why-idx { font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--muted-2); margin-bottom: 0.2rem; }
.why-row h3 { font-family: var(--display); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); margin-bottom: 0.45rem; }
.why-row p { color: var(--muted); line-height: 1.75; font-size: 0.95rem; }
.why-row p strong { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .why-layout { grid-template-columns: 1fr; } .why-aside { position: static; } }

/* ─── Process ────────────────────────────────────────────────────── */
#how-it-works { background: var(--ink-2); overflow: hidden; }
#how-it-works::before {
  content: ''; position: absolute; right: -20vmax; bottom: -30vmax; width: 70vmax; height: 70vmax;
  background: radial-gradient(circle, rgba(58, 109, 181, 0.16), transparent 60%);
  pointer-events: none;
}
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.steps-rail { position: absolute; top: 27px; left: calc(100% / 14); right: calc(100% / 14); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-2), var(--sky)); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.step { position: relative; text-align: center; padding: 0 0.25rem; }
.step-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.6s, background 0.6s, border-color 0.6s, box-shadow 0.6s, transform 0.6s var(--ease);
}
.step.is-on .step-num { color: #fff; background: var(--accent); border-color: transparent; box-shadow: 0 0 0 6px rgba(58, 109, 181, 0.16), 0 14px 30px -10px rgba(58, 109, 181, 0.9); transform: scale(1.06); }
.step.is-on.is-last .step-num { background: var(--sage); box-shadow: 0 0 0 6px rgba(58, 138, 108, 0.18), 0 14px 30px -10px rgba(58, 138, 108, 0.9); }
.step svg { display: block; margin: 0 auto 0.6rem; stroke: rgba(159, 187, 227, 0.4); transition: stroke 0.6s; }
.step.is-on svg { stroke: var(--sky); }
.step.is-on.is-last svg { stroke: #8fd4b6; }
.step-title { color: rgba(255, 255, 255, 0.55); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; transition: color 0.6s; }
.step.is-on .step-title { color: #fff; }
.step-desc { color: rgba(255, 255, 255, 0.42); font-size: 0.78rem; line-height: 1.5; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .steps-rail { top: 28px; bottom: 60px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps-fill { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; text-align: left; padding: 0 0 2rem; }
  .step-num { grid-row: 1 / span 2; margin: 0; }
  .step svg { display: none; }
  .step-title { margin-top: 0.55rem; font-size: 1rem; }
  .step-desc { font-size: 0.86rem; }
}

/* ─── Who we serve (3D coverflow) ───────────────────────────────── */
#about { background: #fff; overflow-x: clip; }
.coverflow { position: relative; outline: none; }
.cf-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cf-card { position: relative; min-height: 380px; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: 0 40px 90px -44px rgba(10, 17, 32, 0.65); }
.cf-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.cf-card.is-active img { transform: scale(1); }
.cf-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 17, 32, 0) 28%, rgba(10, 17, 32, 0.55) 58%, rgba(10, 17, 32, 0.94) 100%); }
.cf-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.4rem, 3vw, 2.2rem); transition: opacity 0.6s, transform 0.8s var(--ease); }
.cf-index { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--sky); margin-bottom: 0.35rem; }
.cf-body h3 { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.cf-body p { color: rgba(255, 255, 255, 0.76); font-size: 0.95rem; line-height: 1.7; max-width: 46ch; }
.cf-controls { display: none; }

.js .coverflow.is-ready .cf-stage { display: block; position: relative; height: clamp(420px, 50vw, 520px); perspective: 1600px; transform-style: preserve-3d; }
.js .coverflow.is-ready .cf-card {
  position: absolute; left: 50%; top: 0;
  width: min(560px, 84vw); height: 100%; min-height: 0;
  margin-left: calc(min(560px, 84vw) / -2);
  cursor: pointer;
  transition: transform 0.95s var(--ease), opacity 0.95s var(--ease);
}
.js .coverflow.is-ready .cf-card:not(.is-active) .cf-body { opacity: 0.35; transform: translateY(10px); }
.js .coverflow.is-ready .cf-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2.25rem; }
.cf-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.cf-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cf-btn:active { transform: scale(0.94); }
.cf-dots { display: flex; gap: 0.5rem; }
.cf-dot { position: relative; width: 30px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(13, 27, 42, 0.14); cursor: pointer; overflow: hidden; }
.cf-dot.is-active::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; animation: dotFill var(--cf-int, 5.5s) linear forwards; }
.coverflow.is-paused .cf-dot.is-active::after { animation-play-state: paused; }
.coverflow.no-auto .cf-dot.is-active::after { animation: none; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) { .cf-stage { grid-template-columns: 1fr; } }

/* ─── Contact ────────────────────────────────────────────────────── */
#contact { overflow: hidden; }
#contact::before {
  content: ''; position: absolute; left: -20vmax; top: -25vmax; width: 70vmax; height: 70vmax;
  background: radial-gradient(circle, rgba(58, 109, 181, 0.16), transparent 60%);
  pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-visual { position: relative; min-height: 540px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 3.5vw, 2.5rem); isolation: isolate; }
.contact-visual-media { position: absolute; inset: -10% 0; z-index: -2; transform: translate3d(0, var(--py, 0px), 0); }
.contact-visual-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 17, 32, 0.1) 0%, rgba(10, 17, 32, 0.35) 40%, rgba(10, 17, 32, 0.94) 100%); }
#contact-heading { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: #fff; margin-bottom: 0.9rem; text-wrap: balance; }
.contact-copy p { color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; line-height: 1.7; }
.loc-chip { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.4rem; padding: 0.55rem 0.95rem; border-radius: 999px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 940px) { .contact-visual { min-height: 420px; } }

.form-card { position: relative; border-radius: 28px; padding: clamp(1.5rem, 3.5vw, 2.6rem); background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.use-type-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 1.75rem; }
.use-type-toggle button { position: relative; z-index: 1; border: 0; background: transparent; color: rgba(255, 255, 255, 0.6); font-weight: 600; font-size: 0.85rem; padding: 0.62rem 1.4rem; border-radius: 999px; cursor: pointer; transition: color 0.35s; }
.use-type-toggle button.active { color: var(--ink); }
.toggle-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: transform 0.5s var(--ease); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }
.use-type-toggle:has(#toggle-personal.active) .toggle-pill { transform: translateX(100%); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; color: rgba(255, 255, 255, 0.72); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 0.45rem; }
.form-field {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-field::placeholder { color: rgba(255, 255, 255, 0.32); }
.form-field:hover { border-color: rgba(255, 255, 255, 0.22); }
.form-field:focus { border-color: var(--sky); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(127, 170, 230, 0.16); }
textarea.form-field { resize: vertical; min-height: 140px; }
.btn-submit { width: 100%; margin-top: 0.5rem; padding: 1.05rem 1.4rem; font-size: 0.97rem; background: #fff; color: var(--ink); box-shadow: 0 16px 40px -18px rgba(159, 187, 227, 0.6); }
.btn-submit::before { background: linear-gradient(115deg, transparent 30%, rgba(43, 87, 151, 0.14) 50%, transparent 70%); }
.btn-submit:hover { background: var(--ice); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
#success-msg { display: none; text-align: center; padding: 2.5rem 1rem; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: rgba(58, 138, 108, 0.18); color: #8fd4b6; border: 1px solid rgba(143, 212, 182, 0.3); }

/* ─── Footer ─────────────────────────────────────────────────────── */
footer { position: relative; background: #070c17; color: #fff; padding: clamp(4rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.foot-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.5rem, 17vw, 15.5rem);
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  background: linear-gradient(100deg, transparent 35%, rgba(159, 187, 227, 0.4) 50%, transparent 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sheen 9s linear infinite;
  -webkit-user-select: none;
  user-select: none;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.foot-grid img { height: 42px; width: auto; }
.foot-tag { color: rgba(255, 255, 255, 0.45); font-size: 0.88rem; line-height: 1.7; max-width: 300px; margin-top: 1rem; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.5rem; align-content: start; }
.foot-link { position: relative; width: fit-content; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.foot-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.foot-link:hover { color: #fff; }
.foot-link:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-copy { color: rgba(255, 255, 255, 0.4); font-size: 0.82rem; line-height: 1.9; text-align: right; }
.foot-legal { padding-top: 1.5rem; text-align: center; color: rgba(255, 255, 255, 0.28); font-size: 0.75rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } .foot-copy { text-align: left; } }

/* ─── Payment modal ──────────────────────────────────────────────── */
#payment-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 10, 20, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
#payment-modal.open { opacity: 1; visibility: visible; }
.payment-modal-inner {
  width: 100%; max-width: 440px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.65);
  transform: translateY(26px) scale(0.96);
  transition: transform 0.55s var(--ease);
}
#payment-modal.open .payment-modal-inner { transform: none; }
.payment-modal-header { position: relative; padding: 1.75rem 1.75rem 1.5rem; color: #fff; background: radial-gradient(130% 140% at 0% 0%, #1e3557 0%, var(--ink) 62%); }
.modal-close-btn {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 0.9rem; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.modal-close-btn:hover { transform: rotate(90deg); background: rgba(255, 255, 255, 0.14); }
.payment-modal-body { padding: 1.5rem 1.75rem 1.75rem; }
.stripe-pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 14px 34px -14px rgba(43, 87, 151, 0.85);
  transition: background 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.stripe-pay-btn:hover { background: #2f60a6; transform: translateY(-1px); }

/* ─── Products page ──────────────────────────────────────────────── */
.page-hero { position: relative; min-height: 82vh; display: flex; align-items: center; padding: 9rem 0 6rem; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.wall { position: absolute; inset: 0; z-index: -2; perspective: 1200px; overflow: hidden; pointer-events: none; }
.wall-plane {
  position: absolute; left: 50%; top: 50%;
  width: max(150vw, 1500px);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px;
  transform: translate(-50%, -50%) rotateX(50deg) rotateZ(-22deg);
  transform-style: preserve-3d;
}
.wall-col { display: flex; flex-direction: column; gap: 18px; animation: wallUp 70s linear infinite; }
.wall-col:nth-child(even) { animation-direction: reverse; animation-duration: 85s; }
.wall-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; opacity: 0.8; }
@keyframes wallUp { to { transform: translateY(-50%); } }
.page-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(8, 13, 24, 0.93), rgba(8, 13, 24, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 13, 24, 0.6), rgba(8, 13, 24, 0) 40%, rgba(8, 13, 24, 0.5) 75%, var(--ink) 100%);
}
.page-title { font-size: clamp(2.8rem, 6.4vw, 5.2rem); margin: 0.25rem 0 1.4rem; }
.page-hero .section-label { color: var(--sky); }
.page-hero .lead { margin-inline: auto; color: rgba(255, 255, 255, 0.7); }
.hero-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.4rem; }
.hero-jump a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.hero-jump a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.hero-jump a svg { transition: transform 0.4s var(--ease); }
.hero-jump a:hover svg { transform: translateY(3px); }

.catalog { background: var(--paper); padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7rem); }
#apps, #websites { scroll-margin-top: 6rem; }
.catalog-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: end; margin-bottom: 2.5rem; }
.catalog-heading .lead { margin: 0; }
@media (max-width: 820px) { .catalog-heading { grid-template-columns: 1fr; } }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.prod-grid > div { display: flex; }
@media (max-width: 1040px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card { width: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
.prod-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(43, 87, 151, 0.18); }
.prod-card-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, #1e3557 0%, var(--ink) 60%); }
.prod-card-media::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(159, 187, 227, 0.16); box-shadow: 0 0 0 40px rgba(159, 187, 227, 0.03), 0 0 0 80px rgba(159, 187, 227, 0.02); }
.prod-card-media img { position: relative; width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.prod-card > video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink); }
.prod-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.prod-card-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.prod-cover:hover .prod-card-cover { transform: scale(1.08); }
.prod-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 24, 0) 55%, rgba(8, 13, 24, 0.6)); }
.prod-cover-cta {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(6px); opacity: 0.85;
  transition: transform 0.5s var(--ease), opacity 0.4s, background 0.3s;
}
.prod-cover:hover .prod-cover-cta { transform: none; opacity: 1; background: rgba(255, 255, 255, 0.2); }
.prod-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.6rem; }
.prod-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.85rem; }
.prod-card-icon { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.prod-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.prod-title { font-family: var(--display); font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
.prod-desc { flex: 1; color: var(--muted); font-size: 0.88rem; line-height: 1.72; margin-bottom: 1rem; }
.prod-card-body .tags { margin-bottom: 1.15rem; }
.prod-foot { margin-top: auto; padding-top: 1.15rem; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.prod-price { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.prod-price-note { font-size: 0.72rem; color: var(--muted-2); margin-top: 0.25rem; }
.windows-note { font-size: 0.72rem; font-weight: 500; color: var(--amber); margin-top: 0.3rem; max-width: 24ch; line-height: 1.4; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prod-card .btn-primary, .prod-card .btn-outline { padding: 0.72rem 1.1rem; font-size: 0.85rem; }
.catalog-divider { border: 0; height: 1px; background: var(--line); margin: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta-band {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 160% at 0% 0%, #1e3557 0%, var(--ink) 60%);
}
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.cta-band p { color: rgba(255, 255, 255, 0.72); font-size: 1rem; line-height: 1.7; margin: 0 auto 1.5rem; max-width: 52ch; }

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track, .wall-col, .hero-media img, .prod-card-media img, .foot-mark, .hero-glow { animation: none !important; }
  .hero-title .line > span, .split .wi { transform: none !important; }
  .hero-intro, .orbit { opacity: 1 !important; }
}
