/* =============================================================================
   ndrzAI — Global Stylesheet
   Design language: Swiss-grid precision × high-tech AI minimalism.
   Signature element: the asterisk (*) mark — used as a structural grid
   coordinate, a live cursor-follower in the hero, and a loading/processing
   glyph in the AI tools page.
   ============================================================================= */

/* ---------- Fonts ---------------------------------------------------------- */
/* Loaded from <head> via <link rel="preconnect"> + <link rel="stylesheet">
   rather than an @import here, so the font CSS is not chained behind this
   file on first paint. */

/* ---------- Design tokens --------------------------------------------------- */
/* The colour tokens are registered as typed custom properties so the root can
   TRANSITION them: when the page shifts from the hero's dark zone into light
   (and when the theme toggle flips), every element that uses a token fades
   with it instead of snapping. Browsers without @property simply snap. */
@property --bg-primary { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --bg-secondary { syntax: '<color>'; inherits: true; initial-value: #f8fafc; }
@property --bg-elevated { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --text-primary { syntax: '<color>'; inherits: true; initial-value: #0f172a; }
@property --text-secondary { syntax: '<color>'; inherits: true; initial-value: #64748b; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #0f3d63; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #147a96; }
@property --accent-3 { syntax: '<color>'; inherits: true; initial-value: #0a2540; }
@property --accent-gold { syntax: '<color>'; inherits: true; initial-value: #c9a44c; }
@property --accent-soft { syntax: '<color>'; inherits: true; initial-value: #eef3f7; }
@property --border { syntax: '<color>'; inherits: true; initial-value: #e2e8f0; }
@property --glow-color { syntax: '<color>'; inherits: true; initial-value: rgba(15, 61, 99, 0.4); }
@property --glow-button { syntax: '<color>'; inherits: true; initial-value: rgba(18, 80, 122, 0.5); }

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;

  /* Deep, sophisticated ocean palette — navy through teal, with a
     restrained gold used only as a luxury accent on standout elements. */
  --accent: #0f3d63;
  --accent-2: #147a96;
  --accent-3: #0a2540;
  --accent-gold: #c9a44c;
  --accent-soft: #eef3f7;
  --border: #e2e8f0;

  --gradient-brand: linear-gradient(135deg, #0a2540 0%, #0f3d63 45%, #147a96 100%);
  --gradient-button: linear-gradient(135deg, #0d4d78 0%, #0a3358 45%, #071a30 100%);
  --gradient-soft: linear-gradient(135deg, rgba(15, 61, 99, 0.10), rgba(20, 122, 150, 0.10));
  --gradient-text: linear-gradient(120deg, #0f3d63, #1c8fa8);
  --gradient-gold: linear-gradient(135deg, #a5792f 0%, #d9bb6c 50%, #a5792f 100%);
  --gradient-ring: conic-gradient(from 0deg, #0a2540, #147a96, #4fa8d8, #147a96, #0a2540);
  --glow-accent: 0 20px 60px -15px rgba(10, 37, 64, 0.45);
  --glow-color: rgba(15, 61, 99, 0.4);
  --glow-button: rgba(18, 80, 122, 0.5);

  --font-display: 'Newsreader', 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);

  --container: 1180px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
  --dur-reveal: 0.9s;

  color-scheme: light;

  --dur-zone: 0.85s;
  transition:
    --bg-primary var(--dur-zone) var(--ease-cinematic),
    --bg-secondary var(--dur-zone) var(--ease-cinematic),
    --bg-elevated var(--dur-zone) var(--ease-cinematic),
    --text-primary var(--dur-zone) var(--ease-cinematic),
    --text-secondary var(--dur-zone) var(--ease-cinematic),
    --accent var(--dur-zone) var(--ease-cinematic),
    --accent-2 var(--dur-zone) var(--ease-cinematic),
    --accent-3 var(--dur-zone) var(--ease-cinematic),
    --accent-gold var(--dur-zone) var(--ease-cinematic),
    --accent-soft var(--dur-zone) var(--ease-cinematic),
    --border var(--dur-zone) var(--ease-cinematic),
    --glow-color var(--dur-zone) var(--ease-cinematic),
    --glow-button var(--dur-zone) var(--ease-cinematic);
}
/* No fade on the very first frame (the pre-paint script sets the classes;
   the JS removes this once the initial zone has been resolved). */
:root.zone-static { transition: none; }

/* `.dark` is the user's theme choice. `.zone-dark` is set by initScrollZone()
   while the hero is on screen, so the light site starts in the hero's navy
   and swiftly shifts to white as you scroll into the page. Both share the
   same palette; only the real theme flips form controls / scrollbars. */
.dark { color-scheme: dark; }
.dark, .zone-dark {
  --bg-primary: #060d18;
  --bg-secondary: #0a1626;
  --bg-elevated: #0e1e31;
  --text-primary: #f1f5f9;
  --text-secondary: #93a5c0;

  /* Same ocean family, lifted in lightness so it still reads as rich
     navy/teal rather than washing out against the near-black background */
  --accent: #2c7fa8;
  --accent-2: #22b8c4;
  --accent-3: #145e78;
  --accent-gold: #e0bc63;
  --accent-soft: rgba(44, 127, 168, 0.18);
  --border: #1c2c40;

  --gradient-brand: linear-gradient(135deg, #0e3a5c 0%, #1a6f92 50%, #22b8c4 100%);
  --gradient-button: linear-gradient(135deg, #1a6a9c 0%, #0e3f66 45%, #0a2038 100%);
  --gradient-soft: linear-gradient(135deg, rgba(44, 127, 168, 0.20), rgba(34, 184, 196, 0.14));
  --gradient-text: linear-gradient(120deg, #4fa3c9, #3fd1de);
  --gradient-gold: linear-gradient(135deg, #a5792f 0%, #eccd85 50%, #a5792f 100%);
  --gradient-ring: conic-gradient(from 0deg, #0e3a5c, #22b8c4, #6ec2e8, #22b8c4, #0e3a5c);
  --glow-accent: 0 20px 70px -15px rgba(34, 184, 196, 0.4);
  --glow-color: rgba(34, 184, 196, 0.45);
  --glow-button: rgba(74, 159, 212, 0.55);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; }
.section-sm { padding: 72px 0; }
@media (min-width: 1280px) {
  .section { padding: 150px 0; }
  .section-sm { padding: 96px 0; }
}
.mobile-only { display: none !important; }
/* First section of every sub-page clears the fixed nav bar */
.page-top { padding-top: calc(var(--nav-h) + 56px); }
@media (min-width: 1280px) { .page-top { padding-top: calc(var(--nav-h) + 72px); } }
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
  .container { padding: 0 20px; }
}

.grid { display: grid; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.eyebrow::before {
  content: '*';
  font-family: var(--font-body);
  font-size: 16px;
}
.hero .eyebrow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.text-secondary { color: var(--text-secondary); }

/* ---------- Typography ---------------------------------------------------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); }
/* Reserve space for 2 wrapped lines so the rotating hero headline (varying
   phrase lengths) never shifts the layout below it as it types. The longest
   phrase is 28 characters, which wraps to two lines at every viewport width
   because the font size scales with the viewport. */
/* The ghosts (every phrase) and the live text share one grid cell, so the
   heading is always exactly as tall as the tallest phrase at this viewport. */
.type-h1 { display: grid; align-items: start; }
.type-h1 > * { grid-area: 1 / 1; }
.type-ghost { visibility: hidden; pointer-events: none; user-select: none; }
.type-live { display: block; }

/* Reusable gradient-text utility, applied to the rotating headline,
   stat numbers, and other emphasis points instead of flat accent color */
.gradient-text,
#typing-headline {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(2.15rem, 3.7vw, 3.15rem); }
h3 { font-size: 1.4rem; }
p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gradient-button);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  transition: background-position 0.5s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: var(--glow-accent); transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: var(--accent);
}
.btn-white:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); transform: translateY(-2px); }
.btn-accent {
  background: var(--gradient-button);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  transition: background-position 0.5s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-accent:hover {
  background-position: 100% 50%;
  box-shadow: 0 20px 50px -15px var(--glow-button);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Navigation ------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.logo .mark {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  animation: spin-slow 12s linear infinite;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px var(--glow-color));
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.icon-sun { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.icon-moon { opacity: 1; transform: scale(1) rotate(0); }
.dark .icon-sun { opacity: 1; transform: scale(1) rotate(0); }
.dark .icon-moon { opacity: 0; transform: scale(0.5) rotate(90deg); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--text-primary); position: relative; }
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text-primary); transition: transform 0.25s var(--ease);
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

@media (max-width: 1080px) { .nav-links { gap: 26px; } }
@media (max-width: 960px) {
  /* The nav's backdrop-filter makes it the containing block for this fixed
     panel, so `bottom: 0` would resolve against the 76px bar and collapse the
     panel to zero height (items overflow, background vanishes). Size it
     explicitly instead. */
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h)); overflow-y: auto; background: var(--bg-primary); border-top: 1px solid var(--border); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 40px 32px; gap: 28px; transform: translateX(100%); transition: transform 0.45s var(--ease-cinematic); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-links .mobile-only { display: inline-flex !important; margin-top: 8px; font-size: 1rem; color: #fff; padding: 14px 26px; }
  .nav-burger { display: flex; }
  .nav-actions .btn-accent.desktop-only { display: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) 0 96px;
  overflow: hidden;
  background: #060d18;
}
@media (max-width: 780px) { .hero { min-height: 0; padding: calc(var(--nav-h) + 56px) 0 72px; } }
/* Video hero background — full-bleed aerial night footage with a dark
   navy overlay for legibility, replacing the old grid-line/blob treatment */
.hero-video-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #060d18 url('assets/video/hero-v2-poster.webp') center / cover no-repeat;
}
/* same breakpoint as the video's portrait/landscape switch, so the poster is
   always the identical crop of the frame the video fades in over */
@media (max-width: 900px) { .hero-video-wrap { background-image: url('assets/video/hero-v2-poster-portrait.webp'); } }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-cinematic);
}
.hero-video.is-playing { opacity: 1; }
/* Directional scrim instead of a blanket wash: dark only behind the text
   column and at the bottom edge (for the hand-off to the next section), so
   the footage itself stays vivid across the right half of the frame. The old
   uniform 55–94 % navy wash — plus a teal colour tint — is what made the film
   read as muddy and "compressed". */
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 24, 0.72) 0%, rgba(6, 13, 24, 0.52) 38%, rgba(6, 13, 24, 0.18) 66%, rgba(6, 13, 24, 0.04) 100%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.30) 0%, rgba(6, 13, 24, 0) 20%, rgba(6, 13, 24, 0) 62%, rgba(6, 13, 24, 0.97) 100%);
}
@media (max-width: 780px) {
  /* text spans the full width on phones — go back to a vertical scrim */
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(6, 13, 24, 0.55) 0%, rgba(6, 13, 24, 0.48) 55%, rgba(6, 13, 24, 0.96) 100%);
  }
}
.hero-scroll-cue {
  position: absolute;
  left: 32px; bottom: 32px;
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero-scroll-cue span {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
  animation: ndrz-scroll-cue 2.6s ease-in-out infinite;
}
@keyframes ndrz-scroll-cue {
  0% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0.3); transform-origin: bottom; }
}
@media (max-width: 780px) { .hero-scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue span { animation: none; } }

/* Hero text always renders light-on-dark now that there's real video
   footage behind it, regardless of the site's light/dark mode toggle */
.hero .eyebrow { color: #bcd4e6; }
.hero .eyebrow::before { -webkit-text-fill-color: #fff; background: none; color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 2px 28px rgba(6, 13, 24, 0.55); }
.hero .lede { color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 18px rgba(6, 13, 24, 0.7); }.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero .tilt-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.18);
}
.hero .tilt-card .stat-label { color: rgba(255, 255, 255, 0.72); }

/* =============================================================================
   Liquid-glass buttons (hero) — ported 1:1 from the 212cutzz site.
   A thick glass slab: the centre is perfectly clear (no blur, no tint) and all
   the optics live in the bevelled rim. The rim is built so that it fades into
   the plateau without a visible boundary:
   ::before        outer ring (strong refraction of the backdrop)
   ::after         wider, weaker ring – a second step toward the clear centre
   span::before    the light itself: soft inset glows that fall off inward
   box-shadow      sharp specular line along the top edge, drop shadow below
   ============================================================================= */
.btn-glass {
  /* 212cutzz .btn metrics */
  min-height: 52px; padding: 0 26px; border-radius: 999px; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em; line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);

  position: relative; isolation: isolate;
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.70),
    inset 0 -1px 0 rgba(255,255,255,0.14),
    0 1px 0 rgba(0,0,0,0.10),
    0 12px 30px -10px rgba(0,0,0,0.35);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.btn-glass:active { transform: scale(0.98); }
.btn-glass::before,
.btn-glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  /* ring mask: full box minus the content box */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.btn-glass::before {
  padding: 5px;
  -webkit-backdrop-filter: blur(5px) brightness(1.28) saturate(1.4) contrast(1.12);
          backdrop-filter: blur(5px) brightness(1.28) saturate(1.4) contrast(1.12);
}
.btn-glass::after {
  padding: 10px;
  -webkit-backdrop-filter: blur(2px) brightness(1.08) saturate(1.15);
          backdrop-filter: blur(2px) brightness(1.08) saturate(1.15);
}
.btn-glass > span { position: static; } /* pseudo below is positioned against the button */
.btn-glass > span::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: 999px;
  /* light on the bevel: brightest at the edge, dissolving into the plateau */
  box-shadow:
    inset 0 0 14px 1px rgba(255,255,255,0.16),
    inset 4px 5px 12px -5px rgba(255,255,255,0.50),
    inset -4px -5px 12px -5px rgba(255,255,255,0.28);
}
@media (hover: hover) { .btn-glass:hover { border-color: rgba(255,255,255,0.7); } }
@media (hover: hover) { .btn-glass:hover::before { -webkit-backdrop-filter: blur(5px) brightness(1.5) saturate(1.4) contrast(1.12); backdrop-filter: blur(5px) brightness(1.5) saturate(1.4) contrast(1.12); } }
@media (prefers-reduced-motion: reduce) { .btn-glass { transition: none; } }

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { margin-bottom: 26px; }

.hero-cta { display: flex; gap: 16px; margin: 40px 0 64px; flex-wrap: wrap; }

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
}
.tilt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease-out, box-shadow 0.3s var(--ease);
  transform-style: preserve-3d;
}
.tilt-card:hover { box-shadow: var(--glow-accent); }
.tilt-card .stat-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tilt-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
}
@media (max-width: 780px) { .hero-cards { grid-template-columns: 1fr; } }

