/* Sabbu's Crew — site styles. Saidly brand: Sage + Fraunces / Plus Jakarta Sans. */

:root {
  /* Saidly brand fonts: Fraunces (display/headlines) + Plus Jakarta Sans (body/UI) */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Saidly brand color: Sage (source of truth: Saidly/design/brand-assets) */
  --accent: #5F8A6E;
  --accent-text: #3E6B50;
  --accent-soft: #88AD93;
  --accent-glow: rgba(95, 138, 110, .30);

  --ink: #1A2218;
  --muted: #6E7669;
  --paper: #FCFDFA;
  --paper-2: #F4F7F0;
  --surface: #FFFFFF;
  --line: rgba(26, 34, 24, .10);

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 50px rgba(30, 45, 34, .10);
  --shadow-sm: 0 6px 20px rgba(30, 45, 34, .08);

  --head-weight: 600;
  --head-tracking: -0.01em;
  --dur: 220ms;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #EAF2E9;
  --muted: #9FB0A2;
  --paper: #0E140F;
  --paper-2: #141C16;
  --surface: #17211A;
  --line: rgba(234, 242, 233, .10);
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Fraunces serif for all display headings + wordmark (Saidly brand) */
h1, h2, h3, .brand span {
  font-family: var(--font-serif);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
}

/* ---------- shared pulse dot ---------- */
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
  animation: pulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- animated background ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  will-change: transform;
}
.bg-blob.b1 {
  width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%);
  animation: drift1 34s ease-in-out infinite alternate;
}
.bg-blob.b2 {
  width: 38vw; height: 38vw; right: -10vw; top: 8vw;
  background: radial-gradient(circle at 60% 40%, var(--accent), transparent 70%);
  animation: drift2 42s ease-in-out infinite alternate;
}
.bg-blob.b3 {
  width: 34vw; height: 34vw; left: 20vw; bottom: -16vw;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%);
  animation: drift3 50s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 8vw) scale(1.08); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-7vw, 6vw) scale(1.1); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, -6vw) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none !important; }
}

/* ---------- reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: block;
}
.footer-row .brand-mark { width: 30px; height: 30px; }
.hide-mobile { display: inline-flex; }
.brand span {
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  font-size: 17px;
}

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .icon-moon { display: none; }
html[data-theme="dark"] .icon-btn .icon-sun { display: none; }
html[data-theme="dark"] .icon-btn .icon-moon { display: inline-flex; }

/* ---------- pills / badges ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.pill-accent {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.pill svg { width: 13px; height: 13px; }

/* ---------- hero ---------- */

.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: center;
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px 44px;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 900px;
  margin-inline: auto;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-text), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-text);
  margin: 0 0 18px;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 16px 36px var(--accent-glow); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { box-shadow: var(--shadow-sm); }

