/*
 * kubero.com landing page. Every colour, font, radius and button shape is copied from the app's design system
 * (project_kubero_frontend/src/styles/index.css and src/components/ui/button.shared.ts). Nothing is invented:
 * if the app's tokens change, change them here in the :root block only. Keyframes metallic-sheen, insight-enter,
 * ed-drift and ed-ticker are the app's own; splash-letter and the curtain are the only new motion.
 */
:root {
  --font-sans: "Archivo", sans-serif;
  --font-display: "Instrument Serif", serif;
  --radius: 0.25rem;
  --background: oklch(0.13 0.012 72);
  --foreground: oklch(0.9 0.018 78);
  --card: oklch(0.165 0.014 72);
  --primary: oklch(0.72 0.105 81);
  --primary-foreground: oklch(0.05 0.014 72);
  --secondary: oklch(0.21 0.015 72);
  --muted-foreground: oklch(0.76 0.025 76);
  --accent: oklch(0.25 0.024 76);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.38 0.04 78 / 45%);
  --input: oklch(0.3 0.025 75);
  --ring: oklch(0.72 0.105 81);
  --gold-light: oklch(0.84 0.09 83);
  --ink-raised: oklch(0.185 0.016 72);
  --success: oklch(0.68 0.1 155);
  --discover-circles: oklch(0.76 0.095 80);
  --discover-capital: oklch(0.67 0.085 158);
  --discover-conversations: oklch(0.7 0.07 255);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  letter-spacing: 0;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: radial-gradient(
      circle at 10% 20%,
      color-mix(in oklab, var(--primary) 5%, transparent),
      transparent 36%
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
}
html.splash-on body {
  overflow: hidden;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
}
.skip:focus {
  left: 0;
}

.foil-text {
  color: var(--gold-light);
  text-shadow: 0 1px 0 color-mix(in oklab, var(--primary) 55%, transparent),
    0 0 20px color-mix(in oklab, var(--primary) 12%, transparent);
}
/* The product name: "Kuber" in the foreground colour, "O" in italic gold, whatever the
   surrounding text colour is. The foil wordmarks keep their brighter gold on the O. */
.brand-k {
  color: var(--foreground);
  text-shadow: none;
}
.brand-o {
  font-style: italic;
  color: var(--primary);
}
.foil-text .brand-o {
  color: var(--gold-light);
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 2.5rem;
  }
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--primary);
}
.lede {
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.85rem;
  color: var(--muted-foreground);
}

/* ---------------------------------------------------------------- Buttons (same shape as buttonVariants) */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  font: 500 0.875rem/1.25rem var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-foil {
  border: 1px solid color-mix(in oklab, var(--primary) 70%, transparent);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--gold-light) 55%, transparent),
    0 8px 24px color-mix(in oklab, var(--primary) 16%, transparent);
}
.btn-foil::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 32%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in oklab, var(--gold-light) 28%, transparent),
    transparent
  );
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
.btn-foil:hover::after,
.btn-foil:focus-visible::after {
  animation: metallic-sheen 750ms ease-out 1;
}
.btn-foil:hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
}
.btn-gilt {
  border: 1px solid color-mix(in oklab, var(--primary) 50%, transparent);
  background: transparent;
  color: var(--primary);
}
.btn-gilt:hover {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 8%, transparent);
}

/* ---------------------------------------------------------------- Splash screen */
#splash {
  display: none;
}
html.splash-on #splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--background);
  background-image: radial-gradient(
    circle at 50% 50%,
    color-mix(in oklab, var(--primary) 14%, transparent),
    transparent 55%
  );
  cursor: pointer;
  transition: transform 900ms cubic-bezier(0.7, 0, 0.2, 1);
}
html.splash-on #splash.leave {
  transform: translateY(-100%);
}
#splash[hidden] {
  display: none !important;
}
.splash-inner {
  position: relative;
  text-align: center;
  padding: 0 1.25rem;
  transition: opacity 500ms ease;
}
#splash.leave .splash-inner {
  opacity: 0;
}
.splash-word {
  display: inline-flex;
  padding: 0.05em 0.1em;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 17vw, 10rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 0 28px color-mix(in oklab, var(--primary) 24%, transparent));
}
/* Each letter rises out of a blur, then a glint of light passes along the word from K to O. */
.splash-word .l {
  display: inline-block;
  opacity: 0;
  color: transparent;
  background-image: linear-gradient(
    100deg,
    var(--gold-light) 38%,
    color-mix(in oklab, var(--gold-light) 35%, var(--foreground)) 50%,
    var(--gold-light) 62%
  );
  background-size: 300% 100%;
  background-position: 140% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: splash-letter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both, splash-glint 1100ms ease-in-out both;
}
/* The wordmark rule applies to the splash too: the five letters of "Kuber" take the
   foreground colour and the O keeps the gold gradient. The glint still passes K to O. */
