/* ==========================================================================
   Ecom Designs Hub — Leadership Circle
   Dark glass theme · solid colours only (no gradients)
   ========================================================================== */

:root {
  --bg: #08090D;
  --bg-2: #0E1017;
  --text: #F3F4F7;
  --muted: #AEB3C0;
  --muted-2: #C9CDD8;
  --faint: #8A90A0;

  --accent: #6C5CFF;
  --accent-light: #C3BBFF;
  --orange: #FF7A3D;
  --orange-light: #FFC7AB;
  --teal: #22C7A9;
  --teal-light: #A6F0E2;
  --pink: #E2487F;
  --brand-green: #8DC63F;

  --glass: rgba(20, 22, 31, 0.52);
  --glass-strong: rgba(14, 16, 23, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.28);

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Scrollbars ---------- */
html { color-scheme: dark; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: transparent; }
/* Firefox only — in Chrome, scrollbar-color would override the ::-webkit styles above */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) var(--bg); }
  .drawer-panel { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
}
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 10px; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent-light); }

.container { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
main, .footer, .marquee { position: relative; z-index: 1; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: #fff; color: #000; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
}
.glass-dark {
  background: rgba(10, 12, 18, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; animation: pulse 2.2s ease-in-out infinite; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 36px);
  background: #0B0C11;
  overflow: hidden;
  transition: transform 1.1s var(--ease-io);
}
body.loaded .preloader { transform: translateY(-100%); transition-delay: .65s; }

.pl-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.pl-brand-sm { display: inline-flex; align-items: center; gap: 12px; color: var(--muted-2); }
.pl-mark { width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(108, 92, 255, .45); }

.pl-center { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 30px); text-align: center; }
.pl-ring { position: absolute; width: min(78vw, 640px); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin 50s linear infinite; }
.pl-orb { position: absolute; width: min(36vw, 300px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .22; animation: plOrb 1.6s var(--ease) both; }
.pl-chip { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.pl-word { position: relative; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 10vw, 152px); line-height: .95; letter-spacing: -.05em; color: var(--text); visibility: hidden; }
.pl-word.is-split { visibility: visible; }
.pl-word em { font-weight: 400; letter-spacing: -.02em; color: var(--accent-light); padding-right: .04em; }
.pl-l { white-space: nowrap; }
.pl-word .c { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.pl-word em .c { padding-right: .08em; margin-right: -.08em; } /* keep italic overhang from clipping */
.pl-word .ci { display: inline-block; transform: translateY(115%); }
.pl-word.is-split .ci { animation: plIn 1s var(--ease) both; animation-delay: calc(var(--i) * 45ms + .15s); }
body.loaded .pl-word .ci { animation: plOut .7s var(--ease-io) both; animation-delay: calc(var(--i) * 22ms); }
.pl-tag { position: relative; margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, 1.8vw, 24px); color: var(--muted); }

.pl-foot { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.pl-bar { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.pl-count { min-width: 4ch; text-align: right; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; text-transform: none; }

.pl-fade { animation: plFadeIn .9s var(--ease) both; animation-delay: .5s; }
body.loaded .pl-fade { animation: plFadeOut .45s var(--ease) both; }
body.loaded .pl-orb { animation: plOrbOut .8s var(--ease-io) both; }

/* ---------- Cursor ---------- */
/* the native cursor stays as is; the ring only appears over interactive elements */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 140; pointer-events: none;
  width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 1px solid var(--accent-light);
  display: grid; place-items: center;
  opacity: 0;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, border-color .3s, opacity .3s;
}
body.has-cursor .cursor-ring.is-hover { opacity: 1; width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(108, 92, 255, .14); }
body.has-cursor .cursor-ring.is-label { opacity: 1; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-color: var(--accent); background: var(--accent); }
.cursor-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor-ring.is-label .cursor-label { opacity: 1; }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ---------- Background shapes ---------- */
.bg-shapes { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; will-change: transform; }
.shape span { display: block; width: 100%; height: 100%; animation: float 10s ease-in-out infinite alternate; }
.s1 { top: 6%; right: -6%; width: clamp(240px, 34vw, 500px); aspect-ratio: 1; }
.s1 span { border-radius: 50%; background: var(--accent); opacity: .62; }
.s2 { top: 52%; left: -8%; width: clamp(200px, 26vw, 380px); aspect-ratio: 1; }
.s2 span { border-radius: 50%; background: var(--orange); opacity: .5; animation-duration: 13s; animation-direction: alternate-reverse; }
.s3 { top: 30%; left: 38%; width: clamp(120px, 14vw, 220px); aspect-ratio: 1; }
.s3 span { border-radius: 28%; background: var(--teal); opacity: .48; transform: rotate(18deg); animation-name: floatRot; animation-duration: 15s; }
.s4 { bottom: -6%; right: 18%; width: clamp(160px, 20vw, 300px); aspect-ratio: 1; }
.s4 span { border-radius: 50%; background: var(--pink); opacity: .42; animation-duration: 11s; }
.s5 { top: 14%; left: 8%; width: clamp(90px, 10vw, 150px); aspect-ratio: 1; }
.s5 span { border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .3); animation: spin 30s linear infinite; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s, transform .45s var(--ease);
}
/* fill wipe on hover (solid colour, slides up) */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light::before { background: var(--accent); }
.btn-light:hover { color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); color: var(--text); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: var(--bg); border-color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent::before { background: var(--text); }
.btn-accent:hover { color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px var(--gutter);
  transform: translateY(-140%);
  transition: transform .7s var(--ease);
}
body.loaded .header { transform: none; transition-delay: 1.1s; }
body.loaded .header.is-hidden { transform: translateY(-140%); transition-delay: 0s; }
.header-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 10px; border-radius: 22px;
  transition: max-width .6s var(--ease), background-color .4s, border-color .4s;
}
.header.is-scrolled .header-inner { max-width: 1180px; background: var(--glass-strong); border-color: var(--glass-border-strong); }
/* logo: violet "d" mark (bowl + white stem, from the original split-stem d) + one-line wordmark */
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 14px;
  border: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.brand:hover, .brand:focus-visible { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.brand-mark { flex: none; width: 30px; height: 30px; overflow: visible; }
.bm-bowl { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease), fill .35s; }
.bm-stem { fill: #fff; transition: transform .6s var(--ease); }
.brand:hover .bm-bowl, .brand:focus-visible .bm-bowl { transform: scale(1.12); fill: var(--accent-light); }
.brand:hover .bm-stem, .brand:focus-visible .bm-stem { transform: translateY(-2px); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.brand-name b { font-weight: 700; color: var(--accent-light); transition: color .35s; }
.brand:hover .brand-name b { color: #fff; }
.brand-sep { width: 1px; height: 18px; margin: 0 4px; background: rgba(255, 255, 255, .18); }
.brand-tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; transition: color .35s; }
.brand:hover .brand-tag { color: var(--muted-2); }

.nav { display: flex; gap: 2px; padding: 4px; border-radius: 15px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.nav-link { position: relative; padding: 11px 16px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--muted-2); white-space: nowrap; transition: color .3s, background-color .3s; }
.nav-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .08); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 120px var(--gutter) 40px;
  background: rgba(8, 9, 13, .82);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mm-nav { display: flex; flex-direction: column; }
.mm-link, .mm-foot { opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms + .1s); }
.mobile-menu.is-open .mm-link, .mobile-menu.is-open .mm-foot { opacity: 1; transform: none; }
.mm-link { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 7vw, 38px); line-height: 1.1; letter-spacing: -.025em; }
.mm-link span { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--accent-light); letter-spacing: .1em; }
.mm-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mm-note { font-size: 13px; color: var(--faint); }