/* live status strip */
.status-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  color: var(--muted);
}
.status-strip strong { color: var(--ink); }
.status-dots { display: flex; gap: 5px; }
.status-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  display: inline-block;
}
.status-dots i.on { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- section shell ---------- */

section { padding: 64px 0; }
.section-head { max-width: 620px; margin: 0 0 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 18px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.tile-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-text);
  margin-bottom: 6px;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { margin: 0; font-size: 1.05rem; letter-spacing: var(--head-tracking); }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tile.big { grid-column: span 2; grid-row: span 2; justify-content: center; }
.tile.big h3 { font-size: 1.5rem; }
.tile.big p { font-size: 15.5px; }
.tile.wide { grid-column: span 2; }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.big, .tile.wide { grid-column: span 2; }
  .tile.big { grid-row: span 1; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile.big, .tile.wide { grid-column: span 1; }
}

/* ---------- products (Apple-style bento, matches Vision) ---------- */

.products-bento {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(150px, auto);
}
.products-bento .tile { justify-content: flex-start; text-align: left; }
.products-bento .tile.big {
  grid-column: span 2;
  grid-row: span 1;
  justify-content: flex-start;
}
.product-live {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 9%, var(--surface)),
    var(--surface) 62%);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
}
.product-live .tile-icon {
  background: linear-gradient(145deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}
.products-bento .tile h3 { font-size: 1.35rem; margin-top: 2px; }
.products-bento .tile p { font-size: 14.5px; }
.products-bento .btn { align-self: flex-start; margin-top: 6px; }

.status-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  align-self: flex-start;
}
.status-tag.live { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.status-tag.soon { background: var(--paper-2); color: var(--muted); }
.product-soon { opacity: .92; }
.product-soon .tile-icon { color: var(--muted); background: var(--paper-2); }

@media (max-width: 860px) {
  .products-bento { grid-template-columns: 1fr; }
  .products-bento .tile.big { grid-column: span 1; }
}

/* ---------- crew ---------- */

.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.crew-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.crew-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.crew-photo {
  width: 92px; height: 92px;
  border-radius: 22px;
  object-fit: cover;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-sm);
}
.crew-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.crew-role { color: var(--accent-text); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.crew-card p.bio { color: var(--muted); font-size: 14px; margin: 0 0 14px; min-height: 42px; }

.crew-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
}
.crew-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
}
.crew-status.working { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.crew-status.working .dot {
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .crew-status.working .dot { animation: none; }
}

.crew-task { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 16px; }

@media (max-width: 860px) {
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .crew-grid { grid-template-columns: 1fr; }
}

/* group banner (cropped team image) */
.group-banner {
  margin: 8px 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.group-banner img { width: 100%; height: auto; display: block; }

/* ---------- live ticker (what the crew is doing right now) ---------- */
.ticker {
  margin: 0 0 36px;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-right: 1px solid var(--line);
  white-space: nowrap;
  flex: none;
}
.ticker-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
}
.ticker-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  margin-right: 30px;
  font-size: 14px;
}
.ticker-track li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-soft);
  margin-right: 18px;
  flex: none;
}
.feed-actor { font-weight: 700; color: var(--ink); }
.feed-text { color: var(--muted); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-static { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 4px 22px;
  transition: border-color var(--dur) var(--ease);
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent-text);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.faq-item a { color: var(--accent-text); font-weight: 700; text-decoration: none; }

/* ---------- contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-side h2 { margin-top: 0; }
.contact-direct {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.contact-direct a { color: var(--accent-text); font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-links .link-btn {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.footer-links .link-btn:hover { color: var(--ink); }
.footer-note { font-size: 13px; color: var(--muted); }
.footer-tagline { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- notice banner (no-cookie fact, not a consent dialog) ---------- */

.notice-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 150;
  font-size: 13.5px;
  color: var(--muted);
}
.notice-banner a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.notice-banner button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  flex: none;
}
.notice-banner button:hover { color: var(--ink); background: var(--paper-2); }
.notice-banner.is-hidden { display: none; }

@media (max-width: 560px) {
  .notice-banner { left: 12px; right: 12px; bottom: 12px; }
}

/* privacy page */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}
.doc h1 { font-weight: var(--head-weight); letter-spacing: var(--head-tracking); }
.doc h2 { margin-top: 40px; font-size: 1.25rem; }
.doc p, .doc li { color: var(--muted); font-size: 15px; }
.doc .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 40px; }

/* ============================================================= */
/* v4 additions                                                  */
/* ============================================================= */

/* ---------- responsive / hamburger menu ---------- */
.nav-toggle { display: none; }
.icon-btn .icon-close { display: none; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .hide-mobile { display: none !important; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 6px 0;
    display: none;
  }
  .nav-links a { padding: 14px 24px; font-size: 15px; color: var(--ink); }
  .nav-links a:hover { background: var(--paper-2); }
  .site-header.nav-open .nav-links { display: flex; }
  .site-header.nav-open .icon-burger { display: none; }
  .site-header.nav-open .icon-close { display: inline-flex; }
}

