/* ============================================================
   Cipherverse — style.css (redesign) · tokens, base, layout, components

   Mood:    a calm studio site where the work is the loudest thing on the
            page and lime only appears where something is live or clickable.
   Palette: black ground, two lifted surfaces, soft white, grey, one lime.
   Type:    Switzer (400/500/600) for everything.
   Texture: a fixed film-grain layer behind everything + a few soft lime
            light-leaks. Glass (backdrop blur) only where something floats
            over content: the scrolled bar, the phone menu, the preview modal.
   Memorable detail: the split footer wordmark — a hollow CIPHER with a
            solid lime VERSE glowing through it, cropped by the page edge.
   ============================================================ */

:root {
  /* Colour */
  --black:      #000000;
  --surface:    #0E0F12;
  --surface-2:  #16181D;
  --white:      #F5F7FA;   /* 19.9:1 on black */
  --grey:       #8C93A0;   /* 7.1:1 on black, 5.3:1 on surface-2 */
  --lime:       #C6FF35;   /* accent: buttons, live, focus, wordmark */
  --paper:      #F5F7FA;   /* the one light section */
  --card:       #FFFFFF;
  --ink:        #000000;
  --ink-soft:   #5A606B;   /* 5.9:1 on paper */
  --line:       rgba(245, 247, 250, 0.10);
  --line-2:     rgba(245, 247, 250, 0.20);
  --line-ink:   #DDE1E7;
  --error:      #FF8A7A;   /* 8.3:1 on black, form errors only */
  --lime-rgb:   198, 255, 53;
  --glass:      rgba(0, 0, 0, 0.62);        /* over-content bars, with blur */
  --edge:       linear-gradient(180deg, rgba(245, 247, 250, 0.20), rgba(245, 247, 250, 0.04) 55%, rgba(245, 247, 250, 0.02));
  --edge-lit:   linear-gradient(180deg, rgba(var(--lime-rgb), 0.55), rgba(var(--lime-rgb), 0.08) 60%, rgba(245, 247, 250, 0.04));
  --highlight:  inset 0 1px 0 rgba(245, 247, 250, 0.06);
  --glow:       0 30px 80px -30px rgba(var(--lime-rgb), 0.35);
  /* Film grain: white specks, alpha from fractal noise. Tiled, never animated. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Type */
  --font: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.25rem;
  --t-lg:   clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --t-h2:   clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  --t-hero: clamp(2.5rem, 0.5rem + 5.4vw, 5.25rem);
  /* Wordmark: CIPHER is 3.27em wide at -0.04em tracking (measured, Switzer 600),
     so the size is the footer's width / 3.36 — full width with a hair of air. */
  --t-mark: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 3.36);

  /* Space */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6rem;
  --s-7: 9rem;

  /* Shape — scaled to the object, not one radius for everything */
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 0.2s;
  --slow: 0.7s;

  /* Layout */
  --max:    1320px;
  --gutter: 1rem;
  --bar-h:  72px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  /* One faint lime light-leak at the very top, behind the bar and hero. */
  background:
    radial-gradient(70% 520px at 78% -140px, rgba(var(--lime-rgb), 0.10), transparent 70%),
    radial-gradient(50% 420px at 8% -120px, rgba(140, 170, 255, 0.05), transparent 70%),
    var(--black);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Film grain over the whole dark ground. Fixed + static, so it costs nothing
   on scroll; z-index -1 keeps it under every piece of content and every click. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 240px 240px;
  opacity: 0.11;
}
::selection { background: var(--lime); color: var(--ink); }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--ink); }

.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;
}
.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 200;
  background: var(--lime); color: var(--ink); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 48px; padding: 0 1.4rem;
  border-radius: var(--r-pill);
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color var(--fast) ease, color var(--fast) ease,
              border-color var(--fast) ease, transform var(--fast) ease, box-shadow var(--fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.9rem; }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--white); box-shadow: 0 10px 34px -10px rgba(var(--lime-rgb), 0.6); }

.btn-line { border: 1px solid var(--line-2); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: var(--white); color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--lime); color: var(--ink); }

