/* ============================================================================
   M&R — Design system "Blueprint on white"
   Direction: architectural blueprint on a white canvas (ref. Sequence),
   floating-paper elevation (ref. Compound), atmospheric mauve washes (ref. Vivid).
   Brand palette locked: blue / pink / white / light mauve. No black surfaces.
   ========================================================================== */

:root{
  /* — Canvas & washes ————————————————————————————— */
  --white:#FFFFFF;
  --canvas:#FBFBFE;
  --wash-blue:#F1F4FF;
  --wash-mauve:#F6F1FE;
  --wash-pink:#FEF3F8;

  /* — Ink (text only; never a surface) —————————————— */
  /* Every step clears WCAG AA (4.5:1) on white AND on the section washes:
     19.0 / 10.1 / 6.6 / 5.2 on white — the hierarchy is kept by contrast steps,
     not by dropping muted text below the legibility floor. */
  --ink:#0A0F22;
  --ink-2:#3A4159;
  --ink-3:#565C73;
  --ink-4:#666C83;

  /* — Brand ————————————————————————————————————— */
  --blue:#213CA0;
  --blue-deep:#152667;
  --blue-lift:#3A5CD8;
  --pink:#E91E8C;        /* accent only — large marks, rules, gradients */
  --pink-ink:#D6157F;    /* AA-safe pink for small text on white */
  --mauve:#A855F7;       /* gradients & washes only */
  --mauve-ink:#7C3AED;   /* AA-safe mauve for small text on white */

  /* — Structure ————————————————————————————————— */
  --line:#E7E9F5;
  --line-2:#D6DAEC;
  --line-blue:rgba(33,60,160,.14);

  --r-card:20px; --r-media:24px; --r-sm:12px; --r-pill:999px;

  /* Diffuse "floating paper" elevation, blue-tinted */
  --lift-1:0 1px 2px rgba(16,24,64,.035), 0 6px 16px rgba(16,24,64,.035);
  --lift-2:0 2px 4px rgba(16,24,64,.03), 0 12px 24px rgba(16,24,64,.05), 0 40px 44px rgba(16,24,64,.04);
  --lift-3:0 10px 24px rgba(33,60,160,.08), 0 44px 60px rgba(33,60,160,.07), 0 96px 68px rgba(33,60,160,.04);

  --shell:1220px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; }
*{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* No `scroll-behavior:smooth` here on purpose. Anchor clicks animate via JS
   (window.scrollTo with behavior:'smooth'); declaring it in CSS as well makes
   WebKit swallow successive programmatic scrolls and is a classic cause of
   "the page won't scroll". Native scrolling stays untouched. */
html{ scroll-padding-top:90px; }

body{
  margin:0;
  background:var(--white);
  color:var(--ink-2);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px; line-height:1.65;
  overflow-x:clip;
  font-variant-numeric:tabular-nums lining-nums;
}
img,svg,video{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--pink); color:#fff; }

/* Focus — visible, brand-coloured, never removed */
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
  border-radius:6px;
}

