/* Prism Automate: preserved design language from the original Framer site (Bima template).
   Deep navy-ink base, Plus Jakarta Sans, lavender highlight words, violet/gold gradient
   hero accents, glassy pill buttons, corner-bracket floating cards, watermark footer.
   Radius system: cards 20px, interactive elements pill. */

:root {
  --bg: #030212;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --line: rgba(168, 158, 241, 0.13);
  --line-strong: rgba(168, 158, 241, 0.26);
  --text: #f1f1f8;
  --muted: #9d9dbb;
  --lav: #a89ef1;
  --lav-deep: #6f63d9;
  --gold: #e2b98a;
  --violet-glow: rgba(111, 99, 217, 0.32);
  --signal: var(--lav); /* alias: map route, pins, and check icons follow the lavender accent */
  --radius: 20px;
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* z-scale: nav 40, skip-link 50 */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Lenis inertia scrolling drives the viewport itself; native smoothing must be off.
   (class name must not start with "lenis-": Lenis owns that namespace on <html>) */
html.inertia-scroll { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { text-wrap: balance; margin: 0; }

p { margin: 0; max-width: 65ch; }

a { color: inherit; }

.hl { color: var(--lav); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: fixed;
  top: -3rem;
  left: 1rem;
  z-index: 50;
  background: var(--lav);
  color: #0b0a1e;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(3, 2, 18, 0.8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
/* wordmark gradients matched to the logo file */
.brand-name .b1 {
  background: linear-gradient(90deg, #d9d3fa, #a89ef1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name .b2 {
  background: linear-gradient(90deg, #ecd2ab, #d9b077);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 200ms ease;
}
.nav-links a:focus-visible { color: var(--text); outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); }
}

/* ---------- Buttons: template pill language ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.78rem 1.6rem;
  font: 700 0.95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms var(--ease-out), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
/* Instant press feedback on pointer-down, not release */
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }

.btn-signal {
  background: #f4f3fb;
  color: #0b0a1e;
}

.btn-ghost {
  background: linear-gradient(180deg, rgba(168, 158, 241, 0.12), rgba(168, 158, 241, 0.04));
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .btn-signal:hover { background: #dcd8f5; }
  .btn-ghost:hover { border-color: var(--lav); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px var(--violet-glow); }
}

.nav .btn { padding: 0.6rem 1.3rem; }

#top-sentinel { position: absolute; top: 0; height: 32px; width: 1px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-top: 100px;
  padding-bottom: clamp(2rem, 5vh, 4rem);
  position: relative;
  overflow: hidden;
}
@media (min-height: 1400px) {
  /* very tall viewports: don't stretch the hero to fill */
  .hero { min-height: 1100px; }
}
.hero .beam {
  /* original template light beam, falls from the top-left corner */
  position: absolute;
  top: -6%;
  left: -8%;
  width: min(58vw, 900px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
/* (no synthetic glow behind the hero visual: the ring video carries its own nebula) */

.product-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lav);
  margin-bottom: 1.2rem;
  min-height: 1.2em; /* reserve the line while the typewriter deletes */
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--lav);
  margin-left: 4px;
  vertical-align: text-bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: caret-blink 1.1s steps(1) infinite; }
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero h1 .grad {
  /* template hero treatment: violet-to-gold gradient words */
  background: linear-gradient(92deg, #8f83ec 5%, #c9b7f5 45%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 33rem;
}
.hero-ctas {
  margin-top: 2.3rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Hero visual: the original neon 3D ring render (webm). The ring sits fully inside
   this video's frame, so nothing gets cut; screen blend melts the black frame into
   the page background. */
.hero-ring {
  display: grid;
  place-items: center;
  position: relative;
}
.hero-ring video {
  width: min(48vw, 700px);
  aspect-ratio: 5 / 3;
  object-fit: contain;
  /* Screen blend melts the black frame + nebula edges into the page seamlessly.
     CRITICAL: no transform/perspective/opacity on ANY ancestor between this element
     and <body>, or the blend group isolates and a visible rectangle appears.
     (The tilt therefore applies to this element itself, never a wrapper.)
     And NO mask: a mask is what was cutting the ring before. */
  mix-blend-mode: screen;
  pointer-events: none;
}

.map-shell {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(168, 158, 241, 0.08), rgba(3, 2, 18, 0.4) 55%);
  padding: 0.8rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(111, 99, 217, 0.14);
}
.map-shell svg { width: 100%; height: auto; display: block; border-radius: calc(var(--radius) - 8px); }

/* ---------- Logo band ---------- */

.logos {
  border-block: 1px solid var(--line);
  padding-block: 2.2rem;
}
.logos .wrap {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.logos-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-right: auto;
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0.85;
  color: var(--text);
}
.logo-item img, .logo-item svg { height: 26px; width: auto; }
.logo-word {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* ---------- Pains: floating corner-bracket cards ---------- */

.pains { padding-block: clamp(5rem, 11vh, 8rem); }
.pains h2 {
  text-align: center;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.pain-field {
  position: relative;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  min-height: 380px;
}
.pain-slot { position: absolute; }
.pain {
  position: relative;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  padding: 1.1rem 1.7rem;
  max-width: 17rem;
  text-align: center;
  line-height: 1.5;
}
.pain::before, .pain::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: rgba(226, 229, 244, 0.5);
  border-style: solid;
}
.pain::before { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.pain::after { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

/* Compact scatter: the default for unsupported browsers and reduced motion */
.pain-slot:nth-child(1) { top: 4%; left: 6%; }
.pain-slot:nth-child(2) { top: 0; right: 12%; }
.pain-slot:nth-child(3) { bottom: 18%; left: 26%; }
.pain-slot:nth-child(4) { bottom: 0; right: 4%; }

@media (prefers-reduced-motion: no-preference) {
  .pain { animation: pain-float 7s ease-in-out infinite; }
  .pain-slot:nth-child(2) .pain { animation-delay: -2.2s; }
  .pain-slot:nth-child(3) .pain { animation-delay: -4.1s; }
  .pain-slot:nth-child(4) .pain { animation-delay: -5.6s; }
}
@keyframes pain-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Original-site choreography (measured on the Framer site): the heading pins at
   the center of the screen while the questions, laid out down a tall section on
   alternating sides, scroll past it. Each question scales from 0.9 and un-blurs
   from 4px as it enters the viewport, then stays visible and scrolls off
   naturally. The float lives on .pain, the scroll-driven pop on .pain-slot. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 961px) and (max-height: 1399px) {
    .pains h2 {
      position: sticky;
      top: calc(50vh - 1.5em);
      z-index: 0;
    }
    .pain-field { height: 190vh; min-height: 0; margin-top: 0; }
    .pain-slot:nth-child(1) { top: 4%; left: 10%; bottom: auto; }
    .pain-slot:nth-child(2) { top: 29%; right: 11%; left: auto; bottom: auto; }
    .pain-slot:nth-child(3) { top: 55%; left: 16%; bottom: auto; }
    .pain-slot:nth-child(4) { top: 79%; right: 14%; left: auto; bottom: auto; }
    .pain-slot {
      animation: pain-pop 1ms var(--ease-out) both;
      animation-timeline: view();
      /* focus completes as the card passes mid-screen, like the original */
      animation-range: entry 0% cover 55%;
    }
  }
}
@keyframes pain-pop {
  from { opacity: 0; transform: scale(0.9) translateY(24px); filter: blur(4px); }
}

/* ---------- Section headings ---------- */

section > .wrap > h2, .sec-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 700;
}
.sec-head { margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.sec-head .lede { margin-top: 0.95rem; color: var(--muted); font-size: 1.08rem; }
.sec-head.centered { text-align: center; }
.sec-head.centered .lede { margin-inline: auto; }

/* ---------- Platform bento ---------- */

.platform { padding-block: clamp(4rem, 9vh, 7rem); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-strong), rgba(255, 255, 255, 0.015) 60%);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cell:hover { border-color: var(--line-strong); box-shadow: 0 0 40px rgba(111, 99, 217, 0.12); }
}
.cell h3 { font-size: 1.22rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; font-weight: 700; }
.cell p { color: var(--muted); font-size: 0.97rem; }

/* Catalogue categories: 3 + 3 | 2 + 4 rhythm */
.cell-strategy { grid-column: span 3; background: linear-gradient(160deg, rgba(226, 185, 138, 0.09), rgba(255, 255, 255, 0.015) 55%); }

.cell-build { grid-column: span 3; min-height: 400px; }
.cell-build .cell-art { position: absolute; inset: 0 0 62% 0; }
.cell-build .cell-art svg { width: 100%; height: 100%; }

.cell-deploy { grid-column: span 2; background: linear-gradient(160deg, rgba(168, 158, 241, 0.16), rgba(255, 255, 255, 0.015) 55%); }

.cell-managed { grid-column: span 4; }
.cell-managed::before {
  content: "";
  position: absolute;
  inset: -30% -20% 50% -20%;
  background:
    radial-gradient(circle at 30% 45%, rgba(143, 131, 236, 0.4), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(226, 185, 138, 0.22), transparent 40%);
  filter: blur(20px);
}
.cell-managed > * { position: relative; }

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.svc-list li {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  background: rgba(3, 2, 18, 0.35);
}
.svc-list.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.6rem;
}
.svc-list.two-col li:last-child { grid-column: span 2; }