.splash-word .l:not(.brand-o) {
  background-image: linear-gradient(
    100deg,
    var(--foreground) 38%,
    color-mix(in oklab, var(--foreground) 55%, var(--gold-light)) 50%,
    var(--foreground) 62%
  );
}
.splash-word .l:nth-child(1) { animation-delay: 250ms, 1500ms; }
.splash-word .l:nth-child(2) { animation-delay: 400ms, 1620ms; }
.splash-word .l:nth-child(3) { animation-delay: 550ms, 1740ms; }
.splash-word .l:nth-child(4) { animation-delay: 700ms, 1860ms; }
.splash-word .l:nth-child(5) { animation-delay: 850ms, 1980ms; }
.splash-word .l:nth-child(6) { animation-delay: 1000ms, 2100ms; }
@keyframes splash-glint {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -40% 0;
  }
}
.splash-rule {
  display: block;
  width: min(22rem, 70vw);
  height: 1px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  animation: splash-rule 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 1300ms forwards;
}
.splash-tag {
  margin-top: 1.25rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted-foreground);
  opacity: 0;
  animation: fade-up 700ms ease-out 1750ms both;
}
.splash-skip {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted-foreground);
  opacity: 0;
  animation: fade-up 600ms ease-out 2200ms both;
}
@keyframes splash-letter {
  from {
    opacity: 0;
    transform: translateY(0.55em) scale(0.96);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes splash-rule {
  to {
    transform: scaleX(1);
  }
}

/* ---------------------------------------------------------------- Header */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-head.solid {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--background) 92%, transparent);
  backdrop-filter: blur(10px);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  text-decoration: none;
}
.nav {
  display: none;
  gap: 0.25rem;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--foreground);
}
@media (min-width: 960px) {
  .nav {
    display: flex;
  }
}
.head-cta .btn {
  padding: 0 1rem;
  font-size: 0.75rem;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  animation: ed-drift 22s ease-in-out infinite;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      90deg,
      var(--background) 0%,
      color-mix(in oklab, var(--background) 88%, transparent) 38%,
      color-mix(in oklab, var(--background) 35%, transparent) 100%
    ),
    linear-gradient(0deg, var(--background) 0%, transparent 28%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 6rem;
}
.hero h1 {
  max-width: 52rem;
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  line-height: 1.02;
}
.hero h1 em {
  font-style: italic;
}
.hero .lede {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.9rem;
  color: var(--foreground);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-note {
  margin-top: 1.25rem;
  font-size: 11px;
  color: var(--muted-foreground);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 40rem;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.hero-links a:hover {
  color: var(--gold-light);
}
.hero-links i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

/* Hero lines enter in turn (after the splash, when there is one). */
.hero .wrap > * {
  animation: insight-enter 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero .wrap > :nth-child(2) { animation-delay: 120ms; }
.hero .wrap > :nth-child(3) { animation-delay: 240ms; }
.hero .wrap > :nth-child(4) { animation-delay: 360ms; }
.hero .wrap > :nth-child(5) { animation-delay: 480ms; }
.hero .wrap > :nth-child(6) { animation-delay: 600ms; }
html.splash-on:not(.ready) .hero .wrap > * {
  animation: none;
  opacity: 0;
}

/* ---------------------------------------------------------------- Ticker */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ed-ticker 40s linear infinite;
}
.ticker-track span {
  padding: 1rem 1.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.ticker-track span::after {
  content: "\00b7";
  margin-left: 3rem;
  color: var(--primary);
}

/* ---------------------------------------------------------------- Sections */
section[id] {
  scroll-margin-top: 4.5rem;
}
.block {
  padding: 6rem 0 0;
}
.block h2 {
  margin-top: 0.75rem;
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  line-height: 1.06;
}
.block h2 em {
  font-style: italic;
  color: var(--gold-light);
}
.block .lede {
  margin-top: 1.25rem;
}
.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
  }
  .split.flip > :first-child {
    order: 2;
  }
}
.photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.photo:hover img {
  transform: scale(1.04);
}
.photo.tall {
  aspect-ratio: 4 / 5;
}
.photo.wide {
  aspect-ratio: 16 / 10;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in oklab, var(--background) 55%, transparent), transparent 45%);
  pointer-events: none;
}
.tag {
  display: inline-block;
  border: 1px solid color-mix(in oklab, var(--primary) 45%, transparent);
  padding: 0.2rem 0.5rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  background: color-mix(in oklab, var(--background) 70%, transparent);
}

