/* ============================================================
   M.M. Azam: shared styles for every page
   tokens, font, u scaling, panels, nav + notch, pills, stencil,
   section helpers, the dark Connect section, intro states
   ============================================================ */
@font-face{
  font-family:'Archivo';
  font-style:normal;
  font-weight:100 900;
  font-stretch:62% 125%;
  font-display:swap;
  src:url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdnoLg.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --sky-top:#CFE2F6; --sky-mid:#DCEAF8; --sky-bot:#F1F7FD;
  --bezel:#E7EFF8; --ink:#0C1E38; --muted:#4B6382; --pill:#0F2A4F;
  --accent:#2F7BE0; --accent-text:#276CCB; --ring:#D8E6F5;
  --panel:#EEF4FB; --panel2:#EAF2FB; --line:#B7CCE4; --marquee:#C5D8EE;
  --deep-top:#0C1E38; --deep-bot:#173D70; --on-deep:#EAF2FC; --on-deep-muted:#9DB4D3;

  --u:min(calc(100vw / 1440), calc(100svh / 956));
  --uw:calc(100vw / 1440);
  --ease:cubic-bezier(.25,.6,.3,1);
}
@supports not (height:100svh){ :root{ --u:min(calc(100vw / 1440), calc(100vh / 956)); } }

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bezel);color:var(--ink);overflow-x:hidden;
  font-family:'Archivo',system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
[tabindex="-1"]:focus{outline:none}   /* sections focused after an in-page jump */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#u-probe{position:absolute;left:0;top:0;width:calc(var(--u) * 1000);height:0;visibility:hidden;pointer-events:none}

/* ============================================================
   FRAMED PANEL (hero + page headers) and NAV
   ============================================================ */
.panel{position:relative;isolation:isolate;margin:0 calc(16 * var(--u));height:calc(924 * var(--u));
  border-radius:calc(36 * var(--u));overflow:hidden;
  background:linear-gradient(180deg,var(--sky-top) 0%,var(--sky-mid) 45%,var(--sky-bot) 100%)}

/* notch + logo */
.notch{position:absolute;left:50%;top:-1px;transform:translateX(-50%);width:calc(560 * var(--u));height:calc(61 * var(--u));
  z-index:3;display:block;fill:var(--bezel)}
.logo{position:absolute;left:50%;top:calc(10 * var(--u));transform:translateX(-50%);z-index:5;
  font-size:calc(33 * var(--u));font-weight:380;font-stretch:122%;letter-spacing:.2em;padding-left:.2em;line-height:1;white-space:nowrap;color:var(--ink)}

/* navs */
/* Both rows are centred on one line: the logo's cap-height middle (10u + 0.49 × 33u ≈ 26.2u).
   On short screens the 40px minimum button would poke above the panel, so the line drops just enough to keep 2px clear. */
:root{
  --nav-btn:max(40px, calc(50 * var(--u)));
  --nav-y:max(calc(26.2 * var(--u)), calc(var(--nav-btn) / 2 + 2px));
}
.nav-l,.nav-r{position:absolute;z-index:5;display:flex;align-items:center;top:var(--nav-y);transform:translateY(-50%)}
.nav-l{left:calc(40 * var(--uw));gap:calc(34 * var(--u))}
.nav-r{right:calc(41 * var(--uw));gap:calc(34 * var(--u))}
.nav-link{font-size:max(13px, calc(16 * var(--u)));font-weight:470;letter-spacing:-.01em;line-height:1;color:var(--ink);transition:color .2s}
.nav-link:hover{color:var(--accent-text)}
/* current page: a small accent dot before the text */
.nav-link.is-current{display:inline-flex;align-items:center;gap:calc(7 * var(--u))}
.nav-link.is-current::before{content:'';width:calc(6 * var(--u));height:calc(6 * var(--u));border-radius:50%;background:var(--accent);flex:none}

.pill{display:inline-flex;align-items:center;justify-content:center;height:calc(44 * var(--u));padding:0 calc(21 * var(--u));
  border-radius:999px;font-size:calc(13.5 * var(--u));font-weight:470;line-height:1;white-space:nowrap;
  transition:background-color .2s,color .2s}
