/* ==========================================================================
   Benjamin Originals — site styles
   ========================================================================== */

:root {
  --bg: #05050b;
  --bg-2: #090914;
  --bg-3: #0e0e1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4fa;
  --muted: #a7a7be;
  --dim: #6d6d88;

  --blue: #1f3bff;
  --indigo: #4a1dff;
  --cyan: #00e5ff;
  --magenta: #cc00ff;
  --sky: #3ab0f5;
  --gold: #d6ad5c;

  --grad: linear-gradient(90deg, #1f3bff 0%, #00e5ff 48%, #cc00ff 100%);
  --grad-benos: linear-gradient(90deg, #cc00ff 0%, #7a1dff 50%, #1f4bff 100%);
  --grad-script: linear-gradient(90deg, #3ab0f5 0%, #00e5ff 45%, #b86bff 100%);

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --radius: 24px;
  --radius-sm: 14px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: rgba(0, 229, 255, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Film grain over the page for a softer, premium finish. It sits just under the nav: Safari on iPhone
   picks the top-most fixed layer to decide what fills the strip behind the status bar, and when it
   picked this transparent one, the page showed through there instead of a clean dark tint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }

/* ---------- Type ---------- */
.h1 {
  font-size: clamp(2.8rem, 7.4vw, 6.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.h2 {
  text-wrap: balance;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.h1 em, .h2 em, .h3 em, .em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad-script);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px 48px;
}
.section-head--split > div { display: grid; gap: 20px; max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.btn .i { font-size: 18px; transition: transform 0.4s var(--ease); }
.btn:hover .i--arrow { transform: translate(2px, -2px); }
.btn--primary { background: #fff; color: #07070d; }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(0, 229, 255, 0.55), 0 10px 40px -16px rgba(204, 0, 255, 0.7);
}
.btn--ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--origin { border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(90deg, #f7a400, #cc00ff, #1f4bff) border-box; }
.btn--origin:hover { background: linear-gradient(#141020, #141020) padding-box, linear-gradient(90deg, #f7a400, #cc00ff, #1f4bff) border-box; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link-arrow .i { font-size: 17px; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--cyan); }
.link-arrow:hover .i { transform: translate(2px, -2px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(8, 8, 18, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  color: var(--muted);
  transition: border-color 0.3s, background 0.3s;
}
.pill:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); color: var(--text); }
.pill__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-benos);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill .i { font-size: 15px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 5, 11, 0.72);
  /* Darker along the top edge, so the glass fades out of the solid strip Safari paints behind the iPhone status bar */
  box-shadow: inset 0 22px 22px -10px rgba(5, 5, 11, 0.65);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; z-index: 2; }
.brand img { width: 34px; height: 34px; }
.brand__text { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.brand__caps { font-size: 14px; font-weight: 500; letter-spacing: 0.3em; }
.brand__script { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--sky); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.nav__links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateX(-50%);
}
.nav__links .btn { margin-left: 10px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; z-index: 2; }
.nav__toggle span { position: relative; display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), background 0.3s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor; transition: transform 0.4s var(--ease);
}
.nav__toggle span::before { transform: translateY(-5px); }
.nav__toggle span::after { transform: translateY(5px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: rotate(-45deg); }

@media (max-width: 1080px) {
  /* nav collapses into the menu button (wide enough for the links, Subscribe and BenID above this) */
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(5, 5, 11, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav__links a:not(.btn) { font-size: 30px; color: var(--text); padding: 10px 24px; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .btn { margin: 20px 0 0; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 32px) 0 96px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 0%, transparent 75%);
}
.aurora { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  will-change: transform;
}
.aurora span:nth-child(1) { width: 52vw; height: 52vw; left: -16vw; top: 18%; background: #1f2bff; animation: drift-a 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: 30%; background: #b000ff; animation: drift-b 26s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 36vw; height: 24vw; left: 32vw; bottom: -14vw; background: #00d5ff; opacity: 0.32; animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(8vw, -6vh) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-7vw, 5vh) scale(0.92); } }

/* Brighter copy of the grid that only shows around the cursor */
.hero__grid--lit {
  background-image:
    linear-gradient(rgba(120, 200, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, 0.3) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle 260px at var(--gx, 50%) var(--gy, 40%), #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--gx, 50%) var(--gy, 40%), #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s;
}
.hero.is-pointer .hero__grid--lit { opacity: 1; }
.hero__stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero__inner { position: relative; display: grid; justify-items: center; }

.hero__mark {
  --ring-r: 1.72; /* orbit radius, in logo widths */
  position: relative;
  width: clamp(112px, min(19vw, 26vh), 280px);
  aspect-ratio: 1;
  margin: clamp(30px, 5vh, 80px) 0 clamp(18px, 3vh, 40px);
}
.hero__mark-inner { position: absolute; inset: 0; }

/* The logo's entrance. Energy gathers at the centre, then the logo slams down from above;
   the impact (at 0.45s) sets off a flash, shockwaves, a burst of rays and a short camera shake.
   Everything timed to the impact uses 0.45s, and the JS star burst uses the same moment. */
.hero__logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
  animation: logo-slam 0.9s 0.04s both, float 7s ease-in-out 1.6s infinite;
}
@keyframes logo-slam {
  0% { opacity: 0; transform: scale(3.2) rotate(-8deg); filter: blur(24px) brightness(3) drop-shadow(0 0 0 rgba(0, 229, 255, 0)); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.45); }
  46% { opacity: 1; transform: scale(0.86) rotate(0deg); filter: blur(0) brightness(2.6) drop-shadow(0 0 70px rgba(0, 229, 255, 1)); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  64% { transform: scale(1.08); filter: blur(0) brightness(1.6) drop-shadow(0 0 40px rgba(0, 229, 255, 0.8)); animation-timing-function: ease-in-out; }
  80% { transform: scale(0.97); }
  100% { transform: none; filter: blur(0) brightness(1) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45)); }
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* A sheen that sweeps across the logo after it lands, then again every few seconds */
.hero__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.75) 48%, rgba(160, 240, 255, 0.6) 52%, transparent 62%) 150% 0 / 260% 100% no-repeat;
  -webkit-mask: url("../img/icon.png") center / contain no-repeat;
  mask: url("../img/icon.png") center / contain no-repeat;
  animation: sheen 9s ease-in-out 1.2s infinite, float 7s ease-in-out 1.6s infinite;
}
@keyframes sheen { 0% { background-position: 150% 0; } 11%, 100% { background-position: -50% 0; } }

/* Energy gathering at the centre before the impact */
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 46%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #bff8ff 18%, rgba(0, 229, 255, 0.75) 38%, rgba(31, 59, 255, 0.35) 60%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  animation: core-charge 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes core-charge {
  0% { opacity: 0; scale: 0.1; }
  25% { opacity: 0.9; scale: 0.45; }
  40% { opacity: 0.6; scale: 0.4; }
  60% { opacity: 1; scale: 0.7; }
  75% { opacity: 0.75; scale: 0.65; }
  88% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 4; }
}
/* The blast of light behind the logo at the moment of impact */
.blast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(160, 240, 255, 0.7) 30%, rgba(80, 90, 255, 0.35) 55%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: blast 0.9s cubic-bezier(0.1, 0.8, 0.2, 1) 0.43s both;
}
@keyframes blast { 0% { opacity: 0; scale: 0.4; } 12% { opacity: 1; } 100% { opacity: 0; scale: 7; } }
/* A quick flash over the whole hero, centred on the logo (--mark-y is set from JS) */
.hero__flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 50% var(--mark-y, 40%), rgba(255, 255, 255, 0.5), rgba(160, 230, 255, 0.22) 22%, transparent 60%);
  opacity: 0;
  animation: hero-flash 0.7s ease-out 0.45s both;
}
@keyframes hero-flash { 0% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 0; } }
/* The camera shake on impact */
.hero__inner { animation: impact-shake 0.6s linear 0.45s; }
@keyframes impact-shake {
  0% { translate: 0 0; }
  8% { translate: -7px 5px; }
  18% { translate: 6px -6px; }
  30% { translate: -5px 4px; }
  44% { translate: 4px -2px; }
  60% { translate: -2px 1px; }
  78% { translate: 1px 0; }
  100% { translate: 0 0; }
}

.portal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 215%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    #0618ff 0%, #0a2cff 36%, #00e5ff 47%, #00e5ff 51%, #8f45ff 61%, #cc00ff 69%, rgba(140, 0, 255, 0.4) 84%, transparent 100%);
  filter: blur(7px);
  opacity: 0.9;
  animation: ignite 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.43s both, breathe 8s ease-in-out 1.9s infinite;
}
.portal--halo {
  width: 420%;
  background: radial-gradient(closest-side, rgba(70, 40, 255, 0.3), rgba(204, 0, 255, 0.1) 55%, transparent 100%);
  filter: blur(30px);
  animation: ignite 1.8s ease-out 0.47s both, breathe 11s ease-in-out 2.4s infinite reverse;
}
@keyframes ignite { 0% { opacity: 0; transform: scale(0.1); } 22% { opacity: 1; transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }

/* Light rays behind the portal: they burst out on impact, then turn slowly; two layers turning
   opposite ways shimmer */
.rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 760%;
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(110, 160, 255, 0.12) 0deg 2.2deg, transparent 2.2deg 11deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.45) 34%, transparent 70%);
  mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.45) 34%, transparent 70%);
  animation: rays-in 2.2s cubic-bezier(0.15, 0.8, 0.25, 1) 0.45s both, spin 140s linear infinite;
}
.rays::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 5deg, rgba(204, 0, 255, 0.1) 0deg 1.6deg, transparent 1.6deg 14deg);
  animation: spin 70s linear infinite reverse;
}
@keyframes rays-in {
  0% { opacity: 0; scale: 0.25; filter: brightness(3); }
  25% { opacity: 1; scale: 1.12; filter: brightness(2.2); }
  100% { scale: 1; filter: brightness(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Shockwave rings from the impact */
.shock {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.9);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.7), inset 0 0 24px rgba(0, 229, 255, 0.5);
  opacity: 0;
  pointer-events: none;
  animation: shock 1.6s cubic-bezier(0.1, 0.75, 0.2, 1) 0.45s both;
}
.shock--2 {
  border-color: rgba(204, 0, 255, 0.85);
  box-shadow: 0 0 24px rgba(204, 0, 255, 0.7), inset 0 0 24px rgba(204, 0, 255, 0.45);
  animation-duration: 1.8s;
  animation-delay: 0.55s;
}
.shock--3 {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
  animation-duration: 2s;
  animation-delay: 0.67s;
}
@keyframes shock { 0% { opacity: 0; scale: 0.6; } 6% { opacity: 1; } 100% { opacity: 0; scale: 8; } }

/* Tilted orbit ring: the back half sits behind the logo, the front half in front of it.
   --tilt and --ring-rot follow the cursor (set from JS). */
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--ring-r) * 200%);
  height: calc(var(--ring-r) * 200% * var(--tilt, 0.22));
  transform: translate(-50%, -50%) rotate(var(--ring-rot, -8deg));
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.6));
  pointer-events: none;
  animation: ring-in 1.4s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.6s both;
}
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring ellipse { fill: none; stroke: url(#ring-grad); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ring--back { z-index: 1; -webkit-clip-path: inset(-10% -10% 50% -10%); clip-path: inset(-10% -10% 50% -10%); opacity: 0.5; }
.ring--front { z-index: 3; -webkit-clip-path: inset(50% -10% -10% -10%); clip-path: inset(50% -10% -10% -10%); }
@keyframes ring-in { from { opacity: 0; scale: 0.2; } }

/* BenOS apps orbiting the logo (positioned every frame from JS) */
.sats { position: absolute; inset: 0; pointer-events: none; }
.sat {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 30%;
  margin: -11.7% 0 0 -15%;
  opacity: 0;
  will-change: transform, opacity;
}
.sat img { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.sat.is-in img { animation: sat-pop 0.8s ease-out both; }
@keyframes sat-pop {
  0% { filter: drop-shadow(0 0 0 rgba(0, 229, 255, 0)) brightness(2.2); }
  35% { filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.95)) brightness(1.5); }
  100% { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)) brightness(1); }
}