/* Pillars: numbered list */
.pillars {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}
.pillars li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s;
}
@media (min-width: 768px) {
  .pillars li {
    grid-template-columns: 5rem 1fr 1.2fr;
    align-items: baseline;
    gap: 2rem;
  }
}
.pillars li:hover {
  background: color-mix(in oklab, var(--primary) 4%, transparent);
}
.pillars .n {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
}
.pillars h3 {
  font-size: 1.75rem;
  line-height: 2.25rem;
}
.pillars p {
  grid-column: 2;
  font-size: 0.9375rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .pillars p {
    grid-column: 3;
  }
}

/* Feature lists */
.points {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 560px) {
  .points {
    grid-template-columns: 1fr 1fr;
  }
}
.points li {
  background: var(--card);
  padding: 1.1rem 1.25rem;
}
.points b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.points span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}

/* Circle: member portraits */
.members {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.members .faces {
  display: flex;
}
.members .faces img {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--background);
  border-radius: 9999px;
  object-fit: cover;
  margin-left: -0.75rem;
}
.members .faces img:first-child {
  margin-left: 0;
}
.members p {
  font-size: 12px;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.float-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 82%, transparent);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1rem;
  font-size: 12px;
  line-height: 1.25rem;
}
.float-card b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
}

/* Capital mosaic */
.mosaic {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 15rem;
  }
  .mosaic .feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .mosaic figure:nth-last-child(-n + 2) {
    grid-column: span 2;
  }
}
.mosaic .feature {
  grid-column: span 2;
}
.mosaic figure {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
  border: 1px solid var(--border);
  background: var(--card);
}
.mosaic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mosaic figure:hover img {
  transform: scale(1.05);
}
.mosaic figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in oklab, var(--background) 88%, transparent), transparent 62%);
}
.mosaic figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 2;
}
.mosaic figcaption b {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
}
.mosaic .feature figcaption b {
  font-size: 1.75rem;
  line-height: 2rem;
}
.mosaic figcaption span:not(.tag) {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.steps {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  background: var(--card);
  padding: 1.75rem;
}
.steps .n {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
}
.steps h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  line-height: 2rem;
}
.steps p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6rem;
  color: var(--muted-foreground);
}
.sub {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.sub h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

/* Conversations: city strip */
.strip {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) {
  .strip {
    grid-template-columns: repeat(6, 1fr);
  }
}
.strip figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  background: var(--card);
}
.strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.strip figure:hover img {
  transform: scale(1.06);
}
.strip figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in oklab, var(--background) 85%, transparent), transparent 55%);
}
.strip figcaption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5rem;
}
.strip figcaption span {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

/* Communication: introduction thread (an illustration, built from the app's tokens) */
.chat {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 24px 60px color-mix(in oklab, var(--background) 70%, transparent);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.chat-head img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
}
.chat-head b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
}
.chat-head span {
  font-size: 11px;
  color: var(--muted-foreground);
}
.chat-head .tag {
  margin-left: auto;
}
.thread {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
}
.bubble {
  max-width: 88%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55rem;
  background: var(--ink-raised);
}
.bubble.me {
  justify-self: end;
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
  background: color-mix(in oklab, var(--primary) 9%, transparent);
}
.bubble small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.thread .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  padding: 0 0.85rem;
  font-size: 12px;
  color: var(--muted-foreground);
}
.chip.yes {
  border-color: color-mix(in oklab, var(--primary) 70%, transparent);
  background: var(--primary);
  color: var(--primary-foreground);
}
.thread .note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.chat.reveal .thread > * {
  opacity: 0;
}
.chat.in .thread > * {
  opacity: 1;
  animation: fade-up 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.chat.in .thread > :nth-child(1) { animation-delay: 300ms; }
.chat.in .thread > :nth-child(2) { animation-delay: 900ms; }
.chat.in .thread > :nth-child(3) { animation-delay: 1500ms; }
.chat.in .thread > :nth-child(4) { animation-delay: 2100ms; }

/* Members: four roles */
.roles {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .roles {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .roles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.role {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  background: var(--card);
}
.role img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.role:hover img {
  transform: scale(1.05);
}
.role::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--background) 0%, color-mix(in oklab, var(--background) 45%, transparent) 45%, transparent 75%);
}
.role div {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}
.role h3 {
  font-size: 2rem;
  line-height: 2.25rem;
  color: var(--gold-light);
}
.role p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5rem;
  color: var(--foreground);
}