.shell{ width:min(100% - 2.5rem, var(--shell)); margin-inline:auto; }
@media (max-width:640px){ .shell{ width:min(100% - 1.75rem, var(--shell)); } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display,h1,h2,h3,h4{
  font-family:'Space Grotesk',system-ui,sans-serif;
  color:var(--ink);
  font-weight:500;
  margin:0;
  text-wrap:balance;
}
h1,.t-display{
  font-size:clamp(2.55rem,6.1vw,5rem);
  line-height:.98; letter-spacing:-.045em;
}
h2,.t-h2{
  font-size:clamp(1.95rem,4vw,3.15rem);
  line-height:1.04; letter-spacing:-.04em;
}
h3,.t-h3{ font-size:1.1rem; line-height:1.35; letter-spacing:-.02em; font-weight:600; }
.t-h4{ font-size:.95rem; letter-spacing:-.01em; font-weight:600; }

p{ margin:0; text-wrap:pretty; }
.lead{ font-size:clamp(1.03rem,1.35vw,1.22rem); line-height:1.62; color:var(--ink-2); }
.body{ font-size:.975rem; line-height:1.68; color:var(--ink-3); }
.small{ font-size:.85rem; line-height:1.6; color:var(--ink-3); }
.micro{ font-size:.74rem; line-height:1.5; color:var(--ink-4); letter-spacing:.01em; }

.eyebrow{
  display:inline-flex; align-items:center; gap:.7rem;
  font-family:'Inter',sans-serif; font-size:.7rem; font-weight:500;
  letter-spacing:.24em; text-transform:uppercase; color:var(--ink-3);
}
.eyebrow::before{
  content:""; width:30px; height:1px; flex:none;
  background:linear-gradient(90deg,var(--blue),var(--pink));
}
.grad-ink{
  background:linear-gradient(102deg,var(--blue) 0%,var(--mauve) 52%,var(--pink) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.idx{ font-family:'Space Grotesk',sans-serif; font-weight:500; color:var(--pink-ink); font-size:.78rem; letter-spacing:.06em; }
.num{ font-family:'Space Grotesk',sans-serif; font-weight:500; letter-spacing:-.045em; color:var(--ink); }

/* ============================================================
   SURFACES & RHYTHM
   ============================================================ */
section{ position:relative; }
.band{ padding-block:clamp(4.5rem,9vw,8.5rem); }
.band--tight{ padding-block:clamp(3.25rem,6vw,5.5rem); }
.band--white{ background:var(--white); }
.band--canvas{ background:var(--canvas); }
.band--wash{
  background:
    radial-gradient(90% 120% at 8% 0%, var(--wash-blue) 0%, transparent 60%),
    radial-gradient(80% 110% at 100% 40%, var(--wash-mauve) 0%, transparent 62%),
    var(--canvas);
}
.hairline{ height:1px; background:var(--line); border:0; margin:0; }
.rule-grad{
  height:1px; border:0; margin:0;
  background:linear-gradient(90deg,transparent,var(--line-2) 18%,var(--line-2) 82%,transparent);
}
/* Section rule that draws itself in brand gradient on reveal */
.rule-draw{ position:relative; height:1px; background:var(--line); overflow:hidden; }
.rule-draw::after{
  content:""; position:absolute; inset:0 auto 0 0; width:0;
  background:linear-gradient(90deg,var(--blue),var(--mauve) 55%,var(--pink));
  transition:width 1.4s var(--ease);
}
.rule-draw.is-in::after{ width:100%; }

/* Blueprint graph paper — the signature backdrop */
.blueprint::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(to right, rgba(33,60,160,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33,60,160,.055) 1px, transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
          mask-image:radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
}
.band > .shell{ position:relative; z-index:1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  padding:.92rem 1.6rem; border-radius:var(--r-pill);
  font-family:'Inter',sans-serif; font-size:.94rem; font-weight:600; letter-spacing:-.005em;
  min-height:50px; border:1px solid transparent; cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s, color .35s;
  will-change:transform;
}
.btn svg{ flex:none; transition:transform .4s var(--ease); }
.btn:hover svg{ transform:translateX(3px); }

.btn--primary{
  background:linear-gradient(135deg,var(--blue) 0%,var(--blue-lift) 100%);
  color:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.28) inset, 0 12px 28px -10px rgba(33,60,160,.55);
}
.btn--primary:hover{ transform:translateY(-2px); box-shadow:0 1px 0 rgba(255,255,255,.3) inset, 0 20px 40px -12px rgba(33,60,160,.6); }
.btn--primary:active{ transform:translateY(0); }

.btn--ghost{
  background:var(--white); color:var(--ink); border-color:var(--line-2);
  box-shadow:var(--lift-1);
}
.btn--ghost:hover{ border-color:var(--blue); color:var(--blue); transform:translateY(-2px); box-shadow:var(--lift-2); }

.btn--link{
  padding:0; min-height:0; background:none; border:0; color:var(--blue);
  font-weight:600; font-size:.9rem;
}
.btn--link:hover{ color:var(--pink-ink); }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:60;
  transition:background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  border-bottom:1px solid transparent;
}
.nav.is-stuck{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border-bottom-color:var(--line);
  box-shadow:0 1px 24px rgba(16,24,64,.05);
}
.nav__in{ display:flex; align-items:center; gap:1.5rem; height:74px; }
.brand{ display:inline-flex; align-items:center; gap:.7rem; flex:none; }
.brand img{ width:34px; height:34px; border-radius:9px; }
.brand__name{
  font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1.02rem;
  letter-spacing:-.03em; color:var(--ink); line-height:1;
}
.brand__sub{ display:block; font-family:'Inter',sans-serif; font-size:.63rem; font-weight:500; letter-spacing:.17em; text-transform:uppercase; color:var(--ink-4); margin-top:3px; }
/* Co-branding lockup — local entity first, then the group mark.
   Reads as "MLK Financial × M&R Solutions". */
.brand__x{
  flex:none; font-family:'Space Grotesk',sans-serif; font-weight:400;
  font-size:.95rem; line-height:1; color:var(--ink-4);
  margin-inline:-.1rem; transform:translateY(-1px);
}
/* Two full logos, no wordmark alongside: each mark carries its own name, so
   they are sized up to stay readable and the × does the joining. */
/* `.brand img` (34px) outranks a bare class selector — qualify with the element
   or the two-logo lockup silently stays at the single-logo size. */
.brand img.brand__logo{ flex:none; width:44px; height:44px; border-radius:11px; }
/* the partner mark sits a notch smaller: it is the endorsement, not the subject */
/* logo-mr.png is the M&R mark cropped to its own edges — the source file carries
   ~7% transparent padding, which made it read a size smaller than MLK's */
.brand img.brand__co{
  flex:none; width:44px; height:44px; border-radius:11px;
  opacity:.92; transition:opacity .3s;
}
.brand:hover .brand__co{ opacity:1; }
.brand__logo + .brand__x{ margin-inline:.15rem; }
@media (max-width:380px){
  .brand img.brand__logo, .brand img.brand__co{ width:38px; height:38px; }
}
.nav__links{ display:flex; align-items:center; gap:1.9rem; margin-inline:auto; }
.nav__links a{
  position:relative; font-size:.9rem; font-weight:500; color:var(--ink-2); padding-block:.35rem;
  transition:color .25s;
}
.nav__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px; transform:scaleX(0); transform-origin:left;
  background:linear-gradient(90deg,var(--blue),var(--pink)); transition:transform .35s var(--ease);
}
.nav__links a:hover{ color:var(--ink); }
.nav__links a:hover::after{ transform:scaleX(1); }
.nav__end{ display:flex; align-items:center; gap:.7rem; flex:none; }
.nav .btn{ padding:.6rem 1.15rem; min-height:42px; font-size:.87rem; }

