/* ============================================================================
   MANYARO TECHNOLOGIES v2 — editorial-minimal scroll narrative
   Paper white · near-black ink · Clash Display oversized · gradient as light
   Tokens first; every section below reads them.
   ========================================================================= */

:root {
  --ink:     #101014;
  --ink-2:   #55555F;   /* 6.9:1 on white */
  --ink-3:   #71717C;   /* 4.9:1 on white */
  --paper:   #FFFFFF;
  --paper-2: #F7F7F8;
  --rule:    #E8E8EC;
  --rule-2:  #D9D9E0;

  --web:     #FF6B6B;
  --web-ink: #D12B45;   /* 4.5:1+ for small text */
  --ai:      #6C63FF;
  --ai-ink:  #5B4FE0;
  --grad:    linear-gradient(100deg, #FF6B6B 0%, #A45BF2 55%, #6C63FF 100%);

  --f-display: "Clash Display", "Archivo", sans-serif;
  --f-text:    "Archivo", ui-sans-serif, system-ui, sans-serif;

  --t-hero: clamp(2.6rem, 8.2vw, 7rem);
  --t-h2:   clamp(2rem, 4.6vw, 3.6rem);
  --t-h3:   clamp(1.7rem, 3.2vw, 2.6rem);
  --t-lead: clamp(1.05rem, 1.4vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-sm:   .9375rem;

  --wrap: 1240px;
  --gut:  clamp(20px, 4.5vw, 56px);
  --sec:  clamp(96px, 14vw, 200px);
  --hdr:  76px;

  --r-md: 16px; --r-lg: 28px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16,16,20,.05), 0 10px 30px -12px rgba(16,16,20,.12);
  --sh-2: 0 2px 6px -2px rgba(16,16,20,.06), 0 30px 60px -24px rgba(16,16,20,.22);

  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

/* ================================ BASE ================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.62;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ai-ink); text-decoration-thickness: 1px; text-underline-offset: .24em; }
em { font-style: normal; }
.hl { font-style: normal; position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .1em;
  border-radius: 2px; background: var(--grad); opacity: .9;
}

/* film grain — one viewport-sized fixed layer, promoted to its own compositor
   layer (translateZ) so scrolling only re-blends it, never repaints it. Sizing
   it beyond the viewport or leaving it unpromoted causes visible scroll jank. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: 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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05;
  transform: translateZ(0);
}

/* browser surfaces carry the palette too */
::selection { background: #FFDCE0; color: var(--ink); }
:root { accent-color: var(--ai); caret-color: var(--ai-ink); }
:focus-visible { outline: 2px solid var(--ai-ink); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--rule-2) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border: 3px solid var(--paper); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: #C4C4CE; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease-out);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.h2 { font-size: var(--t-h2); text-wrap: balance; }

/* =============================== BUTTONS ================================ */

.btn {
  --y: 13px; --x: 24px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: var(--y) var(--x);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: 600 1rem/1.2 var(--f-text); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out),
              background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--lg { --y: 17px; --x: 32px; font-size: 1.0625rem; }
.btn--sm { --y: 9px;  --x: 16px; font-size: .9375rem; }
.btn--full { width: 100%; }

.btn--grad {
  color: #fff; background-image: var(--grad);
  background-size: 150% 100%; background-position: 0 0;
  box-shadow: 0 1px 2px rgba(16,16,20,.12), 0 14px 30px -14px rgba(108,99,255,.55);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out),
              background-position .34s var(--ease-out);
}
.btn--line { color: var(--ink); background: transparent; border-color: var(--rule-2); }

@media (hover: hover) and (pointer: fine) {
  .btn--grad:hover {
    background-position: 100% 0; transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(16,16,20,.12), 0 20px 40px -16px rgba(108,99,255,.6);
  }
  .btn--line:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-1); }
}
.btn:active { transform: scale(.98); }

/* ================================ INTRO ================================= */

