/* Connected LLC — P0–P3
   Tokens · header · language · menu · hero · stacked service panels · footer */

:root{
  --black:#000;
  --white:#fff;
  --grey:#6e6e73;
  --hairline:rgba(0,0,0,.10);
  --stroke:rgba(0,0,0,.20);
  --soft:#f2f2f2;
  --surface:rgba(255,255,255,.72);

  --header-h:52px;
  --gutter:clamp(20px,5vw,64px);
  --maxw:1120px;

  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in:cubic-bezier(.7,0,.84,0);
}
@media (min-width:768px){ :root{ --header-h:64px; } }

*,*::before,*::after{ box-sizing:border-box; }
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:0;
  background:var(--white);
}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Inter,"Helvetica Neue",Arial,sans-serif;
  font-size:1rem;
  line-height:1.5;
  color:var(--black);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
h1,h2{ margin:0; }
:focus-visible{ outline:2px solid var(--black); outline-offset:3px; border-radius:4px; }

.skip{
  position:fixed; top:8px; left:8px; z-index:100;
  padding:10px 16px; background:var(--black); color:var(--white);
  border-radius:999px; font-size:.875rem; transform:translateY(-200%);
}
.skip:focus{ transform:none; }

/* ---------- header ---------- */
.header{
  position:fixed; inset:0 0 auto 0; z-index:50;
  height:var(--header-h);
  background:var(--surface);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
}
.header::after{
  content:""; position:absolute; left:0; right:0; top:100%; height:16px;
  background:linear-gradient(rgba(0,0,0,.055),rgba(0,0,0,0));
  opacity:0; transition:opacity 400ms var(--ease-out); pointer-events:none;
}
.header.is-scrolled::after{ opacity:1; }
.header__inner{
  max-width:var(--maxw); height:100%; margin:0 auto; padding:0 var(--gutter);
  display:flex; align-items:center; gap:24px;
}
.wordmark{ font-size:1.1875rem; font-weight:600; letter-spacing:-.02em; transition:opacity 150ms ease-out; }
.wordmark:active{ opacity:.55; }

.nav{ display:none; margin-left:auto; gap:32px; }
@media (min-width:900px){ .nav{ display:flex; } }
.nav a{ font-size:.875rem; color:var(--grey); transition:color 200ms var(--ease-out); }
.nav a:hover{ color:var(--black); }
.nav a:active{ opacity:.5; }

.header__end{ display:flex; align-items:center; gap:12px; margin-left:auto; }
@media (min-width:900px){ .header__end{ margin-left:0; } }

.lang{ display:flex; align-items:center; border:1px solid var(--hairline); border-radius:999px; padding:2px; }
.lang__btn{
  font-size:.75rem; font-weight:500; letter-spacing:.02em; color:var(--grey);
  padding:4px 10px; border-radius:999px;
  transition:color 250ms var(--ease-out), background 250ms var(--ease-out), transform 120ms ease-out;
}
.lang__btn.is-on{ background:var(--black); color:var(--white); }
.lang__btn:active{ transform:scale(.96); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-size:.875rem; font-weight:500; padding:9px 18px; border-radius:999px;
  transition:transform 120ms ease-out, opacity 200ms var(--ease-out), background 200ms var(--ease-out);
}
.btn:active{ transform:scale(.97); }
.btn--solid{ background:var(--black); color:var(--white); }
.btn--solid:hover{ opacity:.85; }
.btn--ghost{ border:1px solid var(--stroke); }
.btn--ghost:hover{ background:rgba(0,0,0,.04); }
.btn--lg{ font-size:.9375rem; padding:13px 26px; }
.nav-cta{ display:none; }
@media (min-width:900px){ .nav-cta{ display:inline-flex; } }