/* ── Top bar ───────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--bar-h);
  transition: background-color var(--fast) ease, border-color var(--fast) ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { background: var(--black); border-bottom-color: var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar.is-scrolled {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
}
.topbar-inner {
  height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: var(--s-2);
}
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: 150px; height: auto; }

.menu { display: flex; align-items: center; gap: 2px; }
.menu-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border-radius: var(--r-pill); color: var(--grey); font-size: 0.95rem;
  transition: color var(--fast) ease, background-color var(--fast) ease;
}
.menu-link:hover { color: var(--white); background: rgba(245, 247, 250, 0.05); }
.menu-link.is-active { color: var(--white); background: var(--surface-2); }

.menu-toggle { display: none; }

/* ── Headings shared by sections ───────────────────────── */
.section { padding-block: var(--s-6); }
.section--flush-top { padding-top: 0; }

.h2 { font-size: var(--t-h2); max-width: 17ch; }
.h2--narrow { max-width: 20ch; margin-bottom: var(--s-5); }
.h2 .soft { color: var(--grey); }
.light .h2 .soft { color: var(--ink-soft); }

.head-split {
  display: grid; grid-template-columns: 1fr; gap: var(--s-3);
  align-items: end; margin-bottom: var(--s-5);
}
.head-note { color: var(--grey); max-width: 38ch; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding-top: var(--s-6); }
.hero-title { font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.045em; }
.hero-line { display: block; }
.hero-line--soft { color: var(--grey); }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-3); margin-top: var(--s-4);
}
.hero-sub { font-size: var(--t-md); line-height: 1.5; color: var(--white); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); }

/* ── Selected work tiles ───────────────────────────────── */
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--s-4) var(--s-3); }
.tile { display: flex; flex-direction: column; gap: var(--s-2); }
.tile-shot {
  display: block; width: 100%;
  /* 1px gradient keyline, lighter at the top, like light catching an edge */
  border: 1px solid transparent; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(245, 247, 250, 0.045), transparent 60%) padding-box,
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--highlight);
  padding: clamp(14px, 3vw, 40px) clamp(14px, 3vw, 40px) 0;
  overflow: hidden; text-align: left;
  transition: box-shadow var(--slow) var(--ease);
}
.tile-shot:hover, .tile-shot:focus-visible {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--lime-rgb), 0.07), transparent 60%) padding-box,
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--edge-lit) border-box;
  box-shadow: var(--highlight), var(--glow);
}
.tile-shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: transform var(--slow) var(--ease);
}
.tile-shot:hover img { transform: translateY(-10px); }

.tile-cap { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s-2); align-items: center; }
.tile-name { font-size: var(--t-md); letter-spacing: -0.02em; line-height: 1.3; }
.tile-meta { grid-row: 2; color: var(--grey); font-size: var(--t-sm); }
.tile-go {
  grid-row: 1 / span 2; grid-column: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease,
              box-shadow var(--fast) ease;
}
.tile:hover .tile-go, .tile-shot:focus-visible + .tile-cap .tile-go {
  background: var(--lime); border-color: var(--lime); color: var(--ink);
  box-shadow: 0 0 24px rgba(var(--lime-rgb), 0.45);
}

.flag {
  display: inline-block; vertical-align: middle; margin-left: 0.35em;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0; color: var(--grey);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 1px 8px;
}
.more { margin-top: var(--s-5); }

/* ── Template vs us ────────────────────────────────────── */
.compare { border-top: 1px solid var(--line); }
.compare-row {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem;
  padding-block: var(--s-3); border-bottom: 1px solid var(--line);
}
.compare-row--head { display: none; }
.compare-k { font-size: var(--t-sm); color: var(--grey); }
.compare-them { color: var(--grey); }
.compare-them::before { content: "Template: "; }
.compare-us { font-size: var(--t-md); line-height: 1.4; letter-spacing: -0.01em; }