.intro {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center;
  background: var(--paper);
}
.intro__m { width: clamp(88px, 12vw, 132px); height: auto; }
html:not(.js) .intro, .intro.is-done { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .intro__m { animation: intro-m .9s var(--ease-out) both; }
  .js .intro.is-leaving { animation: intro-out .5s var(--ease-in-out) .06s both; }
  @keyframes intro-m {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
  }
  @keyframes intro-out {
    to { transform: translateY(-100%); }
  }
}
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ================================ HEADER ================================ */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 200;
  transition: transform .32s var(--ease-out), background-color .25s ease,
              border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);   /* lean blur: this repaints on every scroll frame */
  border-bottom-color: var(--rule);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  height: var(--hdr);
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
}

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo__img { width: 42px; height: 42px; border-radius: 10px; }
.logo__txt {
  display: grid; line-height: 1.04;
  font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em;
}
.logo__txt em {
  font-family: var(--f-text); font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}

.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; }
.nav a {
  position: relative; padding-block: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9688rem;
}
.nav a::after {
  content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .24s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.nav a.is-here::after { transform: scaleX(1); }
.hdr__cta { flex: none; }

.burger {
  display: none; position: relative; z-index: 260; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s ease;
}
.burger span {
  display: block; width: 18px; height: 2px; margin: 5px auto 0;
  background: var(--ink); border-radius: 2px;
  transition: transform .24s var(--ease-out);
}
.burger span:first-child { margin-top: 0; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 240;
  display: grid; align-content: center; gap: 8px;
  padding: var(--gut);
  background: var(--paper);
}
.menu[hidden] { display: none; }
.menu__link {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.15;
  color: var(--ink); text-decoration: none;
  opacity: 0; transform: translateY(24px);
}
.menu.is-open .menu__link {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu.is-open .menu__link:nth-child(1) { transition-delay: .05s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .11s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .17s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .23s; }
.menu__cta { margin-top: 28px; justify-self: start; opacity: 0; }
.menu.is-open .menu__cta { opacity: 1; transition: opacity .5s ease .3s; }

@media (max-width: 940px) {
  :root { --hdr: 66px; }
  .nav, .hdr__cta { display: none; }
  .burger { display: block; }
}

/* ================================= HERO ================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: center;
  padding-block: calc(var(--hdr) + 40px) 80px;
  overflow: clip;
}

/* Soft light baked into the gradient stops — NO live blur filter. A 70px
   filter: blur() on elements this size re-rasterizes on weak GPUs and was the
   main scroll-jank source. The gradient falloff reads identically. GSAP owns
   their motion (scroll parallax); a CSS keyframe here would fight it for
   `transform` every frame. */
.orb {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(380px, 46vw, 760px); aspect-ratio: 1;
  border-radius: 50%;
  opacity: .55;
  will-change: transform;
}
.orb--a { left: -14%; top: 0;
  background: radial-gradient(circle at 40% 40%,
    rgba(255,107,107,.5), rgba(255,107,107,.22) 38%, rgba(255,107,107,0) 68%); }
.orb--b { right: -16%; bottom: -12%;
  background: radial-gradient(circle at 55% 45%,
    rgba(108,99,255,.48), rgba(108,99,255,.2) 38%, rgba(108,99,255,0) 68%); }
.orb--c { right: -18%; top: -10%; opacity: .35;
  background: radial-gradient(circle at 50% 50%,
    rgba(164,91,242,.42), rgba(164,91,242,.16) 40%, rgba(164,91,242,0) 68%); }

.hero__in { position: relative; z-index: 1; text-align: center; }
.hero__h {
  font-size: var(--t-hero);
  letter-spacing: -0.03em;
}
.hero__h .mask { display: block; }

/* mask reveal: lines rise from their own overflow-hidden wrappers */
.mask { overflow: hidden; }
.mask__t { display: inline-block; }
.js .mask__t {
  transform: translateY(112%);
  transition: transform .9s var(--ease-out);
}
.js .is-ready .mask__t, .js .mask.is-in .mask__t { transform: none; }
.hero__h .mask:nth-child(2) .mask__t { transition-delay: .1s; }
.hero__p.mask .mask__t { transition-delay: .2s; }

.hero__p {
  margin: 32px auto 0; max-width: 56ch;
  font-size: var(--t-lead); color: var(--ink-2); line-height: 1.6;
}
.hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 44px;
}
.js .hero__cta { opacity: 0; transition: opacity .8s ease .5s; }
.js .is-ready .hero__cta { opacity: 1; }

.hero__hint {
  position: absolute; z-index: 1; left: 50%; bottom: 26px;
  width: 1px; height: 52px; margin: 0;
  background: var(--rule-2); overflow: hidden;
}
.hero__hint span {
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__hint span { animation: hint 2.2s var(--ease-in-out) infinite; }
  @keyframes hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
}

/* =============================== MARQUEE ================================ */

.mq {
  overflow: clip;
  padding-block: clamp(18px, 2.6vw, 30px);
  border-block: 1px solid var(--rule);
  background: var(--paper);
}
.mq__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  width: max-content;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -0.02em;
  white-space: nowrap;
}
.mq b { font-weight: 600; color: var(--web); }
.mq__o {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-3);
}
@media (prefers-reduced-motion: no-preference) {
  .mq__track { animation: mq 26s linear infinite; }
  @keyframes mq { to { transform: translateX(-50%); } }
}