.lang{
  display:inline-flex; align-items:center; padding:3px; gap:2px;
  border:1px solid var(--line-2); border-radius:var(--r-pill); background:var(--white);
}
.lang a{
  font-size:.74rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  padding:.3rem .62rem; border-radius:var(--r-pill); color:var(--ink-3); transition:.25s;
}
.lang a[aria-current="true"]{ background:var(--blue); color:#fff; }
.lang a:not([aria-current="true"]):hover{ color:var(--ink); background:var(--wash-blue); }

.burger{
  display:none; width:44px; height:44px; flex:none;
  flex-direction:column; align-items:center; justify-content:center;
  border:1px solid var(--line-2); border-radius:var(--r-sm); background:var(--white); cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.burger span{ display:block; width:17px; height:1.5px; background:var(--ink); border-radius:2px; transition:transform .35s var(--ease), opacity .2s; }
.burger span + span{ margin-top:4px; }
.burger.is-open span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

.drawer{
  position:fixed; inset:0; z-index:55; display:none; flex-direction:column;
  justify-content:center; align-items:center; gap:.25rem; padding:5rem 2rem 3rem;
  background:linear-gradient(180deg,#FFFFFF 0%,var(--wash-blue) 58%,var(--wash-mauve) 100%);
  opacity:0; transform:translateY(-10px); pointer-events:none;
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.drawer.is-open{ opacity:1; transform:none; pointer-events:auto; }
.drawer a{
  font-family:'Space Grotesk',sans-serif; font-weight:500;
  font-size:clamp(1.7rem,7.5vw,2.4rem); letter-spacing:-.035em; color:var(--ink);
  min-height:56px; display:flex; align-items:center;
}
.drawer a.btn{ margin-top:1.75rem; font-family:'Inter',sans-serif; font-size:1rem; font-weight:600; letter-spacing:-.005em; }
.drawer a.btn--primary{ color:#fff; }
.drawer .drawer__foot a{ display:inline; font-family:inherit; font-size:inherit; min-height:0; }
.drawer__foot{ margin-top:2.5rem; }

@media (max-width:900px){
  .nav__links{ display:none; }
  .burger{ display:flex; }
  .drawer{ display:flex; }
  .nav__end .btn--primary{ display:none; }
  .nav__in{ justify-content:space-between; }
  .nav__end{ margin-left:auto; }
}

#progress{
  position:fixed; top:0; left:0; height:2px; width:0; z-index:70;
  background:linear-gradient(90deg,var(--blue),var(--mauve) 55%,var(--pink));
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; overflow:hidden;
  padding-top:clamp(8.5rem,14vw,11.5rem); padding-bottom:clamp(3.5rem,6vw,5rem);
  background:var(--white);
}
.hero__bloom{
  position:absolute; inset:-20% -10% auto -10%; height:150%; z-index:0; pointer-events:none;
  background:
    radial-gradient(46% 44% at 16% 8%,  rgba(33,60,160,.16) 0%, transparent 68%),
    radial-gradient(42% 42% at 86% 22%, rgba(168,85,247,.16) 0%, transparent 66%),
    radial-gradient(52% 40% at 52% 96%, rgba(233,30,140,.11) 0%, transparent 66%);
  filter:blur(18px);
}
/* Split hero: the argument on the left, the proof of it on the right. */
.hero__in{
  position:relative; z-index:2;
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(2rem,5vw,5rem); align-items:center;
}
/* Smaller than the full-width scale: the headline now shares the row with the stack. */
.hero h1{ margin-top:1.4rem; font-size:clamp(2.3rem,3.9vw,3.65rem); }
.hero .lead{ max-width:46ch; margin-top:1.5rem; font-size:clamp(1rem,1.15vw,1.1rem); }
.hero__cta{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:2.4rem; }

/* ---- The stack: one physical object that says hardware + software + server ---- */
.stack__wrap{ perspective:1600px; }
.stack{
  position:relative; border-radius:22px; overflow:hidden;
  background:var(--white); border:1px solid var(--line);
  box-shadow:var(--lift-3);
  transform:rotateY(-7deg) rotateX(3deg) rotateZ(.4deg);
  transform-origin:left center;
  transition:transform 1.1s var(--ease);
}
@media (hover:hover) and (pointer:fine){ .stack:hover{ transform:rotateY(-3deg) rotateX(1.5deg); } }
@media (max-width:1080px){ .stack{ transform:none; } }

/* the conductor running down the whole unit */
.stack::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px; z-index:3;
  background:linear-gradient(180deg,var(--blue),var(--mauve) 52%,var(--pink));
}
/* light sweep travelling down the rack */
.stack::after{
  content:""; position:absolute; left:0; right:0; height:38%; z-index:2; pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(58,92,216,.06) 45%,rgba(233,30,140,.05) 70%,transparent);
  animation:sweep 6.5s cubic-bezier(.45,0,.35,1) infinite;
}
@keyframes sweep{ 0%{ top:-40%; opacity:0 } 12%{ opacity:1 } 88%{ opacity:1 } 100%{ top:100%; opacity:0 } }
@media (prefers-reduced-motion:reduce){ .stack::after{ animation:none; opacity:0 } }

.stack__bar{
  display:flex; align-items:center; gap:.7rem;
  padding:.85rem 1.1rem .85rem 1.35rem;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,var(--wash-blue),var(--white));
}
.stack__bar b{
  font-family:'Space Grotesk',sans-serif; font-size:.74rem; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:var(--ink);
}
.stack__live{
  margin-left:auto; display:inline-flex; align-items:center; gap:.4rem;
  font-size:.66rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--blue);
}
.stack__live i{
  width:6px; height:6px; border-radius:50%; background:#16A34A; font-style:normal;
  box-shadow:0 0 0 0 rgba(22,163,74,.55); animation:beat 2.2s infinite;
}
@keyframes beat{ 70%{ box-shadow:0 0 0 7px rgba(22,163,74,0) } 100%{ box-shadow:0 0 0 0 rgba(22,163,74,0) } }