/* ── What you get (the one light section) ──────────────── */
.light { background: var(--paper); color: var(--ink); }
.build { display: grid; gap: var(--s-5); }
.build-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.build-cols { display: grid; gap: var(--s-2); }
.build-col { display: grid; gap: var(--s-2); align-content: start; }
.feature {
  background: var(--card); border: 1px solid var(--line-ink);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-3);
}
.feature-title { font-size: var(--t-lg); letter-spacing: -0.025em; margin-bottom: var(--s-2); }
.feature-note { color: var(--ink-soft); }

/* ── Process ───────────────────────────────────────────── */
.steps { display: grid; gap: var(--s-4); counter-reset: none; }
.step { border-top: 1px solid var(--line-2); padding-top: var(--s-3); }
.step-n {
  display: block; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1;
  letter-spacing: -0.05em; color: var(--grey); margin-bottom: var(--s-3);
}
.step-title { font-size: var(--t-lg); letter-spacing: -0.025em; margin-bottom: var(--s-1); }
.step-note { color: var(--grey); max-width: 36ch; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq { display: grid; gap: 0 var(--s-4); }
.faq-col { border-top: 1px solid var(--line); }
.faq-col + .faq-col { border-top: 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 64px; padding-block: var(--s-2);
  font-size: var(--t-md); font-weight: 500; letter-spacing: -0.015em; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.qa-q::-webkit-details-marker { display: none; }
.qa-q:hover { color: var(--lime); }
.qa-q { transition: color var(--fast) ease; }
.qa-icon {
  position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}
.qa[open] .qa-icon { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.qa-icon::before, .qa-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%);
  transition: transform var(--fast) ease;
}
.qa-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa-a { color: var(--grey); padding-bottom: var(--s-3); max-width: 60ch; }

/* ── Closer ────────────────────────────────────────────── */
.closer { position: relative; isolation: isolate; padding-bottom: var(--s-6); }
/* A lime light-leak behind the card's top-right corner (kept inside .closer so
   it never tints a light section above it) */
.closer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: 2%; top: 0; width: min(760px, 80%); height: 75%;
  background: radial-gradient(closest-side, rgba(var(--lime-rgb), 0.14), transparent);
}
.closer-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: var(--s-3);
  border: 1px solid transparent; border-radius: var(--r-lg);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(var(--lime-rgb), 0.06), transparent 60%) padding-box,
    linear-gradient(160deg, rgba(22, 24, 29, 0.88), rgba(14, 15, 18, 0.94)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--highlight), 0 50px 80px -40px rgba(0, 0, 0, 0.9);
  padding: var(--s-5) var(--s-3);
}
.closer-card::after {   /* grain inside the card, so the surface reads as a material */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 240px 240px; opacity: 0.06;
}
.closer-title { font-size: var(--t-h2); max-width: 16ch; }
.closer-lead { color: var(--grey); font-size: var(--t-md); max-width: 44ch; }
.closer-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-1); }
.closer-actions .btn { white-space: normal; text-align: center; }

/* ── Footer ────────────────────────────────────────────── */
.footer { position: relative; isolation: isolate; border-top: 1px solid var(--line); padding-top: var(--s-5); overflow: hidden; }
/* Light pooling up from under the wordmark */
.footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; bottom: -35%; width: 130%; height: 80%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--lime-rgb), 0.09), transparent);
}
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); }
.footer-about { grid-column: 1 / -1; }
.footer-line { max-width: 40ch; font-size: var(--t-md); line-height: 1.45; margin-bottom: var(--s-3); }
.footer-head { font-size: var(--t-sm); font-weight: 400; color: var(--grey); letter-spacing: 0; margin-bottom: var(--s-1); }
.footer-col ul { display: grid; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col a { transition: color var(--fast) ease; }
.footer-col a:hover { color: var(--lime); }
.footer-legal { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--grey); }
.footer-legal > p { padding-top: var(--s-2); border-top: 1px solid var(--line); }

/* Split wordmark: a hollow CIPHER, then a solid lime VERSE pushed to the right
   edge, tucked up into CIPHER's baseline and glowing through its outline.
   Cropped by the bottom of the page. */