/* ================================= WHY ================================== */

.why { padding-block: var(--sec); }
.why__h { margin-bottom: clamp(40px, 6vw, 72px); }

.rows { border-top: 1px solid var(--rule-2); }
.row {
  position: relative;
  isolation: isolate;          /* keeps the hover wash behind content, above page */
  display: grid; gap: 8px 48px;
  padding-block: clamp(28px, 4vw, 44px);
  transition: padding-left .3s var(--ease-out);
}
/* brand-light wash that floats in behind the row on hover — rounded, wider
   than the text column, in the gradient's own colours at whisper opacity */
.row::before {
  content: ""; position: absolute; z-index: -1;
  inset: 8px -22px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg,
    rgba(255, 107, 107, .11) 0%,
    rgba(164, 91, 242, .09) 55%,
    rgba(108, 99, 255, .13) 100%);
  opacity: 0; transform: scale(.985);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  pointer-events: none;
}
@media (max-width: 879px) { .row::before { inset: 6px -12px; } }
.row__h { font-size: var(--t-h3); letter-spacing: -0.02em; }
.row__body p { max-width: 52ch; color: var(--ink-2); }
.row__n {
  position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink-3);
  transition: transform .3s var(--ease-out), color .3s ease,
              opacity .7s var(--ease-out) calc(var(--rd, 0ms) + 340ms);
}

/* ── row entrance: the rule draws itself across, the title climbs out of its
   own mask, the copy and the arrow follow. The container never hides (the
   generic data-reveal hiding is overridden), so a lost trigger costs motion,
   not content. All keyed on the .is-in the reveal observer already sets,
   staggered per row through --rd. ─────────────────────────────────────── */
.js .row[data-reveal] { opacity: 1; transform: none; transition: padding-left .3s var(--ease-out); }
.row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule-2);
}
.js .row::after {
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-out) var(--rd, 0ms);
}
.js .row.is-in::after { transform: scaleX(1); }

.rh { display: block; overflow: hidden; }
.rh__t { display: inline-block; }
.js .rh__t {
  transform: translateY(115%);
  transition: transform .85s var(--ease-out) calc(var(--rd, 0ms) + 60ms);
}
.js .row.is-in .rh__t { transform: none; }

.js .row .row__body {
  opacity: 0; transform: translateY(16px);
  transition: opacity .75s var(--ease-out) calc(var(--rd, 0ms) + 240ms),
              transform .75s var(--ease-out) calc(var(--rd, 0ms) + 240ms);
}
.js .row.is-in .row__body { opacity: 1; transform: none; }
.js .row .row__n { opacity: 0; }        /* fades only: transform stays hover's */
.js .row.is-in .row__n { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .row:hover { padding-left: 16px; }
  .row:hover::before { opacity: 1; transform: none; }
  .row:hover .row__n { transform: translateX(6px); color: var(--ai-ink); }
}
@media (min-width: 880px) {
  .row { grid-template-columns: 1.1fr 1fr; align-items: center; padding-right: 72px; }
}

/* ============================ SERVICE DECK ============================== */
/* Two sticky full-viewport panels; the second slides over the first while
   GSAP scales the first away underneath. Plain sticky stacking without JS. */

.deck { position: relative; }
.panel {
  position: sticky; top: 0;
  min-height: 100svh;
  display: grid;
  overflow: clip;
}
/* both panels are sheets that ride in from below — rounded top edge and a
   soft upward shadow sell the overlap; GSAP lifts the web one on entry */