.stack__sec{
  padding:.55rem 1.1rem .55rem 1.35rem; border-bottom:1px solid var(--line);
  font-size:.63rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink-4); background:var(--canvas);
}

/* one rack unit = one real product */
.unit{
  display:flex; align-items:center; gap:.85rem;
  padding:.72rem 1.1rem .72rem 1.35rem; border-bottom:1px solid var(--line);
  position:relative; z-index:1; background:var(--white);
  transition:background .35s;
}
.unit:hover{ background:var(--wash-blue); }
.unit img{ width:30px; height:30px; object-fit:contain; flex:none; }
.unit img.is-tile{ width:32px; height:32px; border-radius:8px; }
.unit__n{
  font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:.88rem;
  letter-spacing:-.02em; color:var(--ink); line-height:1.2;
}
.unit__r{ font-size:.74rem; color:var(--ink-3); line-height:1.3; margin-top:1px; }
.unit__x{ margin-left:auto; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-4); white-space:nowrap; }

/* the hardware foot of the rack */
.stack__foot{
  display:flex; align-items:center; gap:.9rem;
  padding:.95rem 1.1rem .95rem 1.35rem;
  background:linear-gradient(180deg,var(--white),var(--wash-mauve));
}
.stack__foot .dev{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:9px;
  border:1px solid var(--line-blue); background:var(--white); color:var(--blue);
}
.stack__foot .dev svg{ width:16px; height:16px; }
.stack__foot span{ font-size:.76rem; color:var(--ink-3); line-height:1.35; }