.footer-mark {
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  margin-top: var(--s-5);
  font-size: var(--t-mark); font-weight: 600; line-height: 0.8; letter-spacing: -0.04em;
  white-space: nowrap; user-select: none; pointer-events: none;
}
.footer-mark-cipher {
  display: block;
  color: transparent;
  -webkit-text-stroke: max(1px, 0.01em) rgba(245, 247, 250, 0.5);
}
.footer-mark-verse {
  position: relative; display: block; text-align: right;
  margin-top: -0.2em; margin-bottom: -0.08em;
  color: var(--lime);
}
.footer-mark-verse > span { position: relative; display: inline-block; }
/* The glow is the word itself, gaussian-blurred behind the crisp copy */
.footer-mark-verse > span::before {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1;
  filter: blur(0.12em); opacity: 0.5;
  animation: mark-breathe 6s ease-in-out infinite alternate;
}
@keyframes mark-breathe {
  from { opacity: 0.3; }
  to   { opacity: 0.65; }
}
@supports not (-webkit-text-stroke: 1px black) {
  .footer-mark-cipher { color: var(--surface-2); }
}

/* ── Inner-page hero ──────────────────────────────────── */
.page-hero { padding-block: var(--s-6) var(--s-5); }
.page-title { font-size: var(--t-h2); max-width: 18ch; line-height: 1.02; letter-spacing: -0.04em; }
.page-title .soft { color: var(--grey); }
.page-intro { display: grid; gap: var(--s-2); margin-top: var(--s-4); max-width: 52ch; font-size: var(--t-md); line-height: 1.5; }
.page-intro-note { font-size: var(--t-base); color: var(--grey); }

/* ── Work wall + filters ───────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-4); }
.chip {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0 1.1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: 0.92rem; color: var(--grey);
  transition: color var(--fast) ease, border-color var(--fast) ease, background-color var(--fast) ease;
}
.chip:hover { color: var(--white); border-color: var(--white); }
.chip.is-on { background: var(--white); border-color: var(--white); color: var(--ink); }
.chip-n { font-size: 0.8rem; opacity: 0.65; font-variant-numeric: tabular-nums; }
.wall { display: grid; gap: var(--s-4) var(--s-3); }
.tile.is-hidden { display: none; }

/* ── Process stages ────────────────────────────────────── */
.stages { display: grid; gap: var(--s-5); }
.stage { display: grid; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line-2); }
.stage-n { display: block; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; color: var(--grey); margin-bottom: var(--s-3); }
.stage-title { font-size: var(--t-lg); letter-spacing: -0.025em; margin-bottom: var(--s-1); }
.stage-note { color: var(--grey); max-width: 44ch; }
.stage-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3); }
.stage-panel--shot { background: var(--surface-2); padding: clamp(14px, 3vw, 32px) clamp(14px, 3vw, 32px) var(--s-2); }
.stage-panel--shot img { border-radius: var(--r-sm); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.stage-panel--shot figcaption { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--grey); }
.panel-head { font-size: var(--t-sm); color: var(--grey); margin-bottom: var(--s-2); }
.ticks { display: grid; gap: 0; }
.ticks li { position: relative; padding: 0.8rem 0 0.8rem 1.75rem; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 1.3rem;
  width: 10px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}

/* Ledger mosaic: dense, full-bleed, many small screens at once */
.ledger { border-top: 1px solid var(--line); }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding-inline: 6px; }
.mosaic-item { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.mosaic-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform var(--slow) var(--ease); }
.mosaic-name {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  font-size: 0.8rem; background: var(--black); color: var(--white);
  border: 1px solid var(--line);
  padding: 3px 10px; border-radius: var(--r-pill);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity var(--fast) ease, transform var(--fast) ease;
}
.mosaic-item:hover img, .mosaic-item:focus-visible img { transform: scale(1.03); }
.mosaic-item:hover .mosaic-name, .mosaic-item:focus-visible .mosaic-name { opacity: 1; transform: none; }