.lockup { position: relative; display: grid; justify-items: center; gap: 6px; }
/* A soft dark pool behind the name keeps it crisp over the stars and rays */
.lockup::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: -1;
  width: 120%;
  height: 140%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(5, 8, 40, 0.7), rgba(5, 8, 40, 0.3) 60%, transparent);
  pointer-events: none;
}
.lockup__caps {
  display: flex;
  font-size: clamp(2rem, min(8.6vw, 11.5vh), 6.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  perspective: 900px;
}
/* The gradient lives on each letter, not the word: Safari won't paint a parent's
   background-clip:text through children that animate on their own layers. */
.lockup__caps span {
  display: inline-block;
  padding: 0.06em 0 0.24em;
  margin-bottom: -0.24em;
  color: #fff;
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(0, 229, 255, 0.95) 46%, #fff 50%, rgba(204, 0, 255, 0.95) 54%, transparent 62%),
    linear-gradient(180deg, #ffffff 30%, #b9b9cc 100%);
  background-size: 300% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform-origin: 50% 85%;
  animation: letter-in 1.2s cubic-bezier(0.2, 0.75, 0.15, 1) both, shine 6.5s ease-in-out infinite;
  animation-delay: calc(0.55s + var(--i) * 0.06s), calc(2.6s + var(--i) * 0.11s);
}
@keyframes letter-in {
  0% { opacity: 0; transform: translateY(0.45em) rotateX(-85deg) scale(0.92); filter: blur(10px); }
  60% { opacity: 1; }
}
@keyframes shine { 0% { background-position: 100% 0, 0 0; } 10%, 100% { background-position: 0% 0, 0 0; } }
.lockup__script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, min(4.6vw, 6vh), 3.5rem);
  line-height: 1.15;
  padding: 0 0.1em 0.08em;
  background: linear-gradient(90deg, #3ab0f5 0%, #00e5ff 25%, #b86bff 50%, #00e5ff 75%, #3ab0f5 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: script-in 1.6s var(--ease) 0.95s both, flow 9s linear infinite;
}
@keyframes script-in { from { opacity: 0; letter-spacing: 0.4em; filter: blur(12px); transform: translateY(10px); } }
@keyframes flow { to { background-position: 200% 0; } }

.hero__tagline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: clamp(18px, 3vh, 30px); font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); }
.hero__tagline strong { color: var(--text); font-weight: 500; }
.hero .btn-row { justify-content: center; margin-top: clamp(22px, 4vh, 38px); }
/* Keep hero text above the glow and orbit lines so nothing looks struck through */
.hero__inner > :not(.hero__mark) { position: relative; z-index: 3; }

