/* ==========================================================================
   diluta.ai — Diluta AI Lab
   "We are building AI 2.0." Cinematic dark site: humans in motion,
   a digital fabric that brightens when needed and steps aside when not.
   ========================================================================== */

:root {
  --night: #0a0914;
  --night-2: #12102a;
  --night-3: #1a1736;
  --cream: #f4f0e9;
  --cream-80: rgba(244, 240, 233, 0.8);
  --cream-64: rgba(244, 240, 233, 0.64);
  --cream-48: rgba(244, 240, 233, 0.48);
  --line: rgba(244, 240, 233, 0.1);
  --indigo: #6366f1;
  --indigo-deep: #4338ca;
  --lavender: #a5b4fc;
  --amber: #f5b04c;
  --accent: var(--amber);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --pad-x: clamp(20px, 4.45vw, 64px);
  --wrap: 1312px;
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--night);
  color: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.2;
  color: var(--lavender);
}
.eyebrow__bar { display: block; width: 22px; height: 1.5px; background: currentColor; opacity: 0.7; flex: none; }
.eyebrow--accent { color: var(--accent); }
.eyebrow--dim { color: var(--cream-48); }
.eyebrow--center { justify-content: center; }
.kicker { font-family: var(--serif); font-weight: 700; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lavender); }
.kicker--accent { color: var(--accent); }