/* After launch (light) */
.head-note--ink { color: var(--ink-soft); }
.after { display: grid; gap: 0; border-top: 1px solid var(--line-ink); }
.after-item { padding-block: var(--s-3); border-bottom: 1px solid var(--line-ink); display: grid; gap: var(--s-1); }
.after-title { font-size: var(--t-lg); letter-spacing: -0.025em; }
.after-note { color: var(--ink-soft); max-width: 48ch; }

/* ── Contact ───────────────────────────────────────────── */
.contact { display: grid; gap: var(--s-5); align-items: start; }
.form { display: grid; gap: var(--s-3); }
.form-row { display: grid; gap: var(--s-3); }
.field { display: grid; gap: var(--s-1); }
.field label { font-size: 0.95rem; font-weight: 500; }
.opt { font-weight: 400; color: var(--grey); margin-left: 0.3em; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem;
  font: inherit; color: var(--white);
  background-color: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color var(--fast) ease, background-color var(--fast) ease;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--grey); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background-color: var(--surface-2); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--t-sm); }
.form-submit { justify-self: start; min-width: 180px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--r-md); padding: var(--s-3); margin-bottom: var(--s-4); border: 1px solid; }
.notice-title { font-weight: 600; margin-bottom: 2px; }
.notice--ok { border-color: var(--lime); background: rgba(198, 255, 53, 0.08); }
.notice--bad { border-color: var(--error); background: rgba(255, 138, 122, 0.08); }

.contact-side { display: grid; gap: var(--s-4); }
.direct { display: grid; }
.direct-link { display: grid; gap: 2px; padding-block: var(--s-2); border-top: 1px solid var(--line); }
.direct-link:last-child { border-bottom: 1px solid var(--line); }
.direct-k { font-size: var(--t-sm); color: var(--grey); }
.direct-v { font-size: var(--t-lg); letter-spacing: -0.02em; transition: color var(--fast) ease; overflow-wrap: anywhere; }
.direct-link:hover .direct-v { color: var(--lime); }
.direct-phone {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding-block: var(--s-2); border-top: 1px solid var(--line);
}
.direct-call { display: grid; gap: 2px; min-width: 0; }
.direct-call:hover .direct-v { color: var(--lime); }
.direct-wa {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--t-sm);
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}
.direct-wa:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.next-list { display: grid; gap: var(--s-1); counter-reset: next; }
.next-list li { counter-increment: next; display: grid; grid-template-columns: 1.75rem 1fr; }
.next-list li::before { content: counter(next); color: var(--grey); }
.contact-where { font-size: var(--t-sm); color: var(--grey); }

/* ── 404 ───────────────────────────────────────────────── */
.page-hero--error { padding-bottom: var(--s-7); }
.error-code { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.06em; color: var(--lime); margin-bottom: var(--s-3); }
.error-links { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-4); }

/* ── Nav "New" tag (ERP Agent) ─────────────────────────── */
.menu-new {
  margin-left: 0.45em; padding: 0 7px; border-radius: var(--r-pill);
  font-size: 0.68rem; line-height: 1.6; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(var(--lime-rgb), 0.14); color: var(--lime);
}

/* ── ERP Agent page ────────────────────────────────────────
   Same studio system, one new object: the voice → entry panel.
   Indic lines fall back to Noto (loaded per page, subset to its glyphs). */
.erp [lang="gu"], .erp [lang="hi"] { font-family: var(--font), 'Noto Sans Gujarati', 'Noto Sans Devanagari', sans-serif; }

.erp-hero { padding-block: var(--s-5) var(--s-6); }
.erp-hero-grid { display: grid; gap: var(--s-5); align-items: center; }
.erp-title { font-size: clamp(2.35rem, 1rem + 3.4vw, 3.9rem); }
.erp-hero-foot { flex-direction: column; align-items: flex-start; }
.erp-hero .hero-sub { font-size: var(--t-base); color: var(--grey); max-width: 46ch; }

.status {
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: var(--s-3);
  min-height: 34px; padding: 0 0.9rem; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: var(--t-sm); color: var(--white);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0.6); }