/* ---------- How it works ---------- */

.how { padding-block: clamp(4rem, 9vh, 7rem); border-block: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
}
.step { border-top: 1px solid var(--line-strong); padding-top: 1.4rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--lav);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.28rem; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- AI concierge ---------- */

.ai { padding-block: clamp(4.5rem, 10vh, 7.5rem); }
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.ai-copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-weight: 700;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.4rem;
  background: linear-gradient(180deg, rgba(168, 158, 241, 0.1), transparent);
}
.partner-badge img { height: 16px; width: 16px; }

.work-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.work-title-gap { margin-top: clamp(3.5rem, 8vh, 6rem); }

.work-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.work-visual img { width: 100%; height: 100%; object-fit: cover; }

.ai-copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.ai-copy .lede { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.ai-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.9rem; }
.ai-list li { display: flex; gap: 0.8rem; color: var(--muted); font-size: 1rem; }
.ai-list li strong { color: var(--text); font-weight: 700; }
.ai-list svg { flex: none; margin-top: 0.28rem; color: var(--lav); }

/* ---------- Why top brands trust us ---------- */

.trust { padding-block: clamp(4rem, 9vh, 7rem); border-top: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.t-label {
  display: block;
  color: var(--lav);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.t-label i { font-style: normal; color: var(--lav-deep); }
.trust-item h3 {
  margin-top: 0.95rem;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.trust-item p { margin-top: 0.55rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- Tech stack: fanned card deck ---------- */

.tech { padding-block: clamp(4.5rem, 10vh, 8rem); }
.deck {
  display: grid;
  place-items: center;
  height: 380px;
  position: relative;
}
.tcard {
  grid-area: 1 / 1;
  width: 190px;
  height: 250px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(168, 158, 241, 0.14), rgba(6, 4, 26, 0.85) 62%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  transform:
    translateX(calc(var(--i) * clamp(88px, 11vw, 150px)))
    translateY(calc(var(--i) * var(--i) * 9px))
    rotate(calc(var(--i) * 5deg));
  z-index: calc(6 - var(--i) * var(--i));
  transition: transform 260ms var(--ease-out), border-color 260ms ease;
}
.tcard img { width: 46px; height: 46px; }
.tcard span {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .tcard:hover {
    transform:
      translateX(calc(var(--i) * clamp(88px, 11vw, 150px)))
      translateY(-18px)
      rotate(0deg);
    border-color: var(--lav);
    z-index: 9;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tcard {
      animation: card-fan 1ms var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 15% entry 70%;
    }
  }
}
@keyframes card-fan {
  from { opacity: 0; transform: translateX(0) translateY(46px) rotate(0deg); }
}

/* ---------- Claude partner band ---------- */

.claude-band { padding-block: clamp(4rem, 9vh, 7rem); }
.claude-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(168, 158, 241, 0.12), rgba(255, 255, 255, 0.02) 45%, rgba(226, 185, 138, 0.05));
  padding: clamp(2rem, 4vw, 3.5rem);
}
.claude-copy { position: relative; max-width: 60%; }
.claude-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 700;
}
.claude-copy .lede { margin-top: 0.95rem; color: var(--muted); font-size: 1.08rem; }
.claude-copy .btn { margin-top: 1.8rem; }
.claude-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 26vw, 380px);
  opacity: 0.14;
  pointer-events: none;
}
.claude-mark img { width: 100%; height: auto; }

