/* S.A.M.S. home page — Lusion rebuild (2026-11-21).
   Loaded after styles.css on the home page only; every rule is scoped to
   .page-home so the other pages keep their existing presentation.

   The spec is the captures in reference-captures-2026-11-20/, measured:
   - field #F0F1FA            -> black #000 (owner's palette mapping)
   - wordmark: left margin 5%, cap height 27px at 1920w, plain text
   - stage panel: x margins 5.05%/5.10%, top 22.2% of viewport,
     height 73.0%, corner radius ~18px, scene interior #15161A
   - chrome (lusion-end.png, scrolled state): white circle Ø48,
     dark pill #2B2E3A, white pill — all 48px tall, 13px uppercase text,
     right edge on the 5% margin; hidden at rest, shown on scroll
   - meta strip under the stage: x mark left, + mark, "SCROLL TO" centred
   - accent (scene blue)      -> #3AFEFF, used as sparingly as the
     captures use theirs: stage image, link arrows, hover states
   Type: one sans (Inter), quiet weights, no mono in the chrome. */

.page-home { background: #000; }
/* scroll offset for anchored sections, from the measured header height:
   desktop header = 50px top padding + 48px chrome (tallest child)
   = 98px; +20px clearance = 118px. Mobile (<=640px) = 18px + 40px
   = 58px; +20px = 78px (set in the 640 media query below). */
.page-home section[id], .page-home .l-intro { scroll-margin-top: 118px; }

/* ---------- chrome ---------- */

/* the header is fixed (styles.css); on the home page it carries a
   solid black background in every state so scrolled content never
   shows through around the wordmark and chrome */
.page-home .site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 50px 5% 0;
  background: #000;
  border-bottom: 1px solid #1d1e24;
}
.page-home .site-header.scrolled {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: #1d1e24;
}

.l-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}
.l-wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.l-wordmark-text {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #fff;
}

/* the pill cluster — in the captures it is absent at rest (hero) and
   present once scrolled (end); it also reveals on hover / focus */
.l-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}
.page-home .site-header.scrolled .l-chrome,
.page-home .site-header:hover .l-chrome,
.page-home .site-header:focus-within .l-chrome,
body.menu-open .l-chrome {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.l-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #f4f5f9;
  color: #0b0c0f;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.l-pill {
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.l-pill-dark {
  background: #282b38;
  color: #f2f3f7;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.l-pill-light {
  background: #f4f5f9;
  color: #0b0c0f;
  border: 1px solid transparent;
}
.l-pill-dot, .l-pill-dots { font-size: 10px; letter-spacing: 0.1em; }

/* ---------- menu overlay ---------- */

.l-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #050506;
  padding: 158px 5% 54px;
  display: flex;
  flex-direction: column;
  animation: l-menu-in 0.35s ease;
}
.l-menu[hidden] { display: none; }
@keyframes l-menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.menu-open { overflow: hidden; }
.l-menu-nav { display: flex; flex-direction: column; }
.l-menu-nav a {
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
  padding: 20px 0;
  border-top: 1px solid #1d1e24;
  transition: color 0.2s ease;
}
.l-menu-nav a:hover { color: var(--accent); }
.l-menu-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #8b8f98;
}
.l-menu-meta a { color: #c6c9d1; text-decoration: none; }
.l-menu-meta a:hover { color: var(--accent); }

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

/* R-26 (owner, 2026-11-28): the stage is no longer a panel in the
   hero — it is the fixed background of the whole page. The first
   screen is the stage itself; the website scrolls over it; the form
   keeps cycling and answering touch from anywhere on the page (the
   page forwards the visitor's touch to it). The hero is a clear
   one-screen overlay: boot line at the top, strip and warnings at
   its foot. */
.l-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 16vh;
  padding-bottom: 4vh;
}
.l-hero .l-strip { margin-top: auto; }
.l-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
/* R-25 (2026-11-28): the letters still is there from the page's first
   paint — the word is THERE immediately, in the same framing the
   stage's own fallback uses (object-fit: contain in the same box).
   The frame itself is transparent until its document paints over the
   still: stage document (its own fallback still) first, then the live
   simulation. */