.pill-dark{background:var(--pill);color:#fff}
.pill-dark:hover{background:var(--accent)}
.pill-light{background:#fff;color:var(--ink)}
.pill-light:hover{color:var(--accent-text)}
.nav-r .pill{height:var(--nav-btn);padding:0 calc(26 * var(--u));font-size:max(13px, calc(16 * var(--u)));margin-right:calc(-27 * var(--u))}
.round-btn{display:grid;place-items:center;width:var(--nav-btn);height:var(--nav-btn);border-radius:50%;flex:none;
  background:var(--pill);border:calc(2 * var(--u)) solid var(--sky-top);color:#fff;transition:background-color .2s}
.round-btn:hover{background:var(--accent)}
.round-btn svg{width:max(14px, calc(17 * var(--u)));height:max(14px, calc(17 * var(--u)));fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* rays */
.rays{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.rays line{stroke:#fff;stroke-opacity:.75;stroke-width:1.1px;vector-effect:non-scaling-stroke}

/* headline (hero + page headers) */
.headline{margin:0;font-size:calc(64.5 * var(--u));line-height:.93;font-weight:760;letter-spacing:-.035em;text-transform:uppercase;color:var(--ink);
}
.headline .line{display:block;overflow:hidden;white-space:nowrap}
.headline .in{display:inline-block;white-space:nowrap}
.headline .ch{display:inline-block;white-space:pre}
.headline .st{font-weight:360;font-stretch:100%;letter-spacing:-.01em}
/* stencil cut: one thin gap per letter (used by every headline and the marquee rows) */
.cut{
  -webkit-mask-image:linear-gradient(var(--cd),#000 calc(var(--cp) - .034em),transparent calc(var(--cp) - .034em),transparent calc(var(--cp) + .034em),#000 calc(var(--cp) + .034em));
          mask-image:linear-gradient(var(--cd),#000 calc(var(--cp) - .034em),transparent calc(var(--cp) - .034em),transparent calc(var(--cp) + .034em),#000 calc(var(--cp) + .034em))}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.sec{height:calc(956 * var(--u));padding-top:calc(16 * var(--u))}
.sec-last{height:auto;padding-bottom:calc(16 * var(--u))}
.s-panel{position:relative;isolation:isolate;margin:0 calc(16 * var(--u));height:calc(924 * var(--u));
  border-radius:calc(36 * var(--u));overflow:hidden}
.s-frame{position:absolute;top:0;bottom:0;left:50%;width:calc(1408 * var(--u));margin-left:calc(-704 * var(--u))}
.s-label{position:absolute;z-index:4;left:calc(40 * var(--u));top:calc(40 * var(--u));margin:0;
  font-size:max(13px, calc(16 * var(--u)));font-weight:470;letter-spacing:.04em;line-height:1;color:var(--muted)}
/* headlines built like the hero: clipping lines, one inline-block span per character */
.s-wipe .line{display:block;overflow:hidden;white-space:nowrap}
.s-wipe .in{display:inline-block;white-space:nowrap}
.s-wipe .ch{display:inline-block;white-space:pre}
.s-wipe .st{font-weight:360;font-stretch:100%;letter-spacing:-.01em}
.s-rays{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.s-rays line{stroke:#fff;stroke-opacity:.1;stroke-width:1.1px;vector-effect:non-scaling-stroke}
.arrow-ur{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- #connect ---------- */
#connect .s-panel{background:linear-gradient(180deg,var(--deep-top) 0%,var(--deep-bot) 100%)}
.cn-label{color:var(--on-deep-muted)}
.cn-title{position:absolute;z-index:3;left:calc(40 * var(--u));top:calc(90 * var(--u));margin:0;font-size:calc(150 * var(--u));line-height:.9;
  font-weight:760;letter-spacing:-.04em;text-transform:uppercase;color:var(--on-deep)}
.cn-sub{position:absolute;z-index:3;right:calc(40 * var(--u));top:calc(120 * var(--u));width:calc(360 * var(--u));margin:0;
  font-size:max(15px, calc(20 * var(--u)));line-height:1.5;color:var(--on-deep-muted)}
.cn-list{position:absolute;z-index:3;left:calc(40 * var(--u));right:calc(40 * var(--u));top:calc(470 * var(--u));margin:0;padding:0;list-style:none}
.cn-row{position:relative;display:flex;align-items:center;height:calc(88 * var(--u));border-top:1px solid rgba(234,242,252,.16);color:var(--on-deep)}
.cn-list li:last-child .cn-row{border-bottom:1px solid rgba(234,242,252,.16)}
.cn-row::before{content:'';position:absolute;inset:0;background:rgba(234,242,252,.06);transform:scaleX(0);transform-origin:left;
  transition:transform .4s cubic-bezier(.3,0,.2,1);pointer-events:none}
.cn-row:hover::before,.cn-row:focus-visible::before{transform:scaleX(1)}
.cn-name{position:relative;font-size:calc(46 * var(--u));font-weight:680;letter-spacing:-.03em;line-height:1}
.cn-handle{position:absolute;right:calc(120 * var(--u));top:50%;transform:translateY(-50%);font-size:max(13px, calc(19 * var(--u)));color:var(--on-deep-muted);line-height:1}
.cn-circle{position:absolute;right:0;top:50%;width:calc(60 * var(--u));height:calc(60 * var(--u));margin-top:calc(-30 * var(--u));border-radius:50%;
  border:1px solid rgba(234,242,252,.3);display:grid;place-items:center;color:#fff;transition:background-color .3s var(--ease),color .3s var(--ease)}
.cn-circle svg{width:calc(20 * var(--u));height:calc(20 * var(--u));transition:transform .4s cubic-bezier(.3,0,.2,1)}
.cn-row:hover .cn-circle,.cn-row:focus-visible .cn-circle{background:#fff;color:var(--ink)}
.cn-row:hover .cn-circle svg,.cn-row:focus-visible .cn-circle svg{transform:rotate(45deg)}
.cn-foot{position:absolute;z-index:3;left:calc(40 * var(--u));right:calc(40 * var(--u));bottom:calc(30 * var(--u));margin:0;
  display:flex;justify-content:space-between;gap:calc(16 * var(--u));font-size:max(13px, calc(15 * var(--u)));color:var(--on-deep-muted);line-height:1.3}

/* ============================================================
   Intro states (shared)
   ============================================================ */
.js .reveal{opacity:0}
.js .headline .ch{opacity:0;clip-path:inset(0 0 100% 0)}
html.intro-skip .reveal,html.intro-done .reveal{opacity:1}
html.intro-skip .headline .ch,html.intro-done .headline .ch{opacity:1;clip-path:none}

/* sections have their own hidden state, played by each section's scroll trigger.
   sec-skip = failsafe / reduced motion: everything at rest. */
.js .s-hide{opacity:0}
.js .s-wipe .ch{opacity:0;clip-path:inset(0 0 100% 0)}
html.sec-skip .s-hide{opacity:1}
html.sec-skip .s-wipe .ch{opacity:1;clip-path:none}

/* ============================================================
   PHONE (< 821px): u = 100vw / 390
   ============================================================ */
@media (max-width:820px){
  :root{--u:calc(100vw / 390);--uw:calc(100vw / 390)}
  .panel{margin:0 calc(8 * var(--u));height:calc(100% - 8 * var(--u));border-radius:calc(24 * var(--u))}
  .notch{width:calc(200 * var(--u));height:calc(34 * var(--u))}
  .logo{top:calc(6 * var(--u));font-size:calc(19 * var(--u))}

  .nav-l,.nav-r{transform:none}
  .nav-l{top:calc(20 * var(--u));left:calc(16 * var(--u));gap:calc(14 * var(--u))}
  .nav-l .nav-link{font-size:calc(11 * var(--u))}
  .nav-l .nav-link:not(.is-phone){display:none}   /* phone keeps only this page's link */
  .nav-r{top:calc(8 * var(--u));right:calc(10 * var(--u))}
  .nav-r>:not(.round-btn){display:none}
  .round-btn{width:calc(34 * var(--u));height:calc(34 * var(--u))}
  .round-btn svg{width:calc(13 * var(--u));height:calc(13 * var(--u))}

  /* ---------- sections: auto height, content in normal flow ---------- */
  .sec{height:auto;padding-top:calc(8 * var(--u))}
  .sec-last{padding-bottom:calc(8 * var(--u))}
  .s-panel{height:auto;margin:0 calc(8 * var(--u));border-radius:calc(24 * var(--u));padding-bottom:calc(24 * var(--u))}
  .s-frame{position:relative;top:auto;bottom:auto;left:auto;width:auto;margin:0;padding:0 calc(16 * var(--u))}
  .s-label{position:relative;left:auto;top:auto;padding-top:calc(20 * var(--u));font-size:max(13px, calc(15.5 * var(--u)))}

  /* connect */
  .cn-title{position:relative;left:auto;top:auto;margin-top:calc(16.5 * var(--u));font-size:calc(72 * var(--u))}
  .cn-sub{position:relative;right:auto;top:auto;width:auto;margin-top:calc(16 * var(--u));font-size:max(15px, calc(16 * var(--u)))}
  .cn-list{position:relative;left:auto;right:auto;top:auto;margin-top:calc(32 * var(--u))}
  .cn-row{height:calc(66 * var(--u))}
  .cn-name{font-size:calc(26 * var(--u))}
  .cn-handle{display:none}
  .cn-circle{width:calc(44 * var(--u));height:calc(44 * var(--u));margin-top:calc(-22 * var(--u))}
  .cn-circle svg{width:calc(16 * var(--u));height:calc(16 * var(--u))}
  .cn-foot{position:relative;left:auto;right:auto;bottom:auto;margin-top:calc(28 * var(--u));flex-direction:column;align-items:center;
    gap:calc(4 * var(--u));text-align:center;font-size:max(13px, calc(13.2 * var(--u)))}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}
