/* Universal header + footer — the single stylesheet for the site chrome on
   every page, home included. The markup lives in assets/site-chrome.js
   (injected on the standalone pages; index.html carries an identical inline
   copy because its scroll engine needs both in the DOM up front). */

/* ---------- header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:6;border-bottom:1px solid rgba(243,240,232,.08);background:rgba(8,9,11,.36);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transform:translateY(0);transition:transform 360ms cubic-bezier(.22,1,.36,1)}
.site-header.is-hidden{transform:translateY(-100%)}
.site-header__inner{max-width:1440px;margin:0 auto;padding:20px clamp(20px,5vw,80px);display:flex;flex-wrap:wrap;row-gap:12px;align-items:center;justify-content:space-between;gap:24px}
.site-brand{display:flex;align-items:center}
.site-brand img{height:34px;width:auto;display:block}
.site-nav{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:clamp(12px,2.4vw,34px)}
.site-nav a{font-family:var(--font-mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#A8A5B0;padding-bottom:3px;border-bottom:1px solid transparent;transition:color 320ms ease,border-color 320ms ease}
.site-nav a:hover{color:#F3F0E8}
.site-nav a.is-active{color:#F3F0E8;border-bottom-color:rgba(176,143,224,.7)}
.site-nav a.cta{display:inline-flex;align-items:center;gap:8px;color:#F3F0E8;border-bottom:1px solid rgba(243,240,232,.42)}
.site-nav a.cta:hover{border-bottom-color:#B08FE0}

/* ---------- small screens: nav behind a menu button (assets/site-chrome.js) ----------
   Only once the script has run (html.has-nav-toggle); without it the links wrap
   as before. The header keeps one row (~72px) instead of growing to three. */