.l-stage-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.l-stage-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}
/* The veil: a shade that deepens over the stage as the visitor
   scrolls into the words, so text stays readable with the form alive
   behind it. Fully clear in the hero. */
.l-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
/* The portal (owner, 2026-11-28): the gate a leaving link opens. */
#portalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
#portalCanvas.on { opacity: 1; }
main, footer.site-footer { position: relative; z-index: 1; }

/* ---------- boot display + warnings + letter typing (owner spec
   2026-11-23, page layer only — the stage itself is untouched) --- */

.l-boot {
  margin: 0 5% 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #a3a7b2;
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.l-boot-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  white-space: nowrap;
}
.l-boot-text { min-height: 1em; }

.l-warnings {
  margin: 4px 5% 0;
  display: flex;
  justify-content: space-between;
  gap: 18px 40px;
  flex-wrap: wrap;
}
.l-warn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #71747f;
  margin: 0;
  max-width: 46ch;
}
.l-warn:last-child { text-align: right; margin-left: auto; }

/* the site's own letters, split for scroll-paced typing (JS adds
   these spans; without JS the words stand whole) */
.l-tc { visibility: hidden; }
.l-tc.on { visibility: visible; }

/* meta strip under the stage */
.l-strip {
  margin: 0 5%;
  height: 66px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-strip-mark {
  position: absolute;
  left: 0;
  font-size: 14px;
  color: var(--accent);
}
.l-strip-plus {
  position: absolute;
  left: 34.5%;
  font-size: 13px;
  color: var(--accent);
}
.l-scroll {
  background: none;
  border: none;
  padding: 6px 10px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0f1f5;
  cursor: pointer;
}
.l-scroll-to { color: #71747f; }
.l-scroll-arr { margin-left: 6px; letter-spacing: 0; }

/* ---------- intro ---------- */

.l-intro { padding: 96px 5% 0; }
.l-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--accent);
  margin: 0 0 26px;
}
.l-h1 {
  font-size: clamp(42px, 5.4vw, 104px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}
.l-lede {
  font-size: 20px;
  line-height: 1.55;
  color: #a3a7b2;
  max-width: 60ch;
  margin: 34px 0 0;
}
.l-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}
.l-btn {
  height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.l-btn-white { background: #f4f5f9; color: #0b0c0f; border: 1px solid transparent; }
.l-btn-white:hover { background: var(--accent); color: #00272a; }
.l-btn-dark { background: #23252f; color: #fff; border: 1px solid #2e3038; }
.l-btn-dark:hover { border-color: rgba(58, 254, 255, 0.55); }

/* ---------- sections ---------- */

.l-block { padding: 130px 5% 0; }
.l-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.l-label::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 14px;
}
.l-h2 {
  font-size: clamp(30px, 2.7vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 46px;
}

.l-more { margin: 30px 0 0; }
.l-more a { color: var(--accent); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.l-more a:hover { text-decoration: underline; }

/* spec sheet — ruled key/value rows */
.spec-list { border-bottom: 1px solid #1d1e24; }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px clamp(28px, 4vw, 64px);
  border-top: 1px solid #1d1e24;
  padding: 22px 0;
  align-items: start;
}
.spec-k {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 4px 0 0;
}
.spec-v { font-size: 1.03rem; color: #c9ccd4; line-height: 1.6; margin: 0; max-width: 62ch; }
@media (max-width: 760px) {
  .spec-row { grid-template-columns: 1fr; }
}

/* work — a ruled index */
.l-work-list { border-bottom: 1px solid #1d1e24; }
.l-work-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  gap: 14px clamp(28px, 4vw, 64px);
  align-items: start;
  border-top: 1px solid #1d1e24;
  padding: 32px 0;
}
.l-work-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.l-work-name {
  font-size: 29px;
  font-weight: 540;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}
.l-work-desc {
  font-size: 1.03rem;
  color: #a3a7b2;
  line-height: 1.65;
  margin: 0;
  max-width: 54ch;
}
.l-work-link {
  font-size: 14.5px;
  color: #e8e9ee;
  text-decoration: none;
  white-space: nowrap;
  padding-top: 8px;
}
.l-work-link span { color: var(--accent); }
.l-work-link:hover { text-decoration: underline; }
.l-work-nolink { display: block; width: 1px; }

/* founder */
.l-founder-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}
.l-founder-photo { margin: 0; }
.l-founder-photo img {
  width: 190px;
  height: auto;
  border-radius: 18px;
  display: block;
}
.l-founder-photo figcaption {
  font-size: 13px;
  color: #8b8f98;
  margin-top: 14px;
}
.l-founder-copy p {
  font-size: 17px;
  color: #aeb1bc;
  line-height: 1.7;
  margin: 0 0 1.15em;
  max-width: 62ch;
}
.l-founder-copy p:first-child {
  font-size: 21px;
  color: #fff;
  line-height: 1.55;
}

/* contact */
.l-mail {
  display: inline-block;
  font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(58, 254, 255, 0.45);
  padding-bottom: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
  word-break: break-all;
}
.l-mail:hover { color: var(--accent); border-bottom-color: var(--accent); }
.l-contact-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 66px;
}
.l-cm-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.l-contact-meta p { font-size: 16px; color: #c6c9d1; line-height: 1.6; margin: 0; }
.l-contact-meta a { color: inherit; text-decoration: none; }
.l-contact-meta a:hover { color: var(--accent); }

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

.page-home .site-footer {
  /* transparent, not solid: the page behind is the same black, and the
     follower (owner spec 2026-11-28) must show behind the footer words
     like everywhere else on the page. */
  background: transparent;
  border-top: 1px solid #1d1e24;
  padding: 60px 0;
  margin-top: 140px;
}
.l-foot-in { padding: 0 5%; }
.l-foot-grid { gap: clamp(28px, 4vw, 56px); }
.page-home .footer-brand img { border-radius: 12px; }
.page-home .footer-brand .f-name { font-weight: 500; }
.page-home .footer-brand .f-tag { color: #8b8f98; }
.l-fc-label {
  font-family: var(--font-text);
  color: var(--accent);
}
.page-home .footer-col a { font-size: 15px; color: #c6c9d1; }
.page-home .footer-col p { font-size: 15px; color: #c6c9d1; }
.l-foot-bottom {
  font-family: var(--font-text);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #767a84;
  border-top: 1px solid #1d1e24;
  margin-top: 52px;
  padding-top: 26px;
}

/* ---------- section reveals (JS-driven; .pre is added by JS only
   when the reveal will run, so content is never hidden without it) --- */

.page-home .rv {
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.page-home .rv.pre {
  opacity: 0;
  transform: translateY(48px);
}
.page-home .rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .l-work-row { grid-template-columns: 1fr; }
  .l-work-link { padding-top: 0; }
  .l-founder-grid { grid-template-columns: 1fr; }
  .l-founder-photo img { width: 160px; }
  .l-contact-meta { grid-template-columns: 1fr 1fr; }
  .l-menu-nav a { font-size: 40px; }
}
@media (max-width: 640px) {
  .page-home .site-header { padding: 18px 5% 0; }
  /* mobile header = 18px top padding + 40px chrome = 58px; +20px */
  .page-home section[id], .page-home .l-intro { scroll-margin-top: 78px; }
  .l-wordmark img { width: 30px; height: 30px; border-radius: 8px; }
  .l-wordmark-text { font-size: 24px; }
  .l-chrome { gap: 9px; opacity: 1; visibility: visible; transform: none; }
  .l-circle { width: 40px; height: 40px; font-size: 14px; }
  .l-pill { height: 40px; padding: 0 17px; font-size: 11px; }
  .l-pill-dark { display: none; }
  .l-hero { padding-top: 15vh; }
  .l-strip-plus { display: none; }
  .l-intro { padding-top: 62px; }
  .l-lede { font-size: 18px; }
  .l-block { padding-top: 84px; }
  .l-menu { padding-top: 104px; }
  .l-menu-nav a { font-size: 34px; }
  .page-home .site-footer { margin-top: 90px; }
}
@media (max-width: 520px) {
  .l-contact-meta { grid-template-columns: 1fr; }
  .l-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .l-chrome { transition: none; }
  .l-menu { animation: none; }
  .page-home .rv { transition: none; }
  .page-home .rv.pre { opacity: 1; transform: none; }
}
