/* =========================================================
   BES SYSTEM — Alexia Krizia LaPalerma
   Editorial futurism × human-centered systems thinking
   ========================================================= */

/* ---- Brand fonts ---- */
@font-face {
  font-family: "VT323";
  src: url("fonts/vt323.woff2") format("woff2"),
       url("fonts/vt323.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ARAR Reverse Rounded";
  src: url("fonts/arar-reverse-rounded.woff2") format("woff2"),
       url("fonts/arar-reverse-rounded.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* color */
  --ink:        #0b0b0b;
  --ink-soft:   #181818;
  --steel:      #e7e8ea;
  --steel-lit:  #f4f4f5;
  --steel-line: #cbcdd1;
  --signal:     #eaff00;   /* highlighter yellow */
  --pixel:      #8aa6da;   /* deck blue-script */
  --flesh:      #d59a6c;   /* slide 19 skin */
  --alarm:      #e23b2e;   /* the red questions */
  --muted:      #6c6e73;
  --paper:      #fbfbfb;

  /* type */
  --display: "VT323", "Courier New", ui-monospace, monospace;
  --sub:     "ARAR Reverse Rounded", "Quicksand", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --chrome-h: 58px;
  --edge: clamp(18px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--chrome-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: linear-gradient(180deg, #eceef0 0%, #e3e4e7 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ============================ CHROME ============================ */
.chrome {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--chrome-h);
  z-index: 100;
  background: var(--ink);
  color: #f4f4f4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--edge);
  gap: 16px;
  border-bottom: 1px solid #2a2a2a;
}
.chrome__left,
.chrome__right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.chrome__right { justify-content: flex-end; }
.chrome__center {
  font-family: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding-left: 0.42em;       /* optical: tracking pushes text right */
}

.brand { display: inline-flex; align-items: center; line-height: 0; }
.wordmark-img {
  height: 30px; width: auto; display: block;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.12));
}

.meta {
  display: flex; flex-direction: column; line-height: 1.15;
  font-size: 9.5px; letter-spacing: 0.06em; color: #c7c7c7;
  font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.meta__eq { color: var(--signal); font-weight: 600; }
.meta__year {
  font-size: 9.5px; line-height: 1.15; color: #c7c7c7;
  font-variant-numeric: tabular-nums;
}

.chrome__act {
  font-family: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 11px;
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
  transition: opacity .35s ease;
}
.chrome__act .dmd { color: #f4f4f4; font-size: 9px; }
.chrome__act .lbl { color: var(--signal); }

/* ============================ SECTIONS ============================ */
.act {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--chrome-h) + 7vh) var(--edge) 9vh;
  scroll-margin-top: var(--chrome-h);
}
.act__tag {
  font-family: var(--body);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: clamp(22px, 4vw, 40px);
  display: block;
  line-height: 1.55;
}
.act__tag .dmd { color: var(--ink); margin-right: 10px; vertical-align: 0.04em; }

/* inverted (black) beat */
.act--ink { background: var(--ink); color: var(--steel-lit); }
.act--ink .act__tag { color: #8c8c8c; }
.act--ink .act__tag .dmd { color: var(--signal); }

/* flow beat — content-height, top-aligned (tightens vertical gaps) */
.act--flow {
  min-height: 0;
  justify-content: flex-start;
  padding-top: clamp(64px, 11vh, 132px);
  padding-bottom: clamp(48px, 9vh, 108px);
}

/* polished-silver surface (uploaded texture) */
.act--silver {
  background: #b9bcc0 url("assets/silver.jpg") center / cover no-repeat;
}
.act--silver::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
}
.act--silver > * { position: relative; z-index: 1; }

/* ===================== SECTION BREAK — the signal ===================== */
/* Transparent animated ASCII art that fills the seam between The Shift
   and Act 1. Decorative; sits in normal flow so it owns the empty space. */
.break-signal {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 5vh, 64px) var(--edge);
}
.break-signal__art {
  width: min(100%, 500px);
  height: auto;
  display: block;
  /* belt-and-suspenders: even if a non-transparent frame ever loads,
     multiply keeps white reading as the light page behind it */
  mix-blend-mode: multiply;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 560px) {
  .break-signal { padding: clamp(8px, 4vh, 36px) var(--edge); }
  .break-signal__art { width: min(82vw, 340px); }
}

/* ============================ TYPE ============================ */
.kicker {
  font-family: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.44em;
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  color: var(--ink);
}
.act--ink .kicker { color: var(--steel-lit); }

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  margin: 0;
  overflow-wrap: break-word;
}
.d-xl  { font-size: clamp(48px, 8.4vw, 124px); }
.d-lg  { font-size: clamp(42px, 7.4vw, 108px); }
.d-md  { font-size: clamp(34px, 5.4vw, 74px); }

.lede {
  font-family: var(--body);
  font-size: clamp(15px, 1.8vw, 21px);
  max-width: 46ch;
  color: #2a2a2a;
}
.act--ink .lede { color: #cfd0d2; }
.muted { color: var(--muted); }

/* highlighter swipe */
.hl { position: relative; display: inline-block; padding: 0 .08em; color: var(--ink); isolation: isolate; }
.hl::before {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.06em; top: 14%; bottom: 8%;
  background: var(--signal);
  transform: skewX(-4deg) scaleX(0);
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.2,.8,.2,1) .15s;
}
.is-in .hl::before { transform: skewX(-4deg) scaleX(1); }