.panel--web {
  background: var(--paper-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -18px 50px -30px rgba(16,16,20,.35);
}
.panel--ai {
  background: var(--ink); color: #F5F5F7;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -26px 60px -28px rgba(0,0,0,.5);
}

.panel__in {
  display: grid; gap: clamp(40px, 6vw, 88px);
  align-items: center; align-content: center;
  padding-block: calc(var(--hdr) + 24px) 64px;
}
@media (min-width: 980px) { .panel__in { grid-template-columns: 1.05fr 1fr; } }

.panel__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.panel--web .panel__tag { color: var(--web-ink); }
.panel--ai  .panel__tag { color: #B7B1FF; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--web { background: var(--web); }
.dot--ai  { background: var(--ai); }
.badge {
  padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--ai); color: #fff;
  font-size: .625rem; letter-spacing: .12em;
}

.panel__h { margin-top: 18px; font-size: var(--t-h2); max-width: 15ch; }
.panel__p {
  margin-top: 20px; max-width: 46ch;
  font-size: var(--t-lead); line-height: 1.58; color: var(--ink-2);
}
.panel--ai .panel__p { color: #B9B9C3; }

.feats { display: grid; gap: 0; margin-top: 32px; max-width: 460px; }
.feats li {
  display: flex; align-items: baseline; gap: 14px;
  padding-block: 13px;
  border-top: 1px solid var(--rule-2);
  font-weight: 500; font-size: var(--t-sm);
}
.feats li::before {
  content: "✓";
  font-weight: 700; flex: none;
}
.panel--web .feats li::before { color: var(--web-ink); }
.panel--ai .feats li { border-top-color: #2A2A33; }
.panel--ai .feats li::before { color: #9891FF; }
.panel__txt .btn { margin-top: 36px; }
.panel--ai .btn--line { color: #F5F5F7; border-color: #3A3A45; }
@media (hover: hover) and (pointer: fine) {
  .panel--ai .btn--line:hover { border-color: #F5F5F7; box-shadow: none; }
}

/* ······ scene: web — a site assembling ······ */
.scene { position: relative; }
.browser {
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); }
.browser__url {
  margin-left: 10px; padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--paper-2);
  font-size: .8125rem; color: var(--ink-3);
}
.browser__body { position: relative; padding: clamp(20px, 3vw, 34px); }

/* the client site is real content, not gray wireframe bars — it should read
   as a finished deliverable the moment it is seen */
.bw { margin: 0; }
.bw--nav {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  font-size: .8125rem;
}
.bw--nav b { font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.bw__logo { width: 22px; height: 22px; border-radius: 6px; background: var(--web); flex: none; }
.bw__links { margin-left: auto; color: var(--ink-3); white-space: nowrap; }
.bw__pill {
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 600; font-size: .75rem;
}
.bw--h {
  font-family: var(--f-display); font-weight: 600; line-height: 1.04;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.02em;
}
.bw--p { margin-top: 10px; max-width: 40ch; font-size: .875rem; color: var(--ink-2); }
.bw--btn {
  display: inline-block; margin-top: 16px;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--web); color: #fff; font-weight: 600; font-size: .875rem;
}
.bw--img {
  height: clamp(70px, 8vw, 110px); margin-top: clamp(16px, 2.2vw, 26px);
  border-radius: 10px;
  background:
    radial-gradient(90% 140% at 18% 100%, rgba(255,107,107,.5), rgba(255,107,107,0) 60%),
    linear-gradient(120deg, #FFE9E3, #EDEAFF);
}

/* the pieces assemble one by one, hold, and rebuild — a site being built.
   Long hold (90%) so the card almost never reads as empty. */
@media (prefers-reduced-motion: no-preference) {
  .bw { animation: build 9s var(--ease-out) infinite both; }
  .bw--nav { animation-delay: .15s; }
  .bw--h   { animation-delay: .45s; }
  .bw--p   { animation-delay: .7s; }
  .bw--btn { animation-delay: .9s; }
  .bw--img { animation-delay: 1.1s; }
  @keyframes build {
    0%        { opacity: 0; transform: translateY(12px); }
    8%, 94%   { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; transform: none; }
  }
}

.chip {
  position: absolute;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--rule);
  box-shadow: var(--sh-1);
  font-size: .8125rem; font-weight: 600;
}
.chip--a { top: -16px; right: 8%; color: var(--ai-ink); }
.chip--b { bottom: 18%; left: -14px; color: var(--web-ink); }
.chip--c { bottom: -14px; right: 14%; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: chip 5.5s var(--ease-in-out) infinite alternate; }
  .chip--b { animation-delay: 1.2s; } .chip--c { animation-delay: 2.3s; }
  @keyframes chip { from { transform: translateY(0); } to { transform: translateY(-9px); } }
}

/* ······ scene: ai — the inbox triaging itself ······ */
.inbox {
  border-radius: var(--r-md);
  background: #17171D;
  border: 1px solid #2A2A33;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
  padding: clamp(18px, 2.6vw, 28px);
}
.inbox__head, .inbox__foot {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #8D8D99;
}
.inbox__head { margin-bottom: 16px; }
.inbox__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; text-transform: none; letter-spacing: 0;
  font-weight: 500; font-size: .875rem; color: #B9B9C3;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #7EE0A3; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: pd 2s ease infinite; }
  @keyframes pd { 0%,100% { box-shadow: 0 0 0 0 rgba(126,224,163,.5); } 60% { box-shadow: 0 0 0 7px rgba(126,224,163,0); } }
}

.mail {
  position: relative;
  display: grid; gap: 3px;
  padding: 15px 16px; margin-bottom: 10px;
  border-radius: 12px;
  background: #1E1E26; border: 1px solid #2A2A33;
}
.mail__from { font-weight: 600; font-size: .9375rem; color: #F5F5F7; }
.mail__sub { font-size: .8438rem; color: #8D8D99; }
.mail__tag {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: #2A2A33; color: #B9B9C3;
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
}
.mail__tag--web { background: rgba(255,107,107,.16); color: #FF9C9C; }
.mail__tag--ai  { background: rgba(108,99,255,.2);  color: #B7B1FF; }

/* tags stamp themselves on loop — the triage happening */
@media (prefers-reduced-motion: no-preference) {
  .mail__tag { animation: stamp 6.5s var(--ease-out) infinite both; }
  .mail--1 .mail__tag { animation-delay: .6s; }
  .mail--2 .mail__tag { animation-delay: 1.7s; }
  .mail--3 .mail__tag { animation-delay: 2.8s; }
  @keyframes stamp {
    0%       { opacity: 0; transform: translateY(-50%) scale(.7); }
    8%, 88%  { opacity: 1; transform: translateY(-50%) scale(1); }
    96%,100% { opacity: 0; transform: translateY(-50%) scale(.9); }
  }
}

/* ============================ SHOWCASE BAND ============================= */

.band { padding-block: var(--sec) calc(var(--sec) * .55); background: var(--paper); }
.band__clip {
  border-radius: var(--r-lg);
  margin-inline: auto;
  width: min(100%, 1600px);
  background:
    radial-gradient(130% 160% at 12% 0%,  rgba(255,107,107,.24) 0%, transparent 55%),
    radial-gradient(130% 160% at 88% 100%, rgba(108,99,255,.28) 0%, transparent 55%),
    linear-gradient(#FDFCFE, #FDFCFE);
  border: 1px solid var(--rule);
}
.js .band__clip { clip-path: inset(0 7% round var(--r-lg)); }
.band__in {
  display: grid; justify-items: center; text-align: center;
  padding-block: clamp(72px, 10vw, 140px);
}
.band__m { width: clamp(84px, 10vw, 132px); height: auto; border-radius: 22px; box-shadow: var(--sh-2); }
.band__h { margin-top: 40px; font-size: var(--t-h2); }
.band__p { margin-top: 24px; max-width: 56ch; font-size: var(--t-lead); color: var(--ink-2); }

/* =============================== PROCESS ================================ */

.proc { padding-block: calc(var(--sec) * .55) 0; }
.proc__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vh, 56px); }
.proc__lead { color: var(--ink-2); font-size: var(--t-lead); max-width: 44ch; }

.proc__pin { overflow: clip; }
/* the track's left padding mirrors the .wrap formula, so card 1 sits flush
   under the heading's left edge — off by the shorter gutter it reads as the
   heading being pushed right */
.track {
  --edge: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gut));
  display: grid; gap: 16px;
  padding-inline: var(--edge);
}
.card {
  position: relative;
  border: 1px solid var(--rule-2); border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(24px, 2.8vw, 36px);
}
.card__n {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem;
}
.card__h { margin-top: clamp(18px, 3.4vh, 34px); font-size: var(--t-h3); }
.card__p { margin-top: 12px; color: var(--ink-2); max-width: 42ch; }

/* desktop: the WHOLE section pins as one composed screen — heading on top,
   cards riding horizontally beneath it. Keeping the heading inside the pin
   is what kills the dead gap between it and the cards. */
@media (min-width: 980px) {
  .js .proc {
    height: 100svh;
    padding-block: 0;
    display: grid; align-content: center;
    /* pin the column to the viewport: without this it sizes to the track's
       max-content (~2400px) and the heading centers inside THAT, reading as
       pushed right */
    grid-template-columns: minmax(0, 1fr);
  }
  .js .proc__pin { min-width: 0; }
  .js .track {
    grid-auto-flow: column; grid-auto-columns: minmax(460px, 42vw);
    gap: clamp(18px, 2vw, 28px);
    width: max-content;
    will-change: transform;
  }
  .js .card { min-height: min(50vh, 460px); display: grid; align-content: start; }
}

/* ================================ ABOUT ================================= */

.about { padding-block: var(--sec); }
.about__in { display: grid; gap: clamp(36px, 5vw, 56px); }
/* mobile: both wrappers dissolve so the natural order is heading → story →
   promises → chat; desktop rebuilds them as two aligned columns */
.about__left, .about__right { display: contents; }
/* the chat scene is a desktop companion: on small screens it crowds the story
   and reads badly, so it simply does not exist there */
.about__scene { display: none; }
.about__txt { display: grid; gap: 22px; max-width: 66ch; }
.about__txt p { font-size: var(--t-lead); line-height: 1.62; color: var(--ink-2); }
.about__txt em { color: var(--ink); font-weight: 600; }

.proms { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.proms li {
  display: grid; grid-template-columns: minmax(96px, auto) 1fr; align-items: baseline; gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule-2);
}
.proms b {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.02em;
}
.proms span { color: var(--ink-2); }
@media (min-width: 980px) {
  .about__in {
    grid-template-columns: minmax(340px, 460px) 1fr;
    align-items: start;
  }
  /* two real columns: heading with its chat directly beneath, story beside */
  .about__left  { display: grid; align-content: start; gap: clamp(28px, 3.2vw, 44px); }
  .about__right { display: grid; align-content: start; gap: clamp(32px, 4vw, 52px); }
  .about__scene { display: block; }
  .proms { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0 40px; }
  .proms li:nth-child(1), .proms li:nth-child(2) { border-top: 1px solid var(--rule-2); }
}

/* ── the support chat ──────────────────────────────────────────────────── */
.about__scene { max-width: 420px; }
.chat {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.chat__head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.chat__head img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.chat__head p { display: grid; line-height: 1.25; }
.chat__head b { font-size: .9063rem; letter-spacing: -0.01em; }
.chat__head span { font-size: .75rem; color: var(--ink-3); }
.chat__head em {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: auto;
  font-style: normal; font-size: .75rem; font-weight: 600; color: #1E7A46;
}
.chat__body { display: grid; gap: 9px; padding: 18px 16px; }

.msg {
  position: relative;
  max-width: 86%;
  padding: 10px 14px 20px;
  border-radius: 14px;
  font-size: .875rem; line-height: 1.45;
}
.msg time {
  position: absolute; right: 12px; bottom: 5px;
  font-size: .625rem; opacity: .55;
}
.msg--in {
  justify-self: start;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
}
.msg--out {
  justify-self: end;
  background: var(--ink); color: #F5F5F7;
  border-bottom-right-radius: 4px;
}
.msg--typing {
  justify-self: end;
  display: inline-flex; gap: 4px; align-items: center;
  padding: 12px 14px;
  background: var(--ink);
  border-bottom-right-radius: 4px;
}
.msg--typing i {
  width: 5px; height: 5px; border-radius: 50%; background: #9B9BA8;
}
.chat__done {
  justify-self: center;
  margin-top: 4px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: #E8F7EE; color: #1E7A46;
  font-size: .75rem; font-weight: 700;
}
.about__cap { margin-top: 12px; font-size: .8125rem; color: var(--ink-3); }

/* the conversation plays itself on a 12 s loop */
@media (prefers-reduced-motion: no-preference) {
  .c1 { animation: chat-1 12s var(--ease-out) infinite both; }
  .c2 { animation: chat-2 12s var(--ease-out) infinite both; }
  .c3 { animation: chat-3 12s var(--ease-out) infinite both; }
  .c4 { animation: chat-4 12s var(--ease-out) infinite both; }
  .c5 { animation: chat-5 12s var(--ease-out) infinite both; }
  .msg--typing i { animation: tick 1s ease-in-out infinite; }
  .msg--typing i:nth-child(2) { animation-delay: .14s; }
  .msg--typing i:nth-child(3) { animation-delay: .28s; }

  /* the card is never empty: the first message is on screen from 1 % of the
     cycle to 97 % — the reset is one blink, not a blank window */
  @keyframes chat-1 { 0% { opacity: 0; transform: translateY(10px); }
    1%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes chat-2 { 0%, 8% { opacity: 0; } 11%, 26% { opacity: 1; }
    29%, 100% { opacity: 0; } }
  @keyframes chat-3 { 0%, 29% { opacity: 0; transform: translateY(10px); }
    33%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes chat-4 { 0%, 41% { opacity: 0; transform: translateY(10px); }
    45%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes chat-5 { 0%, 55% { opacity: 0; transform: scale(.9); }
    59%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes tick { 0%, 100% { transform: translateY(0); opacity: .5; }
    40% { transform: translateY(-3px); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .msg--typing { display: none; }
}

/* =============================== CONTACT ================================ */

.ct {
  position: relative; overflow: clip;
  padding-block: var(--sec);
  background: var(--paper-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.ct__h { font-size: clamp(3rem, 10vw, 8rem); letter-spacing: -0.03em; }
.ct__lead { margin-top: 24px; max-width: 52ch; font-size: var(--t-lead); color: var(--ink-2); }
.ct__grid { display: grid; gap: clamp(40px, 6vw, 88px); margin-top: clamp(44px, 6vw, 72px); }
@media (min-width: 980px) { .ct__grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.form {
  padding: clamp(26px, 3.4vw, 44px);
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.fld { display: grid; gap: 8px; margin-bottom: 22px; }
.fld label { font-size: .9375rem; font-weight: 600; }
.fld input, .fld textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule-2); border-radius: 12px;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.fld textarea { resize: vertical; min-height: 110px; }
.fld input::placeholder, .fld textarea::placeholder { color: #8F8F9A; }
.fld input:hover, .fld textarea:hover { border-color: #C6C6D0; }
.fld input:focus, .fld textarea:focus {
  outline: none; background: var(--paper);
  border-color: var(--ai); box-shadow: 0 0 0 3px rgba(108,99,255,.16);
}
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: var(--web-ink); }
.fld__err { font-size: .875rem; color: var(--web-ink); font-weight: 500; }
.fld__err[hidden] { display: none; }
.chk { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-bottom: 22px; }
.chk input { width: 19px; height: 19px; margin-top: 2px; }
.chk span { font-size: .9063rem; color: var(--ink-2); }
.form__ok {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: #F1F0FF; border: 1px solid #DBD8FF;
  font-size: .9375rem; font-weight: 500; color: var(--ai-ink);
}
.form__ok[hidden] { display: none; }

.ct__data { display: grid; }
.ct__data > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline;
  padding-block: 18px; border-bottom: 1px solid var(--rule-2);
}
.ct__data > div:first-child { border-top: 1px solid var(--rule-2); }
.ct__data dt {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3);
}
.ct__data dd { margin: 0; font-weight: 500; }
.ct__data a { color: var(--ink); text-decoration-color: var(--rule-2); }
@media (hover: hover) and (pointer: fine) {
  .ct__data a:hover { color: var(--ai-ink); text-decoration-color: currentColor; }
}
.ct__soc { display: flex; gap: 24px; margin-top: 28px; }
.ct__soc a { font-weight: 600; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ct__soc a:hover { color: var(--ai-ink); } }

/* ================================ FOOTER ================================ */

.ft { overflow: clip; background: var(--paper); }
.ft__giant {
  margin: 0; padding-top: clamp(48px, 7vw, 96px);
  text-align: center;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 17rem);
  line-height: .86; letter-spacing: -0.035em;
  color: var(--paper-2);
  -webkit-text-stroke: 1px var(--rule-2);
  user-select: none;
}
.ft__giant span { display: inline-block; }

.ft__grid {
  display: grid; gap: 44px;
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
  margin-top: clamp(40px, 6vw, 72px);
}
.ft__p { margin-top: 18px; color: var(--ink-2); font-size: var(--t-sm); max-width: 32ch; }
.ft__col { display: grid; align-content: start; gap: 12px; }
.ft__h {
  margin: 0 0 6px;
  font-family: var(--f-text); font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3);
}
.ft__col a { color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); width: fit-content; }
@media (hover: hover) and (pointer: fine) { .ft__col a:hover { color: var(--ink); text-decoration: underline; } }
@media (min-width: 820px) { .ft__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.ft__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
  font-size: .8438rem; color: var(--ink-3);
}

/* =============================== COOKIES ================================ */

.ck {
  position: fixed; z-index: 210; left: 50%; bottom: clamp(12px, 2vw, 24px);
  transform: translateX(-50%);
  width: min(660px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 16px 22px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--rule-2); border-radius: 20px;
  box-shadow: var(--sh-2);
}
.ck[hidden] { display: none; }
.ck__p { flex: 1 1 240px; font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.ck__act { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
@media (max-width: 620px) {
  .ck__act { width: 100%; margin-left: 0; }
  .ck__act .btn { flex: 1 1 auto; }
}

/* Off-screen loops cost frames for nothing: main.js stamps .is-off on the
   hero, marquee and both service scenes while they are out of the viewport. */
.is-off, .is-off * { animation-play-state: paused !important; }

/* =============================== REVEALS ================================ */
/* CSS transitions toggled by IntersectionObserver; a stalled script can never
   strand content invisible, and main.js force-reveals everything at 2.5 s. */

.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .mask__t, .js .hero__cta { opacity: 1; transform: none; transition: none; }
  .js .row::after, .js .rh__t, .js .row .row__body, .js .row .row__n {
    opacity: 1; transform: none; transition: none;
  }
  .js .band__clip { clip-path: none; }
  .orb, .mq__track, .chip, .pulse-dot, .bw, .mail__tag { animation: none !important; }
  .js .track { width: auto; grid-auto-flow: row; grid-auto-columns: auto; }
  .js .proc { height: auto; padding-block: calc(var(--sec) * .55) 0; }
}

/* the open menu locks the page behind it */
html.is-locked, html.is-locked body { overflow: hidden; }

/* ============================ LEGAL PAGES =============================== */

/* doc header keeps its links at every width — no burger on these pages */
.hdr--doc .nav { display: flex; }
@media (max-width: 940px) {
  .hdr--doc .hdr__cta { display: none; }
  .hdr--doc .logo__txt em { display: none; }
}
.ft--doc { border-top: 1px solid var(--rule); }
.ft--doc .ft__bar { border-top: 0; }
.ft--doc .ft__bar a { color: var(--ink-3); }

.doc { padding-block: calc(var(--hdr) + clamp(56px, 8vw, 96px)) var(--sec); }
.doc__head { max-width: 62ch; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.doc__meta { margin-top: 16px; font-size: .875rem; color: var(--ink-3); }
.doc__note {
  display: flex; gap: 12px;
  margin-block: 40px;
  padding: 22px;
  background: #F1F0FF; border-radius: var(--r-md);
  font-size: .9375rem; color: var(--ai-ink);
}
.doc__body { max-width: 72ch; }
.doc__body h2 {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(1.4rem, 2vw, 1.7rem); letter-spacing: -0.02em;
}
.doc__body h3 { margin-top: 32px; font-size: 1.125rem; letter-spacing: -0.015em; }
.doc__body p, .doc__body ul { margin-top: 16px; color: var(--ink-2); }
.doc__body ul { display: grid; gap: 9px; }
.doc__body ul li { position: relative; padding-left: 22px; }
.doc__body ul li::before {
  content: ""; position: absolute; left: 0; top: .64em;
  width: 9px; height: 2px; border-radius: 2px; background: var(--web);
}
.doc__body code {
  padding: 2px 6px; border-radius: 5px;
  background: var(--paper-2); border: 1px solid var(--rule);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875em;
}
.doc__body table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: .9375rem; }
.doc__body th, .doc__body td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.doc__body th {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.doc__body td { color: var(--ink-2); }
.doc__body td:first-child { color: var(--ink); font-weight: 500; }
.doc__back { display: inline-flex; gap: 8px; margin-top: clamp(48px, 6vw, 72px); font-weight: 600; }