/* Academy */
.academy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.academy-card .photo {
  border: 0;
  border-bottom: 1px solid var(--border);
}

/* Trust */
.trust {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .trust {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust li {
  background: var(--card);
  padding: 1.75rem;
}
.trust svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}
.trust h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 2rem;
}
.trust p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.6rem;
  color: var(--muted-foreground);
}

/* Access */
.access {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  background: var(--card);
}
.access .bg {
  position: absolute;
  inset: 0;
}
.access .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.access .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--card) 0%, color-mix(in oklab, var(--card) 82%, transparent) 45%, color-mix(in oklab, var(--card) 20%, transparent) 100%);
}
.access .inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .access .inner {
    padding: 4rem;
  }
}
.access h2 {
  margin-top: 0.75rem;
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  line-height: 1.06;
}
.access p.copy {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.85rem;
  color: var(--muted-foreground);
}
.access .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* FAQ */
.faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  cursor: pointer;
  list-style: none;
}
.faq summary > .q {
  flex: 1;
  min-width: 0;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  color: var(--primary);
  transition: transform 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 44rem;
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.8rem;
  color: var(--muted-foreground);
}
.faq details p a {
  color: var(--primary);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
  }
}
.details {
  display: grid;
  gap: 1px;
  align-self: start;
  background: var(--border);
}
.details > div {
  background: var(--card);
  padding: 1.25rem;
}
.details dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.details dd {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
}
.details a {
  color: var(--foreground);
  text-underline-offset: 4px;
}
.details a:hover {
  color: var(--gold-light);
}
.todo {
  color: var(--muted-foreground);
}
form.contact {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  form.contact {
    padding: 2rem;
  }
}
.field {
  display: block;
  margin-top: 1.25rem;
}
.row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}
.row .field {
  margin-top: 0;
}
.field span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  font: 400 0.875rem/1.5rem var(--font-sans);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}
.field [aria-invalid="true"] {
  border-color: var(--destructive);
}
form.contact > .row + .field,
form.contact > .field + .field {
  margin-top: 1.25rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.status {
  font-size: 0.875rem;
  line-height: 1.5rem;
}
.status[data-state="ok"] {
  color: var(--success);
}
.status[data-state="error"] {
  color: var(--destructive);
}
.fine {
  margin-top: 1rem;
  font-size: 11px;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.fine a {
  color: var(--primary);
}

/* Footer */
.site-foot {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
  font-size: 11px;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.site-foot .top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-foot .brand {
  display: inline-block;
}
.tagline {
  margin-top: 0.25rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: var(--primary);
  text-underline-offset: 4px;
}
.foot-nav a:hover {
  color: var(--gold-light);
}
.site-foot .legal {
  max-width: 48rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.site-foot .legal + .legal {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: 0;
}

/* Colour helpers (CSP forbids inline style attributes, so these live here) */
.bg-circles { background: var(--discover-circles); }
.bg-capital { background: var(--discover-capital); }
.bg-conv { background: var(--discover-conversations); }
.bg-gold { background: var(--primary); }
.bg-ok { background: var(--success); }
.t-circles { color: var(--discover-circles); }
.t-capital { color: var(--discover-capital); }
.t-conv { color: var(--discover-conversations); }
.pos-left { object-position: 30% center; }
.fineprint { margin-top: 1.5rem; font-size: 0.8125rem; }
.fineprint a { color: var(--primary); }
.access h2 em { font-style: italic; color: var(--gold-light); }

/* ---------------------------------------------------------------- Motion (the app's own keyframes) */
@keyframes metallic-sheen {
  from {
    transform: translateX(-140%) skewX(-18deg);
  }
  to {
    transform: translateX(240%) skewX(-18deg);
  }
}
@keyframes insight-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes ed-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-4%, 3%) scale(1.08);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes ed-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* insight-enter with an explicit end frame, for elements whose resting style is opacity: 0 */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* main.js marks [data-reveal] elements .reveal and adds .in when they scroll into view. */
.reveal {
  opacity: 0;
}
.reveal.in {
  opacity: 1;
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0ms);
}
.chat.reveal {
  opacity: 1;
}
.chat.reveal.in {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .chat.reveal .thread > * {
    opacity: 1;
  }
}