/* ---------- Split text & reveal ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.wi { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--base, 0ms)); }
.is-in .wi { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(56px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

[data-hero] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + 1.15s); }
body.loaded [data-hero] { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(120px, 16vh, 170px) 0 clamp(80px, 10vh, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 32px); }
.eyebrow-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.04em; }
.hero-title em { color: var(--accent-light); padding-right: .04em; }
.hero-title { --base: 1250ms; }
.hero-sub { max-width: 480px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 540px; }
.stat { padding: 16px 18px; border-radius: 20px; transition: transform .5s var(--ease), border-color .3s, background-color .3s; }
.stat:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(30, 33, 46, .7); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 40px 0 56px; }
.ring-text { position: absolute; top: -10px; left: 0; width: clamp(110px, 12vw, 150px); height: auto; z-index: 2; animation: spin 22s linear infinite; mix-blend-mode: difference; }
/* difference blend: white text turns black wherever it passes over the white photo */
.ring-text text { fill: #fff; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 3px; }
.tilt-wrap { width: min(440px, 100%); transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.portrait-card { position: relative; display: block; width: 100%; padding: 14px; border-radius: 34px; transform-style: preserve-3d; }
.portrait-img { display: block; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #ececec; clip-path: inset(100% 0 0 0 round 24px); transition: clip-path 1.5s var(--ease-io) 1.3s; }
body.loaded .portrait-img { clip-path: inset(0 0 0 0 round 24px); }
.portrait-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.25); filter: grayscale(.6); transition: transform 1.8s var(--ease) 1.3s, filter .7s; }
body.loaded .portrait-img img { transform: scale(1); }
.portrait-card:hover .portrait-img img { transform: scale(1.06); filter: none; transition-delay: 0s; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; text-align: left; transform: translateZ(50px); animation: bob 6s ease-in-out infinite; }
.float-chip strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -.02em; }
.float-chip small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.chip-name { left: -34px; bottom: 70px; flex-direction: column; align-items: flex-start; gap: 0; min-width: 230px; }
.chip-founders { top: 34px; right: -30px; border-radius: 999px; padding: 8px 16px 8px 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; animation-delay: -2s; }
.chip-since { right: 26px; bottom: -6px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; animation-delay: -4s; }
.stack { display: flex; }
.stack i { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #12141C; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 11px; color: #fff; }
.stack i + i { margin-left: -10px; }
.stack img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; }
/* small round avatars: zoom in on the face */
.stack img, .node .av img, .d-person .av img { transform: scale(1.5); transform-origin: 50% 34%; }
.av img.cutout { transform: scale(2.4); transform-origin: 50% 9%; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.scroll-cue i { position: relative; width: 1px; height: 48px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: drip 2s var(--ease-io) infinite; }

/* ---------- Marquee ---------- */
.marquee { position: relative; display: grid; gap: 14px; padding: 30px 0; border-block: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(90deg, rgba(108, 92, 255, .06), rgba(8, 9, 13, .6) 30%, rgba(8, 9, 13, .6) 70%, rgba(34, 199, 169, .06)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.marquee::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 20%, rgba(255, 255, 255, .08) 80%, transparent); }
.mq-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; will-change: transform; }
.mq-group { display: flex; flex: none; align-items: center; gap: 36px; padding-right: 36px; }
.mq-track .mq-item { color: var(--muted-2); transition: color .35s, -webkit-text-stroke-color .35s, opacity .35s; }
.mq-track .mq-star { font-size: .55em; display: inline-block; animation: spin 8s linear infinite; }