.h2 {
  font-size: clamp(32px, 3.7vw, 54px); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.032em; color: var(--cream); text-wrap: pretty;
}
.h2--mid { font-size: clamp(30px, 3.2vw, 46px); }
.h2--display { font-size: clamp(38px, 4.9vw, 70px); font-weight: 800; line-height: 1.04; letter-spacing: -0.036em; display: flex; flex-direction: column; }
.h2--display span { display: block; }
.dim { color: var(--cream-48); }
.lede { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.62; color: var(--cream-64); text-wrap: pretty; }
.lede--light { color: var(--cream-80); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px 0 22px; border-radius: 14px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg, .textlink svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--light { background: var(--cream); color: var(--night); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(244, 240, 233, 0.2); }
.btn--light:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 240, 233, 0.3); }
.btn--ghost { background: rgba(244, 240, 233, 0.08); border: 1px solid rgba(244, 240, 233, 0.16); color: var(--cream); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn--ghost:hover { background: rgba(244, 240, 233, 0.14); transform: translateY(-2px); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--cream); border-bottom: 1.5px solid rgba(244, 240, 233, 0.35); padding-bottom: 3px; transition: border-color 0.25s var(--ease), gap 0.25s var(--ease); }
.textlink:hover { border-color: var(--cream); gap: 12px; }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translate3d(0, 22px, 0); animation: rise 1s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Moved notice ---------- */
.moved {
  position: relative; z-index: 7;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 11px var(--pad-x);
  background: linear-gradient(90deg, #2b2360 0%, #4338ca 50%, #2b2360 100%);
  color: #fff; font-size: 13.5px; letter-spacing: -0.005em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.moved img { width: 22px; height: 22px; flex: none; box-sizing: border-box; padding: 2px; border-radius: 50%; background: rgba(244, 240, 233, 0.96); }
.moved strong { font-weight: 700; }
.moved svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.moved:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 26px var(--pad-x); }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand img { width: 36px; height: 36px; box-sizing: border-box; padding: 4px; border-radius: 50%; background: rgba(244, 240, 233, 0.96); filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.45)); }
.brand__word { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); }
.brand__tag { font-family: var(--serif); font-weight: 500; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lavender); padding: 5px 9px 4px; border: 1px solid rgba(165, 180, 252, 0.35); border-radius: 999px; }
.brand--sm img { width: 26px; height: 26px; padding: 3px; }
.brand--sm .brand__word { font-size: 14px; }
.nav__links { display: flex; align-items: center; gap: 32px; padding: 17px 28px; border-radius: 999px; background: rgba(10, 9, 20, 0.35); border: 1px solid rgba(244, 240, 233, 0.12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav__links a { position: relative; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; color: var(--cream); white-space: nowrap; transition: color 0.22s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(244, 240, 233, 0.08); border: 1px solid rgba(244, 240, 233, 0.16); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform 0.3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { display: none; position: absolute; z-index: 6; left: var(--pad-x); right: var(--pad-x); top: 88px; padding: 14px; border-radius: 20px; background: rgba(18, 16, 42, 0.92); border: 1px solid rgba(244, 240, 233, 0.12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { display: block; padding: 12px; border-radius: 12px; font-size: 16px; font-weight: 500; }
.mobile-menu nav a:hover { background: rgba(244, 240, 233, 0.06); }
.mobile-menu[hidden] { display: none; }

/* ---------- The fabric ---------- */
.fabric { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; height: clamp(680px, 100svh, 980px); overflow: hidden; background: var(--night); }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; filter: saturate(0.85) contrast(1.05); }
.hero__video { z-index: 1; }
.hero .fabric { z-index: 2; mix-blend-mode: screen; }
.hero__veil { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 9, 20, 0.88) 0%, rgba(10, 9, 20, 0.62) 40%, rgba(10, 9, 20, 0.15) 75%, rgba(10, 9, 20, 0.05) 100%),
    linear-gradient(180deg, rgba(10, 9, 20, 0.55) 0%, rgba(10, 9, 20, 0) 28%, rgba(10, 9, 20, 0) 62%, var(--night) 100%);
}
.hero .nav, .hero .mobile-menu, .hero__copy, .hero__hint { z-index: 4; }
.hero__copy { position: absolute; left: var(--pad-x); bottom: clamp(92px, 13vh, 150px); width: min(820px, calc(100% - 2 * var(--pad-x))); display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero__title { font-size: clamp(48px, 7vw, 108px); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; color: var(--cream); display: flex; flex-direction: column; }
.hero__title span { display: block; }
.glow { color: #fff; text-shadow: 0 0 28px rgba(165, 180, 252, 0.55), 0 0 80px rgba(99, 102, 241, 0.45); }
.hero__lede { max-width: 620px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; letter-spacing: -0.01em; color: var(--cream-80); text-wrap: pretty; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.hero__hint { position: absolute; left: var(--pad-x); bottom: 34px; display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--cream-48); max-width: 520px; }
.hero__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 0 0 rgba(165, 180, 252, 0.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(165, 180, 252, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(165, 180, 252, 0); } 100% { box-shadow: 0 0 0 0 rgba(165, 180, 252, 0); } }


/* ---------- Looking for the app ---------- */
.redirect { background: var(--night); padding: 0 0 clamp(32px, 4vw, 56px); position: relative; z-index: 3; }
.redirect__card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 26px; align-items: center;
  margin-top: calc(-1 * clamp(16px, 2vw, 28px));
  padding: clamp(26px, 2.8vw, 36px) clamp(24px, 2.8vw, 38px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(18, 16, 42, 0.95) 55%);
  border: 1px solid rgba(165, 180, 252, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(10, 9, 20, 0.6);
  max-width: calc(var(--wrap) - 2 * var(--pad-x));
}
.redirect__logo { width: 64px; height: 64px; box-sizing: border-box; padding: 8px; border-radius: 50%; background: rgba(244, 240, 233, 0.96); filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.6)); }
.redirect__copy { display: flex; flex-direction: column; gap: 8px; }
.redirect__copy h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--cream); }
.redirect__copy p:not(.kicker) { font-size: 15px; line-height: 1.55; color: var(--cream-64); text-wrap: pretty; max-width: 560px; }
.redirect__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.redirect__stores { display: flex; gap: 10px; }
.redirect__stores img { height: 40px; width: auto; transition: transform 0.3s var(--ease); }
.redirect__stores a:hover img { transform: translateY(-2px); }
@media (max-width: 1180px) { .redirect__card { grid-template-columns: 64px minmax(0, 1fr); } .redirect__actions { grid-column: 2; } }
@media (max-width: 820px) { .redirect__card { grid-template-columns: 1fr; margin-top: 0; padding: 22px 20px; } .redirect__actions { grid-column: auto; } .redirect__logo { width: 48px; height: 48px; padding: 6px; } }