.site-nav-toggle{display:none}
@media (max-width:820px){
  .has-nav-toggle .site-header__inner{flex-wrap:nowrap;padding-top:14px;padding-bottom:14px;gap:16px;position:relative}
  .has-nav-toggle .site-nav-toggle{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:44px;height:44px;margin-right:-10px;padding:0;background:none;border:0;border-radius:2px;color:#F3F0E8;cursor:pointer}
  .site-nav-toggle__bar{display:block;width:20px;height:1px;background:currentColor;transition:transform 260ms cubic-bezier(.22,1,.36,1)}
  .site-header.is-nav-open .site-nav-toggle__bar:first-child{transform:translateY(3.5px) rotate(45deg)}
  .site-header.is-nav-open .site-nav-toggle__bar:last-child{transform:translateY(-3.5px) rotate(-45deg)}
  .has-nav-toggle .site-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;padding:4px clamp(20px,5vw,80px) 18px;background:rgba(8,9,11,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(243,240,232,.08)}
  .has-nav-toggle .site-header.is-nav-open .site-nav{display:flex}
  .has-nav-toggle .site-nav a{display:flex;align-items:center;min-height:48px;padding:0;font-size:12px;border-bottom:1px solid rgba(243,240,232,.06)}
  .has-nav-toggle .site-nav a.cta{border-bottom:1px solid rgba(243,240,232,.06);color:#F3F0E8}
  .site-nav-toggle:focus-visible{outline:1px solid #B08FE0;outline-offset:2px}
}
@media (max-width:820px) and (prefers-reduced-motion:reduce){
  .site-nav-toggle__bar{transition:none}
}

/* ---------- footer ----------
   Compact variant that fits one viewport slot on Home (where it is the last
   scene of the pinned journey) and flows as a normal block on every other
   page (.site-footer--flow adds the spacing/hairline a scrolling page needs). */
.site-footer{display:flex;flex-direction:column;justify-content:center;gap:16px;max-width:1440px;margin:0 auto;width:100%;padding:0 clamp(20px,5vw,80px);box-sizing:border-box}
.site-footer--flow{position:relative;z-index:5;margin-top:clamp(40px,8vh,96px);padding-top:48px;padding-bottom:24px;border-top:1px solid rgba(243,240,232,.09)}
.site-brand,.site-footer a{border-bottom:none}
.footer-links{display:grid;grid-template-columns:repeat(4,1fr);column-gap:32px;row-gap:20px}
.footer-col{display:flex;flex-direction:column;gap:2px;min-width:0}
.footer-col__title{font-family:var(--font-sans);font-size:12px;font-weight:700;letter-spacing:-.01em;text-transform:none;color:#F3F0E8;margin-bottom:4px}
/* min-height: a 24px target per link (WCAG 2.2 target size); the gap shrank by the same amount. */
.footer-col a{display:flex;align-items:center;min-height:24px;font-size:12px;font-weight:500;line-height:1.3;color:rgba(243,240,232,.7);transition:color 260ms ease}
.footer-col a:hover{color:#F3F0E8}
.footer-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 24px;margin-top:20px}
.footer-lang{display:inline-flex;align-items:center;gap:8px;background:none;border:none;padding:0;font-family:var(--font-sans);font-size:12px;font-weight:500;color:rgba(243,240,232,.7);cursor:pointer;transition:color 260ms ease}
.footer-lang:hover{color:#F3F0E8}
.footer-lang__icon,.footer-lang__chevron{flex-shrink:0}
.footer-socials{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.footer-socials__label{font-family:var(--font-sans);font-size:12px;font-weight:700;color:#F3F0E8}
.footer-socials a{font-family:var(--font-sans);font-size:12px;font-weight:500;color:rgba(243,240,232,.7);transition:color 260ms ease}
.footer-socials a:hover{color:#F3F0E8}
/* --brand-scale (icon size AND letter font-size) and --brand-gap are solved
   together by fitFooterBrand() in site-chrome.js so icon + gap + word always
   sum to exactly the row's width. The clamp()s are only the pre-JS fallback. */
.footer-brand{display:flex;align-items:center;gap:var(--brand-gap, clamp(16px,3vw,32px));margin-top:14px;padding-top:14px;border-top:1px solid rgba(243,240,232,.09)}
.footer-logo-placeholder{flex-shrink:0;width:var(--brand-scale, clamp(44px,5.5vw,84px));height:var(--brand-scale, clamp(44px,5.5vw,84px));border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.footer-logo-placeholder img{width:100%;height:100%;object-fit:cover;display:block}
.footer-brand-name{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;line-height:1;user-select:none}
.footer-brand-name .word{display:inline-flex;flex-wrap:nowrap}
/* Draggable letters (see site-chrome.js). The standing z-index matters: a
   dropped letter must not fall behind the row it landed on, or pointer
   events hit that row instead and the letter can never be picked up again. */
.footer-brand-name .ltr{display:inline-block;position:relative;z-index:1;font-family:var(--font-sans);font-weight:700;font-size:var(--brand-scale, clamp(1.8rem,5.5vw,4.5rem));letter-spacing:-.02em;color:#F3F0E8;padding:0 .02em;margin:0 -.01em;border-radius:5px;cursor:grab;touch-action:none;will-change:transform;transition:box-shadow 200ms ease,color 200ms ease}
.footer-brand-name .ltr:hover{color:#fff;box-shadow:0 6px 18px -6px rgba(0,0,0,.55)}
.footer-brand-name .ltr.is-dragging{cursor:grabbing;z-index:20;color:#fff;box-shadow:0 16px 34px -8px rgba(0,0,0,.65);transition:none}
/* Reduced motion: letters still follow the pointer (direct manipulation, never
   motion on its own), but without the hover/lift transitions. */
@media (prefers-reduced-motion:reduce){.footer-brand-name .ltr{transition:none;will-change:auto}}
.footer-brand-name .gap{display:inline-block;width:.28em;font-size:clamp(1.8rem,5.5vw,4.5rem)}
.footer-legal{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid rgba(243,240,232,.09);font-family:var(--font-mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:rgba(168,165,176,.45)}
.footer-legal__trusted{color:rgba(168,165,176,.45)}
.footer-legal__links{display:flex;flex-wrap:wrap;gap:16px}
.footer-legal__links a{color:rgba(168,165,176,.45);transition:color 260ms ease}
.footer-legal__links a:hover{color:#F3F0E8}
.footer-marquee{overflow:hidden;padding-top:12px;border-top:1px solid rgba(243,240,232,.09);-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.footer-marquee__track{display:flex;width:max-content;gap:32px;animation:footer-marquee-scroll 26s linear infinite}
.footer-marquee:hover .footer-marquee__track{animation-play-state:paused}
.footer-marquee__item{display:flex;align-items:center;gap:8px;white-space:nowrap;font-family:var(--font-mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:rgba(168,165,176,.4)}
.footer-marquee__item::before{content:'';width:16px;height:16px;flex-shrink:0;border:1px dashed rgba(243,240,232,.16);border-radius:5px}
@keyframes footer-marquee-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.footer-marquee__track{animation:none}}
@media (max-width:820px){
  .footer-links{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .footer-brand{flex-direction:column;align-items:flex-start;gap:10px}
  .site-footer{gap:12px}
}