/* names row: avatar + name + role pill, opens the profile */
.mq-person { display: inline-flex; align-items: center; gap: 14px; padding: 6px 20px 6px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); cursor: pointer; transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease); }
.mq-person .av { width: 1.55em; height: 1.55em; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: .42em; font-weight: 700; color: #fff; filter: grayscale(.8); transition: filter .35s; }
.mq-person .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.mq-name { display: inline-flex; flex-direction: column; }
.mq-name small { font-family: var(--font-body); font-size: .34em; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.mq-name b { font-weight: inherit; background: linear-gradient(90deg, var(--accent-light), var(--teal-light)) no-repeat; background-size: 0% 100%; -webkit-background-clip: text; background-clip: text; transition: background-size .6s var(--ease), color .35s; }
.mq-person:hover { border-color: rgba(195, 187, 255, .3); }
.mq-person:hover .mq-name b { background-size: 100% 100%; color: transparent; }
.mq-person:hover .av { filter: none; }

/* values row: outlined text that fills with a gradient on hover */
.mq-track.outline .mq-item { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .4); background: linear-gradient(90deg, var(--accent-light), var(--teal-light)); -webkit-background-clip: text; background-clip: text; background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease), -webkit-text-stroke-color .35s; }
.mq-track.outline .mq-item:hover { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-light); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker-warm { color: var(--orange-light); }
.section-title { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.035em; }
.section-lede { max-width: 380px; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* ---------- Shared person pieces ---------- */
.avatar { position: relative; display: block; overflow: hidden; background: #161923; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.7); transition: transform 1.1s var(--ease), filter .6s; }
.mono { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; color: #fff; transition: transform 1.1s var(--ease); }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 13px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.badge-accent { border: 1px solid var(--accent); color: var(--accent-light); }
.badge-orange { background: rgba(255, 122, 61, .14); border: 1px solid rgba(255, 122, 61, .5); color: var(--orange-light); }
.badge-teal { background: rgba(34, 199, 169, .12); border: 1px solid rgba(34, 199, 169, .5); color: var(--teal-light); }
.badge-float { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 10px; font-size: 10px; letter-spacing: .1em; background: rgba(10, 12, 18, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; font-weight: 500; transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.tag:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-light); }
.more svg { transition: transform .35s var(--ease); }

/* card shell: lift + sheen + accent border */
.card {
  position: relative; width: 100%; overflow: hidden; border-radius: 30px; cursor: pointer;
  transition: transform .6s var(--ease), border-color .4s, background-color .4s, box-shadow .5s;
}
.card::after { content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%; background: rgba(255, 255, 255, .07); transform: skewX(-20deg); transition: left 1s var(--ease); pointer-events: none; }
.card:hover, .card:focus-within { transform: translateY(-10px); border-color: var(--accent); background: rgba(28, 31, 44, .72); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ceo.card:hover, .ceo.card:focus-within { transform: translateY(-6px); }
.card:hover::after { left: 140%; }
.card:hover .avatar img, .card:focus-within .avatar img { transform: scale(1.07); filter: none; }
.card:hover .mono { transform: scale(1.12) rotate(-4deg); }
.card:hover .more svg { transform: translateX(6px); }

.slide-up { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; font-size: 13px; line-height: 1.5; transform: translateY(calc(100% + 14px)); transition: transform .6s var(--ease); }
.slide-up b { font-weight: 600; color: var(--accent-light); white-space: nowrap; }
.card:hover .slide-up, .card:focus-within .slide-up { transform: none; }

/* ---------- CEO feature ---------- */
.ceo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: 18px; border-radius: 38px; text-align: left; }
.ceo .avatar { border-radius: 28px; aspect-ratio: 4 / 5; background: #ececec; clip-path: inset(0 0 100% 0 round 28px); transition: clip-path 1.4s var(--ease-io) .2s; }
.is-in > .ceo .avatar { clip-path: inset(0 0 0 0 round 28px); }
.ceo-body { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(8px, 2vw, 28px) clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px) 0; }
.ceo-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4.2vw, 58px); line-height: .98; letter-spacing: -.04em; }
.quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: #E8EAF0; }
.ceo-bio { max-width: 540px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.meta { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: transform .5s var(--ease), border-color .3s; }
.meta:hover { transform: translateY(-5px); border-color: var(--accent); }
.meta small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.meta span { display: block; margin-top: 6px; font-size: 15px; }
.ceo .btn { align-self: flex-start; }

/* ---------- Founders ---------- */
/* executive swap: fade the re-rendered cards in */
.is-swapped { animation: exec-swap .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes exec-swap { from { opacity: 0; transform: translateY(18px); } }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.fcard { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 22px; padding: 14px; text-align: left; }
.fcard .avatar { border-radius: 22px; aspect-ratio: 4 / 5; }
.fcard .mono { font-size: clamp(44px, 4.4vw, 64px); }
.fbody { display: flex; flex-direction: column; gap: 12px; padding: 10px 8px 8px 0; }
.fbody h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.025em; }
.role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); }
.fbody p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.fbody .tags { margin-top: auto; }