/* ---------- Services grid ---------------------------------------------------- */

.service-panels { position: relative; }
.service-panel {
  display: none;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 52px;
  align-items: center;
}
.service-panel.active { display: grid; animation: fade-up 0.5s var(--ease); }
@media (max-width: 860px) { .service-panel { grid-template-columns: 1fr; gap: 32px; } }

@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; }
.feature-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}

.panel-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--accent-soft), var(--bg-secondary));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.panel-visual .glyph { font-family: var(--font-display); font-size: 8rem; color: var(--accent); opacity: 0.22; animation: spin-slow 18s linear infinite; }
.panel-visual .pin {
  position: absolute; padding: 10px 16px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 0.8rem; font-weight: 600; font-family: var(--font-mono);
}
.panel-visual .pin-1 { top: 18%; left: 12%; }
.panel-visual .pin-2 { bottom: 20%; right: 14%; }

/* ---------- Footer ---------------------------------------------------------- */
/* =============================================================================
   Footer — a dark, cinematic close to the page in BOTH themes, with the
   ambient loop behind it. The scrim fades from the page's own background at
   the top edge, so the band blends in whether the site is light or dark.
   ============================================================================= */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0;
  /* the long top padding is the blend zone: the page colour turns into the
     footer's night over ~190 px instead of meeting it at an edge */
  padding: 190px 0 44px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #02060d 20%, #050b15 40%, #050b15 100%);
  color: #e8eef7;
}
/* z-index 0, not -1: a negative-z child paints BEHIND its parent's own
   background, and .footer has an opaque one — which would hide the video
   completely. The content layer is lifted to 1 instead. */
.footer-ambient {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  /* frame 0 of the loop, 8 KB — it paints immediately, so the footer never
     sits empty while several megabytes of video are still in flight */
  background: url('assets/video/footer-ambient-poster.webp') center / cover no-repeat;
  /* the whole ambient block (poster, video, veil) dissolves in over the top
     third — the many stops keep the ramp from banding */
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.14) 12%, rgba(0,0,0,0.32) 18%,
    rgba(0,0,0,0.55) 24%, rgba(0,0,0,0.76) 30%, rgba(0,0,0,0.92) 36%, #000 44%);
  mask-image: linear-gradient(180deg,
    transparent 0%, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.14) 12%, rgba(0,0,0,0.32) 18%,
    rgba(0,0,0,0.55) 24%, rgba(0,0,0,0.76) 30%, rgba(0,0,0,0.92) 36%, #000 44%);
}
.footer > .container { position: relative; z-index: 1; text-shadow: 0 1px 14px rgba(5, 11, 21, 0.8); }
.footer-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  /* cross-fades over the poster, which is the same frame */
  transition: opacity 1.4s var(--ease-cinematic);
}

/* ---------- Focus lens -------------------------------------------------------
   One sharp video plus a blur layer with a hole in its mask, rather than two
   videos that would drift out of sync: whatever sits under the cursor is the
   real footage, everything else is defocused. --lens-r is registered so the
   hole can ease open and closed. */
@property --lens-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.footer-lens { display: none; }
.footer-ambient.has-lens .footer-lens {
  display: block;
  position: absolute; inset: 0;
  --lens-r: 0px;
  backdrop-filter: blur(24px) saturate(1.12) brightness(0.96);
  -webkit-backdrop-filter: blur(24px) saturate(1.12) brightness(0.96);
  -webkit-mask-image: radial-gradient(circle var(--lens-r) at var(--lens-x, 50%) var(--lens-y, 50%),
    transparent 0%, transparent 46%, rgba(0,0,0,0.55) 72%, #000 100%);
  mask-image: radial-gradient(circle var(--lens-r) at var(--lens-x, 50%) var(--lens-y, 50%),
    transparent 0%, transparent 46%, rgba(0,0,0,0.55) 72%, #000 100%);
  transition: --lens-r 0.5s var(--ease-cinematic);
}
.footer-ambient.has-lens.is-lensing .footer-lens { --lens-r: 230px; }
/* a faint ring so the sharp patch reads as a lens rather than an artefact */
.footer-ambient.has-lens .footer-glint {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: radial-gradient(circle 230px at var(--lens-x, 50%) var(--lens-y, 50%),
    transparent 60%, rgba(143, 211, 224, 0.10) 76%, transparent 84%);
}
.footer-ambient.has-lens.is-lensing .footer-glint { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .footer-ambient.has-lens .footer-lens { transition: none; }
}
.footer-video.is-playing { opacity: 1; }
/* The veil has to be light enough to SEE the footage: at 0.78 over a video
   already at 62 % opacity, a night-city pixel composited to rgb(8,14,28)
   against a rgb(5,11,21) band — i.e. pure black. ~0.45 keeps the bokeh
   clearly visible; legibility is secured by the text-shadow below instead. */
/* The veil starts fully transparent — the top fade is the video's own mask
   now — and settles around 0.44, light enough to read the footage. */
.footer-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 11, 21, 0) 0%,
      rgba(5, 11, 21, 0.10) 16%,
      rgba(5, 11, 21, 0.32) 28%,
      rgba(5, 11, 21, 0.44) 44%,
      rgba(5, 11, 21, 0.48) 74%,
      rgba(5, 11, 21, 0.72) 100%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(20, 122, 150, 0.20), transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .footer-video { display: none; } }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500;}