.burger{ width:40px; height:40px; margin-right:-8px; display:grid; place-content:center; gap:6px; }
@media (min-width:900px){ .burger{ display:none; } }
.burger span{
  display:block; width:20px; height:1.5px; background:var(--black); border-radius:2px;
  transition:transform 380ms var(--ease-out), opacity 200ms var(--ease-out);
}
.burger[aria-expanded="true"] span:first-child{ transform:translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child{ transform:translateY(-3.75px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu{
  position:fixed; inset:0; z-index:40;
  padding:calc(var(--header-h) + 32px) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:saturate(180%) blur(24px);
  backdrop-filter:saturate(180%) blur(24px);
  display:flex; flex-direction:column; justify-content:space-between;
  opacity:0; transform:translateY(-8px);
  transition:opacity 260ms var(--ease-in), transform 260ms var(--ease-in);
}
.menu.is-open{ opacity:1; transform:none; transition-timing-function:var(--ease-out); }
.menu__nav{ display:flex; flex-direction:column; gap:4px; }
.menu__nav a{
  font-size:clamp(1.75rem,7vw,2.25rem); font-weight:600;
  letter-spacing:-.02em; line-height:1.25; padding:8px 0;
  transition:opacity 150ms ease-out;
}
.menu__nav a:active{ opacity:.5; }
.menu__foot{ display:flex; flex-direction:column; gap:6px; color:var(--grey); font-size:.9375rem; }
body.is-locked{ overflow:hidden; }

/* ---------- hero: the base layer everything else slides over ---------- */
.hero{
  position:sticky; top:0; z-index:0;
  min-height:100svh;
  display:grid; align-content:center;
  padding:var(--header-h) var(--gutter) 0;
  text-align:center;
}
.hero__inner{ max-width:900px; margin:0 auto; }
.hero__title{
  font-size:clamp(2.5rem,8vw,5.5rem);
  font-weight:600; line-height:1.03; letter-spacing:-.038em;
}
.hero__sub{
  margin:clamp(18px,3vw,28px) auto 0; max-width:44ch;
  font-size:clamp(1.0625rem,1.7vw,1.3125rem); line-height:1.5;
  color:var(--grey); letter-spacing:-.01em;
}
.hero__cta{ margin-top:clamp(28px,4vw,40px); display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.hero__hint{
  position:absolute; left:50%; bottom:28px; width:1px; height:44px;
  background:linear-gradient(var(--stroke),rgba(0,0,0,0));
  transform:translateX(-50%); transform-origin:top;
  animation:hint 2.6s var(--ease-out) infinite;
}
@keyframes hint{ 0%{ transform:translateX(-50%) scaleY(.3); opacity:0 } 40%{ opacity:1 } 100%{ transform:translateX(-50%) scaleY(1); opacity:0 } }

/* the covered layer pushes back instead of just being hidden */
@supports (animation-timeline:scroll()){
  .hero__inner{
    animation:heroPushBack linear both;
    animation-timeline:scroll(root);
    animation-range:0 90svh;
  }
  .hero__hint{ animation:none; opacity:.55; }
}
@keyframes heroPushBack{ to{ opacity:.25; transform:scale(.94) translateY(-3%); } }

/* ---------- service panels: each sticks, the next slides over it ---------- */
.stack{ position:relative; z-index:1; }
.panel{
  background:var(--white);
  border-radius:28px 28px 0 0;
  box-shadow:0 -1px 0 var(--hairline), 0 -28px 70px rgba(0,0,0,.10);
  min-height:100svh;
  display:flex; align-items:center;
}
/* sticky stacking only where a panel is guaranteed to fit the viewport —
   a sticky element taller than the screen pins with its lower half unreachable */
@media (min-width:900px) and (min-height:620px){
  .panel{ position:sticky; top:0; }
}
.panel__inner{
  width:100%; max-width:var(--maxw); margin:0 auto;
  padding:calc(var(--header-h) + clamp(32px,7vh,72px)) var(--gutter) clamp(40px,8vh,80px);
  display:grid; gap:clamp(28px,5vw,72px); align-items:center;
}
@media (min-width:900px){
  .panel__inner{ grid-template-columns:1fr 1fr; }
  .panel--flip .panel__text{ order:2; }
}
.panel__num{ margin:0 0 14px; font-size:.8125rem; font-weight:500; letter-spacing:.09em; color:var(--grey); }
.panel__title{
  font-size:clamp(2rem,4.6vw,3.25rem);
  font-weight:600; line-height:1.06; letter-spacing:-.032em;
}
.panel__body{
  margin:clamp(14px,2vw,20px) 0 0; max-width:38ch;
  font-size:clamp(1rem,1.4vw,1.125rem); line-height:1.55; color:var(--grey); letter-spacing:-.005em;
}
.chips{ margin:clamp(20px,3vw,28px) 0 0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:8px; }
.chips li{
  border:1px solid var(--hairline); border-radius:999px;
  padding:6px 13px; font-size:.8125rem; color:var(--grey); white-space:nowrap;
}

.panel__art{ display:flex; justify-content:center; }
.art{ width:100%; max-width:520px; height:auto; }
.art--phone{ max-width:260px; }
.art .ln{ fill:none; stroke:var(--stroke); stroke-width:1.25; }
.art .dot{ fill:rgba(0,0,0,.16); }
.art .fill-soft{ fill:var(--soft); }
.art .fill-ink{ fill:var(--black); }
.art .fill-invert{ fill:rgba(255,255,255,.55); }

/* ---------- footer ---------- */
.footer{
  position:relative; z-index:2;
  background:var(--white);
  border-top:1px solid var(--hairline);
  border-radius:28px 28px 0 0;
  box-shadow:0 -28px 70px rgba(0,0,0,.10);
}
.footer__inner{
  max-width:var(--maxw); margin:0 auto;
  padding:48px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  display:flex; flex-wrap:wrap; align-items:baseline; gap:16px 40px;
}
.footer__mark{ margin:0; font-weight:600; letter-spacing:-.01em; font-size:.9375rem; }
.footer__links{ display:flex; flex-wrap:wrap; gap:24px; font-size:.9375rem; }
.footer__links a{ color:var(--grey); transition:color 200ms var(--ease-out); }
.footer__links a:hover{ color:var(--black); }
.footer__links a:active{ opacity:.5; }
.footer__legal{ margin:0; margin-left:auto; color:var(--grey); font-size:.8125rem; }

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-transparency:reduce){
  .header,.menu{ background:var(--white); -webkit-backdrop-filter:none; backdrop-filter:none; }
  .header{ border-bottom:1px solid var(--hairline); }
}
@media (prefers-contrast:more){
  :root{ --grey:#000; --hairline:rgba(0,0,0,.45); --stroke:rgba(0,0,0,.6); --surface:#fff; }
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition-duration:1ms !important; }
  .hero__hint{ animation:none; opacity:.5; }
  .hero__inner{ animation:none !important; opacity:1 !important; transform:none !important; }
  .menu{ transform:none !important; transition:opacity 180ms ease !important; }
  .btn:active,.lang__btn:active{ transform:none; }
}

/* ================= P4 · inverted AI layer ================= */
.panel--dark{
  background:var(--black); color:var(--white);
  box-shadow:0 -1px 0 rgba(255,255,255,.12), 0 -30px 80px rgba(0,0,0,.35);
}
.panel--dark .panel__num{ color:rgba(255,255,255,.55); }
.panel--dark .panel__body{ color:rgba(255,255,255,.66); max-width:40ch; }
.panel--dark ::selection{ background:var(--white); color:var(--black); }
.btn--invert{ background:var(--white); color:var(--black); }
.btn--invert:hover{ opacity:.88; }
.ai-cta{ margin-top:clamp(24px,3.5vw,32px); }

.caps{ margin:clamp(22px,3vw,30px) 0 0; padding:0; list-style:none; }
.caps li{
  padding:13px 0 13px 22px; position:relative;
  border-top:1px solid rgba(255,255,255,.14);
  font-size:.9375rem; color:rgba(255,255,255,.82); letter-spacing:-.005em;
}
.caps li:last-child{ border-bottom:1px solid rgba(255,255,255,.14); }
.caps li::before{
  content:""; position:absolute; left:2px; top:50%;
  width:5px; height:5px; margin-top:-2.5px; border-radius:50%; background:var(--white);
}
.art--dark .ln{ stroke:rgba(255,255,255,.22); }
.art--dark .fill-ink{ fill:var(--white); }
.art--dark .fill-soft{ fill:rgba(255,255,255,.09); }
.art--dark .fill-mid{ fill:rgba(255,255,255,.34); }
.art--dark .fill-onink{ fill:rgba(0,0,0,.42); }

/* ================= P5/P6 · document layer over the stack ================= */
.doc{
  position:relative; z-index:2;
  background:var(--white);
  border-radius:28px 28px 0 0;
  box-shadow:0 -30px 80px rgba(0,0,0,.28);
}
.sec__inner{
  max-width:var(--maxw); margin:0 auto;
  padding:clamp(72px,12vh,132px) var(--gutter);
}
.sec + .sec .sec__inner{ padding-top:0; }
.sec__label{ margin:0 0 14px; font-size:.8125rem; font-weight:500; letter-spacing:.09em; color:var(--grey); }
.sec__title{
  margin:0; font-size:clamp(1.875rem,4.2vw,3rem);
  font-weight:600; line-height:1.08; letter-spacing:-.032em;
}

/* steps */
.steps{
  margin:clamp(36px,5vw,56px) 0 0; padding:0; list-style:none;
  display:grid; gap:0;
}
@media (min-width:820px){ .steps{ grid-template-columns:repeat(4,1fr); gap:0 32px; } }
.steps li{ padding:22px 0; border-top:1px solid var(--hairline); }
@media (min-width:820px){ .steps li{ padding:24px 0 0; } }
.steps__n{ display:block; font-size:.8125rem; font-weight:500; letter-spacing:.09em; color:var(--grey); }
.steps h3{ margin:12px 0 0; font-size:1.125rem; font-weight:600; letter-spacing:-.015em; }
.steps p{ margin:8px 0 0; font-size:.9375rem; line-height:1.5; color:var(--grey); }

/* faq */
.faq{ margin:clamp(32px,4vw,48px) 0 0; border-top:1px solid var(--hairline); }
.faq__item{ border-bottom:1px solid var(--hairline); }
.faq__q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:22px 0; text-align:left;
  font-size:clamp(1rem,1.5vw,1.125rem); font-weight:500; letter-spacing:-.012em;
  transition:opacity 150ms ease-out;
}
.faq__q:active{ opacity:.55; }
.faq__ic{ position:relative; flex:0 0 16px; height:16px; }
.faq__ic::before,.faq__ic::after{
  content:""; position:absolute; left:50%; top:50%; background:var(--black); border-radius:1px;
  transition:transform 420ms var(--ease-out), opacity 220ms var(--ease-out);
}
.faq__ic::before{ width:15px; height:1.5px; transform:translate(-50%,-50%); }
.faq__ic::after{ width:1.5px; height:15px; transform:translate(-50%,-50%); }
.faq__q[aria-expanded="true"] .faq__ic::after{ transform:translate(-50%,-50%) rotate(90deg); opacity:0; }
.faq__a{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows 420ms var(--ease-out);
}
.faq__a > div{ overflow:hidden; }
.faq__item.is-open .faq__a{ grid-template-rows:1fr; }
.faq__a p{
  margin:0; padding:0 48px 24px 0; max-width:62ch;
  font-size:1rem; line-height:1.55; color:var(--grey);
}

/* contact */
.sec--contact .sec__inner{ padding-bottom:clamp(80px,13vh,140px); }
.contact__title{
  margin:0; font-size:clamp(2.25rem,6vw,4rem);
  font-weight:600; line-height:1.04; letter-spacing:-.036em;
}
.contact__sub{
  margin:16px 0 0; max-width:38ch;
  font-size:clamp(1rem,1.5vw,1.1875rem); line-height:1.5; color:var(--grey); letter-spacing:-.008em;
}
.contact__grid{
  margin:clamp(32px,4.5vw,48px) 0 0;
  display:grid; gap:12px;
}
@media (min-width:720px){ .contact__grid{ grid-template-columns:1fr 1fr; gap:16px; } }
.card{
  display:flex; flex-direction:column; gap:8px;
  padding:clamp(24px,3.5vw,36px);
  border:1px solid var(--hairline); border-radius:20px;
  transition:transform 140ms ease-out, border-color 260ms var(--ease-out), background 260ms var(--ease-out);
}
.card:hover{ border-color:var(--stroke); background:rgba(0,0,0,.02); }
.card:active{ transform:scale(.985); }
.card__label{ font-size:.8125rem; letter-spacing:.09em; color:var(--grey); }
.card__value{ font-size:clamp(1.25rem,2.6vw,1.75rem); font-weight:600; letter-spacing:-.025em; }

@media (prefers-contrast:more){
  .caps li{ color:#fff; border-color:rgba(255,255,255,.6); }
  .panel--dark .panel__body{ color:#fff; }
}
@media (prefers-reduced-motion:reduce){
  .faq__a{ transition:none; }
  .card:active,.faq__q:active{ transform:none; }
}

/* the class sets display:flex, which outranks the UA [hidden] rule —
   without this the closed overlay sits invisible over the whole page and eats clicks */
.menu[hidden]{ display:none; }
/* document-layer anchors must clear the fixed header */
.doc .sec{ scroll-margin-top:calc(var(--header-h) + 8px); }

/* header adapts to the layer beneath it — dark text on a dark section is unreadable,
   so the chrome inverts while the AI layer is under it */
.header.is-dark{ background:rgba(0,0,0,.55); }
.header.is-dark .wordmark,
.header.is-dark .nav a:hover{ color:var(--white); }
.header.is-dark .nav a{ color:rgba(255,255,255,.62); }
.header.is-dark .lang{ border-color:rgba(255,255,255,.22); }
.header.is-dark .lang__btn{ color:rgba(255,255,255,.62); }
.header.is-dark .lang__btn.is-on{ background:var(--white); color:var(--black); }
.header.is-dark .btn--solid{ background:var(--white); color:var(--black); }
.header.is-dark .burger span{ background:var(--white); }
.header.is-dark::after{ background:linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,0)); }
.header,.header .wordmark,.header .nav a,.header .lang,.header .lang__btn,.header .btn--solid,.header .burger span{
  transition:background 320ms var(--ease-out), color 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
@media (prefers-reduced-transparency:reduce){ .header.is-dark{ background:#000; } }

/* the footer belongs to the document layer, not another card on top of it */
.footer{ border-radius:0; box-shadow:none; }

/* ================= P7 · motion pass ================= */
/* .reveal is added by JS, so with JS off nothing is ever hidden */
.reveal{
  opacity:0; transform:translateY(12px);
  transition:opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay:var(--d,0ms);
  will-change:opacity, transform;
}
.reveal.is-in{ opacity:1; transform:none; will-change:auto; }

/* header condenses once the page has moved */
.header{ transition:background 320ms var(--ease-out), height 420ms var(--ease-out); }
.header.is-scrolled{ height:calc(var(--header-h) - 8px); }
.header .wordmark{ transform-origin:left center; transition:transform 420ms var(--ease-out), opacity 150ms ease-out, color 320ms var(--ease-out); }
.header.is-scrolled .wordmark{ transform:scale(.94); }
.hero.is-past .hero__hint{ opacity:0; }
.hero__hint{ transition:opacity 300ms var(--ease-out); }

@media (prefers-reduced-motion:reduce){
  /* not "no feedback" — just no travel */
  .reveal{ transform:none; transition:opacity 220ms ease; }
  .reveal.is-in{ transform:none; }
  .header,.header.is-scrolled{ height:var(--header-h); }
  .header.is-scrolled .wordmark{ transform:none; }
}