@media (max-width:1080px){
  .hero__in{ grid-template-columns:1fr; gap:2.75rem; text-align:center; }
  .hero .lead{ margin-inline:auto; }
  .hero__cta{ justify-content:center; }
  .stack__wrap{ max-width:520px; margin-inline:auto; width:100%; }
  .unit, .stack__bar, .stack__sec, .stack__foot{ text-align:left; }
}
@media (max-width:640px){
  /* let the headline find its own line breaks on narrow screens */
  .hero h1 br{ display:none; }
}
@media (max-width:600px){
  .pill-note{ font-size:.71rem; padding:.42rem .8rem; gap:.5rem; }
  .pill-note .chip{ display:none; }
}
@media (max-width:520px){
  .hero__cta{ flex-direction:column; align-items:stretch; }
  .hero__cta .btn{ width:100%; }
}

.pill-note{
  display:inline-flex; align-items:center; gap:.65rem;
  padding:.42rem .5rem .42rem .75rem; border-radius:var(--r-pill);
  border:1px solid var(--line-2); background:rgba(255,255,255,.75);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  font-size:.76rem; font-weight:500; color:var(--ink-2); letter-spacing:.01em;
  box-shadow:var(--lift-1);
}
.pill-note b{ font-weight:600; color:var(--ink); }
.pill-note .dot{ width:6px; height:6px; border-radius:50%; background:var(--pink); flex:none; }
.pill-note .chip{
  padding:.18rem .55rem; border-radius:var(--r-pill); background:var(--wash-blue);
  color:var(--blue); font-size:.68rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase;
}