.footer-col a { display: block; font-size: 0.92rem; color: var(--text-primary); margin-bottom: 12px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-secondary); flex-wrap: wrap; gap: 12px; }

/* Light-on-dark type for the whole footer band, in both themes (these must
   come after the rules above — same specificity, later wins). */
.footer .logo { color: #fff; }
.footer .logo .mark { color: #7fd3e6; -webkit-text-fill-color: #7fd3e6; background: none; }
.footer .text-secondary { color: rgba(232, 238, 247, 0.62); }
.footer-col h4 { color: rgba(232, 238, 247, 0.5); }
.footer-col a { color: #e8eef7; opacity: 0.88; }
.footer-col a:hover { color: #7fd3e6; opacity: 1; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); color: rgba(232, 238, 247, 0.55); }

/* ---------- Skip link & scroll progress (accessibility + Swiss precision touch) --- */
.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 300;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gradient-brand);
  z-index: 150;
  box-shadow: 0 0 12px var(--glow-color);
}

/* =============================================================================
   Process / how-we-work timeline (genuinely sequential content — numbered)
   ============================================================================= */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .process-list { grid-template-columns: 1fr; } }
.process-step {
  padding: 32px 26px;
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-accent);
  border-color: transparent;
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--accent);
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }

/* =============================================================================
   Contact / lead capture form
   ============================================================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 36px; } }

.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .ci-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600;
}
.contact-info-item .ci-label { font-size: 0.78rem; color: var(--text-secondary); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-info-item .ci-value { font-weight: 600; font-size: 0.96rem; }

.contact-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.94rem;
  font-family: var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.form-row textarea { min-height: 110px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row.two-col { grid-template-columns: 1fr; } }
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; } /* no offset: a far-left offset is scrollable space in RTL */

.form-status { font-size: 0.86rem; padding: 12px 14px; border-radius: var(--radius-sm); margin-top: 4px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.form-status.error { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; display: none; animation: spin 0.7s linear infinite; }
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================================
   404 / error page
   ============================================================================= */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-page .glyph {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent);
  line-height: 1;
  animation: spin-slow 16s linear infinite;
  display: inline-block;
}
.error-page h1 { margin: 24px 0 12px; }
.error-page p { color: var(--text-secondary); max-width: 420px; margin: 0 auto 32px; }

/* =============================================================================
   Legal pages (privacy / terms)
   ============================================================================= */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 48px; margin-bottom: 16px; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.7; margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content ul li { margin-bottom: 8px; }
.legal-updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 40px; display: inline-block; }

/* =============================================================================
   MOBILE OPTIMIZATION — cohesive small-screen pass
   ============================================================================= */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }

  /* Hero: give the video room, tighten type, stack CTAs full-width */
  .hero { padding: calc(var(--nav-h) + 54px) 0 64px; min-height: 88vh; display: flex; align-items: center; }
  .hero-inner { width: 100%; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); }
  .hero .lede { font-size: 1rem; }
  .hero-cta { flex-direction: column; gap: 12px; margin: 30px 0 44px; }
  .hero-cta .btn { width: 100%; }
  .hero-video { /* keep the skyline centred and lively on tall screens */ object-position: center; }
  .hero-cards { gap: 14px; }
  .hero .tilt-card { padding: 20px 18px; }
  .hero-scroll-cue { display: none; }

  /* Typographic rhythm */
  h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  .section-head { margin-bottom: 40px; }

  /* Touch-friendly controls: min 44px targets, comfortable spacing */
  .btn { padding: 14px 22px; }
  .btn-lg { padding: 16px 26px; }
  /* Single-column everything that was multi-column */
  .process-list { gap: 14px; }
  /* Pricing cards: comfortable padding, keep the animated ring subtle */

  /* Cards lift less aggressively (avoids jitter on touch scroll) */
  .process-step:hover,
  .tilt-card:hover { transform: none; }

  /* Nav: slightly smaller logo, roomy tap area on burger */
  .logo { font-size: 1.05rem; }
  .nav-burger, .theme-toggle { width: 42px; height: 42px; }

  /* Admin dashboard becomes readable on phones */


  /* Modal fits small screens */

  /* Contact form single column */
  .contact-form { padding: 26px 20px; }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.8rem; }}

/* Respect notches / safe areas on modern phones */
@supports (padding: max(0px)) {
  .nav .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
}

.back-to-top {
  position: fixed;
  right: 24px; bottom: 88px;
  z-index: 115;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: none; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.25s var(--ease);
}
.back-to-top.enabled { display: flex; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .back-to-top { right: 16px; bottom: 80px; } }
/* =============================================================================
   SELECTED WORK — gallery of real projects in a browser-window frame, with
   category filters, blur-up loading, and a lightbox.
   ============================================================================= */
.work-headrow {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.work-headrow > div:first-child { max-width: 640px; }
.work-filters { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.work-filter {
  font: 500 0.85rem/1 var(--font-body);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.work-filter span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.8;
}
.work-filter:hover { color: var(--text-primary); border-color: var(--accent); }
.work-filter.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.work-filter.active span { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 900px) {
  .work-headrow { flex-direction: column; align-items: flex-start; gap: 24px; }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Sticky horizontal mode (html.work-horizontal is set by initWorkGallery on
   pointer-fine viewports ≥ 900 px without reduced motion). The section gets
   its tall height from JS; the pin sticks for the whole of it while the
   track is translated sideways in step with the scroll. */
.work-horizontal .work-section { padding: 0; }
.work-horizontal .work-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  isolation: isolate;
}
.work-horizontal .work-headrow { margin-bottom: 30px; align-items: flex-end; }
.work-horizontal .work-headrow h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.work-horizontal .work-headrow .lede { font-size: 1rem; margin-top: 12px !important; max-width: 560px; }
.work-horizontal .work-track-wrap { position: relative; z-index: 1; max-width: none; padding: 0; width: 100%; min-width: 0; } /* a flex item won't shrink below its 6 000 px track otherwise — and would anchor right in RTL */
.work-horizontal .work-grid {
  --card-w: clamp(300px, min(32vw, (100vh - 440px) * 1.75), 500px);
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 12px max(32px, calc((100vw - var(--container)) / 2 + 32px)) 12px;
  will-change: transform;
}
.work-horizontal .work-card { width: var(--card-w); flex: none; transition-delay: 0s !important; }
.work-horizontal .work-card.is-hidden { display: none; }
/* text is animated by the track, so no per-card reveal delay */
.work-progress {
  display: none;
  position: relative; z-index: 1;
  align-items: center; gap: 18px;
  margin: 28px auto 0;
  width: min(100% - 64px, var(--container) - 64px);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
}
.work-horizontal .work-progress { display: flex; }
.work-progress-count b { color: var(--text-primary); font-weight: 500; }
.work-progress-bar { flex: 1; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--text-primary) 10%, transparent); overflow: hidden; }
.work-progress-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--wp, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.work-progress-hint { opacity: 0.8; }

/* Dynamic backdrop: three drifting aurora blobs that also slide with the
   track (parallax via --wp), a grid that pans the opposite way, and the
   current project number as a giant outlined figure. */
.work-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: none; }
.work-horizontal .work-bg { display: block; }
.work-blob {
  position: absolute;
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  animation: ndrz-blob 22s ease-in-out infinite alternate;
}
.dark .work-blob, .zone-dark .work-blob { mix-blend-mode: screen; opacity: 0.35; }
.work-blob-1 { left: -12vw; top: -18vh; background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 62%); transform: translateX(calc(var(--wp, 0) * -30vw)); }
.work-blob-2 { right: -14vw; top: 10vh; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 62%); animation-delay: -8s; transform: translateX(calc(var(--wp, 0) * 24vw)); }
.work-blob-3 { left: 30vw; bottom: -26vh; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-gold) 45%, transparent), transparent 62%); animation-delay: -15s; transform: translateX(calc(var(--wp, 0) * -60vw)); }
@keyframes ndrz-blob {
  0% { translate: 0 0; scale: 1; }
  50% { translate: 4vw -3vh; scale: 1.08; }
  100% { translate: -3vw 4vh; scale: 0.96; }
}
.work-grid-lines {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--text-primary) 6%, transparent) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(0deg, color-mix(in srgb, var(--text-primary) 6%, transparent) 1px, transparent 1px) 0 0 / 120px 120px;
  background-position: calc(var(--wp, 0) * -600px) 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
}
.work-index {
  position: absolute; right: 4vw; bottom: -2vh;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(12rem, 30vw, 26rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--text-primary) 14%, transparent);
  transform: translateX(calc(var(--wp, 0) * -14vw));
  letter-spacing: -0.04em;
}
@media (prefers-reduced-motion: reduce) { .work-blob { animation: none; } }