[data-intro] { animation: intro 1.3s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes intro { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #8b8ba6;
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__item .i, .marquee__item img { width: 0.95em; height: 0.95em; flex: none; transition: transform 0.4s var(--ease); }
.marquee__item:hover { color: var(--text); }
.marquee__item:hover .i, .marquee__item:hover img { transform: scale(1.12); }
.marquee__item .i--arrow { width: 0.6em; height: 0.6em; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.marquee__item:hover .i--arrow { opacity: 1; transform: none; }
.marquee__star { width: 14px; height: 14px; flex: none; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Spotlight card hover ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.spot::before {
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.08), rgba(204, 0, 255, 0.05) 35%, transparent 60%);
}
.spot::after {
  padding: 1px;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.75), rgba(204, 0, 255, 0.5) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

/* ---------- BenOS spotlight ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 6vw, 88px); align-items: center; }
.feature__copy { display: grid; gap: 26px; }
.feature__logo { width: min(340px, 80%); }

.ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 22px;
  color: #fff;
  background: var(--ico-bg, var(--grad-benos));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -10px var(--ico-glow, rgba(204, 0, 255, 0.8));
}
.ico--blue { --ico-bg: linear-gradient(135deg, #3ab0f5, #1f3bff); --ico-glow: rgba(31, 59, 255, 0.9); }
.ico--cyan { --ico-bg: linear-gradient(135deg, #00e5ff, #1f6bff); --ico-glow: rgba(0, 229, 255, 0.7); }
.ico--magenta { --ico-bg: linear-gradient(135deg, #e04dff, #8a00ff); --ico-glow: rgba(204, 0, 255, 0.8); }
.ico--indigo { --ico-bg: linear-gradient(135deg, #6a5cff, #3b1dff); --ico-glow: rgba(74, 29, 255, 0.9); }
.ico--gold { --ico-bg: linear-gradient(135deg, #f0cf86, #b8862e); --ico-glow: rgba(214, 173, 92, 0.7); }
.ico--gray { --ico-bg: linear-gradient(135deg, #8d8d99, #50505c); --ico-glow: rgba(140, 140, 160, 0.5); }

/* Device mock of BenOS HTML */
.device-wrap { perspective: 1600px; }
.device {
  position: relative;
  border-radius: 18px;
  background: #0b0b16;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow:
    0 50px 120px -40px rgba(31, 59, 255, 0.65),
    0 40px 100px -50px rgba(204, 0, 255, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.8s var(--ease);
  transform-style: preserve-3d;
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.device__url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(62%, 320px);
  height: 24px;
  margin: 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.device__url .i { font-size: 11px; flex: none; }
.device__shot { display: block; width: 100%; height: auto; }
.showcase { margin: 0; display: grid; gap: 18px; }
.disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  max-width: 520px;
  margin: 0 auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim);
  text-align: center;
}
.disclaimer .i { font-size: 13px; margin-top: 2px; }

/* Real BenOS app icons, laid out like the BenOS dock */
.apps { display: grid; gap: 14px; margin-top: 4px; container-type: inline-size; }
.apps__label { font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
/* Touch screens and narrow layouts: a wrapping grid of icons with their names */
.apps__dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 4px;
  padding: 16px 8px 14px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.apps__dock li { display: grid; justify-items: center; gap: 8px; width: 74px; min-width: 0; }
.apps__dock img { width: 100%; max-width: 58px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }
.apps__dock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; letter-spacing: -0.01em; color: var(--muted); }
/* With a mouse: a one-row dock that magnifies like macOS. Hovered icons get wider slots and push
   their neighbours aside instead of scaling over them, so icons never overlap. */
@media (hover: hover) and (min-width: 721px) {
  .apps__dock {
    --u: min(58px, calc((100cqw - 102px) / 8.9)); /* 8 icons, leaving room for the magnified ones */
    justify-self: start;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
    height: calc(var(--u) * 0.78 + 24px);
    padding: 0 14px 12px;
  }
  .apps__dock li { flex: none; display: block; width: var(--u); transition: width 0.35s var(--ease); }
  .apps__dock img { display: block; width: 100%; max-width: none; transition: translate 0.35s var(--ease); }
  .apps__dock li:hover { width: calc(var(--u) * 1.5); }
  .apps__dock li:hover img { translate: 0 -6px; }
  .apps__dock li:hover + li, .apps__dock li:has(+ li:hover) { width: calc(var(--u) * 1.2); }
  /* The hovered app's name takes the place of the "Featured apps" label, so nothing covers anything */
  .apps { gap: 30px; } /* room for magnified icons to rise without touching the label */
  .apps__label { transition: opacity 0.25s; }
  .apps:has(.apps__dock li:hover) .apps__label { opacity: 0; }
  .apps__dock li { position: static; }
  .apps__dock span {
    position: absolute;
    bottom: calc(100% + 30px);
    left: 0;
    max-width: none;
    overflow: visible;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0;
    translate: 0 4px;
    pointer-events: none;
    transition: opacity 0.25s, translate 0.35s var(--ease);
  }
  .apps__dock li:hover span { opacity: 1; translate: 0 0; }
}

.project__shot {
  position: relative;
  width: 86%;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -25px rgba(31, 59, 255, 0.6), 0 20px 60px -30px rgba(204, 0, 255, 0.6);
  transition: transform 0.7s var(--ease);
}
.project:hover .project__shot { transform: scale(1.02); }
.project--featured .project__body .disclaimer { justify-content: flex-start; text-align: left; margin: 0; font-size: 12.5px; color: var(--dim); }
.project--featured .project__art .project__shot { width: 86%; max-width: 86%; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 40px); min-height: 100%; }
.pillar__num { font-size: 13px; letter-spacing: 0.2em; color: var(--dim); }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pillar p { color: var(--muted); }
.pillar__links { display: grid; gap: 10px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.pillar__links a { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--muted); transition: color 0.3s; }
.pillar__links a:hover { color: var(--text); }
.pillar__links .i { font-size: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: clamp(32px, 4vw, 52px) clamp(16px, 2vw, 28px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 12px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.player { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt__facade { position: absolute; inset: 0; display: block; color: #fff; }
.yt__facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.yt__facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75)); }
.yt__facade:hover img { transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 28px;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.yt__play .i { translate: 2px 0; }
.yt__facade:hover .yt__play { transform: scale(1.08); background: rgba(255, 255, 255, 0.24); }
.yt__caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 30px); text-align: left; }
.yt__caption small { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.yt__caption b { display: block; margin-top: 6px; font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.2; }
.yt.is-playing .yt__facade { display: none; }

.vlist { display: grid; gap: 12px; }
.vitem {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition: background 0.3s, border-color 0.3s;
}
.vitem:hover { background: var(--surface-2); border-color: var(--line-2); }
.vitem.is-current { border-color: rgba(0, 229, 255, 0.45); background: rgba(0, 229, 255, 0.05); }
.vitem__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.vitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vitem__thumb em { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.75); font-style: normal; font-size: 11.5px; font-weight: 500; }
.vitem b { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
.vitem span { display: block; margin-top: 4px; font-size: 13px; color: var(--dim); }

/* ---------- Big CTA band (radial brand wallpaper look) ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(72px, 11vw, 140px) clamp(20px, 5vw, 64px);
  text-align: center;
  color: #fff;
}
.cta-band::before {
  content: "";
  --r: clamp(200px, 26vw, 320px);
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%,
    #0716ff 0, #0b2cff calc(var(--r) * 0.85), #00e5ff calc(var(--r) * 1.1),
    #8f45ff calc(var(--r) * 1.4), #cc00ff calc(var(--r) * 1.7), #6a00ff calc(var(--r) * 2.4));
  animation: breathe 12s ease-in-out infinite;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/icon-silhouette-white.png") center / auto min(420px, 80%) no-repeat;
  opacity: 0.07;
}
.cta-band .h2 em { background: linear-gradient(90deg, #fff, #bff6ff); -webkit-background-clip: text; background-clip: text; }
.cta-band p { max-width: 560px; margin: 22px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, 0.86); }
.cta-band .btn-row { justify-content: center; margin-top: 38px; }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(72px, 10vw, 140px)) 0 clamp(64px, 8vw, 110px);
}
.page-hero .aurora span { opacity: 0.38; }
/* Fade the glow out before the header ends, so it melts into the page instead of stopping at a hard edge */
.page-hero .aurora { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); }
.page-hero--404 { min-height: 100svh; display: grid; align-items: center; }
.page-hero .aurora span:nth-child(1) { top: -20%; }
.page-hero .aurora span:nth-child(2) { top: -10%; }
.page-hero__inner { display: grid; gap: 28px; max-width: 920px; }
.page-hero .lead { max-width: 680px; }

/* ---------- About ---------- */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 6;
  margin: 0 0 16px;
}
.banner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2s var(--ease); }
.banner.in img { transform: scale(1); }
.banner__caption {
  position: absolute;
  left: clamp(18px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(5, 5, 11, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.banner__actions { position: absolute; right: clamp(18px, 3vw, 32px); bottom: clamp(18px, 3vw, 32px); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.banner__dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5, 5, 11, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.3s, color 0.3s;
}
.banner__dl:hover { background: #fff; color: #07070d; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.story__quote { position: sticky; top: calc(var(--nav-h) + 40px); font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 400; line-height: 1.18; letter-spacing: -0.02em; }
.story__quote em { font-family: var(--serif); font-style: italic; background: var(--grad-script); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story__body { display: grid; gap: 22px; font-size: 18px; color: var(--muted); }
.story__body p:first-child::first-letter { font-family: var(--serif); font-style: italic; float: left; font-size: 4.2em; line-height: 0.9; padding: 0.04em 0.12em 0 0; color: var(--text); }
.story__body strong { color: var(--text); font-weight: 500; }

/* Vertical timeline: entries alternate either side of a glowing centre line */
.timeline { --off: clamp(28px, 4vw, 56px); position: relative; display: grid; gap: clamp(22px, 3vw, 36px); max-width: 1080px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; translate: -50% 0; background: linear-gradient(180deg, transparent, var(--blue) 5%, var(--cyan) 45%, var(--magenta) 92%, transparent); }
.tl { position: relative; width: calc(50% - var(--off)); }
.tl:nth-child(odd) { justify-self: start; }
.tl:nth-child(even) { justify-self: end; }
.tl::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.1), 0 0 18px rgba(0, 229, 255, 0.6);
}
.tl::after { content: ""; position: absolute; top: 37px; width: calc(var(--off) - 8px); height: 1px; background: var(--line-2); }
.tl:nth-child(odd)::before { right: calc(-1 * var(--off) - 7.5px); }
.tl:nth-child(odd)::after { right: calc(-1 * var(--off) + 8px); }
.tl:nth-child(even)::before { left: calc(-1 * var(--off) - 7.5px); }
.tl:nth-child(even)::after { left: calc(-1 * var(--off) + 8px); }
.tl--start::before { border-color: var(--blue); box-shadow: 0 0 0 6px rgba(31, 59, 255, 0.14), 0 0 18px rgba(31, 59, 255, 0.7); }
.tl--html::before { border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1), 0 0 22px rgba(160, 200, 255, 0.9); }
.tl--genesis::before { border-color: #a100ff; box-shadow: 0 0 0 6px rgba(161, 0, 255, 0.14), 0 0 22px rgba(29, 77, 255, 0.85); }
.tl--next::before { border-color: var(--magenta); box-shadow: 0 0 0 6px rgba(204, 0, 255, 0.1), 0 0 18px rgba(204, 0, 255, 0.6); }
.tl__card {
  display: grid;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.tl__card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tl__card--media { grid-template-columns: 148px minmax(0, 1fr); align-items: start; }
.tl__media { display: block; margin: 16px 0 16px 16px; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #0b0b16; }
.tl__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tl__media--logo { display: grid; place-items: center; padding: 12px; background: radial-gradient(90% 90% at 30% 20%, rgba(161, 0, 255, 0.28), transparent 70%), #0b0b16; }
.tl__media--logo img { height: auto; object-fit: contain; }
.tl__card:hover .tl__media img { transform: scale(1.05); }
.tl__body { padding: 20px 22px 22px; }
.tl__year { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.tl--next .tl__year { color: var(--magenta); }
.tl__year em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0.04em; text-transform: none; font-size: 1.25em; }
.tl h3 { margin-top: 8px; }
.tl h3 a { transition: color 0.3s; }
.tl h3 a:hover { color: var(--cyan); }
.tl p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl__tags li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.js .tl[data-reveal]:nth-child(odd) { transform: translateX(-28px); }
.js .tl[data-reveal]:nth-child(even) { transform: translateX(28px); }
.js .tl[data-reveal].in { transform: none; }


.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value { padding: 30px 28px 32px; display: grid; gap: 16px; align-content: start; }
.value p { color: var(--muted); font-size: 16px; }

.family { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fam { display: grid; gap: 14px; padding: 32px; align-content: start; }
.fam__logo { height: 64px; display: flex; align-items: center; }
.fam__logo img { max-height: 100%; width: auto; }
.fam p { color: var(--muted); font-size: 16px; }
.fam .link-arrow { margin-top: 6px; }


.spelling { padding-top: 8px; }
.spelling__box { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 20px 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.spelling__title { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.spelling__note { margin-top: 6px; font-size: 13.5px; color: var(--dim); }
.spelling__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.spelling__list dt { font-size: 15px; font-weight: 500; }
.spelling__list dd { margin: 2px 0 0; font-size: 13px; color: var(--dim); }

.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.kit__item { overflow: hidden; display: flex; flex-direction: column; }
.kit__preview { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 28px; border-bottom: 1px solid var(--line); }
.kit__preview img { max-height: 100%; width: auto; object-fit: contain; }
.kit__preview--light { background: #f5f5f8; }
.kit__preview--black { background: #000; }
.kit__preview--white { background: #fff; }
.kit__preview--photo { padding: 0; }
.kit__preview--photo img { width: 100%; height: 100%; object-fit: cover; }
.kit__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; }
.kit__meta b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.kit__meta span { display: block; font-size: 13px; color: var(--dim); }
.kit__dl { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font-size: 17px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.kit__dl:hover { background: #fff; color: #07070d; border-color: #fff; }

/* ---------- Projects ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  color: var(--muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip sup { font-size: 11px; opacity: 0.6; top: 0; }
.chip[aria-current="true"] { background: #fff; border-color: #fff; color: #07070d; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.5s var(--ease), opacity 0.4s, border-color 0.3s; }
.project:hover { transform: translateY(-4px); border-color: var(--line-2); }
.project__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--art, var(--bg-3));
  border-bottom: 1px solid var(--line);
}
.project__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
}
.project__art > * { position: relative; }
.project__art .glyph { font-size: 64px; color: #fff; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35)); transition: transform 0.7s var(--ease); }
.project__art img { max-width: 62%; max-height: 52%; width: auto; transition: transform 0.7s var(--ease); }
.project__art img.icon-art { max-height: 62%; }
.project:hover .project__art .glyph, .project:hover .project__art img { transform: scale(1.06); }
.project__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 5, 11, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.project__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 26px 26px 24px; }
.project__body p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.project__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.project__url { font-size: 13.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project__go { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font-size: 17px; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.project:hover .project__go { background: #fff; color: #07070d; border-color: #fff; transform: rotate(0deg) scale(1.05); }
.project__extra { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.project__extra a { color: var(--muted); border-bottom: 1px solid var(--line-2); transition: color 0.3s, border-color 0.3s; }
.project__extra a:hover { color: var(--text); border-color: var(--cyan); }
.project__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project__extra, .project__extra a { position: relative; z-index: 2; }

.project--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.project--featured .project__art { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--line); }
.project--featured .project__art img { max-width: 74%; max-height: none; }
.project--featured .project__body { padding: clamp(28px, 4vw, 52px); gap: 18px; justify-content: center; }
.project--featured .project__body p { font-size: 17px; }
.project--featured .tags { display: flex; flex-wrap: wrap; gap: 8px; }

.project__art--cover img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.art-benos { --art: radial-gradient(circle at 50% 120%, rgba(204, 0, 255, 0.55), transparent 60%), radial-gradient(circle at 20% 0%, rgba(31, 59, 255, 0.5), transparent 55%), #0a0718; }
.art-portal { --art: radial-gradient(circle at 50% 50%, #0618ff 0%, #0a2cff 20%, #00e5ff 32%, #9a3cff 44%, #cc00ff 54%, #5a00ff 85%); }
.art-blue { --art: radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.6), transparent 55%), linear-gradient(135deg, #1f3bff, #0b1180); }
.art-gold { --art: radial-gradient(circle at 70% 20%, rgba(240, 207, 134, 0.55), transparent 55%), linear-gradient(135deg, #1a1440, #0b0b22); }
.art-cyan { --art: radial-gradient(circle at 70% 80%, rgba(204, 0, 255, 0.55), transparent 55%), linear-gradient(135deg, #00b8e6, #1f3bff); }
.art-violet { --art: radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.4), transparent 50%), linear-gradient(135deg, #6a1dff, #2a0a7a); }
.art-magenta { --art: radial-gradient(circle at 80% 20%, rgba(255, 140, 255, 0.45), transparent 55%), linear-gradient(135deg, #cc00ff, #5a00d6); }
.art-ink { --art: radial-gradient(circle at 50% 0%, rgba(58, 176, 245, 0.45), transparent 60%), linear-gradient(180deg, #12122a, #08080f); }
.art-vibe { --art: linear-gradient(135deg, #ffd6ea, #fdf3e4 50%, #d9ecff); } /* VibeReceipt's pastels */
.empty-note { display: none; padding: 40px; text-align: center; color: var(--muted); }

/* ---------- BenOS product pages ---------- */
.product-hero { text-align: center; padding-bottom: clamp(24px, 4vw, 48px); }
.product-hero__inner { display: grid; justify-items: center; gap: 26px; max-width: 1000px; } /* room for four buttons in a row */
.product-hero__logo { margin: 0; }
.product-hero__logo img { width: min(560px, 86vw); }
/* "BenOS HTML is now BenOS Genesis": a quiet card just above the last call to action */
.rename { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); margin-bottom: 20px; padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 48px); }
.rename__logos { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.rename__old { width: clamp(96px, 11vw, 150px); height: auto; opacity: 0.45; filter: saturate(0.6); }
.rename__new { width: clamp(140px, 16vw, 210px); height: auto; }
.rename__arrow { font-size: 22px; color: var(--dim); }
.rename__text { display: grid; gap: 6px; }
.rename__title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; }
.rename__text p { color: var(--muted); text-wrap: pretty; }
@media (max-width: 760px) {
  .rename { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
.product-hero .lead { max-width: 660px; }
.product-hero .btn-row { justify-content: center; }
.product-hero__shot { margin-top: clamp(48px, 7vw, 84px); max-width: 1040px; margin-inline: auto; }
.product-hero__shot .device { --ry: 0deg; --rx: 7deg; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.facts--left { justify-content: flex-start; }
.facts li { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 14px; color: var(--muted); }
.facts b { font-size: 15.5px; font-weight: 600; color: var(--text); }
.facts a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); transition: color 0.3s; }
.facts a:hover { color: var(--cyan); }
.facts .i { font-size: 13px; }
.inline-link { color: var(--text); border-bottom: 1px solid rgba(0, 229, 255, 0.5); transition: color 0.3s, border-color 0.3s; }
.inline-link:hover { color: var(--cyan); border-color: var(--cyan); }
button.inline-link { padding: 0; border-width: 0 0 1px; border-radius: 0; background: none; font: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--text); }

/* Built-in apps */
.applist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.app { display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 22px; padding: 28px 26px 30px; }
.app h3 { font-size: 19px; font-weight: 500; line-height: 1.3; }
.app p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.app__icon { display: grid; place-items: center; width: 68px; aspect-ratio: 85 / 66; border-radius: 9px; transition: transform 0.5s var(--ease); }
.app__icon img { width: 100%; height: 100%; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); }
.app:hover .app__icon { transform: translateY(-4px) rotate(-4deg); }
.app__icon--glyph { color: #fff; font-size: 26px; background: var(--ico-bg, var(--grad-benos)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px -10px var(--ico-glow, rgba(204, 0, 255, 0.8)); }
/* The smaller apps share one card */
.app--more { grid-template-rows: auto; }
.app__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.app__more li { display: grid; justify-items: start; gap: 10px; font-size: 14.5px; color: var(--muted); }
.app__more img { width: 46px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }

/* BenOS HTML page: the full dock, centered above the app cards */
.apps--all { justify-items: center; margin-bottom: clamp(44px, 5vw, 64px); }
@media (hover: hover) and (min-width: 721px) {
  .apps--all .apps__dock { --u: min(60px, calc((100cqw - 162px) / 14.9)); justify-self: center; } /* 14 icons */
  .apps--all .apps__dock span { right: 0; text-align: center; }
}

/* Screenshot tour */
.gallery { display: grid; gap: 22px; max-width: 1040px; margin-inline: auto; }
.gallery__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip--icon { padding-left: 12px; }
.chip--icon img { width: 26px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.chip--icon .i { font-size: 17px; }
.chip[aria-selected="true"] { background: #fff; border-color: #fff; color: #07070d; }
.gallery__stage { position: relative; aspect-ratio: 1440 / 812; background: #0b0b16; }
.gallery__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: shot-in 0.6s var(--ease); }
.gallery__stage img[hidden] { display: none; }
@keyframes shot-in { from { opacity: 0; transform: scale(1.015); } }
.device--flat { --ry: 0deg; --rx: 0deg; }

/* Click-to-load embeds */
.embed { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.embed--scratch { aspect-ratio: 485 / 402; }
.embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(1.1); transform: scale(1.03); transition: transform 1.2s var(--ease); }
.embed:hover .embed__poster { transform: scale(1.06); }
.embed__start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(5, 5, 11, 0.05), rgba(5, 5, 11, 0.55)); }
.embed__play { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 6px; border-radius: 50%; background: #fff; color: #07070d; font-size: 28px; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12), 0 20px 60px -10px rgba(0, 229, 255, 0.7); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.embed__play .i { translate: 2px 0; }
.embed__start:hover .embed__play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.1), 0 20px 70px -10px rgba(204, 0, 255, 0.8); }
.embed__start b { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; }
.embed__start small { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.embed.is-live .embed__poster, .embed.is-live .embed__start { display: none; }

/* Demo Mode */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.demo__copy { display: grid; gap: 24px; }
.numlist { counter-reset: step; display: grid; gap: 14px; }
.numlist li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--muted); }
.numlist li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--text); }
.numlist li > span { padding-top: 4px; }
.numlist b { font-weight: 500; color: var(--text); }
.demo__panel { display: grid; gap: 26px; padding: clamp(26px, 3vw, 36px); }
.demo__panel h3 { margin-bottom: 16px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.allowed { display: flex; flex-wrap: wrap; gap: 14px; }
.allowed li { display: grid; justify-items: center; gap: 8px; width: 78px; font-size: 12.5px; color: var(--muted); }
.allowed img { width: 64px; }
.locked { display: grid; gap: 12px; }
.locked li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--muted); }
.locked .i { flex: none; margin-top: 4px; font-size: 16px; color: var(--magenta); }

/* Get started */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path { display: grid; gap: 22px; align-content: start; padding: clamp(28px, 3vw, 40px); }
.path__top { display: flex; align-items: center; gap: 14px; }
.path__note { padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 500; cursor: pointer; list-style: none; transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { max-width: 70ch; padding-bottom: 24px; color: var(--muted); }

/* BenOS on Scratch */
.scratch-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.scratch-hero__copy { display: grid; gap: 26px; }
.scratch-hero .h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.scratch-hero__player { display: grid; gap: 14px; }
.scratch-frame { overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px rgba(31, 59, 255, 0.65), 0 40px 100px -50px rgba(204, 0, 255, 0.7); }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tip { display: grid; gap: 12px; align-content: start; padding: 30px 28px 32px; }
.tip__num { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; background: var(--grad-script); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tip p { font-size: 16px; color: var(--muted); }
.matrix-logo { width: min(240px, 60vw); border-radius: 14px; border: 1px solid var(--line-2); }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 15.5px; transition: border-color 0.3s, background 0.3s; }
.checklist li:hover { border-color: var(--line-2); background: var(--surface-2); }
.checklist .i { flex: none; font-size: 18px; color: var(--cyan); }
.versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.version { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px; transition: transform 0.5s var(--ease), border-color 0.3s; }
.version:hover { transform: translateY(-3px); border-color: var(--line-2); }
.version__thumb { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; background: #0b0b16; }
.version__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.version:hover .version__thumb img { transform: scale(1.05); }
.version__body { padding-top: 4px; }
.version__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.version h3 { font-size: 18px; font-weight: 500; }
.version time { font-size: 13px; color: var(--dim); }
.version__latest { padding: 2px 10px; border-radius: 999px; background: var(--grad-benos); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.version ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.version ul li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 12.5px; color: var(--muted); }
.player--narrow { max-width: 900px; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(64px, 8vw, 100px); overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad); opacity: 0.7; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand p { color: var(--muted); font-size: 15.5px; max-width: 30ch; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; color: var(--muted); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.socials a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.footer__col h4 { font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: 15.5px; color: var(--muted); transition: color 0.3s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 72px); padding: 24px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.footer__giant {
  margin-top: 10px;
  margin-bottom: -0.24em;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(5rem, 21vw, 19rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ---------- Projects page ---------- */
.page-hero--projects { padding-bottom: clamp(56px, 7vw, 96px); }
.jumpbar { position: sticky; top: var(--nav-h); z-index: 20; padding: 12px 0; border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.4s; }
.jumpbar.is-stuck { background: rgba(5, 5, 11, 0.78); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.jumpbar__inner { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.jumpbar__inner::-webkit-scrollbar { display: none; }
.jumpbar .chip { flex: none; height: 38px; padding: 0 16px; font-size: 14.5px; }

.pgroup { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--nav-h) + 52px); }
.pgroup:last-of-type { padding-bottom: clamp(72px, 9vw, 120px); }
.pgroup__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 6px 22px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pgroup__num { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 0.95; padding: 0 0.08em 0.06em 0; background: var(--grad-script); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pgroup__title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.pgroup__head p { margin-top: 6px; color: var(--muted); }
.pgroup__count { padding-bottom: 5px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }

.projects--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.projects--3 { margin-top: 20px; }
/* Two to a row (tablets): the third card takes the whole row, picture beside the words */
@media (min-width: 721px) and (max-width: 1080px) {
  .projects--3 > .project:last-child:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .projects--3 > .project:last-child:nth-child(3) .project__art { aspect-ratio: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--line); }
}
.project__logo { margin: 0; }
.project__logo img { width: min(300px, 80%); }

/* App Store art: three app icons fanned out like cards */
.appstore-art__icons { display: flex; align-items: center; }
.appstore-art__icons img { width: clamp(70px, 9vw, 108px); max-width: none; max-height: none; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45)); }
.appstore-art__icons img:nth-child(1) { transform: translateX(16%) rotate(-10deg) scale(0.86); }
.appstore-art__icons img:nth-child(2) { position: relative; z-index: 1; }
.appstore-art__icons img:nth-child(3) { transform: translateX(-16%) rotate(10deg) scale(0.86); }
.project:hover .appstore-art__icons img:nth-child(1) { transform: translateX(4%) rotate(-14deg) scale(0.9); }
.project:hover .appstore-art__icons img:nth-child(2) { transform: translateY(-6px) scale(1.06); }
.project:hover .appstore-art__icons img:nth-child(3) { transform: translateX(-4%) rotate(14deg) scale(0.9); }

/* Shared hover for the new card types */
.channel, .show, .link-card { position: relative; transition: transform 0.5s var(--ease), border-color 0.3s; }
.channel:hover, .show:hover, .link-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.channel:hover .project__go, .show:hover .project__go, .link-card:hover .project__go { background: #fff; color: #07070d; border-color: #fff; }

/* YouTube channel cards */
.channel { display: flex; flex-direction: column; overflow: hidden; }
.channel__art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; overflow: hidden; background: var(--art, var(--bg-3)); border-bottom: 1px solid var(--line); }
.channel__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
}
.channel__logo { position: relative; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35)); transition: transform 0.7s var(--ease); }
.channel__logo--icon { width: 27%; }
.channel__logo--word { width: 58%; }
.channel:hover .channel__logo { transform: scale(1.06); }
.channel__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px; }
.channel__id { display: grid; gap: 2px; }
.channel__handle { font-size: 14px; color: var(--dim); }
.channel__body p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.channel__stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.channel__stats b { margin-right: 4px; font-weight: 600; color: var(--text); }
.channel__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.channel__actions .btn { position: relative; z-index: 2; height: 38px; padding: 0 16px; font-size: 14px; }

/* Shows: typographic covers, like posters */
.show { display: flex; flex-direction: column; overflow: hidden; }
.show__cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; padding: 22px 24px 24px; overflow: hidden; border-bottom: 1px solid var(--line); }
.show__kicker { font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.show__title { line-height: 0.98; color: #fff; transform-origin: left bottom; transition: transform 0.7s var(--ease); }
.show:hover .show__title { transform: scale(1.04); }
.show__glyph { position: absolute; z-index: -1; right: -10%; bottom: -16%; font-size: clamp(170px, 18vw, 240px); stroke-width: 0.9; color: rgba(255, 255, 255, 0.12); transition: transform 1s var(--ease); }
.show:hover .show__glyph { transform: rotate(-8deg) scale(1.06); }
.show__cover--truth { background: radial-gradient(circle at 85% 110%, rgba(204, 0, 255, 0.7), transparent 55%), linear-gradient(160deg, #1d0740, #05030f); }
.show__cover--truth .show__title { font-size: clamp(3rem, 5.6vw, 4.4rem); font-weight: 600; letter-spacing: 0.16em; }
.show__cover--truth::after { content: ""; position: absolute; top: 24px; right: 24px; width: 10px; height: 10px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.2), 0 0 14px #ff2d55; animation: rec 1.8s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.show__cover--world { background: radial-gradient(circle at 78% 30%, rgba(0, 229, 255, 0.55), transparent 50%), linear-gradient(160deg, #0b2cff, #050b3a); }
.show__cover--world .show__title { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.2vw, 2.6rem); }
.show__cover--business { background: radial-gradient(circle at 15% 0%, rgba(240, 207, 134, 0.38), transparent 55%), linear-gradient(160deg, #1a140a, #07070d); }
.show__cover--business .show__title { font-size: clamp(2.4rem, 4.2vw, 3.3rem); font-weight: 600; letter-spacing: -0.03em; color: #f3e2b8; }
.show__cover--business .show__glyph { color: rgba(240, 207, 134, 0.14); }
.show__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px; }
.show__meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.show__body p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Writing & community: compact cards */
.link-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 24px; }
.link-card__body { display: grid; gap: 6px; min-width: 0; }
.link-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.link-card .project__url { margin-top: 6px; }

.idea { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 20px; padding: 26px 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.idea__copy p { margin-top: 6px; max-width: 62ch; color: var(--muted); }
.idea .btn-row { flex-wrap: nowrap; }

/* ---------- Support page ---------- */
.page-hero--support { padding-bottom: clamp(56px, 7vw, 96px); }
.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  height: 60px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.help-search:focus-within { border-color: rgba(0, 229, 255, 0.6); box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12); }
.help-search .i { font-size: 20px; color: var(--muted); }
.help-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16.5px; color: var(--text); outline: none; }
.help-search input::placeholder { color: var(--dim); }
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.help-search__count { font-size: 13px; color: var(--dim); white-space: nowrap; }

.help-topics-wrap { padding-block: 0; }
.help-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; transition: transform 0.5s var(--ease), border-color 0.3s; }
.topic:hover { transform: translateY(-3px); border-color: var(--line-2); }
.topic .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
/* App-specific topics show the real app icon instead of a glyph tile */
.topic__app { grid-row: span 2; display: grid; place-items: center; width: 50px; }
.topic__app img { width: 100%; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }
.help-group__head .topic__app { width: 60px; }
.topic__name { font-weight: 500; }
.topic__count { font-size: 13px; color: var(--dim); }
/* BenID spans the row, so the grid stays even */
.topic--benid { grid-column: 1 / -1; border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(115deg, rgba(47, 107, 255, 0.55), rgba(106, 77, 255, 0.4) 52%, rgba(19, 184, 198, 0.55)) border-box; }
.topic__app .benid-glyph { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }

.help { padding-top: clamp(56px, 7vw, 96px); }
.help-group { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.help-group:first-of-type { padding-top: 0; border-top: 0; }
.help-group__head { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; display: grid; gap: 14px; justify-items: start; }
.help-group__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.help-group__head p { color: var(--muted); }
.faq--help { max-width: none; margin: 0; }
.faq--help summary { padding: 18px 0; font-size: 1.08rem; }
.faq--help details p { padding-bottom: 20px; }
.help-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 0; text-align: center; }
.help-empty p { color: var(--muted); }

/* Contact: email composer */
.contact { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 60px); }
#contact { scroll-margin-top: var(--nav-h); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 0% 0%, rgba(31, 59, 255, 0.32), transparent 50%), radial-gradient(circle at 100% 100%, rgba(204, 0, 255, 0.22), transparent 50%); }
.contact__copy { display: grid; gap: 22px; align-content: start; justify-items: start; }
.contact__address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact__email { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 2px; border-bottom: 1px solid var(--line-2); font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; overflow-wrap: anywhere; transition: color 0.3s, border-color 0.3s; }
.contact__email:hover { color: var(--cyan); border-color: var(--cyan); }
.contact__form { display: grid; gap: 16px; align-content: start; }
.contact__form label { display: grid; gap: 8px; }
.contact__form label > span { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.contact__form label i { font-style: normal; letter-spacing: 0.04em; text-transform: none; }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background-color: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { border-color: rgba(0, 229, 255, 0.6); box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12); }
.contact__form [aria-invalid="true"] { border-color: #ff6b8b; }
.contact__form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a7be' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.contact__form select option { background: #0e0e1c; color: var(--text); }
.contact__form textarea { min-height: 140px; resize: vertical; }
.contact__form .btn { justify-self: start; }
.contact__error { font-size: 14px; color: #ff6b8b; }
.contact__note { font-size: 13.5px; color: var(--dim); }

/* ---------- Team page ---------- */
.page-hero--team { padding-bottom: clamp(56px, 7vw, 96px); }
.team-section { padding-top: 0; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.member { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.3s; }
.member:hover { transform: translateY(-6px); border-color: var(--line-2); }
.member__photo { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 6 / 5; overflow: hidden; border-bottom: 1px solid var(--line); }
.member__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  pointer-events: none;
}
.member__mono {
  position: relative;
  z-index: 2;
  margin-right: -0.08em;
  font-size: clamp(4rem, 7.5vw, 6.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: letter-spacing 0.7s var(--ease), margin 0.7s var(--ease);
}
.member:hover .member__mono { margin-right: -0.16em; letter-spacing: 0.16em; }

/* Benjamin: the brand portal with orbiting rings */
.member__photo--ben { background: radial-gradient(circle at 50% 50%, #0618ff 0%, #0a2cff 22%, #00e5ff 34%, #9a3cff 46%, #cc00ff 56%, #3a0080 80%, #12002e 100%); }
.member__ring { position: absolute; left: 50%; top: 50%; z-index: 1; width: 74%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); animation: spin 26s linear infinite; }
.member__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #00e5ff, 0 0 4px #fff; }
.member__ring--2 { width: 96%; border-style: dashed; border-color: rgba(255, 255, 255, 0.2); animation-duration: 44s; animation-direction: reverse; }
.member__ring--2::after { background: #f0cf86; box-shadow: 0 0 12px #cc00ff; }
.member__mark { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)); }

/* Elias: colour blobs that slowly morph, like paint mixing */
.member__photo--elias { background: #12081f; }
.member__blob { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: #cc00ff; filter: blur(16px); opacity: 0.85; mix-blend-mode: screen; animation: morph 14s ease-in-out infinite alternate; }
.member__blob { left: 6%; top: 4%; }
.member__blob--2 { left: auto; right: 2%; top: 28%; background: #f0a830; animation-duration: 17s; animation-delay: -5s; }
.member__blob--3 { left: 26%; top: auto; bottom: -12%; background: #00c8ff; animation-duration: 20s; animation-delay: -9s; }
@keyframes morph {
  0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0deg); }
  100% { border-radius: 63% 37% 39% 61% / 55% 62% 38% 45%; transform: translate(6%, -6%) rotate(50deg); }
}

/* tellurium1276: no photo, just the element their name comes from */
.member__photo--te { background: radial-gradient(circle at 50% 45%, rgba(0, 229, 255, 0.18), transparent 60%), linear-gradient(180deg, #0c0c1a, #06060d); }
.member__photo--te::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.12) 50%, transparent 100%) 0 -100% / 100% 40% no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  animation: scan 5s linear infinite;
  pointer-events: none;
}
@keyframes scan { to { background-position: 0 250%, 0 0; } }
.element {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template: "num mass" auto "sym sym" 1fr "name name" auto / 1fr 1fr;
  width: 42%;
  aspect-ratio: 1;
  padding: 10px 12px;
  border: 1.5px solid rgba(0, 229, 255, 0.7);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.05), 0 0 40px -6px rgba(0, 229, 255, 0.6), inset 0 0 30px rgba(0, 229, 255, 0.08);
  color: #dff9ff;
  transition: transform 0.7s var(--ease);
}
.member:hover .element { transform: rotate(-4deg) scale(1.05); }
.element__num { grid-area: num; font-size: 14px; font-weight: 500; }
.element__mass { grid-area: mass; justify-self: end; font-size: 12px; opacity: 0.7; }
.element__sym { grid-area: sym; place-self: center; font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 600; line-height: 1; }
.element__name { grid-area: name; justify-self: center; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.member__private { position: absolute; top: 14px; left: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(5, 5, 11, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }

.member__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 24px 26px 26px; }
.member__role { font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.member__name { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.member__handle { margin-top: -4px; font-size: 14px; color: var(--dim); }
.member__sub { font-family: var(--serif); font-size: 1.08rem; font-style: italic; color: rgba(244, 244, 250, 0.85); }
.member__bio { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.member__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.member__tags li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.member__links { display: flex; gap: 8px; padding-top: 14px; }
.member__links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 17px; color: var(--muted); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.member__links a:hover { background: #fff; border-color: #fff; color: #07070d; }

.thanks { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 20px; padding: 24px 26px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.thanks p { margin-top: 6px; max-width: 80ch; color: var(--muted); }

/* ---------- BenAI: zero water ---------- */
.water {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 6vw, 80px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(125, 249, 255, 0.18);
  background:
    radial-gradient(circle at 78% 45%, rgba(0, 229, 255, 0.24), transparent 52%),
    radial-gradient(circle at 8% 110%, rgba(31, 59, 255, 0.5), transparent 55%),
    linear-gradient(160deg, #04122c, #050716 60%, #0b0522);
}
/* Soft light bands drifting across, like light seen through glass */
.water::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0, rgba(125, 249, 255, 0.045) 60px, transparent 120px);
  animation: drift-bands 18s linear infinite;
}
@keyframes drift-bands { to { transform: translateX(130px); } }
.water__copy { display: grid; gap: 22px; }
.water__copy .lead { color: rgba(244, 244, 250, 0.82); }
.water__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.water__stats li { display: grid; align-content: start; gap: 8px; padding: 18px; border-radius: 16px; border: 1px solid rgba(125, 249, 255, 0.14); background: rgba(255, 255, 255, 0.04); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.water__stats b { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: #7df9ff; }
.water__stats li:last-child b { padding-top: 0.25em; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.25; }
.water__stats span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.water__art { position: relative; display: grid; place-items: center; justify-self: center; width: 100%; max-width: 440px; aspect-ratio: 1; }
.water__ring { position: absolute; left: 50%; top: 58%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(125, 249, 255, 0.4); box-shadow: 0 0 24px rgba(0, 229, 255, 0.15), inset 0 0 24px rgba(0, 229, 255, 0.1); opacity: 0; animation: water-ring 6s ease-out infinite; }
.water__ring:nth-child(2) { animation-delay: 2s; }
.water__ring:nth-child(3) { animation-delay: 4s; }
@keyframes water-ring { 0% { opacity: 0; scale: 0.5; } 15% { opacity: 0.9; } 100% { opacity: 0; scale: 1.55; } }
.water__spark { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #bffcff; box-shadow: 0 0 10px #00e5ff, 0 0 2px #fff; opacity: 0; animation: twinkle 4s ease-in-out var(--t) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; scale: 0.4; } 50% { opacity: 1; scale: 1; } }
.water__float { position: absolute; inset: 0; display: grid; place-items: center; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.water__drop { width: 52%; overflow: visible; filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.35)); }
.water__zero {
  position: absolute;
  left: 50%;
  top: 59%;
  translate: -50% -50%;
  padding: 0 0.04em 0.06em;
  font-size: clamp(4rem, 8vw, 6.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 25%, #7df9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.water__unit { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; font-size: 12.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; color: rgba(125, 249, 255, 0.85); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .help-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .applist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spelling__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .water { grid-template-columns: minmax(0, 1fr); }
  .water__art { max-width: 340px; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .member { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
  .member__photo { aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
  .help-group { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .help-group__head { position: static; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .help-group__head p { grid-column: 1 / -1; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .projects--2 { grid-template-columns: minmax(0, 1fr); }
  .idea { grid-template-columns: auto minmax(0, 1fr); }
  .idea .btn-row { grid-column: 1 / -1; flex-wrap: wrap; }
  .demo, .scratch-hero__grid, .paths, .versions { grid-template-columns: minmax(0, 1fr); }
  .tips { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .device { --ry: 0deg; --rx: 0deg; }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .pillars, .family { grid-template-columns: minmax(0, 1fr); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__quote { position: static; }
  .project--featured { grid-template-columns: minmax(0, 1fr); }
  .project--featured .project__art { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .water__stats { grid-template-columns: minmax(0, 1fr); }
  .water__stats li { grid-template-columns: 92px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 14px 16px; }
  .water__stats li:last-child b { padding-top: 0; font-size: 1.05rem; }
  .member { display: flex; }
  .member__photo { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .element { width: 34%; }
  .thanks { grid-template-columns: minmax(0, 1fr); }
  .pgroup__head { grid-template-columns: auto minmax(0, 1fr); }
  .pgroup__count { display: none; }
  .idea { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .link-card { grid-template-columns: auto minmax(0, 1fr); }
  .link-card .project__go { display: none; }
  .applist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  /* A row of tabs you can swipe through, instead of four lines of chips */
  .gallery__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); }
  .gallery__tabs::-webkit-scrollbar { display: none; }
  .gallery__tabs .chip { flex: none; }
  .version { grid-template-columns: 112px minmax(0, 1fr); }
  .app { padding: 22px; }
  .spelling__box { grid-template-columns: minmax(0, 1fr); }
  .spelling__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner__caption { display: none; }
  .banner__actions { left: 16px; right: 16px; justify-content: flex-start; }
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; }
  .timeline { --off: 0px; padding-left: 36px; }
  .timeline::before { left: 7px; translate: none; }
  .tl, .tl:nth-child(even) { width: 100%; justify-self: stretch; }
  .tl:nth-child(n)::before { left: -36px; right: auto; }
  .tl:nth-child(n)::after { left: -21px; right: auto; width: 21px; }
  .js .tl[data-reveal]:nth-child(n) { transform: translateY(24px); }
  .js .tl[data-reveal].in { transform: none; }
  .tl__card--media { grid-template-columns: minmax(0, 1fr); }
  .tl__media { margin: 14px 14px 0; aspect-ratio: 16 / 9; }
    .projects { grid-template-columns: minmax(0, 1fr); }
    .vitem { grid-template-columns: 120px 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { aspect-ratio: 4 / 3; }
  .btn-row .btn { flex: 1 1 auto; }
  .yt__play { width: 64px; height: 64px; font-size: 22px; }
}
@media (max-width: 480px) {
  .help-topics { gap: 10px; }
  .topic { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 16px; }
  .topic .ico, .topic .topic__app { grid-row: auto; margin-bottom: 8px; }
  .help-search { height: 54px; padding: 0 16px; }
  .help-search__count { display: none; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .hero__mark { --ring-r: 1.42; }
    }

/* Short screens (phones in landscape): keep the whole menu on screen */
@media (max-width: 1080px) and (max-height: 640px) {
  .nav__links a:not(.btn) { padding: 4px 24px; font-size: 22px; }
  .nav__links .btn { margin-top: 10px; }
}


/* Phones: one app per row, icon beside the text */
@media (max-width: 560px) {
  .applist { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; gap: 18px; padding: 22px; }
  .app__icon { width: 58px; }
  .app--more { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app__more { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .app__more li { justify-items: center; font-size: 13px; text-align: center; }
}

/* ==========================================================================
   BenID: the header button, the sign-in panel and "Your BenID" (assets/js/benid.js)
   ========================================================================== */
.benid-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The wordmark: "Ben" in Orbitron, then "ID" on a gradient tab with its bottom-right corner cut off */
.benid-wm { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; }
.benid-wm b { font: 700 1em/1 "Orbitron", var(--font); letter-spacing: 0.05em; }
.benid-wm i {
  display: inline-block;
  margin-left: 0.14em;
  padding: 0.16em 0.34em 0.14em 0.3em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(115deg, #2f6bff, #6a4dff 52%, #13b8c6);
  border-radius: 0.16em;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 64%, calc(100% - 0.42em) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 64%, calc(100% - 0.42em) 100%, 0 100%);
}

/* Header: "Sign in with BenID", or the signed-in person's picture and name */
.benid-slot { display: flex; align-items: center; z-index: 2; }
html:not(.js) .benid-slot { display: none; }
@media (min-width: 1081px) { .nav__links { margin-left: auto; } }
@media (min-width: 1081px) and (max-width: 1160px) { .benid-btn__lead { display: none; } } /* just the wordmark until there's room */
.benid-btn, .benid-user__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.3s, background 0.3s;
}
.benid-btn { padding: 0 16px; }
.benid-btn .benid-wm { font-size: 13px; }
.benid-glyph { display: none; width: 30px; height: auto; filter: drop-shadow(0 2px 4px rgba(60, 70, 220, 0.3)); }
.benid-btn:hover, .benid-user__btn:hover, .benid-user__btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); }
.benid-in .benid-btn { visibility: hidden; } /* signed in: wait for the account button rather than flash this one */
.benid-user { position: relative; }
.benid-user__btn { padding: 0 12px 0 5px; }
.benid-user__name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.benid-user__btn > .i { font-size: 15px; color: var(--muted); transition: transform 0.3s var(--ease); }
.benid-user__btn[aria-expanded="true"] > .i { transform: rotate(180deg); }
.benid-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #2f6bff, #6a4dff 55%, #13b8c6);
}
.benid-av img { width: 100%; height: 100%; object-fit: cover; }
.benid-av.is-emoji { background: rgba(255, 255, 255, 0.12); font-size: 1.15em; }
.benid-av .i { width: 62%; height: 62%; }
.benid-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(13, 13, 26, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.85);
  animation: benid-drop 0.25s var(--ease);
}
@keyframes benid-drop { from { opacity: 0; transform: translateY(-6px); } }
.benid-menu__who { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); }
.benid-menu__who .benid-av { width: 42px; height: 42px; font-size: 18px; }
.benid-menu__who span { min-width: 0; }
.benid-menu__who b, .benid-menu__who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.benid-menu__who b { font-weight: 500; }
.benid-menu__who small { font-size: 13.5px; color: var(--muted); }
.benid-menu__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; font-size: 15px; color: var(--text); text-align: left; transition: background 0.2s; }
.benid-menu__item:hover { background: rgba(255, 255, 255, 0.07); }
.benid-menu__item .i { font-size: 18px; color: var(--muted); }
@media (max-width: 1080px) {
  .nav__inner { gap: 12px; }
  .benid-slot { order: 2; margin-left: auto; }
  .nav__toggle { order: 3; }
  .benid-btn__lead, .benid-user__name, .benid-user__btn > .i { display: none; }
  .benid-btn { height: 44px; padding: 0 14px; }
  .benid-user__btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .benid-user__btn .benid-av { width: 34px; height: 34px; }
}
/* Narrow phones: the BenID symbol in a round button, the same size as the signed-in picture */
@media (max-width: 440px) {
  .benid-btn { width: 44px; padding: 0; justify-content: center; }
  .benid-btn .benid-wm { display: none; }
  .benid-glyph { display: block; }
}

/* BenOS's ID card: deep blue and violet, a blue glow top left, a teal one bottom right, and a slow shine */
.benid-card {
  --w: 248px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--w);
  aspect-ratio: 1.586;
  padding: calc(var(--w) * 0.056);
  overflow: hidden;
  border-radius: calc(var(--w) * 0.075);
  color: #fff;
  text-align: left;
  background:
    radial-gradient(120% 90% at 0% 0%, #3a6dff 0%, transparent 55%),
    radial-gradient(90% 120% at 100% 100%, #16b7c9 0%, transparent 55%),
    linear-gradient(135deg, #17205a, #3b2a9a 60%, #1b3f8f);
  box-shadow: 0 18px 40px rgba(40, 40, 140, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: perspective(700px) rotateX(6deg) rotateY(-9deg) rotate(-2deg);
  animation: benid-float 6s ease-in-out infinite;
}
@keyframes benid-float { 50% { transform: perspective(700px) rotateX(3deg) rotateY(-4deg) rotate(-1deg) translateY(-4px); } }
.benid-card .bc-sheen {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0.04) 55%, transparent 70%);
  background-size: 250% 100%;
  animation: benid-sheen 5s ease-in-out infinite;
}
@keyframes benid-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.benid-card .bc-holo {
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -14%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.4;
  background: conic-gradient(from 0deg, #ff7ad9, #ffd36e, #7dffb1, #6ad7ff, #9d7bff, #ff7ad9);
  -webkit-mask: radial-gradient(closest-side, transparent 52%, #000 54%, #000 70%, transparent 72%);
  mask: radial-gradient(closest-side, transparent 52%, #000 54%, #000 70%, transparent 72%);
}
.benid-card .bc-top { display: flex; align-items: center; justify-content: space-between; font-size: calc(var(--w) * 0.074); }
.benid-card .benid-wm i { background: linear-gradient(115deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14)); }
.benid-card .bc-kind { font-size: calc(var(--w) * 0.036); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.benid-card .bc-mid { display: flex; align-items: center; gap: calc(var(--w) * 0.05); }
.benid-card .bc-photo { display: grid; place-items: center; flex: none; width: calc(var(--w) * 0.21); aspect-ratio: 0.82; overflow: hidden; border-radius: calc(var(--w) * 0.04); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.benid-card .bc-photo .benid-av { width: 100%; height: 100%; border-radius: 0; font-size: calc(var(--w) * 0.1); background: transparent; }
.benid-card .bc-lines { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.benid-card .bc-lines small { font-size: calc(var(--w) * 0.03); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.benid-card .bc-name { margin-bottom: calc(var(--w) * 0.016); overflow: hidden; font-size: calc(var(--w) * 0.062); font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.benid-card .bc-mail { overflow: hidden; font-size: calc(var(--w) * 0.045); line-height: 1.3; opacity: 0.85; text-overflow: ellipsis; white-space: nowrap; }
.benid-card .bc-lines u { display: block; width: 70%; height: 0.62em; margin: 0.3em 0 0.25em; border-radius: 0.3em; background: rgba(255, 255, 255, 0.22); }
.benid-card .bc-mail u { width: 88%; opacity: 0.7; }
.benid-card .bc-bot { display: flex; flex-direction: column; gap: 2px; }
.benid-card .bc-no { font: 700 calc(var(--w) * 0.05) ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; }
.benid-card .bc-mrz { overflow: hidden; font: 600 calc(var(--w) * 0.034) ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; white-space: nowrap; opacity: 0.45; }
/* the sign-in panel's simpler card: the mark, a round picture, the name and the email */
.benid-card.simple { --w: 210px; justify-content: flex-start; gap: calc(var(--w) * 0.07); }
.benid-card.simple .bc-holo, .benid-card.simple .bc-kind, .benid-card.simple .bc-bot, .benid-card.simple .bc-lines small { display: none; }
.benid-card.simple .bc-photo { width: calc(var(--w) * 0.2); aspect-ratio: 1; border-radius: 50%; }
.benid-card.simple .bc-name { font-size: calc(var(--w) * 0.07); }

/* The sign-in panel */
.benid-lock, .benid-lock body { overflow: hidden; }
.benid-dlg {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  color: var(--text);
  background: #0c0c18;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.benid-dlg[open] { animation: benid-pop 0.4s var(--ease); }
@keyframes benid-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.benid-dlg::backdrop { background: rgba(3, 3, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.benid-dlg__box {
  position: relative;
  padding: 30px 30px 24px;
  background: radial-gradient(90% 55% at 50% 0%, rgba(74, 77, 255, 0.24), transparent 70%), radial-gradient(60% 40% at 100% 100%, rgba(19, 184, 198, 0.1), transparent 70%);
}
.benid-dlg__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.benid-dlg__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.benid-dlg__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.benid-dlg__head .benid-card { margin: 2px 0 4px; }
.benid-dlg__title { margin-top: 18px; font-size: 25px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.benid-dlg__title:focus { outline: none; }
.benid-dlg__title .benid-wm { font-size: 0.86em; vertical-align: -0.04em; }
.benid-dlg__lead { max-width: 34ch; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.benid-dlg.is-busy .benid-form { opacity: 0.75; }
.benid-form { display: grid; gap: 12px; margin-top: 20px; }
.benid-field { display: grid; gap: 7px; }
.benid-field label { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.benid-input { position: relative; display: block; }
.benid-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.benid-field input::placeholder { color: var(--dim); }
.benid-field input:focus { border-color: rgba(0, 229, 255, 0.6); box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12); }
.benid-field input[aria-invalid="true"] { border-color: #ff6b8b; }
.benid-input:has(.benid-show) input { padding-right: 74px; }
#benid-rk { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
#benid-rk::placeholder { text-transform: none; }
.benid-show { position: absolute; top: 50%; right: 7px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); translate: 0 -50%; transition: background 0.2s, color 0.2s; }
.benid-show:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.benid-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 5px; margin-top: -4px; }
.benid-meter i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); transition: background 0.3s; }
.benid-meter span { min-width: 52px; font-size: 12.5px; text-align: right; color: var(--muted); }
.benid-meter[data-s="1"] i:nth-child(-n+1) { background: #ff453a; }
.benid-meter[data-s="2"] i:nth-child(-n+2) { background: #ff9f0a; }
.benid-meter[data-s="3"] i:nth-child(-n+3) { background: #2f8bff; }
.benid-meter[data-s="4"] i:nth-child(-n+4) { background: #30c25a; }
.benid-msg { min-height: 1.5em; font-size: 14.5px; line-height: 1.5; color: #ff8aa0; }
.benid-msg:empty { min-height: 0; }
.benid-msg.is-ok { color: var(--muted); }
.benid-form > .btn { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.benid-dlg__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 16px; }
.benid-dlg__foot:empty { display: none; }
.benid-link { padding: 4px 0; font-size: 14.5px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 4px; transition: color 0.2s, text-decoration-color 0.2s; }
.benid-link:hover { color: var(--text); text-decoration-color: var(--cyan); }
/* the recovery key, shown once */
.benid-key {
  padding: 20px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  font: 600 clamp(17px, 4.6vw, 21px)/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.benid-key__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.benid-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.benid-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #6a4dff; }
.benid-note { font-size: 14px; line-height: 1.5; color: var(--muted); }

.benid-toast {
  position: fixed;
  bottom: calc(var(--gutter) + 8px);
  left: 50%;
  z-index: 60;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(16, 16, 32, 0.96);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8);
  font-size: 14.5px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  translate: -50% 16px;
  transition: opacity 0.35s, translate 0.45s var(--ease);
}
.benid-toast.is-in { opacity: 1; translate: -50% 0; }

/* "Your BenID" */
.benid-page .page-hero { padding-bottom: clamp(8px, 2vw, 28px); }
.benid-page .page-hero__inner { justify-items: center; text-align: center; }
.benid-hero__logo { margin: 0; line-height: 0; }
.benid-hero__logo img { width: min(340px, 72vw); height: auto; }
.benid-hero__lead { max-width: 46ch; }
.benid-state { display: grid; justify-items: center; gap: 20px; text-align: center; }
.benid-state .benid-card { --w: min(300px, 78vw); margin-bottom: 18px; }
.benid-state__msg { padding: 10px 18px; border: 1px solid rgba(255, 138, 160, 0.35); border-radius: 999px; background: rgba(255, 107, 139, 0.08); font-size: 15px; color: #ffb3c1; }
.benid-dash { display: grid; gap: clamp(20px, 3vw, 28px); }
.benid-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 4.5vw, 52px); }
.benid-profile .benid-card { --w: min(330px, 72vw); }
.benid-profile__who { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.benid-profile__who h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.benid-profile__email { font-size: 17px; color: var(--muted); overflow-wrap: anywhere; }
.benid-profile__since { font-size: 14px; color: var(--dim); }
.benid-profile__note { display: flex; gap: 12px; margin: 14px 0 6px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); font-size: 15px; line-height: 1.55; color: var(--muted); }
.benid-profile__note .i { flex: none; margin-top: 3px; font-size: 18px; color: var(--cyan); }
.benid-panel { padding: clamp(24px, 3.5vw, 36px); }
.benid-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.benid-panel__head h2 { font-size: 22px; font-weight: 500; }
.benid-panel__head h2:focus { outline: none; }
.benid-panel__head span, .benid-panel > p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.benid-devices { display: grid; gap: 10px; }
.benid-dev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.025); }
.benid-dev__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); font-size: 21px; color: var(--sky); }
.benid-dev__text { display: grid; gap: 3px; min-width: 0; }
.benid-dev__text b { font-weight: 500; overflow-wrap: anywhere; }
.benid-dev__text > span { font-size: 14px; color: var(--muted); }
.benid-tag { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 229, 255, 0.12); font-size: 12px; font-weight: 500; color: var(--cyan); vertical-align: 2px; }
.benid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 28px); align-items: start; }
.benid-panel form { display: grid; gap: 14px; margin-top: 18px; }
.benid-panel form .btn { justify-self: start; }
.benid-panel--danger { border-color: rgba(255, 107, 139, 0.25); }
.btn--danger { background: #e5384f; color: #fff; }
.btn--danger:hover { background: #f04a60; transform: translateY(-2px); }
.benid-signout-row { display: flex; justify-content: center; }

/* Shown only when signed in, or only when signed out. benid-in is set before the page paints, so nothing jumps. */
html:not(.benid-in) [data-benid-member], .benid-in [data-benid-guest] { display: none !important; }
/* The hello shares the tagline's row (a centered flex row), so the two line up on phones and computers alike */
.hero__hello { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.hero__hello .benid-av { width: 30px; height: 30px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); }
@media (max-width: 640px) { .hero__hello { flex-basis: 100%; justify-content: center; } }

/* BenOS Genesis page: one BenID for every BenOS, close under the BenAI card */
.section--follow { padding-top: clamp(4px, 1vw, 16px); }
.benid-band { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); overflow: hidden; background: radial-gradient(70% 110% at 100% 40%, rgba(47, 107, 255, 0.18), transparent 62%), radial-gradient(55% 80% at 85% 100%, rgba(19, 184, 198, 0.12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
.benid-band__copy { display: grid; justify-items: start; gap: 22px; }
.benid-band__logo { width: min(200px, 52%); height: auto; }
.benid-band__points { display: grid; gap: 12px; }
.benid-band__points li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.benid-band__points .i { flex: none; font-size: 19px; color: #7ea2ff; }
.benid-band__me { display: grid; justify-items: start; gap: 16px; }
.benid-band__me p { color: var(--muted); }
.benid-band__me b { font-weight: 500; color: var(--text); }
.benid-band__card { display: grid; place-items: center; }
.benid-band__card .benid-card { --w: min(340px, 78vw); }

/* "Your BenID": changing your name */
.benid-profile__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.benid-edit { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.benid-edit:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.benid-edit .i { font-size: 15px; }
.benid-rename { display: grid; gap: 12px; width: min(380px, 100%); text-align: left; }
.benid-rename__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.benid-tag--new { background: rgba(255, 196, 0, 0.14); color: #ffd36b; }
.benid-others { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.benid-others p { flex-basis: 100%; font-size: 15px; color: var(--muted); }

/* "Your BenOS": the lock screen and desktop your BenID carries, drawn small (sized to each screen with cqw) */
.benid-sync { display: grid; gap: clamp(22px, 3vw, 32px); margin-top: 22px; }
.benid-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.benid-mini { display: grid; gap: 10px; margin: 0; }
.benid-mini figcaption { font-size: 13px; color: var(--dim); text-align: center; }
.benid-mini__screen {
  position: relative;
  container-type: inline-size;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background-color: #0b1220;
  background-image: radial-gradient(90% 80% at 20% 15%, #5fe3ff 0%, transparent 55%), linear-gradient(135deg, #1aa7e8, #1f3bff 70%, #2a1a8f);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 40px rgba(0, 0, 0, 0.4);
  color: #fff;
}
.benid-mini__screen--lock { align-content: center; justify-items: center; gap: 0.6cqw; padding-bottom: 12%; }
.benid-mini__screen--lock::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.16); }
.benid-mini__screen > * { position: relative; }
.benid-mini__time { font-family: "Outfit", var(--font); font-size: 36px; font-size: 15cqw; font-weight: 200; line-height: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3); }
.benid-mini__date { font-size: 11px; font-size: 2.9cqw; opacity: 0.92; }
.benid-mini__who { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; flex-direction: column; align-items: center; gap: 1cqw; font-size: 10px; font-size: 2.7cqw; font-weight: 500; }
.benid-mini__who .benid-av { width: 24px; height: 24px; width: 6.4cqw; height: 6.4cqw; font-size: 3cqw; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.benid-mini__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0.9cqw 2.2cqw; font-size: 9px; font-size: 2.4cqw; background: rgba(255, 255, 255, 0.4); color: #111; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.benid-mini__bar b { font-weight: 600; }
.benid-mini__dock { position: absolute; left: 50%; bottom: 2.4cqw; translate: -50% 0; display: flex; gap: 0.7cqw; max-width: 94%; padding: 0.9cqw; border-radius: 2.2cqw; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.benid-mini__dock i { display: grid; place-items: center; width: 14px; width: 4.8cqw; aspect-ratio: 1; }
.benid-mini__dock img { width: 100%; height: auto; }
.benid-mini__dock i.is-own { border-radius: 25%; background: linear-gradient(135deg, #8d8d99, #50505c); }
.benid-mini__screen.is-dark .benid-mini__bar, .benid-mini__screen.is-dark .benid-mini__dock { background: rgba(20, 20, 28, 0.55); color: #fff; }
.benid-sync__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); margin: 0; }
.benid-sync__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.benid-sync__list dt { color: var(--muted); }
.benid-sync__list dd { margin: 0; font-weight: 500; text-align: right; }
.benid-sync__empty { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.benid-sync__empty .i { flex: none; margin-top: 3px; font-size: 18px; color: var(--cyan); }
@media (max-width: 860px) {
  .benid-profile { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .benid-profile__who { justify-items: center; }
  .benid-two { grid-template-columns: minmax(0, 1fr); }
  .benid-band { grid-template-columns: minmax(0, 1fr); }
  .benid-band__card { order: -1; }
  .benid-band__logo { display: none; } /* the card above already says BenID */
  .benid-sync__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .benid-dlg { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 24px; }
  .benid-dlg__box { padding: 28px 20px 22px; }
  .benid-card.simple { --w: 188px; }
  .benid-dlg__title { font-size: 22px; }
  .benid-dev { grid-template-columns: auto minmax(0, 1fr); }
  .benid-dev .btn { grid-column: 1 / -1; justify-self: stretch; }
  .benid-minis { gap: 10px; }
  .benid-mini__screen { border-radius: 10px; }
  .benid-sync__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .benid-card, .benid-card .bc-sheen, .benid-dlg[open], .benid-menu { animation: none; }
}

/* ==========================================================================
   BenAI (BenAI.html): BenAI's own welcome screen from BenOS, on the web.
   Deep green, lime-to-yellow glows, a dot grid, and glassy tiles.
   ========================================================================== */
.bai-body { background: #070b08; }
.bai-body .nav.is-scrolled { background: rgba(7, 11, 8, 0.74); box-shadow: inset 0 22px 22px -10px rgba(7, 11, 8, 0.65); }
.bai-page { position: relative; isolation: isolate; color: #eef3ee; }
.bai-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.4) 55%, transparent);
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.4) 55%, transparent);
}
.bai-ic { fill: none; stroke: url(#bai-ig); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bai-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(24px, 4vw, 48px)) 0 clamp(48px, 6vw, 80px); background: radial-gradient(120% 90% at 50% 0%, #0d1a10 0%, transparent 62%); }
.bai-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bai-bg i { position: absolute; border-radius: 50%; filter: blur(90px); }
.bai-bg i:nth-child(1) { left: -10%; top: -16%; width: 48%; aspect-ratio: 1; background: #00ff27; opacity: 0.2; animation: bai-blob 17s ease-in-out infinite; }
.bai-bg i:nth-child(2) { right: -12%; top: 6%; width: 40%; aspect-ratio: 1; background: #fff100; opacity: 0.14; animation: bai-blob 21s ease-in-out -7s infinite reverse; }
.bai-bg i:nth-child(3) { left: 22%; bottom: -36%; width: 54%; aspect-ratio: 1; background: #00d65a; opacity: 0.13; animation: bai-blob 24s ease-in-out -12s infinite; }
@keyframes bai-blob { 50% { transform: translate(9%, 11%) scale(1.15); } }
.bai-hero__in { display: flex; flex-direction: column; align-items: center; max-width: 920px; text-align: center; }

/* The logo: three diamonds that fly in, then drift; the glow behind it breathes */
.bai-halo { position: relative; display: grid; place-items: center; width: clamp(118px, 13vw, 150px); aspect-ratio: 116 / 122; }
.bai-halo::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 255, 39, 0.32) 0%, rgba(255, 241, 0, 0.15) 42%, transparent 70%);
  filter: blur(10px);
  animation: bai-glow 6s ease-in-out infinite;
}
@keyframes bai-glow { 50% { transform: scale(1.08); opacity: 0.8; } }
.bai-logo { position: relative; width: 81%; height: auto; overflow: visible; filter: drop-shadow(0 8px 22px rgba(80, 255, 60, 0.35)); }
.bai-logo .bd { transform-box: fill-box; transform-origin: center; transition: translate 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); }
.bai-logo .bd1 { --fx: -70%; --fy: 20%; animation: bai-in 0.95s cubic-bezier(0.2, 0.85, 0.25, 1.2) 0.2s both, bai-f1 6s ease-in-out 1.15s infinite; }
.bai-logo .bd2 { --fx: 30%; --fy: 90%; animation: bai-in 0.95s cubic-bezier(0.2, 0.85, 0.25, 1.2) 0.32s both, bai-f2 5s ease-in-out 1.27s infinite; }
.bai-logo .bd3 { --fx: 90%; --fy: -90%; animation: bai-in 0.95s cubic-bezier(0.2, 0.85, 0.25, 1.2) 0.44s both, bai-f3 4.3s ease-in-out 1.39s infinite; }
.bai-logo--still .bd1 { animation: bai-f1 6s ease-in-out infinite; }
.bai-logo--still .bd2 { animation: bai-f2 5s ease-in-out -1.6s infinite; }
.bai-logo--still .bd3 { animation: bai-f3 4.3s ease-in-out -2.7s infinite; }
.bai-halo:hover .bd1 { translate: -9% 5%; }
.bai-halo:hover .bd2 { translate: 7% 16%; }
.bai-halo:hover .bd3 { translate: 16% -16%; }
@keyframes bai-in { from { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(0.25) rotate(-135deg); } }
@keyframes bai-f1 { 0%, 100% { transform: none; } 50% { transform: translate(-2%, -5%) rotate(-4deg); } }
@keyframes bai-f2 { 0%, 100% { transform: none; } 50% { transform: translate(4%, 5%) rotate(7deg); } }
@keyframes bai-f3 { 0%, 100% { transform: none; } 50% { transform: translate(7%, -9%) rotate(10deg); } }

.bai-title {
  margin-top: 8px;
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #eaffd8 55%, #fffaa8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.bai-sub { margin-top: 10px; font-size: clamp(17px, 1.6vw, 20px); color: #a9b8ab; }
.bai-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.bai-feats span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #e3f0e4; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.bai-feats .bai-ic { width: 17px; height: 17px; }
.bai-ready { margin-top: 30px; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; color: #cfe0d1; }
.bai-ready b { font-weight: 500; color: #7dff95; }
.bai-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 22px; text-align: left; }
.bai-tile, .bai-card { border-radius: 18px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.bai-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease); }
.bai-tile:hover { background: rgba(0, 255, 39, 0.06); box-shadow: inset 0 0 0 1px rgba(160, 255, 120, 0.28); transform: translateY(-2px); }
.bai-tile b { font-size: 16.5px; font-weight: 500; color: #fff; }
.bai-tile small { font-size: 14px; line-height: 1.5; color: #9fb0a2; }
.bai-ti { display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-bottom: 10px; border-radius: 13px; background: linear-gradient(145deg, rgba(0, 255, 39, 0.14), rgba(255, 241, 0, 0.06)); box-shadow: inset 0 0 0 1px rgba(160, 255, 120, 0.18); }
.bai-ti .bai-ic { width: 24px; height: 24px; }
.bai-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.bai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  font-size: 15.5px;
  font-weight: 600;
  color: #0c1f0f;
  background: linear-gradient(135deg, #00ff27 0%, #a6f800 55%, #fff100 100%);
  box-shadow: 0 10px 30px rgba(80, 255, 60, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, filter 0.3s;
}
.bai-btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(80, 255, 60, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.bai-btn .i { font-size: 17px; }
.bai-btn--ghost { color: #dbe9dd; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.bai-btn--ghost:hover { filter: none; box-shadow: inset 0 0 0 1px rgba(160, 255, 120, 0.45); }
.bai-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bai-fine { margin-top: 16px; font-size: 13.5px; color: #7f9483; }

.bai-sec { padding-block: clamp(36px, 5vw, 64px); }
.bai-sec--shot { padding-top: 0; }
.bai-sec--end { padding-bottom: clamp(72px, 9vw, 120px); }
.bai-shot { max-width: 1040px; margin-inline: auto; }
.bai-shot .device { box-shadow: 0 50px 120px -40px rgba(0, 255, 39, 0.3), 0 40px 100px -50px rgba(255, 241, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.bai-shot figcaption { margin-top: 16px; font-size: 14px; text-align: center; color: #7f9483; }
.bai-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(26px, 3.5vw, 38px); }
.bai-page h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: #fff; }
.bai-page h2 span { color: transparent; background: linear-gradient(90deg, #00ff27, #c8ff3d 60%, #fff100); -webkit-background-clip: text; background-clip: text; }
.bai-head p { font-size: 17px; line-height: 1.6; color: #a9b8ab; }
.bai-grid { display: grid; gap: 14px; }
.bai-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bai-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bai-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bai-card { padding: 22px; }
.bai-card h3 { font-size: 18px; font-weight: 500; color: #fff; }
.bai-card p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: #9fb0a2; }
.bai-point .bai-ti { margin-bottom: 14px; }
.bai-mode, .bai-tier { display: flex; flex-direction: column; }
.bai-mode__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; }
.bai-mi { width: 34px; height: 38px; filter: drop-shadow(0 4px 12px rgba(80, 255, 60, 0.3)); }
.bai-mode h3 em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 3px; color: #0c1f0f; background: linear-gradient(135deg, #00ff27, #fff100); }
.bai-mode small, .bai-tier small { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 500; color: #d6e9d8; }
.bai-water {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 26px;
  background: radial-gradient(80% 120% at 0% 50%, rgba(0, 255, 39, 0.14), transparent 60%), rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(160, 255, 120, 0.16);
}
.bai-water__zero { font-size: clamp(96px, 14vw, 168px); font-weight: 600; line-height: 0.9; color: transparent; background: linear-gradient(135deg, #00ff27, #fff100); -webkit-background-clip: text; background-clip: text; }
.bai-water p { max-width: 52ch; margin-top: 12px; font-size: 17px; line-height: 1.6; color: #a9b8ab; }
.bai-learn { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: clamp(24px, 4vw, 48px); }
.bai-learn .bai-head { margin-bottom: 0; }
.bai-safe ul { display: grid; gap: 14px; margin-top: 16px; }
.bai-safe li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: #c3d3c5; }
.bai-check .bai-ic { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.bai-end {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(36px, 6vw, 64px) 24px;
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, rgba(0, 255, 39, 0.16), transparent 70%), rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(160, 255, 120, 0.16);
}
.bai-end p { font-size: 17px; color: #a9b8ab; }
.bai-end .bai-actions { margin-top: 14px; }
.bai-halo--sm { width: 92px; margin-bottom: 6px; }
@media (max-width: 960px) {
  .bai-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bai-grid--3, .bai-learn { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .bai-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bai-tile { padding: 15px; }
  .bai-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .bai-water { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .bai-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .bai-actions .bai-btn { width: 100%; }
  .bai-feats span { padding: 7px 13px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bai-bg i, .bai-halo::before, .bai-logo .bd { animation: none !important; }
}

/* BenOS HTML hero: the "About BenAI" button, with BenAI's lime-to-yellow edge */
.btn--benai { border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(90deg, #00ff27, #a6f800, #fff100) border-box; }
.btn--benai:hover { background: linear-gradient(#0d150e, #0d150e) padding-box, linear-gradient(90deg, #00ff27, #a6f800, #fff100) border-box; }
.btn__benai { flex: none; width: 15px; height: 17px; }

/* ---------- Cookie banner (UK, EU, EEA and Switzerland only; built by main.js) ---------- */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 40; /* under the open mobile menu */
  width: min(420px, calc(100% - 2 * var(--gutter)));
  padding: 20px 22px 22px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(rgba(10, 10, 20, 0.94), rgba(10, 10, 20, 0.94)) padding-box,
    linear-gradient(120deg, rgba(31, 59, 255, 0.8), rgba(0, 229, 255, 0.6), rgba(204, 0, 255, 0.8)) border-box;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.85), 0 0 70px -28px rgba(0, 229, 255, 0.55);
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.5s var(--ease), translate 0.7s var(--ease);
}
.consent.is-in { opacity: 1; translate: 0 0; }
.consent__title { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.consent__text { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.consent__text a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; transition: text-decoration-color 0.3s; }
.consent__text a:hover { text-decoration-color: var(--cyan); }
.consent__actions { display: flex; gap: 10px; margin-top: 16px; }
.consent__actions .btn { flex: 1; }
.footer__cookies { margin-left: 14px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; transition: color 0.3s; }
.footer__cookies:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