/* on dark sections the highlight stays on, so the word never blends into black */
.act--ink .hl { color: var(--ink); }
.act--ink .hl::before { transform: skewX(-4deg) scaleX(1); }

/* pixel-blue script accent (deck Beauty/Emotion/Story) */
.pixel {
  font-family: var(--sub);
  color: var(--pixel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alarm { color: var(--alarm); }

/* ============================ HERO ============================ */
.hero__grid { display: grid; gap: clamp(26px, 4vw, 46px); max-width: 1180px; min-width: 0; }
.hero__head { display: flex; flex-direction: column; gap: 6px; }
.hero__head .display + .display { margin-top: -0.04em; }

/* constellation */
.constellation { width: min(100%, 760px); height: auto; margin: 4px 0 6px; overflow: visible; }
.cns-line { fill: none; stroke: #2b2b2b; stroke-width: 1.4; opacity: .55;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.is-in .cns-line { animation: draw 1.4s ease forwards .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cns-star { fill: #0b0b0b; transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: scale(.4); }
.is-in .cns-star { animation: pop .6s cubic-bezier(.2,.9,.3,1.2) forwards; }
.is-in .cns-star.s2 { animation-delay: .35s; }
.is-in .cns-star.s3 { animation-delay: .6s; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.cns-label { font-family: var(--sub); font-weight: 600; fill: var(--pixel);
  font-size: 30px; letter-spacing: .04em; text-transform: uppercase; opacity: 0; }
.is-in .cns-label { animation: fadein .5s ease forwards; }
.is-in .cns-label.l2 { animation-delay: .45s; }
.is-in .cns-label.l3 { animation-delay: .7s; }
@keyframes fadein { to { opacity: 1; } }

.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 10px; }
.hero__note { font-size: 13.5px; letter-spacing: .02em; color: #3a3a3a; max-width: 42ch; }

/* ============================ BUTTONS ============================ */
.btn {
  font-family: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px; font-weight: 600;
  padding: 16px 30px 15px;
  border: 1px solid var(--ink);
  background: var(--ink); color: #f5f5f5;
  cursor: pointer; border-radius: 0;
  text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn .dmd { color: var(--signal); font-size: 11px; }
.btn:hover { background: var(--signal); color: var(--ink); transform: translateY(-2px); }
.btn:hover .dmd { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #f5f5f5; }
.btn--ghost:hover .dmd { color: var(--signal); }

/* big hero CTA */
.btn--hero {
  font-size: clamp(17px, 2.3vw, 27px);
  letter-spacing: 0.16em;
  padding: clamp(20px, 2.7vw, 32px) clamp(34px, 4.2vw, 64px);
  gap: 18px;
  box-shadow: 8px 8px 0 rgba(11,11,11,.16);
}
.btn--hero .dmd { font-size: .78em; }
.btn--hero:hover { box-shadow: 8px 8px 0 rgba(11,11,11,.28); }

/* ============================ STAT / SCIENCE ============================ */
.stat { display: grid; gap: clamp(20px, 3vw, 34px); max-width: 1100px; }
.stat__num {
  font-family: var(--display); font-weight: 400; line-height: .85;
  font-size: clamp(80px, 19vw, 280px); letter-spacing: 0;
  color: var(--steel-lit);
}
.stat__num small { font-size: .26em; letter-spacing: .3em; vertical-align: super;
  font-family: var(--sub); color: var(--signal); }
.equation {
  font-family: var(--sub); text-transform: uppercase; letter-spacing: .16em;
  font-size: clamp(14px, 2.4vw, 30px); font-weight: 600; line-height: 1.4;
  display: flex; flex-wrap: wrap; gap: .5em; align-items: baseline;
}
.equation .op { color: var(--signal); }
.equation .res {
  background: var(--signal); color: var(--ink); padding: 0 .35em;
}
.skin-chip {
  display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.18em;
  border-radius: 3px; background: #cf9264 url("assets/skin.jpg") center/cover;
  margin: 0 .15em; box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

/* nested "science" panel under Beauty (Act 1) — polished silver, black text, yellow accents */
.science {
  margin-top: clamp(30px, 5vw, 54px);
  max-width: 1100px;
  border: 1px solid var(--steel-line);
  border-top: 3px solid var(--signal);
  background:
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)),
    #b9bcc0 url("assets/silver.jpg") center / cover no-repeat;
  padding: clamp(26px, 4vw, 48px);
}
.science__tag {
  display: block;
  font-family: var(--body);
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: #4a4c50; margin-bottom: clamp(18px, 3vw, 30px);
}
.science .stat__num { color: var(--ink); }
.science .lede { color: #1d1d1d; }
.science .equation { color: var(--ink); }
.science__quote {
  font-family: var(--body); font-style: italic;
  font-size: clamp(16px, 2vw, 24px); line-height: 1.4; color: #1d1d1d;
  max-width: 34ch; margin: 6px 0 4px;
}
.science__cite {
  display: block; font-style: normal; font-family: var(--sub);
  text-transform: uppercase; letter-spacing: .18em; font-size: 11px;
  color: #4a4c50; margin-top: 10px;
}

/* emotional registers (Emotion act) */
.pairs {
  list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  font-family: var(--sub); text-transform: uppercase;
  letter-spacing: .14em; font-size: clamp(12px, 1.5vw, 16px);
}
.pairs li { white-space: nowrap; }
.pairs li span { color: var(--signal); margin: 0 .35em; }

/* ============================ THE APP — three moves ============================ */
.moves { display: grid; gap: 0; max-width: 1180px; border-top: 1px solid var(--steel-line); }
.move {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 4vw, 56px);
  align-items: baseline; padding: clamp(26px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--steel-line);
}
.move__arrow { font-family: var(--body); font-weight: 700; color: var(--signal);
  -webkit-text-stroke: 1px var(--ink); font-size: clamp(30px,4.4vw,52px); line-height: 1; }
.move__t { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 52px); letter-spacing: .01em; line-height: .98; }
.move__d { color: #3a3a3a; font-size: clamp(14px,1.5vw,17px); margin-top: 10px; max-width: 52ch; }

/* moves on the black System section */
.act--ink .moves { border-top-color: rgba(255,255,255,.16); }
.act--ink .move { border-bottom-color: rgba(255,255,255,.16); }
.act--ink .move__d { color: #cfd0d2; }

/* ============================ WAITLIST FORM ============================ */
.wait__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 84px);
  max-width: 1180px; align-items: center; }
.wait__copy .display { color: var(--ink); }
.wait__copy .lede { margin-top: 18px; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label {
  font-family: var(--sub); text-transform: uppercase; letter-spacing: .24em;
  font-size: 10.5px; font-weight: 600; color: var(--ink);
}
.field .opt { color: var(--muted); letter-spacing: .14em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  padding: 14px 15px; border: 1px solid var(--ink); background: rgba(255,255,255,.78);
  border-radius: 0; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: #9a9ca0; }
.input:focus { outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--signal); background: #fff; }
.req-note { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.req-note b { color: var(--ink); font-weight: 600; }
.form__err {
  font-size: 13px; color: var(--alarm); font-weight: 600; min-height: 0;
  letter-spacing: .01em; display: none;
}
.form__err.show { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.fineprint { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

/* ============================ SUCCESS TAKEOVER (skin) ============================ */
.welcome {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(40px, 8vh, 80px) var(--edge);
  background:
    linear-gradient(180deg, rgba(20,10,4,.32), rgba(20,10,4,.66)),
    #c98a5a url("assets/skin-raised.svg") center / cover no-repeat;
}
.welcome.show { display: flex; animation: rise .7s ease; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.welcome__card { position: relative; max-width: 680px; margin: auto; text-align: left; color: #fff; }
.welcome__eyebrow {
  font-family: var(--sub); text-transform: uppercase; letter-spacing: .42em;
  font-size: 12px; font-weight: 600; color: var(--signal);
  display: flex; gap: 10px; align-items: center;
}
.welcome h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(46px, 8.4vw, 100px); line-height: .96; letter-spacing: 0;
  margin: 18px 0 22px; color: #fff;
}
.welcome p { font-size: clamp(15px,1.8vw,19px); color: #f3e7dd; max-width: 52ch;
  text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.welcome p + p { margin-top: 14px; }
.welcome__sig { font-family: var(--sub); text-transform: uppercase; letter-spacing: .26em;
  font-size: 13px; margin-top: 26px; color: #fff; font-weight: 600; }
.welcome__detail { margin-top: 8px; font-size: 12.5px; color: #e9d6c7; letter-spacing: .02em; }
.welcome .btn { margin-top: 30px; background: #fff; color: var(--ink); border-color: #fff; }
.welcome .btn .dmd { color: var(--flesh); }
.welcome .btn:hover { background: var(--signal); border-color: var(--signal); }

/* ============================ FOOTER ============================ */
.foot {
  background: var(--ink); color: #cfcfcf;
  padding: 40px var(--edge);
  display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--sub); font-weight: 500;
}
.foot .meta__eq { color: var(--signal); }
.foot a { color: #cfcfcf; text-decoration: none; border-bottom: 1px solid #3a3a3a; }
.foot a:hover { color: var(--signal); border-color: var(--signal); }

/* ============================ REVEALS ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .wait__grid { grid-template-columns: 1fr; }
  .meta, .meta__year { display: none; }
  .chrome { grid-template-columns: auto 1fr auto; gap: 12px; }
  .chrome__center { display: none; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .move { grid-template-columns: 1fr; gap: 4px; }
  .chrome__act { font-size: 9px; letter-spacing: .12em; gap: 7px; }
  .wordmark-img { height: 24px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hl::before { transform: skewX(-4deg) scaleX(1); }
  .cns-line { stroke-dashoffset: 0; }
  .cns-star, .cns-label { opacity: 1; transform: none; }
}