/* ---------- Tabs & team ---------- */
.tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 22px; margin-bottom: 28px; }
.tab-indicator { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 16px; background: var(--accent); transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.tab { position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border-radius: 16px; font-size: 14px; font-weight: 600; color: var(--muted-2); transition: color .3s; }
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.tcard { display: flex; flex-direction: column; gap: 18px; padding: 14px 14px 24px; text-align: left; height: 100%; }
.tbody { flex: 1; }
.tbody .more { margin-top: auto; }
.tcard .avatar { border-radius: 22px; aspect-ratio: 5 / 4; }
/* landscape crop: anchor to the top so heads keep their headroom under the badge */
.tcard .avatar img:not(.cutout) { object-position: 50% 0%; }
.tcard .mono { font-size: clamp(48px, 4.4vw, 66px); }
.tbody { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.tbody h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.1; letter-spacing: -.025em; }
.tbody .role-plain { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.tbody p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.team-item.is-hidden { display: none; }
.team-item.pop { animation: pop .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Philosophy ---------- */
.philo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.philo-quote { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 26px; padding: clamp(28px, 4.4vw, 60px); border-radius: 40px; }
.philo-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.025em; }
.philo-title em { color: var(--orange-light); }
.philo-sign { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--muted); }
.principles { display: flex; flex-direction: column; gap: 14px; }
.principle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; padding: 28px; border-radius: 26px; transition: background-color .45s var(--ease), border-color .45s, color .45s, transform .55s var(--ease); }
.principle .pn { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--text); transition: -webkit-text-stroke-color .45s, color .45s; }
.principle h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.015em; }
.principle p { margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--muted); transition: color .45s; }
.principle:hover { background: var(--text); border-color: var(--text); color: var(--bg); transform: translateX(-8px); }
.principle:hover .pn { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.principle:hover p { color: #3A3F4C; }

/* ---------- Structure tree ---------- */
.tree-wrap { padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); border-radius: 40px; overflow-x: auto; }
.tree, .tree ul { display: flex; justify-content: center; }
/* centred when it fits, scrolls from the left edge when it doesn't */
.tree { width: max-content; min-width: 100%; }
.tree ul { position: relative; padding-top: 34px; }
.tree li { position: relative; padding: 34px 12px 0; text-align: center; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--lvl) * 220ms + 200ms); }
.tree > li { padding-top: 0; }
.tree-wrap.is-in .tree li { opacity: 1; transform: none; }
/* connectors */
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 34px; border-top: 2px solid var(--line); }
.tree li::after { right: auto; left: 50%; border-left: 2px solid var(--line); }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 2px solid var(--line); border-radius: 0 12px 0 0; }
.tree li:first-child::after { border-radius: 12px 0 0 0; }
.tree ul::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 34px; border-left: 2px solid var(--line); }
.tree > li > ul::before { border-left-color: var(--accent); }