/* Hero stat rail — one hairline row, tabular figures */
.rail{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  margin-top:clamp(3rem,5vw,4.5rem);
  background:var(--line); border:1px solid var(--line); border-radius:var(--r-card);
  overflow:hidden; box-shadow:var(--lift-2);
}
.rail__c{ background:var(--white); padding:1.45rem 1.35rem; text-align:left; }
.rail__k{ font-size:.68rem; letter-spacing:.19em; text-transform:uppercase; color:var(--ink-4); font-weight:500; }
.rail__v{ font-size:clamp(1.5rem,2.4vw,2.05rem); line-height:1.1; margin-top:.5rem; }
.rail__v em{ font-style:normal; color:var(--pink-ink); }
@media (max-width:820px){ .rail{ grid-template-columns:1fr 1fr; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee{ overflow:hidden; padding-block:1.15rem; border-block:1px solid var(--line); background:var(--white); }
.marquee__t{ display:flex; width:max-content; animation:slide 42s linear infinite; }
.marquee__t > span{
  display:inline-flex; align-items:center; gap:1.6rem; padding-right:1.6rem;
  font-family:'Space Grotesk',sans-serif; font-size:.86rem; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--ink-3); white-space:nowrap;
}
.marquee i{ font-style:normal; color:var(--pink); }
@keyframes slide{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){ .marquee__t{ animation:none; } }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.head{ display:grid; grid-template-columns:1fr; gap:1.4rem; }
.head__top{ display:flex; align-items:baseline; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.head__grid{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.85fr); gap:clamp(1.5rem,4vw,4rem);
  align-items:end; margin-top:1.5rem;
}
@media (max-width:860px){ .head__grid{ grid-template-columns:1fr; align-items:start; } }

/* ============================================================
   BLUEPRINT CHAIN — the signature move
   ============================================================ */
.chain{ margin-top:clamp(2.5rem,5vw,4rem); }

/* The trace: a dashed survey line that a brand-gradient conductor draws across,
   lighting a pink node at each of the four stages, then dropping into the grid. */
.chain__rail{ position:relative; height:58px; }
.chain__base{
  position:absolute; left:12.5%; right:12.5%; top:20px; height:1px;
  background:repeating-linear-gradient(90deg,var(--line-2) 0 5px, transparent 5px 11px);
}
.chain__live{
  position:absolute; left:12.5%; top:19px; height:2px; width:0; border-radius:2px;
  background:linear-gradient(90deg,var(--blue),var(--mauve) 58%,var(--pink));
  transition:width 2.1s var(--ease) .15s;
}
.chain.is-in .chain__live{ width:75%; }
.chain__rail b{
  position:absolute; top:20px; left:calc(12.5% + var(--i) * 25%);
  transform:translate(-50%,-50%);
  width:13px; height:13px; border-radius:50%;
  background:var(--white); border:1px solid var(--line-2);
}
.chain__rail b::after{
  content:""; position:absolute; inset:3px; border-radius:50%; background:var(--line-2);
  transition:background .5s ease calc(.45s + var(--i) * .38s);
}
.chain.is-in .chain__rail b::after{ background:var(--pink); }
.chain__rail b::before{
  content:""; position:absolute; left:50%; top:calc(100% + 1px); width:1px; height:24px;
  transform:translateX(-50%);
  background:linear-gradient(180deg,var(--line-2),transparent);
}

.chain__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; box-shadow:var(--lift-2); }
.chain__cell{ background:var(--white); padding:1.75rem 1.5rem; }
.chain__cell .ico{ margin-bottom:1.1rem; }
.chain__cell h3{ margin-bottom:.55rem; }
@media (max-width:960px){ .chain__grid{ grid-template-columns:1fr 1fr; } .chain__rail{ display:none; } }
@media (max-width:560px){ .chain__grid{ grid-template-columns:1fr; } }

.ico{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg,var(--wash-blue),var(--wash-mauve));
  border:1px solid var(--line-blue); color:var(--blue); flex:none;
}
.ico svg{ width:20px; height:20px; }

/* ============================================================
   CARDS
   ============================================================ */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.1rem; }
@media (max-width:960px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .grid-3,.grid-2{ grid-template-columns:1fr; } }