/* ---------- hero live block (avatars + count + ticker) ---------- */
.hero-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 0 24px;
}
.crew-avatars { display: flex; }
.crew-avatars .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--paper);
  margin-left: -10px;
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
}
.crew-avatars .av:first-child { margin-left: 0; }
.crew-avatars .av img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .35s var(--ease); }
.crew-avatars .av.is-idle img { filter: grayscale(1) opacity(.55); }
.crew-count { font-size: 13.5px; color: var(--muted); }
.crew-count strong { color: var(--ink); }

/* hero live ticker: full-bleed, subtle strip (not a card) */
.hero-ticker {
  margin: 0;
  width: 100%;
  max-width: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.hero-ticker .ticker-label {
  background: transparent;
  color: var(--muted);
  border-right: 1px solid var(--line);
  letter-spacing: .08em;
}
.hero-ticker .ticker-track li { padding: 11px 0; font-size: 13.5px; }
.hero-ticker .feed-text { color: var(--muted); }
.feed-av {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- products: vivid gradient on the live card ---------- */
.product-live {
  background: linear-gradient(150deg, var(--accent), var(--accent-soft) 96%);
  border-color: transparent;
  color: #fff;
}
.product-live h3 { color: #fff; }
.product-live p { color: rgba(255, 255, 255, .92); }
.product-live .tile-icon { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.product-live .status-tag.live { background: rgba(255, 255, 255, .2); color: #fff; }
.product-live .status-tag.live .pulse-dot { background: #fff; }
.btn-onaccent {
  background: #fff;
  color: var(--accent-text);
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-onaccent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .2); }

/* ---------- interactive team banner (hotspots + callouts) ---------- */
.group-banner.interactive { overflow: visible; border: none; box-shadow: none; }
.group-banner.interactive img { border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: filter .35s var(--ease); }
.hint-inline { color: var(--accent-text); font-weight: 600; }
@media (hover: none) { .hint-inline { display: none; } }

.hotspots { position: absolute; inset: 0; }
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border: none; background: transparent; padding: 0; cursor: pointer;
}
.hs-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), 0 6px 16px rgba(0, 0, 0, .28);
  opacity: .8;
  animation: hs-pulse 2.4s ease-in-out infinite;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
@keyframes hs-pulse { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hs-ring { animation: none; } }
.hotspot:hover .hs-ring,
.hotspot:focus-visible .hs-ring { transform: scale(1.18); opacity: 1; border-color: #fff; }
.hs-callout {
  position: absolute;
  left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: 212px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 14px; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 6;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.hs-callout::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--surface);
}
.hotspot:hover .hs-callout,
.hotspot:focus-visible .hs-callout { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.hs-callout strong { display: block; font-family: var(--font-serif); font-size: 15px; }
.hs-callout em {
  display: block; font-style: normal; color: var(--accent-text);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 6px;
}
.hs-task { display: block; color: var(--muted); font-size: 13px; }
.group-banner.interactive:hover img { filter: brightness(.72) saturate(1.05); }

/* ---------- staggered scroll reveal (crew) ---------- */
.reveal-stagger .crew-card:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger .crew-card:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger .crew-card:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger .crew-card:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger .crew-card:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger .crew-card:nth-child(6) { transition-delay: 350ms; }

/* ---------- Saidly-style scroll-reveal crew (version B) ---------- */
.crew-scroll { display: flex; flex-direction: column; }
.scrow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.scrow:last-child { border-bottom: none; }
.scrow:nth-child(even) .scrow-media { order: 2; }
.scrow-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.scrow-body .crew-role { color: var(--accent-text); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.scrow-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
.scrow-body .bio { color: var(--muted); font-size: 1.02rem; margin: 0 0 16px; }
.scrow[data-reveal] { transform: translateY(36px); }
@media (max-width: 760px) {
  .scrow { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
  .scrow:nth-child(even) .scrow-media { order: 0; }
  .scrow-media img { max-width: 320px; }
}

.version-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 12px; border-radius: 999px;
  margin-top: 12px;
}
.version-switch {
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-text);
  text-decoration: none;
}
.version-switch:hover { text-decoration: underline; }

/* ---------- cookie consent banner ---------- */
.cc-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 720px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cc-banner[hidden] { display: none; }
.cc-text { flex: 1; min-width: 240px; }
.cc-text strong { font-family: var(--font-serif); display: block; margin-bottom: 2px; }
.cc-text p { margin: 0; font-size: 13px; color: var(--muted); }
.cc-text a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-actions .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 560px) {
  .cc-actions { width: 100%; }
  .cc-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- narrato-style scroll-scrubbed crew (version B) ---------- */
.scroll-demo { position: relative; }
.sd-head { margin-bottom: 8px; }

/* Fallback (mobile / reduced-motion / no-JS): readable stacked moments */
.sd-static { display: block; }
.sd-moments { display: flex; flex-direction: column; gap: 20px; }
.sd-moment {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.sd-moment > * { min-width: 0; }
.sd-moment:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
.sd-moment:nth-child(even) .appframe { order: -1; }
.sd-moment__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sd-app-tag { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }
.sd-time { font-size: 12.5px; color: var(--accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sd-mode-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.sd-script p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.appframe { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.sd-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .sd-moment, .sd-moment:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  /* mobile: image first, then the text */
  .sd-moment .appframe, .sd-moment:nth-child(even) .appframe { order: -1; }
}

/* Enhanced sticky, scroll-scrubbed stage (desktop + motion only; toggled by JS) */
.sd-stage-wrap { display: none; }
@media (min-width: 900px) {
  body.sd-enhanced .sd-static { display: none; }
  body.sd-enhanced .sd-stage-wrap { display: block; }
}
.sd-stage-wrap { position: relative; height: 540vh; }
.sd-stage {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  display: flex;
  align-items: center;
}
.sd-stage-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 40px 0.9fr;
  gap: 30px;
  align-items: center;
}
/* prevent the large intrinsic portrait from blowing out the grid */
.sd-stage-inner > * { min-width: 0; }
.sd-col-panel { height: clamp(340px, 56vh, 520px); }
.sd-stage .sd-panel-slot.active { height: 100%; display: flex; flex-direction: column; }
.sd-stage .appframe { flex: 1 1 auto; min-height: 0; }
.sd-stage .sd-portrait { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.sd-stage .sd-panel-caption { margin-top: 10px; flex: none; }
.sd-eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sd-col-script .sd-app-tag { font-size: 1.5rem; }
.sd-col-script .sd-time { font-size: 12.5px; }
.sd-live-script {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.45;
  color: var(--ink);
  min-height: 4.6em;
  margin: 0 0 18px;
}
.sd-caret { display: inline-block; width: 2px; height: .95em; background: var(--accent-text); vertical-align: text-bottom; transform: translateY(2px); }
@media (prefers-reduced-motion: no-preference) { .sd-caret { animation: blink 1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.sd-live-mode .sd-mode-chip { margin: 0; }

.sd-rail { position: relative; width: 3px; height: 100%; min-height: 300px; background: var(--line); border-radius: 3px; justify-self: center; }
.sd-rail__fill { position: absolute; top: 0; left: 0; width: 100%; background: linear-gradient(180deg, var(--accent), var(--accent-text)); border-radius: 3px; transition: height .06s linear; }
.sd-rail__node { position: absolute; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; }
.sd-rail__node i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: block; transition: background .2s, border-color .2s; }
.sd-rail__node.active i { background: var(--accent-text); border-color: var(--accent-text); }
.sd-rail__node span { position: absolute; left: 18px; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sd-rail__node.active span { color: var(--accent-text); }

.sd-col-panel { position: relative; }
.sd-panel-slot { display: none; animation: sdfade .35s var(--ease); }
.sd-panel-slot.active { display: block; }
@keyframes sdfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sd-panel-caption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sd-panel-caption svg { width: 14px; height: 14px; color: var(--accent-text); }