.work-card {
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s var(--ease-cinematic), transform 0.5s var(--ease-cinematic);
}
.work-card.is-hidden { display: none; }
/* stagger the entrance across each row of three */
.work-card:nth-child(3n+2) { transition-delay: 0.08s; }
.work-card:nth-child(3n+3) { transition-delay: 0.16s; }
.work-card.is-entering { opacity: 0; transform: translateY(12px); }

.work-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease-cinematic), box-shadow 0.6s var(--ease-cinematic), border-color 0.4s var(--ease);
  text-align: left;
}
.work-card:hover .work-frame { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.work-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* faux browser chrome */
.work-chrome {
  display: flex; align-items: center; gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.work-chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.work-chrome b {
  margin-left: 10px;
  flex: 1;
  height: 16px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font: 400 0.62rem/16px var(--font-mono);
  color: var(--text-secondary);
  padding: 0 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.work-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 2714 / 1460;
  height: auto;
  object-fit: cover;
  /* blur-up: the tiny inline placeholder sits behind the real image until it decodes */
  background: var(--lqip) center / cover no-repeat;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.8s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}
.work-frame img.is-loaded { opacity: 1; transform: none; }
.work-card:hover .work-frame img.is-loaded { transform: scale(1.02); }

.work-meta { padding: 18px 4px 0; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-head h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.work-cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.work-meta p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; margin-top: 8px; }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.work-tags span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  background: rgba(4, 9, 18, 0.86);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-cinematic);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  width: min(1400px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.5s var(--ease-cinematic);
}
.lightbox.is-open .lightbox-figure { transform: none; }
.lightbox-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  background: #0a1626;
}
.lightbox-frame img { display: block; width: 100%; height: auto; max-height: calc(100vh - 200px); object-fit: contain; }
.lightbox figcaption { color: #fff; padding: 18px 4px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.lightbox figcaption strong { font-family: var(--font-display); font-size: 1.1rem; }
.lightbox figcaption span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8fd3e0; }
.lightbox figcaption p { flex-basis: 100%; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; margin: 0; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-close { top: 22px; right: 22px; font-size: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; padding-bottom: 4px; }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
body.lightbox-open { overflow: hidden; }
@media (max-width: 720px) {
  .lightbox { padding: 64px 12px 24px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
}

/* =============================================================================
   TRUST STRIP — four honest, verifiable commitments under the stats
   ============================================================================= */
.trust-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-strip li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.trust-strip svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.trust-strip strong { display: block; font-size: 0.92rem; font-weight: 600; }
.trust-strip span { display: block; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-top: 3px; }
@media (max-width: 1000px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-strip { grid-template-columns: 1fr; } }

/* =============================================================================
   Live showcase browser frame (services → Bespoke Web Development)
   ============================================================================= */
/* Stacked variant: copy row on top (title + paragraph left, 2×2 feature
   grid right), full-width browser frame below */
.service-panel-stack.active { display: block; }
.service-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: start;
  margin-bottom: 36px;
}
.service-copy h3 { font-size: 1.35rem; }
.service-copy p { margin-top: 12px; font-size: 0.98rem; line-height: 1.6; max-width: 520px; }
.feature-list-grid { margin-top: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.feature-list-grid li { font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 860px) {
  .service-copy { grid-template-columns: 1fr; gap: 20px; margin-bottom: 26px; }
  .feature-list-grid { grid-template-columns: 1fr; gap: 12px; }
}

.panel-visual-live,
.panel-visual-pack {
  aspect-ratio: auto;
  overflow: visible;
  background: none;
  border: 0;
  display: block;
}
.browser-frame {
  position: relative;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  overflow: hidden;
  transition: box-shadow 0.6s var(--ease-cinematic), border-color 0.6s var(--ease);
}
.panel-visual-live:hover .browser-frame { box-shadow: var(--glow-accent), var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
/* Bar styled like the gallery's window chrome: neutral dots, a pill address
   field in the site's mono face, status + open link on the right */
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.browser-url {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 30px; max-width: 420px; margin: 0 auto;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.browser-url svg { width: 12px; height: 12px; color: var(--accent); }
.browser-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.browser-open {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-primary);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.browser-open svg { width: 12px; height: 12px; }
.browser-open:hover { border-color: var(--accent); color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.browser-live i { width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6); animation: ndrz-live-dot 2s ease-out infinite; }
@keyframes ndrz-live-dot { 70% { box-shadow: 0 0 0 7px rgba(40, 200, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); } }
.browser-body {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08080a;
}
.browser-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: opacity 0.8s var(--ease-cinematic);
  z-index: 1;
}
.browser-frame.is-live .browser-poster { opacity: 0; pointer-events: none; }
/* The embedded site only takes the pointer after a click, so wheel-scrolling
   past the frame keeps scrolling THIS page instead of the site inside it */
.browser-viewport { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.browser-frame.is-interactive .browser-viewport { pointer-events: auto; }
.browser-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 6px);
  z-index: 4;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(8, 8, 10, 0.72); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.browser-frame.is-live:not(.is-interactive):hover .browser-hint { opacity: 1; transform: translate(-50%, 0); }
.browser-body { cursor: pointer; }
.browser-frame.is-interactive .browser-body { cursor: auto; }
.browser-viewport iframe {
  position: absolute; top: 0; left: 0;
  border: 0;
  background: #08080a;
  transform-origin: 0 0;
  display: block;
}
@media (max-width: 860px) {
  .browser-body { aspect-ratio: 4 / 3; }
  .browser-live { display: none; }
}
/* Phones: the frame becomes phone-shaped and the site inside is rendered at
   its own mobile width (see initLiveFrames), so the preview shows the real
   responsive layout at close to 1:1. */
@media (max-width: 700px) {
  .browser-body { aspect-ratio: 39 / 62; }
  .browser-body { cursor: default; }
  .browser-poster { object-position: top center; }
}
@media (max-width: 520px) {
  .browser-url { justify-content: flex-start; padding: 0 12px; }
  .browser-url, .browser-open { font-size: 0.66rem; }
}

/* ---------- Google local-pack mock (services → SEO) --------------------------- */
.map-pack {
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: grid;
  gap: 12px;
  position: relative;
}
.map-pack-search {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  font-size: 0.88rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.map-pack-search svg { width: 16px; height: 16px; color: var(--text-secondary); }
.map-pack-map {
  height: 120px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, color-mix(in srgb, var(--accent) 16%, transparent) 47%, color-mix(in srgb, var(--accent) 16%, transparent) 53%, transparent 53%) 0 0 / 100% 100%,
    linear-gradient(0deg, transparent 38%, color-mix(in srgb, var(--accent) 14%, transparent) 38%, color-mix(in srgb, var(--accent) 14%, transparent) 44%, transparent 44%),
    linear-gradient(0deg, transparent 72%, color-mix(in srgb, var(--accent) 10%, transparent) 72%, color-mix(in srgb, var(--accent) 10%, transparent) 76%, transparent 76%),
    linear-gradient(90deg, transparent 18%, color-mix(in srgb, var(--accent) 10%, transparent) 18%, color-mix(in srgb, var(--accent) 10%, transparent) 22%, transparent 22%),
    radial-gradient(color-mix(in srgb, var(--text-primary) 14%, transparent) 1px, transparent 1.5px) 0 0 / 14px 14px,
    color-mix(in srgb, var(--accent-soft) 70%, var(--bg-secondary));
}
.map-pack-pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--text-secondary);
  border: 2px solid var(--bg-elevated);
  box-shadow: var(--shadow);
}
.map-pack-pin:nth-child(2) { left: 22%; top: 30%; }
.map-pack-pin:nth-child(3) { left: 68%; top: 60%; }
.map-pack-pin.is-you { left: 48%; top: 36%; width: 20px; height: 20px; background: #d93025; z-index: 2; }
.map-pack-pin.is-you::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid #d93025; opacity: 0;
  animation: ndrz-pin-ping 2.2s ease-out infinite;
}
@keyframes ndrz-pin-ping { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.map-pack-list { display: grid; gap: 6px; }
.map-pack-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.9s var(--ease-cinematic), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.map-pack-list li.is-you { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }
/* Rows start in their "before" order (your business at #3) and reorder
   into the real ranking when the panel scrolls in */
.map-pack:not(.is-ranked) .map-pack-list li { transform: translateY(calc((var(--row) - var(--slot, 0)) * 100%)); }
.map-pack-list li:nth-child(1) { --slot: 0; }
.map-pack-list li:nth-child(2) { --slot: 1; }
.map-pack-list li:nth-child(3) { --slot: 2; }
.mp-rank {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  color: var(--text-secondary);
}
.is-you .mp-rank { background: var(--gradient-button); color: #fff; }
.mp-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mp-body strong { font-size: 0.9rem; font-weight: 600; }
.mp-meta { font-size: 0.74rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-meta b { font-weight: 600; color: var(--text-primary); }
.mp-meta em { font-style: normal; color: #f4b400; letter-spacing: -1px; }
.mp-badge {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: var(--gradient-button); color: #fff;
}

/* Animated list (notifications) */
.notif-stack {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  height: 232px;
}
.notif {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-primary) 60%, var(--bg-elevated));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: ndrz-notif-in 0.7s var(--ease-cinematic);
  flex-shrink: 0;
}
@keyframes ndrz-notif-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
.notif-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.notif-icon svg { width: 18px; height: 18px; }
.notif-body { min-width: 0; flex: 1; display: grid; gap: 1px; }
.notif-body strong { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-body span { font-size: 0.74rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-secondary); flex-shrink: 0; }

/* ---------- Tracing beam over the process steps -------------------------------- */
.process-beam {
  position: relative;
  height: 2px;
  margin: 0 24px 28px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--text-primary) 8%, transparent);
  overflow: visible;
}
.process-beam span {
  position: absolute; inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-gold));
  transform: scaleX(var(--beam, 0));
  transform-origin: left;
  transition: transform 0.25s linear;
}
.process-beam span::after {
  content: ''; position: absolute; right: -5px; top: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px var(--glow-color);
  opacity: calc(var(--beam, 0) * 3);
}
@media (max-width: 860px) { .process-beam { margin: 0 0 22px; } }