/* The voice → entry panel */
.vx { position: relative; isolation: isolate; }
.vx::before {   /* lime light pooled behind the panel */
  content: ""; position: absolute; z-index: -1; inset: 10% 5% -8%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--lime-rgb), 0.16), transparent);
  filter: blur(30px);
}
.vx-panel {
  border: 1px solid transparent; border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(245, 247, 250, 0.05), transparent 60%) padding-box,
    linear-gradient(var(--surface-2), var(--surface)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--highlight), 0 50px 80px -40px rgba(0, 0, 0, 0.9);
  padding: var(--s-3);
}
.vx-head { display: flex; align-items: center; gap: var(--s-2); }
.vx-mic {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
}
.vx-lang { font-size: var(--t-sm); color: var(--grey); min-width: 4.6em; }
.vx-wave { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 3px; height: 28px; overflow: hidden; }
.vx-wave i { flex: none; width: 3px; height: 30%; border-radius: 2px; background: var(--line-2); }
.vx-wave i:nth-child(3n)   { height: 70%; }
.vx-wave i:nth-child(4n+1) { height: 45%; }
.vx-wave i:nth-child(5n+2) { height: 95%; }
.vx-wave i:nth-child(7n)   { height: 55%; }

.vx-said {
  margin-top: var(--s-3); min-height: 2.6em;
  font-size: var(--t-lg); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500;
}
.vx-gloss { margin-top: 0.35rem; min-height: 1.6em; font-size: var(--t-sm); color: var(--grey); }
.vx-turn {
  display: flex; align-items: center; gap: var(--s-2); margin-block: var(--s-3) var(--s-2);
  font-size: var(--t-sm); color: var(--lime);
}
.vx-turn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--lime-rgb), 0.5), transparent); }
.vx-entry { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.vx-row { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.vx-row:nth-child(odd) { padding-right: var(--s-2); }
.vx-row dt { font-size: 0.78rem; color: var(--grey); }
.vx-row dd { font-size: 0.98rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.vx-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); }
.vx-state { font-size: var(--t-sm); color: var(--grey); }
.vx-approve {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--lime); color: var(--lime); font-size: var(--t-sm); font-weight: 500;
}
.vx-cap { margin-top: var(--s-2); font-size: 0.8rem; color: var(--grey); text-align: center; }

/* The problem: three typings, then the point */
.erp-split { display: grid; gap: var(--s-4); }
.thrice { border-top: 1px solid var(--line); }
.thrice li { display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
.thrice-n { font-size: var(--t-lg); color: var(--grey); font-variant-numeric: tabular-nums; }
.thrice-t { font-size: var(--t-md); letter-spacing: -0.01em; }
.thrice li:last-child .thrice-t { text-decoration: line-through; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.erp-note { margin-top: var(--s-3); color: var(--lime); max-width: 40ch; font-size: var(--t-md); line-height: 1.45; }

/* How it works: a pipeline, nodes joined by a line */
.flow { display: grid; gap: var(--s-4); position: relative; }
.flow-step { position: relative; padding-left: 4rem; }
.flow-node {
  position: absolute; left: 0; top: -0.2rem;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--black); font-weight: 500;
}
.flow-step:last-child .flow-node { background: var(--lime); border-color: var(--lime); color: var(--ink); box-shadow: 0 0 28px rgba(var(--lime-rgb), 0.4); }
.flow-step:not(:last-child)::before {   /* the joining line (vertical on phones) */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: calc(-1 * var(--s-4));
  width: 1px; background: var(--line-2);
}
.flow-title { font-size: var(--t-lg); letter-spacing: -0.025em; margin-bottom: var(--s-1); }
.flow-note { color: var(--grey); max-width: 34ch; }

/* Things you can say (light): a dense ledger, not cards */
.say { border-top: 1px solid var(--line-ink); }
.say-row { display: grid; gap: 0.3rem; padding-block: var(--s-3); border-bottom: 1px solid var(--line-ink); }
.say-line { font-size: var(--t-lg); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; }
.say-gloss { font-size: var(--t-sm); color: var(--ink-soft); }
.say-result { color: var(--ink); display: flex; gap: 0.6em; align-items: baseline; }
.say-result::before { content: "→"; color: var(--ink-soft); }

/* The agents + control panel */
.agents-grid { display: grid; gap: var(--s-4); align-items: start; }
.agents { display: grid; gap: var(--s-2); }
.agent {
  display: grid; gap: var(--s-1);
  padding: var(--s-3); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--fast) ease;
}
.agent:hover { border-color: var(--line-2); }
.agent-name { font-size: var(--t-lg); letter-spacing: -0.025em; }
.agent-does { color: var(--white); }
.agent-asks { font-size: var(--t-sm); color: var(--grey); }
.agent-asks span { color: var(--lime); margin-right: 0.3em; }