/* ---------- Quote: template testimonial style ---------- */

.quote-band { padding-block: clamp(5rem, 12vh, 8.5rem); }
.quote-band h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 600;
  max-width: 26em;
  color: var(--muted);
}
blockquote strong { color: var(--text); font-weight: 700; }
.quote-attr { margin-top: 1.8rem; color: var(--muted); font-size: 1rem; display: flex; align-items: center; gap: 0.8rem; }
.quote-attr strong { color: var(--text); font-weight: 700; }
.quote-attr .dotmark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lav-deep), var(--gold));
  flex: none;
}

/* ---------- Team ---------- */

.team { padding-block: clamp(4rem, 9vh, 7rem); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.member .avatar {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.member .avatar span {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(241, 241, 248, 0.85);
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.av-1 { background: linear-gradient(150deg, rgba(143, 131, 236, 0.35), rgba(3, 2, 18, 0.6) 70%); }
.avatar.av-2 { background: linear-gradient(150deg, rgba(226, 185, 138, 0.28), rgba(3, 2, 18, 0.6) 70%); }
.avatar.av-3 { background: linear-gradient(150deg, rgba(111, 99, 217, 0.32), rgba(3, 2, 18, 0.6) 70%); }
.member h3 { margin-top: 1rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.member p { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }

/* ---------- Partners ---------- */

.partners { padding-block: clamp(4rem, 9vh, 7rem); border-top: 1px solid var(--line); }
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
}
.partner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  background: linear-gradient(170deg, var(--panel-strong), rgba(255, 255, 255, 0.015) 60%);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .partner-card:hover { border-color: var(--lav); box-shadow: 0 0 40px rgba(111, 99, 217, 0.16); }
}
.partner-card:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.partner-card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.partner-card p { color: var(--muted); font-size: 0.97rem; }
.partner-card .visit {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--lav);
  font-weight: 700;
  font-size: 0.94rem;
}

/* ---------- FAQ ---------- */

.faq { padding-block: clamp(4rem, 9vh, 7rem); border-top: 1px solid var(--line); }
.faq .wrap { max-width: 860px; }
.faq .sec-head { text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 0;
  font-weight: 700;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--lav);
  transition: transform 0.25s var(--ease-out);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.35rem; }