/* =============================================================================
   MOBILE-NATIVE LAYER
   Below 960 px the site stops being "the desktop layout, smaller" and becomes
   a mobile app shell: navigation moves into the thumb zone as a bottom tab
   bar, dense multi-column blocks become horizontal snap carousels, every
   interactive element gets a ≥44 px target with real press feedback, and
   dialogs become bottom sheets. Everything here is additive — the desktop
   layout above 960 px is untouched.
   ============================================================================= */
:root {
  --tabbar-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gutter: 18px;
}

html { -webkit-text-size-adjust: 100%; }

/* No grey flash on tap anywhere; presses are expressed with scale instead. */
@media (hover: none) {
  a, button, [role='button'], input, label, summary {
    -webkit-tap-highlight-color: transparent;
  }
  /* Hover lifts are sticky on touch — neutralise them so nothing stays raised
     after a tap. */
  .process-step:hover,
  .tilt-card:hover,
  .work-card:hover .work-frame, .theme-toggle:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  .theme-toggle:hover { box-shadow: none; }
}

/* Universal press feedback (a "haptic" scale-down + dim) */
@media (max-width: 960px) {
  .btn, .tab, .work-filter, .work-frame, .theme-toggle, .lightbox-close, .lightbox-nav, .back-to-top, .browser-open {
    transition: transform 0.16s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.16s linear,
                background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  }
  .btn:active, .work-filter:active, .work-frame:active,
  .theme-toggle:active, .lightbox-close:active,
  .lightbox-nav:active, .back-to-top:active, .browser-open:active {
    transform: scale(0.955);
    opacity: 0.9;
  }}

/* ---------------------------------------------------------------------------
   Bottom tab bar — primary navigation in the thumb zone
   --------------------------------------------------------------------------- */
.tabbar { display: none; }

@media (max-width: 960px) {
  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    height: calc(var(--tabbar-h) + var(--safe-b));
    padding: 0 6px var(--safe-b);
    background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px -18px rgba(9, 13, 22, 0.55);
    transition: transform 0.38s var(--ease-cinematic);
  }
  /* The bar steps out of the way for full-screen surfaces (sheet, lightbox) */
  body.lightbox-open .tabbar { transform: translateY(110%); }  .tab {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 6px 2px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
  }
  .tab-ico {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 11px;
    transition: background-color 0.28s var(--ease), transform 0.28s var(--ease-cinematic), color 0.28s var(--ease);
  }
  .tab-ico svg { width: 21px; height: 21px; }
  .tab-label { line-height: 1; }
  .tab:active .tab-ico { transform: scale(0.88); }
  .tab.is-active { color: var(--text-primary); }
  .tab.is-active .tab-ico { background: var(--accent-soft); color: var(--accent); }
  /* the active pill indicator rides the top edge of the bar */
  .tab.is-active::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    width: 26px; height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
    transform: translateX(-50%);
  }
  /* the fifth item is the primary CTA, not a peer destination */
  .tab-cta .tab-ico {
    background: var(--gradient-button);
    color: #fff;
    box-shadow: 0 6px 18px -8px var(--glow-button);
  }
  .tab-cta.is-active .tab-ico { background: var(--gradient-button); color: #fff; }
  .tab-cta.is-active::before { display: none; }

  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  /* The top bar keeps only identity + theme; navigation lives at the bottom. */
  .nav-burger, .nav-links, .nav-actions .btn-accent { display: none !important; }
  .nav .container { justify-content: space-between; }

  /* Floating widgets sit above the bar, never under it */
  .back-to-top { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); right: 14px; z-index: 118; }  /* The pinned gallery must not hide its last row behind the bar */
  .work-horizontal .work-pin { height: calc(100svh - var(--tabbar-h) - var(--safe-b)); }
}

/* ---------------------------------------------------------------------------
   Touch ergonomics — nothing interactive smaller than 44 px
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .theme-toggle { width: 44px; height: 44px; }
  .work-filter { min-height: 44px; padding: 11px 16px; }  .browser-bar { height: 56px; }
  .browser-open { height: 44px; padding: 0 14px; }
  .logo { display: inline-flex; align-items: center; min-height: 44px; }  /* Footer links are the classic sub-44 px offender (they stay block-level —
     only their hit area grows). */
  .footer-col a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Form fields: 16 px minimum, or iOS Safari zooms the whole page on focus */
@media (max-width: 960px) {
  .form-row input, .form-row textarea, .fs-endpoint input {
    font-size: 16px;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .form-row textarea { min-height: 128px; }
  .form-row label { font-size: 0.86rem; margin-bottom: 10px; }
  .form-row { margin-bottom: 18px; }
}

/* Range sliders get a 44 px tall touch area while the track stays 6 px.
   The fill, the ticks and the rail are painted as centred backgrounds so the
   element can be tall without looking tall. */
@media (pointer: coarse) {
  input[type='range'] {
    height: 44px;
    border-radius: 0;
    background:
      linear-gradient(90deg, var(--accent), var(--accent-2)) left center / var(--p, 0%) 6px no-repeat,
      repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), color-mix(in srgb, var(--text-primary) 18%, transparent) calc(10% - 1px) 10%) center / 100% 6px no-repeat,
      linear-gradient(var(--border), var(--border)) center / 100% 6px no-repeat;
  }
  input[type='range']::-webkit-slider-runnable-track { height: 44px; background: transparent; }
  input[type='range']::-webkit-slider-thumb { margin-top: 11px; width: 26px; height: 26px; }
  input[type='range']::-moz-range-track { height: 44px; background: transparent; }
  input[type='range']::-moz-range-progress { background: transparent; }
  input[type='range']::-moz-range-thumb { width: 26px; height: 26px; }}

/* ---------------------------------------------------------------------------
   One axis only. The gallery is the single place on the site where content
   moves sideways, and it does so by being pinned (below) — everything else
   stacks, so a sideways swipe is never ambiguous.
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; gap: 20px; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-list { grid-template-columns: 1fr; gap: 12px; }
  .work-filters { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   The pinned gallery on phones. Exactly the desktop mechanic — the section is
   taller than the viewport, the inner pin sticks to the top, and vertical
   scroll drives the track sideways — with a compact header so the cards get
   the room they need on a short screen.
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .work-horizontal .work-pin { padding-top: calc(var(--nav-h) + 8px); }
  .work-horizontal .work-headrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .work-horizontal .work-headrow .eyebrow,
  .work-horizontal .work-headrow .lede { display: none; }
  .work-horizontal .work-headrow h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .work-horizontal .work-filters { gap: 6px; }
  .work-horizontal .work-filter { padding: 11px 12px; font-size: 0.78rem; }
  .work-horizontal .work-grid {
    --card-w: min(78vw, 330px);
    gap: 14px;
    padding: 6px var(--gutter) 10px;
  }
  .work-horizontal .work-frame { border-radius: 14px; }
  .work-horizontal .work-meta { padding: 12px 2px 0; }
  .work-horizontal .work-meta p { font-size: 0.84rem; margin-top: 6px; }
  .work-horizontal .work-tags { margin-top: 8px; }
  .work-horizontal .work-progress { margin-top: 10px; width: calc(100% - var(--gutter) * 2); }
  .work-horizontal .work-index { font-size: 9rem; right: -1vw; bottom: -3vh; }
  .work-progress { font-size: 0.66rem; gap: 12px; }
}

/* ---------------------------------------------------------------------------
   Rhythm, hierarchy and density on phones
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .container { padding: 0 var(--gutter); }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-head { margin-bottom: 28px; }
  .page-top { padding-top: calc(var(--nav-h) + 28px); }

  h1 { font-size: clamp(2rem, 8.6vw, 2.75rem); letter-spacing: -0.03em; }
  h2 { font-size: clamp(1.55rem, 6.4vw, 2rem); letter-spacing: -0.025em; }
  h3 { font-size: 1.12rem; }
  p.lede { font-size: 1rem; line-height: 1.6; }
  .eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; }

  /* Hero fits above the tab bar, so the whole first impression is one screen */
  .hero { min-height: calc(100svh - var(--tabbar-h) - var(--safe-b)); padding: calc(var(--nav-h) + 40px) 0 28px; }
  .hero-inner { display: flex; flex-direction: column; }
  .hero-cta { margin: 26px 0 26px; }
  .hero .btn-glass { width: 100%; min-height: 54px; }
  .hero-cards { margin-top: auto; }
  .hero .tilt-card { padding: 16px 16px 18px; }
  .hero .tilt-card .stat-num { font-size: 1.6rem; }

  /* Cards: less padding, tighter corners, stronger separation */
  .process-step { padding: 22px 20px; border-radius: 18px; }  .contact-form { padding: 22px 18px; border-radius: 20px; }
  /* Stats read better as a 2×2 block than four stacked slabs */
  .trust-strip { grid-template-columns: 1fr; }

  /* Price never wraps mid-figure */
  .price-amount { flex-wrap: nowrap; align-items: baseline; }
  .price-amount .num { font-size: 2.15rem; white-space: nowrap; }
  .price-amount .unit { white-space: nowrap; }
  /* The ROI result stays on screen while the sliders are being dragged */
  .slider-group { margin-bottom: 22px; }
  .slider-label { margin-bottom: 6px; }

  /* Services: two equal full-width tabs, copy before proof */

  /* Footer: a shorter but still cinematic dark band above the tab bar */
  .footer { padding: 130px 0 36px; }
  .footer-top { margin-bottom: 36px; gap: 28px; }
  .footer-cols { gap: 28px; width: 100%; }
  .footer-col { min-width: 132px; }
  .footer-bottom { padding-top: 22px; font-size: 0.76rem; gap: 8px; }

  .cta-banner { padding: 40px 22px; }
  .cta-banner .btn { width: 100%; }
  .avatar-circles span, .avatar-circles b { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------------------------
   Dialogs become bottom sheets
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Lightbox: full-bleed image, controls in the thumb zone */
  .lightbox { padding: 0; }
  .lightbox-figure { width: 100%; height: 100%; justify-content: center; padding: calc(var(--safe-t) + 60px) 12px calc(var(--safe-b) + 84px); }
  .lightbox-frame { border-radius: 16px; }
  .lightbox-frame img { max-height: 58svh; }
  .lightbox figcaption { padding: 16px 4px 0; }
  .lightbox figcaption strong { font-size: 1rem; }
  .lightbox-close {
    top: calc(var(--safe-t) + 12px); right: 12px;
    width: 46px; height: 46px;
  }
  .lightbox-close svg { width: 20px; height: 20px; }
  .lightbox-nav {
    top: auto; bottom: calc(var(--safe-b) + 18px);
    transform: none;
    width: 52px; height: 52px;
    font-size: 1.5rem;
  }
  .lightbox-nav.prev { left: 22px; }
  .lightbox-nav.next { right: 22px; }
  .lightbox-nav:hover { transform: none; }
}
/* =============================================================================
   COMMERCIAL SITE — components added for the production site
   (icons, language menu, hero offer, live assistant, product pillars, setup &
   monthly plans, Gemini, pricing, FAQ, contact form, legal pages, RTL).
   ============================================================================= */