/* ---------- Today ---------- */
.today { background: var(--night); padding: clamp(88px, 10vw, 140px) 0 clamp(80px, 9vw, 128px); }
.today__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.today__copy { display: flex; flex-direction: column; gap: 22px; }
.feed { border-radius: var(--radius); background: rgba(244, 240, 233, 0.04); border: 1px solid var(--line); padding: 26px 26px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.feed__title { font-family: var(--serif); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-48); margin-bottom: 16px; }
.feed ul { display: flex; flex-direction: column; gap: 10px; }
.feed__item { display: flex; align-items: flex-start; gap: 14px; padding: 13px 16px; border-radius: 14px; background: rgba(244, 240, 233, 0.92); color: #1c1930; font-size: 14.5px; font-weight: 500; line-height: 1.4; opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.feed.in .feed__item { opacity: 1; transform: none; }
.feed__item:nth-child(2) { transition-delay: 0.15s; } .feed__item:nth-child(3) { transition-delay: 0.3s; } .feed__item:nth-child(4) { transition-delay: 0.45s; } .feed__item:nth-child(5) { transition-delay: 0.6s; }
.feed__t { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 600; color: #726f89; width: 38px; flex: none; margin-top: 1px; }
.feed__foot { margin-top: 16px; font-size: 14px; color: var(--accent); font-weight: 600; }

/* ---------- Thesis ---------- */
.thesis { position: relative; overflow: hidden; background: var(--night-2); padding: clamp(96px, 11vw, 160px) 0; }
.thesis__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0.55; filter: saturate(0.85); }
.thesis__veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(10, 9, 20, 0.55) 30%, rgba(10, 9, 20, 0.7) 70%, var(--night) 100%); }
.thesis__inner { position: relative; display: flex; flex-direction: column; gap: 28px; }
.pull { max-width: 900px; padding: 8px 0 8px 26px; border-left: 2px solid var(--accent); }
.pull p { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--cream); text-wrap: pretty; }
.pull cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--cream-48); }
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.versus__col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.versus__col--old { background: rgba(244, 240, 233, 0.03); }
.versus__col--new { background: linear-gradient(180deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.06) 100%); border-color: rgba(165, 180, 252, 0.3); box-shadow: 0 30px 80px rgba(67, 56, 202, 0.25); }
.versus ul { display: flex; flex-direction: column; gap: 12px; }
.versus li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--cream-80); }
.versus li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--cream-48); }
.versus__col--old li { color: var(--cream-64); }
.versus__col--new li { color: var(--cream); }
.versus__col--new li::before { background: var(--accent); box-shadow: 0 0 12px rgba(245, 176, 76, 0.7); }

/* ---------- Principles ---------- */
.principles { background: var(--night); padding: clamp(88px, 10vw, 140px) 0; }
.principles__head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.rule { display: flex; flex-direction: column; gap: 14px; padding: 32px 26px 36px 0; border-right: 1px solid var(--line); margin-right: 26px; }
.rule:last-child { border-right: 0; margin-right: 0; }
.rule__n { font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.rule h3 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: var(--cream); }
.rule p { font-size: 15px; line-height: 1.55; color: var(--cream-64); text-wrap: pretty; }

/* ---------- A day in motion ---------- */
.day { background: var(--night-2); padding: clamp(88px, 10vw, 140px) 0; }
.day__head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin-bottom: clamp(32px, 3.5vw, 48px); }
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.moment { position: relative; height: clamp(460px, 40vw, 600px); border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) brightness(0.72); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.moment:hover img { transform: scale(1.04); }
.moment__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 20, 0.1) 0%, rgba(10, 9, 20, 0.2) 45%, rgba(10, 9, 20, 0.9) 100%); }
.moment__text { position: absolute; left: 26px; right: 26px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; }
.moment__t { font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 12px; letter-spacing: 0.2em; color: var(--cream-64); }
.moment h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--cream); }
.moment p { font-size: 15px; line-height: 1.5; color: var(--cream-80); text-wrap: pretty; }
.moment__state { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--cream-48); }
.moment__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.moment__state--on { color: var(--accent); border-color: rgba(245, 176, 76, 0.5); background: rgba(245, 176, 76, 0.1); }
.moment__state--on::before { box-shadow: 0 0 10px currentColor; }
.moment--lit img { filter: saturate(0.9) brightness(0.95); }
.moment__threads { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 30% 35%, rgba(165, 180, 252, 0.28) 0%, transparent 40%),
    repeating-linear-gradient(115deg, rgba(165, 180, 252, 0.18) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-32deg, rgba(245, 176, 76, 0.14) 0 1px, transparent 1px 46px);
  mix-blend-mode: screen; opacity: 0.9;
}

/* ---------- Steps aside ---------- */
.aside { position: relative; height: clamp(560px, 56vw, 760px); overflow: hidden; background: var(--night); }
.aside__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(0.9); }
.aside__veil { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 45%, rgba(10, 9, 20, 0.5) 0%, rgba(10, 9, 20, 0.35) 60%, rgba(10, 9, 20, 0.2) 100%), linear-gradient(180deg, var(--night-2) 0%, rgba(10, 9, 20, 0.2) 25%, rgba(10, 9, 20, 0.3) 75%, var(--night) 100%); }
.aside__copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 0 var(--pad-x); }
.aside__copy .lede--light { max-width: 620px; }

