/* kading.xyz — design system */

:root {
  --void: #030308;
  --coal: #08080f;
  --char: #101018;
  --smoke: #1a1a26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --violet: #a78bfa;
  --violet-hot: #8b5cf6;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --amber: #fbbf24;
  --magenta: #f472b6;
  --steel: #94a3b8;

  --text: #c8cdd8;
  --text-dim: #8b93a8;
  --text-bright: #f4f6fb;

  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-ui: "Urbanist", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --header-h: 72px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.7 var(--font-body);
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: var(--text-bright);
}

a { color: inherit; }

/* ── Ambient background ── */

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

#mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 10%, transparent 75%);
  will-change: transform;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.ambient__orb--violet {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation: orb-drift 18s ease-in-out infinite;
}

.ambient__orb--cyan {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  bottom: 10%;
  left: -12%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  animation-delay: -6s;
  animation: orb-drift 18s ease-in-out infinite;
}

.ambient__orb--amber {
  width: 30vw;
  height: 30vw;
  max-width: 360px;
  max-height: 360px;
  top: 45%;
  left: 40%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
  animation-delay: -12s;
  animation: orb-drift 18s ease-in-out infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, 2%) scale(1.05); }
  66% { transform: translate(-2%, 4%) scale(0.95); }
}

/* ── Glass ── */

.glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.glass:hover {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 24px 80px -24px rgba(139, 92, 246, 0.25);
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.site-header.scrolled {
  background: rgba(3, 3, 8, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
}

.brand__name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover { color: var(--text-bright); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet-hot), var(--cyan));
  transition: width 0.35s var(--ease-out);
}

.nav-link:hover::after { width: 100%; }

.nav-link--cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 24px -6px rgba(139, 92, 246, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: rgba(3, 3, 8, 0.95);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

/* ── Layout ── */

main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-head {
  margin-bottom: 48px;
}

.section-num {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--text-bright) 0%, var(--violet) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0;
}

/* ── Hero ── */

.parallax-layer {
  will-change: transform;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  inset: -12% -6%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(0px, 6vw, 72px);
}

.hero-orb-scale {
  transform: scale(clamp(2.2, 4.5vw, 3.4));
  transform-origin: center center;
}

/* FlowAlly / FocusBuddy companion orb (#6B5BFF) */
.orb {
  position: relative;
  width: 15rem;
  height: 13rem;
  perspective: 700px;
  transform: scale(1);
}

.orb > * {
  position: absolute;
  left: 50%;
  top: 50%;
}

.orb-glow {
  width: 16rem;
  height: 16rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.4), transparent 66%);
  filter: blur(34px);
  transition: background 0.45s ease, opacity 0.45s ease;
}

.orb-tilt {
  width: 12rem;
  height: 12rem;
  transform: translate(-50%, -50%) rotateX(28deg);
  transform-style: preserve-3d;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 0 42%,
    rgba(196, 187, 255, 0.55) 53%,
    rgba(139, 92, 246, 0.28) 66%,
    transparent 82%
  );
  filter: blur(4px);
}

.orb-ring2 {
  transform: rotate(20deg) scale(1.06);
  opacity: 0.55;
  filter: blur(8px);
}

.orb-inner {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 0 28%,
    rgba(167, 139, 250, 0.32) 50%,
    transparent 74%
  );
  filter: blur(6px);
}

.orb-hi {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 46%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), transparent 72%);
  filter: blur(7px);
  opacity: 0.75;
}

.orb-core {
  width: 5.5rem;
  height: 5.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(236, 233, 255, 0.7) 24%,
    rgba(150, 138, 255, 0.45) 48%,
    rgba(107, 91, 255, 0.1) 68%,
    transparent 78%
  );
  filter: blur(5px);
  opacity: 0.8;
}

.orb[data-state='idle'] {
  animation: orbBreathIdle 2400ms ease-in-out infinite;
}

.orb[data-state='idle'] .orb-core {
  animation: orbCoreGlow 2400ms ease-in-out infinite;
}

.orb[data-state='idle'] .orb-glow {
  animation: orbGlowPulse 2400ms ease-in-out infinite;
}

@keyframes orbBreathIdle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes orbCoreGlow {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes orbGlowPulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

.parallax-shards .shard {
  position: absolute;
  border-radius: 4px;
  transform: rotate(-12deg);
}

.shard--violet {
  width: 120px;
  height: 320px;
  top: 18%;
  right: 22%;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), transparent);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.shard--cyan {
  width: 80px;
  height: 200px;
  bottom: 22%;
  left: 18%;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.14), transparent);
  border: 1px solid rgba(34, 211, 238, 0.18);
  transform: rotate(18deg);
}

.shard--amber {
  width: 48px;
  height: 48px;
  top: 42%;
  left: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.2);
}