.node { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; background: rgba(10, 12, 18, .7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .18); text-align: left; white-space: nowrap; transition: transform .45s var(--ease), border-color .3s, background-color .3s; }
.node:hover, .node:focus-visible { transform: translateY(-5px) scale(1.04); border-color: var(--accent); background: rgba(28, 31, 44, .85); }
.node .av { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.node .av.sq { border-radius: 14px; }
.node .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.nt strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.nt small { display: block; font-size: 12px; color: var(--muted); }
.node-ceo { padding: 12px 26px 12px 12px; border-color: rgba(255, 255, 255, .26); }
.node-ceo .av { width: 58px; height: 58px; }
.node-ceo .nt strong { font-size: 21px; }
.node-ceo .nt small { color: var(--accent-light); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.node-team { border-radius: 18px; background: rgba(255, 122, 61, .1); border-color: rgba(255, 122, 61, .45); }
.node-team .nt small { color: var(--orange-light); }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 9vw, 120px) 0 40px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(8, 9, 13, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.footer-word { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6.4vw, 96px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .4); transition: color .6s var(--ease), -webkit-text-stroke-color .6s; }
.footer-word:hover { color: var(--text); -webkit-text-stroke-color: var(--text); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--faint); }
.footer-row span a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-row span a:hover { color: var(--text); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; transition: visibility 0s .8s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 8, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px;
  width: min(580px, calc(100% - 24px));
  border-radius: 32px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(14, 16, 23, .86);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  transform: translateX(calc(100% + 24px));
  transition: transform .8s var(--ease-io);
}
.drawer-panel::-webkit-scrollbar { width: 6px; }
.drawer-panel::-webkit-scrollbar-track { background: transparent; margin: 28px 0; }
.drawer-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border: 0; border-radius: 6px; }
.drawer-panel::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 12, 18, .7); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .5s var(--ease), background-color .3s; }
.drawer-close:hover { transform: rotate(90deg); background: var(--accent); }
.drawer-body { padding: 14px; }
.dz { opacity: 0; transform: translateY(26px); }
.drawer.is-open .dz { animation: dz .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms + .35s); }
.d-hero { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 12; background: #161923; }
.d-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
/* full-body cut-out photos: frame head-to-waist and leave headroom for the badge */
/* `translate` (not transform) centres it, so the hover scale on transform still works */
.avatar img.cutout, .d-hero img.cutout { position: absolute; top: 56px; left: 50%; translate: -50% 0; width: auto; max-width: none; height: 165%; object-fit: initial; }
.d-hero .mono { font-size: clamp(90px, 20vw, 160px); }
.d-content { display: flex; flex-direction: column; gap: 22px; padding: 26px 14px 18px; }
.d-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 42px); line-height: 1; letter-spacing: -.035em; }
.d-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.d-section h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); }
.d-section p { font-size: 16px; line-height: 1.75; color: var(--muted-2); }
.d-list li { display: flex; gap: 16px; align-items: baseline; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; transition: background-color .3s, padding-left .4s var(--ease); }
.d-list li:last-child { border-bottom: 0; }
.d-list li:hover { background: rgba(255, 255, 255, .05); padding-left: 14px; }
.d-list b { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: transparent; -webkit-text-stroke: 1px var(--text); }
.d-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.d-person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); text-align: left; transition: border-color .3s, transform .4s var(--ease), background-color .3s; }
.d-person:hover { border-color: var(--accent); transform: translateY(-3px); background: rgba(255, 255, 255, .08); }
.d-person .av { width: 44px; height: 54px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; }
.d-person .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.d-person strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.d-person small { display: block; font-size: 12px; color: var(--muted); }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes float { from { transform: translate(0, 0); } to { transform: translate(34px, -44px); } }
@keyframes floatRot { from { transform: translate(0, 0) rotate(18deg); } to { transform: translate(-30px, 36px) rotate(48deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dz { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes plIn { from { transform: translateY(115%); } to { transform: none; } }
@keyframes plOut { from { transform: none; } to { transform: translateY(-115%); } }
@keyframes plFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes plFadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-12px); } }
@keyframes plOrb { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes plOrbOut { to { transform: scale(2.4); opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .brand-sep, .brand-tag { display: none; }
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcard { grid-template-columns: 1fr; }
  .fcard .avatar { aspect-ratio: 16 / 11; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 24px 0 48px; }
  .hero { min-height: auto; }
  .scroll-cue { display: none; }
  .ceo { grid-template-columns: 1fr; }
  .ceo .avatar { aspect-ratio: 4 / 4.2; }
  .ceo-body { padding: 8px 10px 14px; }
  .philo { grid-template-columns: 1fr; }
  .philo-quote { position: relative; top: 0; }
  .principle:hover { transform: translateY(-4px); }
}

@media (max-width: 760px) {
  .founders { grid-template-columns: 1fr; }
  .fcard { grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); }
  .fcard .avatar { aspect-ratio: 4 / 5; }
}

@media (max-width: 900px) {
  /* tree becomes a vertical, indented list */
  .tree-wrap { overflow: visible; padding: 28px 20px; }
  .tree, .tree ul { display: block; }
  .tree { width: auto; min-width: 0; }
  .tree ul { padding: 0 0 0 26px; }
  .tree li { padding: 16px 0 0 26px; text-align: left; }
  .tree > li { padding: 0; }
  .tree > li > ul { padding-left: 22px; }
  /* :nth-child(n) lifts specificity above the desktop connector rules */
  .tree li:nth-child(n)::before { display: block; top: 44px; left: 0; right: auto; width: 22px; height: 0; border: 0; border-top: 2px solid var(--line); border-radius: 0; }
  .tree li:nth-child(n)::after { display: block; top: 0; left: 0; right: auto; width: 0; height: 100%; border: 0; border-left: 2px solid var(--line); border-radius: 0; }
  .tree li:last-child::after { height: 44px; }
  .tree li:only-child { padding-top: 16px; }
  .tree > li::before, .tree > li::after { display: none !important; }
  .tree ul::before { display: none; }
  .node { white-space: normal; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .pl-meta, .pl-label { display: none; }
  .pl-foot { grid-template-columns: minmax(0, 1fr) auto; }
  .header { padding: 10px 12px; }
  .header-inner { padding: 6px 6px 6px 8px; border-radius: 18px; }
  .header-actions .btn-sm { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 26px; height: 26px; }
  .hero { padding-top: 112px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-stats { gap: 8px; }
  .stat { padding: 14px 12px; border-radius: 16px; }
  .stat span { font-size: 12px; }
  .chip-name { left: 10px; bottom: 26px; min-width: 0; }
  .chip-founders { right: 10px; top: 24px; }
  .chip-since { display: none; }
  .float-chip strong { font-size: 16px; }
  .ring-text { width: 96px; top: 0; left: -6px; }
  .team-grid { grid-template-columns: 1fr; }
  .fcard { grid-template-columns: 1fr; }
  .fcard .avatar { aspect-ratio: 16 / 12; }
  .tabs { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 18px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 0 16px; white-space: nowrap; }
  .principle { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .principle .pn { font-size: 30px; }
  .d-facts { grid-template-columns: 1fr 1fr; }
  .drawer-panel { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 92vh; max-height: 92svh; border-radius: 28px 28px 0 0; transform: translateY(105%); }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* touch devices: no hover-only states hiding info */
@media (hover: none) {
  /* no hover on touch, so the quote pop-up would sit over the face for good — hide it */
  .slide-up { display: none; }
  .avatar img, .portrait-img img { filter: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal], [data-hero], .wi, .tree li, .dz, .pl-word .ci { opacity: 1 !important; transform: none !important; }
  .pl-word { visibility: visible; }
  .portrait-img, .ceo .avatar { clip-path: none !important; }
}