@supports (interpolate-size: allow-keywords) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    interpolate-size: allow-keywords;
    transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Contact ---------- */

.contact { padding-block: clamp(4.5rem, 10vh, 7.5rem); }
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}
.contact-copy .lede { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.contact-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.7rem; color: var(--muted); }
.contact-points li { display: flex; gap: 0.7rem; align-items: baseline; }
.contact-points svg { flex: none; color: var(--lav); transform: translateY(2px); }

.contact-loc {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-photo {
  margin-top: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  max-width: 30rem;
}

form {
  display: grid;
  gap: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(170deg, var(--panel-strong), rgba(255, 255, 255, 0.015) 70%);
}
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 700; font-size: 0.93rem; }
.field input, .field select, .field textarea {
  background: rgba(3, 2, 18, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: 400 1rem/1.4 var(--font);
  padding: 0.8rem 1rem;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #8585a3; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--lav);
  outline-offset: 1px;
  border-color: var(--lav);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer: watermark + ring ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
  position: relative;
  overflow: hidden;
}
.foot-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.foot-brand p { color: var(--muted); font-size: 0.95rem; margin-top: 0.9rem; max-width: 32ch; }
.foot-email {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--lav);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .foot-email:hover { text-decoration: underline; }
}
.foot-links { display: flex; gap: 3.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; line-height: 2.15; display: block; }
@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover { color: var(--text); }
}
.foot-links .col-title { font-weight: 700; color: var(--text); font-size: 0.95rem; margin-bottom: 0.3rem; }
.foot-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.watermark {
  position: relative;
  height: clamp(120px, 22vw, 300px);
  margin-top: 2rem;
  pointer-events: none;
  user-select: none;
}
.watermark .wm-text {
  position: absolute;
  inset: auto 0 -0.28em 0;
  font-size: clamp(6rem, 19vw, 17rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}
.watermark .wm-ring {
  position: absolute;
  left: 50%;
  bottom: -34%;
  transform: translateX(-50%);
  width: clamp(260px, 34vw, 460px);
  aspect-ratio: 5 / 3;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* ---------- Motion ---------- */

/* Scroll reveals: CSS scroll-driven, no JS gate. Default state is fully visible,
   so crawlers, headless renderers, and unsupported browsers always see content. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in 1ms linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
    /* Stagger within grouped grids: later cells finish revealing slightly deeper in view */
    .bento > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .partner-grid > .reveal:nth-child(2), .trust-grid > .reveal:nth-child(2), .team-grid > .reveal:nth-child(2) { animation-range: entry 14% entry 64%; }
    .bento > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .trust-grid > .reveal:nth-child(3), .team-grid > .reveal:nth-child(3) { animation-range: entry 23% entry 73%; }
    .trust-grid > .reveal:nth-child(4) { animation-range: entry 32% entry 82%; }
    .bento > .reveal:nth-child(4) { animation-range: entry 14% entry 64%; }
    .bento > .reveal:nth-child(5) { animation-range: entry 23% entry 73%; }

    /* Framer-style parallax: the beam drifts and dims as the hero scrolls away */
    .hero .beam {
      animation: beam-drift 1ms linear both;
      animation-timeline: scroll();
      animation-range: 0 120vh;
    }
    /* Section headings drift up slightly slower than the page for depth */
    .sec-head {
      animation: head-drift 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(40px); }
}
@keyframes beam-drift {
  to { transform: translateY(22vh); opacity: 0.12; }
}
@keyframes head-drift {
  from { transform: translateY(34px); }
}

/* Hero entrance choreography: one orchestrated load-in, ease-out, no scale(0) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .hero-ctas {
    transition: opacity 0.8s var(--ease-out) var(--enter-delay, 0s), transform 0.8s var(--ease-out) var(--enter-delay, 0s);
    @starting-style {
      opacity: 0;
      transform: translateY(16px);
    }
  }
  .product-tag {
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    @starting-style {
      opacity: 0;
      transform: translateY(16px);
    }
  }
  .hero h1 { --enter-delay: 60ms; }
  .hero-sub { --enter-delay: 120ms; }
  .hero-ctas { --enter-delay: 180ms; }
  .map-shell {
    transition: opacity 0.9s var(--ease-out) 150ms;
    @starting-style { opacity: 0; }
  }
}

.route-path {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw-route 3.2s var(--ease-out) 0.4s forwards;
}
.pin-pulse { animation: pin-pulse 2.6s ease-in-out 3s infinite; transform-origin: center; transform-box: fill-box; }
.dest-marker { opacity: 0; animation: fade-in 0.6s ease-out 3s forwards; }
.eta-pill { opacity: 0; animation: fade-in 0.6s ease-out 3.3s forwards; }

@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pin-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-path { animation: none; stroke-dashoffset: 0; }
  .pin-pulse { animation: none; opacity: 0.4; }
  .dest-marker, .eta-pill { animation: none; opacity: 1; }
  .btn, .cell, .partner-card { transition: none; }
  .faq details::details-content { transition: none; }
  .pain { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .ai-grid, .contact .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; min-height: auto; }
  .hero-ring { order: -1; }
  .hero-ring video { width: min(84vw, 440px); }
  .cell-strategy, .cell-build, .cell-deploy, .cell-managed { grid-column: span 6; min-height: 0; }
  .cell-build { min-height: 300px; }
  .svc-list.two-col { grid-template-columns: 1fr; }
  .svc-list.two-col li:last-child { grid-column: auto; }
  .work-visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .pain-field {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .pain-slot { position: static; }
  .pain { max-width: none; }
  .claude-copy { max-width: none; }
  .claude-mark { display: none; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav .wrap { gap: 0.75rem; }
  .brand { margin-right: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    flex-direction: column;
    gap: 0.4rem;
    background: rgba(3, 2, 18, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav.is-open { background: rgba(3, 2, 18, 0.97); border-color: var(--line); }
  @media (prefers-reduced-transparency: reduce) {
    .nav-links, .nav.is-open { background: var(--bg); backdrop-filter: none; }
  }
  .nav-links a { display: block; padding: 0.55rem 0; font-size: 1.05rem; }
}

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .logos .wrap { gap: 1.5rem; }
  .logos-label { width: 100%; margin-right: 0; }
  .pain-field { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .deck {
    height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    place-items: stretch;
  }
  .tcard, .tcard:hover {
    grid-area: auto;
    width: auto;
    height: 170px;
    transform: none;
  }
  .tcard:nth-child(5) { grid-column: span 2; }
}