/* ---------- Icons (Lucide sprite: /assets/icons.svg) ------------------------ */
.icon {
  width: 1.15em; height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}
.btn .icon { width: 18px; height: 18px; }
section[id], main [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.back-to-top { display: flex; pointer-events: none; }
.back-to-top.visible { pointer-events: auto; }
.back-to-top .icon { width: 20px; height: 20px; }

/* Text is hidden for the instant a remembered non-French language loads. */
.i18n-pending [data-i18n] { visibility: hidden; }

/* ---------- Navigation additions ------------------------------------------- */
.nav-links a { font-size: 0.92rem; }
.nav-cta { padding: 11px 18px; font-size: 0.88rem; }
.nav-solid { background: var(--bg-primary); border-bottom-color: var(--border); position: sticky; }
.nav-back { padding: 10px 16px; font-size: 0.88rem; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: 600 0.8rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); }
.lang-btn .icon { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 170px;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 130;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 42px; padding: 0 12px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--text-primary);
  font: 500 0.92rem/1 var(--font-body);
  text-align: start;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--accent-soft); outline: none; }
.lang-menu button[aria-checked="true"]::after {
  content: ''; width: 16px; height: 16px;
  background: var(--accent);
  -webkit-mask: var(--check-mask) center / contain no-repeat;
  mask: var(--check-mask) center / contain no-repeat;
}
:root { --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Hero ----------------------------------------------------------- */
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); margin-bottom: 22px; color: #fff; }
.hero h1 > span { display: block; }
.hero h1 > span:last-child { background: linear-gradient(120deg, #9fdcea, #4fd1e0); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero .lede { max-width: 640px; }
.hero-statement {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 18px rgba(6, 13, 24, 0.7);
}
.hero-cta { margin: 32px 0 14px; }
.btn-glass > span { display: inline-flex; align-items: center; gap: 10px; }
.btn-glass .icon { width: 18px; height: 18px; }
.btn-glass-quiet { border-color: rgba(255, 255, 255, 0.24); }
.hero-price {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(6, 13, 24, 0.7);
  margin-bottom: 44px;
}
.hero-price strong { color: #fff; font-weight: 600; }
.hero-facts { grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; }
.hero-facts .tilt-card { padding: 18px 18px 20px; display: grid; gap: 4px; }
.hero-facts .stat-num { font-size: 1.7rem; line-height: 1.1; }
.hero-scroll-cue em { font-style: normal; }
@media (max-width: 900px) { .hero-facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Shared lists ---------------------------------------------------- */
.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.check-list .icon {
  width: 22px; height: 22px; padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 2.6;
  margin-top: 1px;
}
.tick-list { display: grid; gap: 10px; }
.tick-list li { position: relative; padding-inline-start: 26px; font-size: 0.93rem; line-height: 1.5; color: var(--text-primary); }
.tick-list li::before {
  content: '';
  position: absolute; inset-inline-start: 0; top: 0.28em;
  width: 16px; height: 16px;
  background: var(--accent-2);
  -webkit-mask: var(--check-mask) center / contain no-repeat;
  mask: var(--check-mask) center / contain no-repeat;
}
.tick-cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.small-note { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.55; margin-top: 16px; }
.figure-note { margin-top: 12px; font-size: 0.76rem; font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--text-secondary); text-align: center; }

/* ---------- Live assistant ------------------------------------------------- */
.demo-section { background: var(--bg-secondary); border-block: 1px solid var(--border); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.demo-gemini {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-size: 1rem; font-weight: 500;
  color: var(--text-primary);
}
.gemini-mark { width: 1.35em; height: 1.35em; flex: none; }
.demo-gemini .gemini-mark { width: 24px; height: 24px; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }

.chat {
  display: flex; flex-direction: column;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 560px;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar, .msg-avatar {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--gradient-button);
  color: #fff;
}
.chat-avatar .icon { width: 21px; height: 21px; }
.chat-id { display: grid; gap: 2px; min-width: 0; flex: 1; }
.chat-id strong { font-size: 0.98rem; }
.chat-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--text-secondary); }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.chat-reset {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chat-reset:hover { color: var(--accent); border-color: var(--accent); }
.chat-reset .icon { width: 18px; height: 18px; }

.chat-log {
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 18px 8px;
  min-height: 300px;
  max-height: min(56vh, 480px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.chat-log:focus-visible { outline-offset: -3px; }
.chat-noscript { font-size: 0.9rem; color: var(--text-secondary); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; animation: ndrz-msg-in 0.35s var(--ease-cinematic); }
@keyframes ndrz-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-avatar { width: 30px; height: 30px; border-radius: 9px; }
.msg-avatar .icon { width: 16px; height: 16px; }
.msg-bubble {
  max-width: min(84%, 460px);
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.msg-bot .msg-bubble { background: var(--bg-secondary); border: 1px solid var(--border); border-end-start-radius: 6px; }
.msg-user { justify-content: flex-end; }
.msg-user .msg-bubble { background: var(--gradient-button); color: #fff; border-end-end-radius: 6px; }
.msg-text p + p, .msg-text p + ul, .msg-text ul + p { margin-top: 8px; }
.msg-text ul { display: grid; gap: 4px; padding-inline-start: 18px; list-style: disc; margin: 0; }
.msg-text strong { font-weight: 600; }
.msg-typing .msg-bubble { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-secondary); opacity: 0.4; animation: ndrz-dot 1.2s infinite ease-in-out; }
.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ndrz-dot { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.msg-error .msg-bubble { border-color: color-mix(in srgb, #ef4444 40%, var(--border)); }
.msg-error p { display: flex; gap: 8px; align-items: flex-start; }
.msg-error p .icon { color: #ef4444; margin-top: 3px; }
.msg-error-actions, .msg-action { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-error-actions { margin-top: 10px; }
.msg-action { padding-inline-start: 40px; animation: ndrz-msg-in 0.35s var(--ease-cinematic); }
.msg-note { width: 100%; font-size: 0.84rem; color: var(--text-secondary); }
.chip-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--bg-elevated);
  color: var(--accent);
  font: 600 0.84rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip-btn:hover { background: var(--accent-soft); }
.chip-btn .icon { width: 16px; height: 16px; }

.callback-card {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-elevated));
}
.callback-title { grid-column: 1 / -1; font-weight: 600; font-size: 0.95rem; }
.callback-hint { grid-column: 1 / -1; font-size: 0.82rem; color: var(--text-secondary); margin-top: -6px; }
.callback-field { display: grid; gap: 5px; }
.callback-field:last-of-type { grid-column: 1 / -1; }
.callback-field label { font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); }
.callback-field input, .callback-field textarea {
  width: 100%;
  min-height: 42px; padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: 400 16px/1.4 var(--font-body);
  resize: vertical;
}
.callback-field input:focus, .callback-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.callback-card .btn { grid-column: 1 / -1; justify-self: start; }
.btn-sm { padding: 10px 16px; font-size: 0.86rem; }
.callback-status { grid-column: 1 / -1; font-size: 0.84rem; min-height: 1em; }
.callback-status.is-error { color: #dc2626; }
.callback-card.is-sent { display: block; }
.callback-done { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.callback-done .icon { color: #16a34a; width: 20px; height: 20px; margin-top: 1px; }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 12px; }
.chat-suggestions[hidden] { display: none; }
.chat-suggestions button {
  min-height: 38px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 500 0.84rem/1.2 var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chat-suggestions button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chat-form {
  display: flex; align-items: flex-end; gap: 10px;
  margin: 0 14px;
  padding: 8px 8px 8px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
[dir="rtl"] .chat-form { padding: 8px 16px 8px 8px; }
.chat-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-form textarea {
  flex: 1;
  min-height: 42px; max-height: 132px;
  padding: 10px 0;
  border: 0; outline: none; resize: none;
  background: transparent;
  color: var(--text-primary);
  font: 400 16px/1.4 var(--font-body);
}
.chat-send {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px;
  border: 0;
  background: var(--gradient-button);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.2s var(--ease);
}
.chat-send:disabled { opacity: 0.5; cursor: progress; }
.chat-send .icon { width: 19px; height: 19px; }
.chat-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px 16px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-align: center;
}
.chat-foot .gemini-mark { width: 16px; height: 16px; }
.chat-foot > span:first-of-type { font-weight: 500; color: var(--text-primary); }
@media (max-width: 520px) { .chat-foot > [aria-hidden="true"] { display: none; } }

/* ---------- Product pillars & journey ---------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px 24px 26px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.4s var(--ease-cinematic), box-shadow 0.4s var(--ease-cinematic), border-color 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.pillar-letter {
  position: absolute; inset-inline-end: 20px; top: 14px;
  font-family: var(--font-display); font-weight: 500; font-size: 2.8rem; line-height: 1;
  color: color-mix(in srgb, var(--text-primary) 7%, transparent);
}
.pillar-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pillar-icon .icon { width: 23px; height: 23px; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 10px; }
.pillar p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

.journey {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
  counter-reset: none;
}
.journey li {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 12px;
  font-weight: 600; font-size: 0.92rem;
}
.journey li + li { border-inline-start: 1px solid var(--border); }
.journey li .icon { color: var(--accent-2); width: 19px; height: 19px; }
.journey li:last-child { color: var(--accent); }
.journey-note { margin-top: 20px; text-align: center; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
@media (max-width: 700px) {
  .journey { grid-template-columns: 1fr 1fr; }
  .journey li:nth-child(3) { border-inline-start: 0; }
  .journey li:nth-child(n+3) { border-top: 1px solid var(--border); }
}

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-grid li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.why-grid .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.why-grid strong { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.why-grid span { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Setup (1 990) & monthly (1 090) ---------------------------------- */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.plan-head > div { max-width: 720px; }
.plan-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.price-tag {
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.plan-note {
  max-width: 330px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border));
  font-size: 0.9rem; line-height: 1.55;
  color: var(--text-secondary);
}
@media (max-width: 960px) { .plan-head { flex-direction: column; align-items: flex-start; gap: 20px; } .plan-note { max-width: none; } }

.setup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.setup-card {
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.setup-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.setup-card header .icon { width: 22px; height: 22px; color: var(--accent); }
.setup-card h3 { font-size: 1.02rem; }
@media (max-width: 1080px) { .setup-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .setup-grid { grid-template-columns: 1fr; } }

.monthly { background: var(--bg-secondary); border-block: 1px solid var(--border); }
.monthly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex; flex-direction: column; gap: 14px;
}
.m-card header { display: flex; align-items: center; gap: 12px; }
.m-card h3 { font-size: 1.08rem; }
.m-card > p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.m-card > p strong { color: var(--text-primary); }
.m-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.m-icon .icon { width: 21px; height: 21px; }
.m-card-lead { grid-column: span 2; background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 80%, var(--bg-elevated)), var(--bg-elevated) 60%); }
.m-card-lead .m-icon { background: var(--gradient-button); color: #fff; }
.kb-bubbles { display: grid; gap: 8px; }
.kb-bubbles span {
  justify-self: start;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}
[dir="rtl"] .kb-bubbles span { border-radius: 14px 14px 4px 14px; }
.lead-feed { position: relative; }
.lead-feed-label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.notif-static { height: auto; -webkit-mask-image: none; mask-image: none; gap: 8px; }
.notif-static .notif { animation: none; box-shadow: none; padding: 10px 12px; }
.notif-static .notif-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.notif-static .notif-icon .icon { width: 16px; height: 16px; }
@media (max-width: 1080px) { .monthly-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .monthly-grid { grid-template-columns: 1fr; } .m-card-lead { grid-column: auto; } .tick-cols { grid-template-columns: 1fr; } }

/* ---------- How the assistant works ------------------------------------------ */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.how-steps { display: grid; gap: 18px; margin-top: 32px; }
.how-steps li { display: flex; gap: 16px; align-items: flex-start; }
.how-n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); padding-top: 3px; min-width: 22px; }
.how-steps strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.how-steps span:not(.how-n) { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.convo {
  margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.convo figcaption { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.convo-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.convo-msg.is-user { align-self: flex-end; background: var(--gradient-button); color: #fff; border-end-end-radius: 5px; }
.convo-msg.is-bot { align-self: flex-start; background: var(--bg-secondary); border: 1px solid var(--border); border-end-start-radius: 5px; }
.convo-note { margin-top: 6px; font-size: 0.74rem; color: var(--text-secondary); }
@media (max-width: 960px) { .how-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Gemini / technology --------------------------------------------- */
.tech { position: relative; overflow: hidden; isolation: isolate; background: #06101d; color: #e8eef7; }
.tech-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(34, 184, 196, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(44, 127, 168, 0.22), transparent 70%),
    linear-gradient(color-mix(in srgb, #fff 4%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, color-mix(in srgb, #fff 4%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 100%);
}
.tech h2 { color: #fff; }
.tech .lede { color: rgba(232, 238, 247, 0.75); }
.eyebrow-light { color: #8fd3e0; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.model-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.model-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(143, 211, 224, 0.35);
  background: rgba(143, 211, 224, 0.08);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: #fff;
}
.model-chip .gemini-mark { width: 18px; height: 18px; }
.tech-statement { margin-top: 20px; font-size: 0.92rem; line-height: 1.6; color: rgba(232, 238, 247, 0.62); max-width: 520px; }
.tech-points { display: grid; gap: 14px; }
.tech-points li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}
.tech-points .icon { color: #8fd3e0; width: 22px; height: 22px; margin-top: 2px; }
.tech-points strong { display: block; color: #fff; margin-bottom: 4px; }
.tech-points span { font-size: 0.9rem; color: rgba(232, 238, 247, 0.66); line-height: 1.55; }
@media (max-width: 960px) { .tech-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Local visibility ------------------------------------------------ */
.local-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.honest-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 26px; padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.88rem; line-height: 1.55; color: var(--text-secondary);
}
.honest-note .icon { color: var(--accent); margin-top: 2px; }
.mp-badge-icon { color: #d93025; width: 18px; height: 18px; }
@media (max-width: 960px) { .local-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Portfolio additions --------------------------------------------- */
.concept-badge {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.work-cat { display: inline-flex; align-items: center; gap: 5px; }
.kind-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gold); }
.soon-card {
  display: flex; align-items: center; gap: 22px;
  padding: 28px 30px;
  border-radius: 22px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--bg-secondary);
}
.soon-card > .icon { width: 32px; height: 32px; color: var(--accent); }
.soon-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.soon-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.soon-card .btn { margin-inline-start: auto; }
@media (max-width: 760px) { .soon-card { flex-direction: column; align-items: flex-start; } .soon-card .btn { margin-inline-start: 0; } }

/* ---------- Process additions ----------------------------------------------- */
.process-step .num { margin-bottom: 16px; }
.process-step > .icon { display: block; width: 24px; height: 24px; color: var(--accent); margin-bottom: 14px; }

/* ---------- Offer ----------------------------------------------------------- */
.offer-card {
  max-width: 1040px; margin: 0 auto;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.offer-top {
  padding: 36px 40px 30px;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.offer-name { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.offer-prices { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0 16px; flex-wrap: wrap; }
.offer-price { display: grid; gap: 4px; justify-items: center; }
.offer-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1; white-space: nowrap; }
.offer-amount small { font-size: 0.42em; font-weight: 600; color: var(--text-secondary); }
.offer-price.is-main .offer-amount { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offer-price.is-main .offer-amount small { -webkit-text-fill-color: var(--text-secondary); }
.offer-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.offer-plus { font-family: var(--font-display); font-size: 1.8rem; color: var(--text-secondary); }
.offer-explain { max-width: 640px; margin: 0 auto; font-size: 0.98rem; line-height: 1.6; }
.offer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 32px 40px; }
.offer-cols h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.offer-cols h3 .icon { width: 17px; height: 17px; }
.offer-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0 40px 36px; }
@media (max-width: 960px) { .offer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .offer-top { padding: 28px 20px 24px; }
  .offer-cols { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; }
  .offer-cta { padding: 0 22px 26px; }
  .offer-cta .btn { width: 100%; }
  .offer-prices { gap: 10px; flex-direction: column; }
}
.offer-extras { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; max-width: 1040px; margin: 20px auto 0; }
.extras-card { padding: 26px 26px 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--bg-elevated); }
.extras-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 8px; }
.extras-card h3 .icon { color: var(--accent); }
.extras-card > p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.extras-card .tick-list { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-secondary); font-size: 0.84rem; }
@media (max-width: 860px) { .offer-extras { grid-template-columns: 1fr; } }

/* ---------- FAQ -------------------------------------------------------------- */
.faq-wrap { max-width: 820px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 2px;
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent); transition: transform 0.3s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 2px 20px; }
.faq-a p { font-size: 0.96rem; line-height: 1.7; color: var(--text-secondary); max-width: 70ch; }

/* ---------- Contact ---------------------------------------------------------- */
.contact-section { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.next-steps { display: grid; gap: 16px; margin: 30px 0 34px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps li > span {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-button); color: #fff;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.next-steps strong { display: block; margin-bottom: 2px; }
.next-steps div span { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.channels { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-elevated); }
.channels-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.channels ul { display: grid; gap: 10px; }
.channels li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; flex-wrap: wrap; }
.channels li .icon { color: var(--accent); }
.ch-label { font-weight: 600; min-width: 84px; }
.ch-value a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.is-example .ch-value, .is-example { color: var(--text-secondary); }
.example-tag {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px dashed currentColor;
  font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  opacity: 0.85;
  white-space: nowrap;
}
.contact-form { position: relative; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .pref legend { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); }
.req { color: #dc2626; }
.form-row select {
  width: 100%;
  min-height: 48px; padding: 12px 40px 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  color: var(--text-primary);
  font: 400 0.94rem var(--font-body);
  appearance: none;
}
[dir="rtl"] .form-row select { padding: 12px 14px 12px 40px; background-position: left 12px center; }
.form-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"], .form-row select[aria-invalid="true"] { border-color: #dc2626; }
.field-error { font-size: 0.8rem; color: #dc2626; }
.field-hint { margin: -8px 0 18px; font-size: 0.8rem; color: var(--text-secondary); }
.pref { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.pref legend { width: 100%; margin-bottom: 8px; padding: 0; }
.pref label {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  font-size: 0.9rem; font-weight: 500; color: var(--text-primary);
  cursor: pointer;
}
.pref label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pref input { accent-color: var(--accent); width: 16px; height: 16px; min-height: 0; margin: 0; }
.form-legal { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 18px; }
.form-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .btn-lg .icon { width: 18px; height: 18px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 0.88rem; background: var(--bg-secondary); }
.form-status[hidden] { display: none; }
.form-status.is-error { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
.dark .form-status.is-error { color: #fca5a5; }
.contact-form.is-done > :not(.form-success) { display: none; }
.form-success { display: grid; justify-items: center; gap: 12px; padding: 40px 12px; text-align: center; outline: none; }
.form-success > .icon { width: 44px; height: 44px; color: #16a34a; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--text-secondary); max-width: 420px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Footer additions ------------------------------------------------ */
.footer-brand { max-width: 320px; }
.footer-brand p { margin: 14px 0 22px; font-size: 0.9rem; line-height: 1.6; }
.footer-cta { min-height: 48px; }
.footer-col h2 {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-family: var(--font-mono); font-weight: 500;
  color: rgba(232, 238, 247, 0.5);
  margin-bottom: 16px;
}
.footer-contact { font-size: 0.86rem; color: rgba(232, 238, 247, 0.75); margin-bottom: 10px; }
.footer-contact .ch-label { min-width: 0; margin-inline-end: 4px; color: rgba(232, 238, 247, 0.9); }
.footer .example-tag { opacity: 0.7; }
.footer-legal-ids a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-simple { padding: 36px 0; }
.footer-simple .footer-bottom { border-top: 0; padding-top: 0; }
.footer-inline { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inline a { color: rgba(232, 238, 247, 0.8); }
.footer-inline a:hover { color: #7fd3e6; }

/* ---------- Legal pages & 404 -------------------------------------------------- */
.legal { max-width: 780px; padding: 56px 32px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal-meta { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 20px; }
.legal-notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 36px;
  border-radius: 14px;
  background: var(--bg-secondary); border: 1px dashed var(--border);
  font-size: 0.88rem; color: var(--text-secondary);
}
.legal-notice .icon { color: var(--accent); margin-top: 2px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li, .legal dd { font-size: 0.98rem; line-height: 1.75; color: var(--text-secondary); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text-primary); }
.legal-dl { display: grid; grid-template-columns: minmax(180px, auto) 1fr; gap: 10px 20px; }
.legal-dl dt { font-weight: 600; font-size: 0.94rem; }
.legal-dl dd { margin: 0; }
@media (max-width: 600px) { .legal { padding: 36px 18px 72px; } .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dd { margin-bottom: 10px; } }
.error-page { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 80px 18px; gap: 10px; }
.error-glyph { font-family: var(--font-display); font-size: 7rem; line-height: 1; color: var(--accent); opacity: 0.25; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Right-to-left (Arabic, Darija) ------------------------------------ */
[dir="rtl"] {
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', 'Newsreader', system-ui, sans-serif;
}
/* Arabic script is cursive: letter-spacing breaks the joins, and uppercase
   mono labels have no meaning — reset both. */
[dir="rtl"] body *, [dir="rtl"] body *::before { letter-spacing: normal !important; }
[dir="rtl"] .eyebrow, [dir="rtl"] .offer-name, [dir="rtl"] .offer-cols h3, [dir="rtl"] .lead-feed-label,
[dir="rtl"] .channels-title, [dir="rtl"] .footer-col h2, [dir="rtl"] .demo-gemini, [dir="rtl"] .convo figcaption,
[dir="rtl"] .work-cat, [dir="rtl"] .concept-badge, [dir="rtl"] .figure-note, [dir="rtl"] .work-progress-hint {
  font-family: var(--font-body);
  text-transform: none;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.3; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
[dir="rtl"] .hero-video-overlay {
  background:
    linear-gradient(270deg, rgba(6, 13, 24, 0.72) 0%, rgba(6, 13, 24, 0.52) 38%, rgba(6, 13, 24, 0.18) 66%, rgba(6, 13, 24, 0.04) 100%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.30) 0%, rgba(6, 13, 24, 0) 20%, rgba(6, 13, 24, 0) 62%, rgba(6, 13, 24, 0.97) 100%);
}
[dir="rtl"] .hero-scroll-cue { left: auto; right: 32px; }
[dir="rtl"] .process-beam span { transform-origin: right; }
/* The pinned gallery's track math is left-to-right; keep the track LTR and
   the card text RTL. */
[dir="rtl"] .work-track-wrap, [dir="rtl"] .work-grid { direction: ltr; }
[dir="rtl"] .work-card { direction: rtl; }
[dir="rtl"] .browser-bar, [dir="rtl"] .map-pack-search { direction: ltr; }
[dir="rtl"] .map-pack-list li, [dir="rtl"] .browser-bar .concept-badge { direction: rtl; }
[dir="rtl"] .back-to-top { right: auto; left: 24px; }

/* ---------- Mobile refinements for the new sections ----------------------------- */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.1rem, 9.6vw, 2.8rem); max-width: none; }
  .hero-statement { font-size: 1rem; }
  .hero-price { margin-bottom: 28px; font-size: 0.88rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-facts .tilt-card { padding: 14px 14px 16px; }
  .hero-facts .stat-num { font-size: 1.35rem; }
  .hero-facts .stat-label { font-size: 0.76rem; }
  .chat { min-height: 0; border-radius: 20px; margin-inline: calc(var(--gutter) * -0.5); }
  .chat-log { max-height: 58svh; min-height: 260px; padding: 16px 12px 6px; }
  .msg-bubble { max-width: 88%; font-size: 0.92rem; }
  .msg-action { padding-inline-start: 0; }
  .callback-card { grid-template-columns: 1fr; }
  /* wrap, never scroll sideways: the gallery is the only horizontal motion */
  .chat-suggestions { padding: 6px 12px 10px; gap: 6px; }
  .chat-suggestions button { min-height: 44px; padding: 0 12px; font-size: 0.82rem; }
  .chat-suggestions button:nth-child(n+5) { display: none; }
  .chat-form { margin: 0 10px; }
  .plan-head { margin-bottom: 28px; }
  .setup-card, .m-card, .extras-card { padding: 22px 18px; }
  .why-grid li { padding: 18px; }
  .convo { padding: 18px; }
  .convo-msg { max-width: 90%; }
  .contact-form { padding: 22px 16px; }
  .channels { padding: 16px; }
  .ch-label { min-width: 0; }
  .footer-cols { gap: 28px 36px; }
}

/* ---------- Touch-size and small-screen fixes (from the 360 px audit) ---------- */
@media (max-width: 960px) {
  .lang-btn { height: 44px; padding: 0 14px; }
  .chip-btn { min-height: 44px; }
  .chat-form textarea { min-height: 44px; }
  /* 16 px or iOS Safari zooms the page when the field is focused */
  .form-row select, .callback-field input, .callback-field textarea { font-size: 16px; }
}
@media (max-width: 560px) {
  .panel-visual-live .browser-dots, .panel-visual-live .concept-badge { display: none; }
  .panel-visual-live .browser-bar { gap: 8px; padding: 0 10px; }
  .panel-visual-live .browser-url { max-width: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Polish from the visual review ---------------------------------- */
h2 + .lede, h2 + p.lede { margin-top: 18px; }
.brand-case { text-transform: none; letter-spacing: 0.02em; }
/* Support closes the monthly grid as a full-width band instead of an orphan */
.m-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 0.8fr) 2fr; align-items: center; gap: 12px 32px; }
.m-card-wide header { grid-row: span 2; align-self: start; }
.m-card-wide .tick-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
@media (max-width: 700px) {
  .m-card-wide { display: flex; }
  .m-card-wide .tick-list { grid-template-columns: 1fr; }
}
/* Prices are "1 990": in right-to-left text the space would split the number
   into two runs that the bidi algorithm reorders ("990 1"). Isolate each
   price as its own left-to-right run. */
[data-bind] { unicode-bidi: isolate; direction: ltr; }