/* ---------- First proof ---------- */
.proof { background: var(--night); padding: clamp(72px, 8vw, 112px) 0; }
.proof__card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; border-radius: var(--radius); padding: clamp(28px, 3.4vw, 48px); background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(244, 240, 233, 0.03) 60%); border: 1px solid rgba(165, 180, 252, 0.22); }
.proof__copy { display: flex; flex-direction: column; gap: 18px; }
.proof__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 6px; }
.proof__mark { display: grid; place-items: center; }
.proof__mark img { width: 180px; height: 180px; box-sizing: border-box; padding: 22px; border-radius: 50%; background: rgba(244, 240, 233, 0.96); filter: drop-shadow(0 20px 60px rgba(99, 102, 241, 0.55)); }

/* ---------- The lab ---------- */
.lab { position: relative; overflow: hidden; background: var(--night-2); padding: clamp(88px, 10vw, 140px) 0; }
.lab__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0.35; filter: saturate(0.8); }
.lab__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 16, 42, 0.55) 0%, rgba(18, 16, 42, 0.85) 45%, rgba(18, 16, 42, 0.95) 100%), linear-gradient(180deg, var(--night) 0%, rgba(18, 16, 42, 0.2) 20%, rgba(18, 16, 42, 0.2) 80%, var(--night) 100%); }
.lab__grid { position: relative; }
.lab__grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.lab__portrait { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lab__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.85); }
.lab__portrait figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.lab__portrait figcaption span { font-size: 12.5px; font-weight: 500; color: var(--cream-80); }
.lab__copy { display: flex; flex-direction: column; gap: 22px; }
.writing { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; }
.writing li { border-bottom: 1px solid var(--line); }
.writing a { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 18px; padding: 16px 4px; transition: background 0.25s var(--ease); }
.writing a:hover { background: rgba(244, 240, 233, 0.04); }
.writing a::after { content: "→"; color: var(--cream-48); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.writing a:hover::after { transform: translateX(4px); color: var(--accent); }
.writing__src { font-family: var(--serif); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-48); }
.writing__t { font-size: 16px; font-weight: 500; color: var(--cream); }



/* ---------- Closer ---------- */
.closer { position: relative; overflow: hidden; background: radial-gradient(80% 60% at 50% 100%, rgba(67, 56, 202, 0.35) 0%, rgba(10, 9, 20, 0) 70%), var(--night); padding: clamp(110px, 13vw, 180px) 0; }
.closer .fabric { opacity: 0.9; }
.closer__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.closer__inner .lede--light { max-width: 560px; }
.closer__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); border-top: 1px solid var(--line); padding: 34px 0; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; font-size: 13.5px; font-weight: 500; color: var(--cream-64); }
.footer__links a:hover { color: var(--cream); }
.footer__copy { font-size: 13px; color: var(--cream-48); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule { padding: 28px 24px 30px 0; }
  .rule:nth-child(2) { border-right: 0; margin-right: 0; }
  .rule:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .moments { grid-template-columns: 1fr 1fr; }
  .moment:last-child { grid-column: span 2; height: 420px; }
  .lab__grid { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .today__grid { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .proof__card { grid-template-columns: 1fr; }
  .proof__mark { order: -1; justify-items: start; }
  .proof__mark img { width: 120px; height: 120px; padding: 14px; }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__portrait { max-width: 420px; }
}
@media (max-width: 820px) {
  .moved { font-size: 12.5px; text-align: left; justify-content: flex-start; }
  .nav { display: flex; justify-content: space-between; padding: 18px var(--pad-x); }
  .nav__links, .nav .btn--ghost { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; top: 78px; }
  .mobile-menu[hidden] { display: none; }
  .brand__tag { display: none; }
  .hero { height: clamp(640px, 100svh, 860px); }
  .hero__veil { background: linear-gradient(180deg, rgba(10, 9, 20, 0.6) 0%, rgba(10, 9, 20, 0.15) 30%, rgba(10, 9, 20, 0.55) 55%, rgba(10, 9, 20, 0.92) 80%, var(--night) 100%); }
  .hero__copy { bottom: 72px; gap: 18px; }
  .hero__title { font-size: clamp(44px, 12vw, 64px); }
  .hero__lede { font-size: 16px; }
  .hero__hint { bottom: 22px; font-size: 12px; max-width: calc(100% - 2 * var(--pad-x)); }
  .feed { padding: 20px 18px 18px; }
  .rules { grid-template-columns: 1fr; }
  .rule { border-right: 0; margin-right: 0; padding: 24px 0; }
  .rule:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .moments { grid-template-columns: 1fr; }
  .moment, .moment:last-child { grid-column: auto; height: 420px; }
  .writing a { grid-template-columns: 1fr auto; }
  .writing__src { grid-column: 1 / -1; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal, .feed__item { animation: none; opacity: 1; transform: none; transition: none; }
  .hero__pulse { animation: none; }
  .moment img, .btn, .textlink, .writing a::after { transition: none; }
}