.parallax-floaters .floater {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.floater--ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: 12%;
  right: 8%;
  border-color: rgba(34, 211, 238, 0.2);
}

.floater--dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  bottom: 30%;
  left: 28%;
  background: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.6);
  border: none;
}

.floater--line {
  width: 240px;
  height: 1px;
  top: 58%;
  right: 12%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  border: none;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__content-inner {
  width: 100%;
}

.hero__roles {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: -12px 0 20px;
  opacity: 0.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.hero__line {
  display: block;
  color: var(--text-bright);
}

.hero__line--accent {
  background: linear-gradient(100deg, #fff 0%, var(--violet) 40%, var(--cyan) 75%, var(--amber) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--violet-hot), #6d28d9);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4), 0 16px 48px -12px rgba(139, 92, 246, 0.55);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.7), 0 20px 60px -10px rgba(139, 92, 246, 0.7);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text-bright);
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 40px -16px rgba(34, 211, 238, 0.3);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__stats dt {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.hero__stats dd {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.hero-card__ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, var(--violet-hot), var(--cyan), var(--amber), var(--magenta), var(--violet-hot));
  opacity: 0.5;
  animation: spin 12s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-card__core {
  text-align: center;
  padding: 32px;
}

.hero-card__glyph {
  display: block;
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 8px;
}

.hero-card__project {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-card__link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan-soft);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.3s;
}

.hero-card__link:hover { color: var(--text-bright); }

.scroll-hint-wrap {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  animation: bob 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Marquee ── */

.marquee-wrap {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 18px 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee__track span:nth-child(odd) {
  color: rgba(167, 139, 250, 0.6);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Bento grid ── */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.bento-card--featured {
  grid-row: span 2;
  min-height: 100%;
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bento-card__year {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin: 0 0 12px;
  line-height: 1;
}

.bento-card__desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0 0 auto;
  flex: 1;
}

.bento-card__features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-card__features li {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.bento-card__link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-soft);
  text-decoration: none;
  margin-top: 16px;
  transition: color 0.3s;
}

.bento-card__link:hover { color: var(--text-bright); }

.tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
}

.tag--violet { color: var(--violet); border-color: rgba(167, 139, 250, 0.35); background: rgba(139, 92, 246, 0.1); }
.tag--magenta { color: var(--magenta); border-color: rgba(244, 114, 182, 0.35); background: rgba(244, 114, 182, 0.08); }
.tag--cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.tag--amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.tag--emerald { color: #34d399; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.tag--steel { color: var(--steel); border-color: rgba(148, 163, 184, 0.35); background: rgba(148, 163, 184, 0.08); }

.section[data-depth] {
  will-change: transform;
}

@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-card--featured {
    grid-row: span 3;
  }

  .bento-card--wide {
    grid-column: span 3;
  }
}

/* ── Principles ── */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle {
  padding: 32px;
}

.principle__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(139, 92, 246, 0.35);
  display: block;
  margin-bottom: 12px;
}

.principle h3 {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0 0 12px;
}

.principle p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.about-copy p {
  margin: 0 0 20px;
  color: var(--text-dim);
}

.about-copy strong {
  color: var(--text-bright);
  font-weight: 600;
}

.about-aside {
  padding: 28px;
}

.about-aside h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ── CTA ── */

.cta-section { padding-bottom: 120px; }

.cta-panel {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(139, 92, 246, 0.2), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(34, 211, 238, 0.1), transparent 50%);
  pointer-events: none;
}

.cta-panel > * { position: relative; }

.cta-panel__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin: 0 0 16px;
  line-height: 1;
}

.cta-panel__title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-panel__sub {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--text-dim);
  margin: 0 0 32px;
}

/* ── Footer ── */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--violet);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer__fun {
  font-size: 0.82rem;
  margin: 6px 0 0;
  opacity: 0.7;
}

.site-footer__fun a {
  color: var(--cyan-soft);
}

.site-footer__note {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 8px;
}

/* ── Reveal on scroll ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { order: -1; }
  .hero-card { width: min(280px, 80vw); }

  .hero-orb-layer {
    justify-content: center;
    padding-right: 0;
    opacity: 0.55;
  }

  .hero-orb-scale {
    transform: scale(1.85);
  }

  .hero__content,
  .hero__visual {
    position: relative;
    z-index: 2;
  }

  .bento { grid-template-columns: 1fr; }
  .bento-card--featured { grid-row: auto; }
  .bento-card--wide { grid-column: auto; }

  .principles { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .site-nav { display: none; }
  .menu-toggle { display: flex; }

  .site-header.menu-open .mobile-nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .orb,
  .orb-core,
  .orb-glow {
    animation: none !important;
  }
  .parallax-layer,
  .ambient__orb,
  .ambient__grid,
  .section[data-depth],
  .orb,
  .orb-core,
  .orb-glow {
    transform: none !important;
  }
}