.card{
  position:relative; background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-card); padding:1.85rem; overflow:hidden;
  box-shadow:var(--lift-1);
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card > *{ position:relative; z-index:1; }
.card::before{
  content:""; position:absolute; inset:0; z-index:0; opacity:0; transition:opacity .5s;
  background:radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(33,60,160,.07), rgba(233,30,140,.05) 42%, transparent 72%);
}
@media (hover:hover) and (pointer:fine){
  .card:hover{ transform:translateY(-4px); box-shadow:var(--lift-3); border-color:var(--line-blue); }
  .card:hover::before{ opacity:1; }
}
.card h3{ margin:1.15rem 0 .55rem; }
.card__specs{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1.2rem; }
.tag{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.28rem .68rem; border-radius:var(--r-pill);
  border:1px solid var(--line-2); background:var(--canvas);
  font-size:.71rem; font-weight:500; letter-spacing:.03em; color:var(--ink-3);
}
.tag--live{ border-color:rgba(33,60,160,.2); background:var(--wash-blue); color:var(--blue); }
.tag--live .dot{ width:6px; height:6px; border-radius:50%; background:#16A34A; }

/* Product card — monogram tile instead of a literal screenshot
   (the locked reference calls for schematic/abstract imagery, and it keeps
   every language edition of the site identical) */
.card--product{ display:flex; flex-direction:column; }
.card--product .card__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.card--product h3{ margin:1.35rem 0 .5rem; }
.card--product .card__foot{ margin-top:auto; padding-top:1.4rem; }

/* Real product marks, pulled from each product's own live site.
   Two of them (Telefon-iA, Pixel-iA) are dark app tiles by design — they get a
   slightly smaller box so their optical weight matches the transparent marks. */
.plogo{ width:56px; height:56px; object-fit:contain; flex:none; }
.plogo.is-tile{ width:52px; height:52px; border-radius:14px; }

.arrow{ display:inline-flex; align-items:center; gap:.45rem; font-size:.88rem; font-weight:600; color:var(--blue); }
.arrow svg{ transition:transform .4s var(--ease); }
.card:hover .arrow svg, .arrow:hover svg{ transform:translate(3px,-3px); }

/* Feature rows (infrastructure) */
.rows{ border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; background:var(--white); box-shadow:var(--lift-2); }
.row{
  display:grid; grid-template-columns:64px minmax(0,1fr) minmax(0,1.15fr); gap:1.5rem; align-items:start;
  padding:1.8rem; border-top:1px solid var(--line); transition:background .4s;
}
.row:first-child{ border-top:0; }
.row:hover{ background:var(--canvas); }
@media (max-width:760px){
  .row{ grid-template-columns:1fr; gap:.75rem; padding:1.5rem; }
}

/* Figures */
.figs{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; }
.fig{ background:var(--white); padding:2rem 1.6rem; }
.fig__v{ font-size:clamp(2.3rem,4.6vw,3.4rem); line-height:1; }
.fig__v sup{ font-size:.44em; vertical-align:super; color:var(--pink-ink); margin-left:.06em; }
.fig__k{ margin-top:.7rem; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-4); font-weight:500; }
@media (max-width:820px){ .figs{ grid-template-columns:1fr 1fr; } }

/* Entities */
.ent{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.1rem; }
@media (max-width:1000px){ .ent{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .ent{ grid-template-columns:1fr; } }
.ent__c{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-card);
  padding:1.6rem; box-shadow:var(--lift-1); position:relative; overflow:hidden;
}
.ent__c::after{
  content:""; position:absolute; left:0; right:0; top:0; height:2px;
  background:linear-gradient(90deg,var(--blue),var(--mauve) 60%,var(--pink));
  transform:scaleX(0); transform-origin:left; transition:transform .9s var(--ease);
}
.ent__c.is-in::after{ transform:scaleX(1); }
.ent__flag{ font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-4); font-weight:500; }
.ent__n{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1.02rem; letter-spacing:-.02em; color:var(--ink); margin-top:.7rem; }
.ent__d{ margin-top:.5rem; font-size:.84rem; line-height:1.6; color:var(--ink-3); }
.ent__d b{ color:var(--ink-2); font-weight:500; }