/* Where it is today */
.road { border-top: 1px solid var(--line); }
.road-item { display: grid; gap: 0.3rem; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.road-when { font-size: var(--t-sm); color: var(--grey); display: inline-flex; align-items: center; gap: 0.5em; }
.road-item.is-now .road-when { color: var(--lime); }
.road-item.is-now .road-when::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.road-what { font-size: var(--t-md); line-height: 1.45; max-width: 52ch; }
.road-item:not(.is-now) .road-what { color: var(--grey); }


/* ── Service landing pages ─────────────────────────────── */
.svc-gets { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-get { display: grid; gap: var(--s-1); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.svc-get-title { font-size: var(--t-lg); letter-spacing: -0.025em; }
.svc-get-note { color: var(--grey); max-width: 44ch; }
.svc-more { margin-top: var(--s-5); color: var(--grey); max-width: 60ch; }
.svc-more a { color: var(--white); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color var(--fast) ease, text-decoration-color var(--fast) ease; }
.svc-more a:hover { color: var(--lime); text-decoration-color: var(--lime); }

/* Home: the ERP Agent band */
.erp-band { border-top: 1px solid var(--line); }
.erp-band-grid { display: grid; gap: var(--s-4); align-items: center; }
.erp-band .h2 { max-width: 15ch; }
.erp-band-lead { color: var(--grey); font-size: var(--t-md); line-height: 1.5; max-width: 42ch; margin-block: var(--s-3); }
.erp-band .vx { max-width: 560px; justify-self: end; width: 100%; }
.feature-link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--s-2); min-height: 44px; font-weight: 500; color: var(--ink); }
.feature-link::after { content: "→"; transition: transform var(--fast) ease; }
.feature-link:hover::after { transform: translateX(4px); }
.feature-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Live preview modal ────────────────────────────────── */
.vmodal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--s-2); visibility: hidden; }
.vmodal.open { visibility: visible; }
.vmodal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity var(--fast) ease; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vmodal-backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.vmodal.open .vmodal-backdrop { opacity: 1; }
.vmodal-window {
  position: relative; width: min(1280px, 100%); height: min(860px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--highlight), 0 40px 120px -40px rgba(var(--lime-rgb), 0.18);
  opacity: 0; transform: translateY(16px); transition: opacity var(--fast) ease, transform var(--slow) var(--ease);
}
.vmodal.open .vmodal-window { opacity: 1; transform: none; }
.vmodal-bar { display: flex; align-items: center; gap: var(--s-2); padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--line); }
.vmodal-url { flex: 1; min-width: 0; font-size: var(--t-sm); color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmodal-ext { font-size: var(--t-sm); min-height: 44px; display: inline-flex; align-items: center; padding-inline: var(--s-1); }
.vmodal-ext:hover { color: var(--lime); }
.vmodal-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); }
.vmodal-close:hover { background: var(--line); }
.vmodal-screen { position: relative; flex: 1; background: var(--white); }
.vmodal-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); }
.vmodal-frame { position: relative; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity var(--fast) ease; }
.vmodal.loaded .vmodal-frame { opacity: 1; }
body.vmodal-lock { overflow: hidden; }

/* ── Motion preferences (for what this file defines) ───── */
@media (prefers-reduced-motion: reduce) {
  .footer-mark-verse > span::before { animation: none; }
  .tile-shot, .tile-go, .btn, .qa-icon { transition: none; }
}