/* Contact */
.contact{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:clamp(2rem,5vw,4.5rem); align-items:start; }
@media (max-width:900px){ .contact{ grid-template-columns:1fr; } }
.cbox{ background:var(--white); border:1px solid var(--line); border-radius:var(--r-card); box-shadow:var(--lift-2); overflow:hidden; }
.cbox__r{ padding:1.5rem 1.7rem; border-top:1px solid var(--line); display:flex; gap:1.1rem; align-items:flex-start; }
.cbox__r:first-child{ border-top:0; }
.cbox__k{ font-size:.7rem; letter-spacing:.19em; text-transform:uppercase; color:var(--ink-4); font-weight:500; }
.cbox__v{ margin-top:.35rem; font-size:.95rem; color:var(--ink); font-weight:500; }
.cbox__v a:hover{ color:var(--blue); }
.cbox__s{ margin-top:.2rem; font-size:.8rem; color:var(--ink-4); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot{ background:var(--canvas); border-top:1px solid var(--line); padding-block:clamp(3.5rem,6vw,5rem) 2rem; }
.foot__grid{ display:grid; grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,.8fr)); gap:clamp(1.75rem,4vw,3rem); }
@media (max-width:900px){ .foot__grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .foot__grid{ grid-template-columns:1fr; } }
.foot h4{ font-family:'Inter',sans-serif; font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-4); font-weight:500; margin:0 0 1.1rem; }
.foot ul{ list-style:none; margin:0; padding:0; display:grid; gap:.65rem; }
.foot li a{ font-size:.9rem; color:var(--ink-3); transition:color .25s; }
.foot li a:hover{ color:var(--blue); }
.foot__bot{
  margin-top:clamp(2.5rem,5vw,4rem); padding-top:1.5rem; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.doc{ padding-top:clamp(7.5rem,12vw,10rem); padding-bottom:clamp(4rem,8vw,7rem); background:var(--white); }
.doc__in{ width:min(100% - 2.5rem, 760px); margin-inline:auto; }
.doc h1{ font-size:clamp(2rem,4.6vw,3rem); }
.doc h2{ font-size:1.3rem; margin-top:2.75rem; }
.doc h3{ margin-top:1.75rem; }
.doc p, .doc li{ font-size:.95rem; line-height:1.75; color:var(--ink-2); }
.doc p{ margin-top:.9rem; }
.doc ul{ margin-top:.9rem; padding-left:1.15rem; }
.doc li{ margin-top:.45rem; }
.doc a{ color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.doc .todo{
  display:block; margin-top:1rem; padding:1rem 1.15rem; border-radius:var(--r-sm);
  border:1px dashed var(--pink); background:var(--wash-pink); color:var(--pink-ink);
  font-size:.85rem; font-weight:500;
}

/* ============================================================
   REVEALS
   ============================================================ */
.rv{ opacity:0; transform:translateY(26px); transition:opacity 1s ease, transform 1s var(--ease); }
.rv.is-in{ opacity:1; transform:none; }
.rv-d1{ transition-delay:.08s; } .rv-d2{ transition-delay:.16s; } .rv-d3{ transition-delay:.24s; }
.rv-d4{ transition-delay:.32s; } .rv-d5{ transition-delay:.4s; } .rv-d6{ transition-delay:.48s; }

.sc{ display:inline-block; overflow:hidden; vertical-align:bottom; }
.sc > span{ display:inline-block; transform:translateY(105%); }
.sc.is-in > span{ animation:rise .9s var(--ease) forwards; }
@keyframes rise{ to{ transform:translateY(0); } }

@media (prefers-reduced-motion:reduce){
  .rv{ opacity:1; transform:none; transition:none; }
  .sc > span{ transform:none; animation:none; }
  .chain__live{ stroke-dashoffset:0; transition:none; }
  .rule-draw::after{ width:100%; transition:none; }
  .ent__c::after{ transform:scaleX(1); }
  *{ animation-duration:.01ms !important; }
}

/* Print */
@media print{
  .nav,.drawer,#progress,.marquee,.hero__bloom{ display:none !important; }
  body{ background:#fff; }
}
