/*
  FBIDEA.COM — STYLES
  ===================
  Colours, fonts and animation timing live in the :root block below.
  Change a value there and it updates everywhere.
*/

:root {
  /* ---- Colours ---- */
  --yellow: #ffcb12;
  --black: #000000;
  --white: #ffffff;
  --error: #b00020;          /* error text on white/yellow */
  --error-on-dark: #ff8a80;  /* error text on black */

  /* ---- Fonts ---- */
  --font-wordmark: "Alfa Slab One", "Rockwell Extra Bold", Georgia, serif;
  --font-statement: "Graduate", "Rockwell", Georgia, serif;
  --font-ui: "Outfit", "Helvetica Neue", Arial, sans-serif;

  /* ---- Animation timing — matches the hover card:
          next slide slides up, current words lift 30% and fade, new words rise in ---- */
  --ease-wipe: cubic-bezier(.7, 0, .2, 1);
  --wipe-duration: .6s;      /* coloured panel sliding up */
  --rise-duration: .4s;      /* each line of text rising in (card: .4s) */
  --rise-delay: .15s;        /* first line starts after the panel (card: .15s) */
  --rise-stagger: .05s;      /* gap between lines (card: .15s → .2s → .25s) */
  --lift: -30vh;             /* how far outgoing words lift (card: -30%) */

  /* ---- Layout ---- */
  --gutter: clamp(16px, 3vw, 56px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.on-yellow :focus-visible { outline-color: var(--black); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--yellow); color: var(--black); padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(20px, 2.6vw, 40px) var(--gutter);
  pointer-events: none; /* only the links/buttons catch clicks */
  color: var(--yellow);
  transition: color .3s ease;
}
.site-header.is-on-yellow { color: var(--black); }
.nav-link, .access-trigger {
  pointer-events: auto;
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 1.35vw, 22px); letter-spacing: .01em;
  color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer;
  text-decoration: none; position: relative;
}
.nav-link::after, .access-trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-wipe);
}
.nav-link:hover::after, .access-trigger:hover::after,
.access-trigger[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Sections ---------- */
.panel {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(96px, 10vw, 140px) var(--gutter) clamp(72px, 8vw, 120px);
  overflow: hidden;
}
.panel--black { background: var(--black); color: var(--yellow); }
.panel--yellow { background: var(--yellow); color: var(--black); }

/* ---------- Landing (Reference 1) ---------- */
.hero { text-align: center; }
.lockup { display: inline-block; text-align: right; padding-bottom: clamp(64px, 6.4vw, 130px); }
.wordmark {
  margin: 0; font-family: var(--font-wordmark); font-weight: 400;
  color: var(--yellow); line-height: .9; letter-spacing: -.01em;
  font-size: clamp(56px, 13.2vw, 260px);
  white-space: nowrap;
}
.wordmark .dotcom { font-size: .42em; letter-spacing: 0; }
.tagline {
  margin: .08em 0 0; font-family: var(--font-wordmark); font-weight: 400;
  color: var(--white); line-height: 1; white-space: nowrap;
  font-size: clamp(24px, 5.1vw, 100px);
}
.asterisk-wrap { position: relative; display: inline-block; }
.entry-asterisk {
  display: inline-block; color: var(--yellow); text-decoration: none;
  transition: transform .5s var(--ease-wipe);
  cursor: pointer;
}
/* Entry row hangs from the asterisk, like the reference */
.entry-row {
  position: absolute; top: 100%; left: 0;
  display: flex; align-items: flex-start; gap: 12px;   /* fixed 12px between cursor and box */
  margin-top: .05em;
  font-size: clamp(11.2px, 1.365vw, 26.6px);   /* 70% of the original clamp(16px, 1.95vw, 38px): cursor, box, text and padding all scale from this */
  white-space: nowrap;
}
.cursor-slot { width: 2.2em; height: 2.6em; flex: none; margin-top: -.25em; }
.cursor-slot svg { width: 100%; height: 100%; overflow: visible; }
.entry-label {
  display: inline-flex; align-items: center; gap: .4em;
  margin-top: .9em;
  background: var(--yellow); color: var(--black);
  font-family: var(--font-ui); font-weight: 500;
  padding: .32em .9em .38em; text-decoration: none; line-height: 1.1;
  transition: transform .4s var(--ease-wipe);
}
.entry-label .entry-arrow {
  display: inline-block; width: 0; overflow: hidden; opacity: 0;
  transition: width .4s var(--ease-wipe), opacity .3s;
}
/* The asterisk never moves. Once clicked it turns white (script adds .is-clicked). */
.entry-asterisk.is-clicked { color: var(--white); }
.entry-label:hover .entry-arrow, .entry-label:focus-visible .entry-arrow { width: 1em; opacity: 1; }

/* Cursor + "Investigate here" box — one group (script.js).
   At rest: sits in its default spot beside the asterisk, arrow bouncing.
   Tracking (mouse moving): the whole group follows the real pointer exactly,
   arrow tip on the pointer, no easing. 0.5s without movement → back to rest. */
@keyframes arrow-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.entry-row .cursor-slot svg { animation: arrow-bounce 1.1s ease-in-out infinite; }
.entry-row.is-tracking .cursor-slot svg { animation: none; }
.wordmark-art .entry-row.is-tracking, .entry-row.is-tracking {
  position: fixed; left: 0; top: 0; margin: 0; z-index: 30;
  pointer-events: none; will-change: transform; transition: none;
}
.entry-row.is-tracking .cursor-slot { margin-top: 0; }
.entry-row.is-tracking .entry-label { pointer-events: auto; cursor: pointer; transition: none; }
.entry-row.is-tracking.is-hidden { visibility: hidden; }
.entry-row.is-flipped { flex-direction: row-reverse; }
.entry-row.is-flipped .cursor-slot svg { transform: scaleX(-1); }
/* While tracking, the arrow sits exactly on the pointer, so the system pointer is hidden on the first screen */
.cursor-hidden #top, .cursor-hidden #top * { cursor: none; }

/* ---------- Statement sections (References 2, 3, 4) ---------- */
.statement {
  margin: 0; text-align: center; text-transform: uppercase;
  font-family: var(--font-statement); font-weight: 400;
  line-height: 1.04; letter-spacing: .005em;
  font-size: clamp(44px, 10.2vw, 200px);
}
.statement .line { display: block; }
.statement:focus { outline: none; }
.next-link {
  position: absolute; left: 0; right: 0; margin: 0 auto; width: fit-content;
  bottom: clamp(24px, 4vw, 48px);
  display: flex; align-items: center; gap: .5em;
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
  font-size: clamp(13px, 1vw, 16px); letter-spacing: .06em;
  text-decoration: none; color: inherit; padding: 8px 4px;
}
.next-link .chev { display: inline-block; transition: transform .4s var(--ease-wipe); }
.next-link:hover .chev, .next-link:focus-visible .chev { transform: translateY(5px); }

/* ---------- Contact (Reference 5) ---------- */
.contact { width: 100%; max-width: 1240px; text-align: center; }
.contact-title { margin: 0 0 clamp(24px, 3vw, 48px); line-height: .95; text-transform: uppercase; }
.contact-title .big {
  display: block; font-family: var(--font-wordmark); font-weight: 400;
  font-size: clamp(44px, 8vw, 150px); letter-spacing: .01em;
}
.contact-title .small {
  display: block; font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(22px, 4.6vw, 86px); letter-spacing: .01em;
}
.form-card {
  background: var(--white); color: var(--black);
  border-radius: clamp(20px, 2.2vw, 36px);
  padding: clamp(24px, 3.4vw, 56px) clamp(20px, 8vw, 160px);
  text-align: left;
}
.field { margin: 0 0 clamp(14px, 1.4vw, 22px); }
.field label {
  display: block; margin: 0 0 6px;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 1.2vw, 20px); letter-spacing: .01em;
}
.field input, .field textarea {
  width: 100%; border: 2.5px solid var(--black); border-radius: 14px;
  padding: 12px 16px; font-size: 18px; background: var(--white); color: var(--black);
  transition: box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 6px 0 0; color: var(--error); font-size: 15px; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.honeypot { display: none; }
.form-actions { text-align: center; margin-top: clamp(20px, 2.4vw, 40px); }
.submit-btn {
  min-width: 220px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--black); color: var(--white);
  font-weight: 700; text-transform: uppercase; font-size: clamp(16px, 1.3vw, 22px);
  letter-spacing: .02em; padding: 12px 40px;
  transition: transform .3s var(--ease-wipe), background .2s;
}
.submit-btn:hover { transform: translateY(-2px); }
.submit-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status {
  margin: 16px auto 0; max-width: 640px; font-weight: 600; font-size: 17px; line-height: 1.4;
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-success {
  background: var(--white); color: var(--black); border-radius: clamp(20px, 2.2vw, 36px);
  padding: clamp(32px, 5vw, 72px); font-size: clamp(18px, 1.6vw, 26px); font-weight: 600;
  line-height: 1.4; text-align: center;
}
.form-success:focus { outline: none; }

.form-note {
  max-width: 560px; margin: 14px auto 0; text-align: center;
  font-size: 13px; line-height: 1.45; font-weight: 500; opacity: .8;
}

/* ---------- Chat box (bottom-right, visible on every slide) ---------- */
.chat { position: fixed; right: var(--gutter); bottom: clamp(16px, 3vh, 28px); z-index: 50; transition: opacity .3s ease, visibility 0s; }
.chat-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--black); border: 2px solid var(--black);
  border-radius: 999px; padding: 10px 18px 10px 14px; cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em;
  box-shadow: 0 0 0 6px var(--black);   /* sits cleanly over the logo strip */
}
.chat-toggle svg { width: 20px; height: 20px; }
.chat-toggle:hover { background: var(--white); }
.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 14px);
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  background: var(--black); color: var(--white); border: 2px solid var(--yellow); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 18px; border-bottom: 1px solid rgba(255, 203, 18, .35); }
.chat-head h2 { margin: 0; color: var(--yellow); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.chat-close { width: 36px; height: 36px; border: 0; background: none; color: var(--white); font-size: 24px; cursor: pointer; border-radius: 50%; }
.chat-close:hover { color: var(--yellow); }
.chat-log { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; }
.chat-bubble { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.4; max-width: 85%; }
.chat-bubble--us { background: #1c1c1c; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble--you { background: var(--yellow); color: var(--black); align-self: flex-end; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.chat-form { padding: 0 16px 16px; display: grid; gap: 8px; }
.chat-form textarea, .chat-form input {
  width: 100%; border: 2px solid #444; border-radius: 12px; background: var(--white); color: var(--black);
  padding: 10px 12px; font-size: 16px; resize: none;
}
.chat-form textarea:focus, .chat-form input:focus { outline: none; border-color: var(--yellow); }
.chat-form [aria-invalid="true"] { border-color: var(--error-on-dark); }
.chat-error { margin: 0; color: var(--error-on-dark); font-size: 14px; font-weight: 600; }
.chat-error:empty { display: none; }
.chat-send {
  justify-self: end; border: 0; border-radius: 999px; background: var(--yellow); color: var(--black);
  font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 9px 22px; cursor: pointer;
}
.chat-send[disabled] { opacity: .6; cursor: progress; }

/* ---------- Access-code overlay (References 6 & 7) ---------- */
.access-dialog {
  border: 0; padding: 0; background: transparent; color: var(--white);
  max-width: none; max-height: none; overflow: visible;
  position: fixed; inset: clamp(64px, 6.5vw, 100px) var(--gutter) auto auto;
  margin: 0; width: min(560px, calc(100vw - 2 * var(--gutter)));
}
.access-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.access-panel {
  position: relative; background: var(--black);
  border: 2px solid var(--yellow); border-radius: 22px;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(24px, 2.6vw, 34px);
  text-align: center;
}
.access-dialog[open] .access-panel { animation: panel-in var(--wipe-duration) var(--ease-wipe) both; }
@keyframes panel-in { from { clip-path: inset(100% 0 0 0 round 22px); transform: translateY(16px); } to { clip-path: inset(0 0 0 0 round 22px); transform: none; } }
.access-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--white);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.access-close:hover { color: var(--yellow); }
.access-title {
  margin: 0 0 22px; padding: 0 40px; color: var(--yellow); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 38px); letter-spacing: .01em; line-height: 1;
}
.code-box {
  border: 2px solid var(--yellow); border-radius: 28px;
  padding: clamp(18px, 2vw, 28px) clamp(14px, 2vw, 28px) clamp(14px, 1.6vw, 22px);
  margin: 0; min-inline-size: 0;
}
.code-inputs { display: flex; justify-content: center; gap: clamp(10px, 1.6vw, 22px); }
.code-inputs input {
  width: clamp(54px, 7vw, 84px); aspect-ratio: 1; border: 0; border-radius: 14px;
  background: var(--white) no-repeat center 74% / 38% 5px;
  background-image: linear-gradient(var(--black), var(--black));
  color: var(--black); text-align: center; text-transform: uppercase;
  font-family: var(--font-ui); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px);
  caret-color: var(--black);
}
.code-inputs input:not(:placeholder-shown) { background-image: none; }
.code-inputs input:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.code-box legend { padding: 0; }
.code-label {
  display: block; margin-top: 14px; font-weight: 700; text-transform: uppercase;
  font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .02em;
}
.code-error { color: var(--error-on-dark); font-weight: 600; margin: 14px 0 0; }
.code-error:empty { display: none; }
.code-shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.unlock-btn {
  margin-top: 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--yellow); color: var(--black);
  font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: .03em;
  padding: 11px 34px; transition: transform .3s var(--ease-wipe);
}
.unlock-btn:hover { transform: translateY(-2px); }
.access-help {
  margin: 22px 0 0; font-weight: 700; text-transform: uppercase; line-height: 1.25;
  font-size: clamp(14px, 1.45vw, 20px);
}
.access-help a { color: var(--yellow); text-decoration: none; }
.access-help a:hover { text-decoration: underline; }

/* ---------- Portfolio holding page ---------- */
.holding { text-align: center; }
.holding h1 { margin: 0; color: var(--yellow); line-height: 1; }
.holding .soon {
  display: block; font-family: var(--font-statement); font-weight: 400;
  font-size: clamp(48px, 10vw, 190px); text-transform: uppercase;
}
.holding .what {
  display: block; margin-top: .3em; font-family: var(--font-ui); font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(18px, 2.4vw, 40px);
}


/* ---------- Supplied artwork (PNGs) ----------
   Shown at their original proportions; transparency preserved. */
#siteHeader { justify-content: space-between; }   /* music toggle top-left, "Secure access code" top-right */

/* Music toggle (top-left) */
.sound-toggle {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: inherit;
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(12px, 1vw, 15px);
}
.sound-toggle svg { width: 22px; height: 22px; flex: none; }
.sound-toggle .sound-waves { display: none; }
.sound-toggle[aria-pressed="true"] .sound-waves { display: inline; }
.sound-toggle[aria-pressed="true"] .sound-off { display: none; }
.site-header:not(.is-on-yellow) .sound-toggle { text-shadow: 0 0 10px rgba(0, 0, 0, .9), 0 0 3px rgba(0, 0, 0, .9); }
.site-header:not(.is-on-yellow) .sound-toggle svg { filter: drop-shadow(0 0 3px rgba(0, 0, 0, .95)) drop-shadow(0 0 8px rgba(0, 0, 0, .8)); }
.wordmark-art { position: relative; display: block; margin: 0; width: min(59vw, 1260px); }
.wordmark-art img { display: block; width: 100%; height: auto; }
.wordmark-art .asterisk-wrap { position: absolute; display: block; }
.wordmark-art .entry-asterisk {
  display: block; width: 100%; height: 100%;
  background-color: #ffca0f;               /* the PNG's own yellow */
  -webkit-mask: url("/assets/asterisk.png") center / 100% 100% no-repeat;
          mask: url("/assets/asterisk.png") center / 100% 100% no-repeat;
  transition: none;
}
.wordmark-art .entry-asterisk.is-clicked { background-color: var(--white); }
/* Resting position of the cursor + "Investigate here" group, anchored to the tagline.
   Percentages are of the asterisk's box (h = its height, w = its width) inside the wordmark artwork:
   the tagline's lowest point sits 63% of h below the asterisk box, so 163% = just under the tagline.
   --rest-gap adds breathing room below it; the arrow tip lines up under the asterisk's centre. */
.wordmark-art .entry-row {
  --rest-gap: 18%;                                   /* space between tagline and arrow tip (share of h) */
  top: calc(163% + var(--rest-gap)); left: calc(50% - .15em);   /* .15em = arrow tip offset in the arrow graphic */
  margin-top: 0; text-align: left;
}
.wordmark-art .entry-row:not(.is-tracking) .cursor-slot { margin-top: -.14em; }   /* tip exactly at the anchor line */

.statement { line-height: 0; }
.statement-img {
  display: block; height: auto; margin: 0 auto;
  /* Same scale for every statement PNG, so letters match in size across slides */
  width: min(calc(var(--w) * .0131vw), calc(var(--w) * .25px), calc(100vw - 2 * var(--gutter)));
}
.contact-title { line-height: 0; }
.contact-img {
  display: block; height: auto; margin: 0 auto;
  width: min(44vw, 940px);
  /* the PNG has transparent space under the text; pull the form up to sit where the reference has it */
  margin-bottom: calc(min(44vw, 940px) * -270 / 3354);
}

/* Contact box: 75% of its previous size */
#formWrap { max-width: 930px; margin: 0 auto; }
#formWrap .form-card {
  border-radius: clamp(15px, 1.65vw, 27px);
  padding: clamp(18px, 2.55vw, 42px) clamp(15px, 6vw, 120px);
}

/* ---------- The animatic ----------
   Only active when script.js adds .anim to <html> (and the visitor hasn't asked
   for reduced motion). Without it, everything is simply visible. */
/* ---------- Asterisk colour loop: hard switch yellow ↔ white every 0.2s, from page load ----------
   step-end = no fade: it holds yellow for half the cycle, then white for the other half. */
@keyframes asterisk-loop { 0%, 100% { background-color: #ffca0f; } 50% { background-color: #ffffff; } }
.wordmark-art .entry-asterisk { animation: asterisk-loop var(--asterisk-loop, .4s) step-end infinite; }
.wordmark-art .entry-asterisk.is-clicked { animation: none; background-color: var(--white); }

/* Asterisk transition (script.js): the next slide's colour seen through a growing asterisk */
.asterisk-reveal {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  -webkit-mask-image: url("/assets/asterisk-mask.png"); mask-image: url("/assets/asterisk-mask.png");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  will-change: mask-size, mask-position;
}
.is-transitioning .entry-row { visibility: hidden; }



/* ---------- Logo strip (bottom of the landing page) ----------
   One line, slides right → left forever. Logos keep their own colours and proportions;
   --s evens out their visual size. */
/* Bottom of the first screen: the line of copy, then the logo strip beneath it */
.landing-foot {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4.5vh, 52px);
  display: flex; flex-direction: column; gap: clamp(18px, 3vh, 34px);
}
.landing-line {
  margin: 0 auto; padding: 0 var(--gutter); max-width: 100%;
  text-align: center; color: var(--white);
  font-family: var(--font-ui); font-weight: 400; letter-spacing: .02em; line-height: 1.3;
  font-size: clamp(15px, 1.8vw, 34px);
  text-wrap: balance;
}
.landing-line strong { color: var(--yellow); font-weight: 600; }
.landing-line__part { white-space: nowrap; }   /* small screens break neatly between the two halves */
@media (min-width: 900px) { .landing-line { white-space: nowrap; } }

.logo-strip {
  --logo-h: 44px;          /* base logo height */
  --logo-gap: 88px;        /* space after each logo */
  --logo-duration: 120s;   /* one full loop; lower = faster (keeps a steady ~45px/s) */
  position: relative; overflow: hidden; pointer-events: none;
}
.logo-track { display: flex; width: max-content; animation: logo-slide var(--logo-duration) linear infinite; will-change: transform; }
.logo-set { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; flex: none; }
.logo-set li { flex: none; padding-right: var(--logo-gap); display: flex; align-items: center; }
.logo-set img { display: block; height: calc(var(--logo-h) * var(--s, 1)); width: auto; }
@keyframes logo-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }   /* right → left: slides one full copy, then repeats seamlessly */
.anim .stack .landing-foot { transition: translate var(--wipe-duration) var(--ease-wipe), opacity .4s ease; }
.anim .stack.is-covered .landing-foot { translate: 0 var(--lift); opacity: 0; }
@media (max-width: 640px) {
  .logo-strip { --logo-h: 30px; --logo-gap: 48px; --logo-duration: 74s; }
}

/* ---------- Spotlights (first screen) ----------
   One beam image, mirrored for the right-hand light. Soft edges, transparent background,
   so the page stays pure black between and below them. */
.spotlights { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.spotlight {
  position: absolute; top: 0;
  width: max(50vw, min(calc(100svh * 836 / 941), 64vw)); aspect-ratio: 836 / 941;   /* = the supplied image at full width */
  background: url("/assets/spotlight-left.webp") left top / 100% 100% no-repeat;
  mix-blend-mode: screen;               /* where beams overlap on narrow screens, light adds up */
}
.spotlight--left { left: 0; }
.spotlight--right { right: 0; transform: scaleX(-1); }
#top > .hero { position: relative; z-index: 1; }
#top > .landing-foot { z-index: 1; }
/* Keeps "Secure access code" readable where it sits over the bright right-hand light */
.site-header:not(.is-on-yellow) .access-trigger { text-shadow: 0 0 10px rgba(0, 0, 0, .9), 0 0 3px rgba(0, 0, 0, .9); }
@media (max-width: 640px) { .spotlight { width: 82vw; } }

/* ---------- Opening sequence ----------
   html.intro is set in <head> before anything paints (skipped for reduced motion).
   Each step finishes before the next begins:
   1) plain black ............................ --intro-black
   2) spotlights fade on ...................... --lights-duration
   3) FBIdea.com wordmark + tagline animate on . --wordmark-in
   4) cursor + "Investigate here" box fade in .. --cursor-in
   5) copy line scrambles into place ........... script.js (SCRAMBLE_MS), adds .intro-line
   6) logo strip (plus header + chat) fade in .. --strip-in, script.js adds .intro-logos */
:root {
  --intro-black: .5s; --lights-duration: 2s; --wordmark-in: 1s; --cursor-in: .7s; --strip-in: .9s;
}
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-wordmark {
  from { opacity: 0; transform: scale(.965); filter: blur(8px); }
  to   { opacity: 1; transform: none;        filter: blur(0); }
}
.intro .spotlights {
  animation: intro-fade var(--lights-duration) cubic-bezier(.45, 0, .55, 1) var(--intro-black) both;
}
.intro .wordmark-art {
  animation: intro-wordmark var(--wordmark-in) cubic-bezier(.2, .7, .2, 1) calc(var(--intro-black) + var(--lights-duration)) both;
}
.intro .entry-row {
  animation: intro-fade var(--cursor-in) cubic-bezier(.45, 0, .25, 1) calc(var(--intro-black) + var(--lights-duration) + var(--wordmark-in)) both;
}
.intro .landing-line { opacity: 0; }
.intro.intro-line .landing-line { opacity: 1; }
.intro .logo-strip, .intro .site-header, .intro .chat { opacity: 0; }
.intro.intro-logos .logo-strip,
.intro.intro-logos .site-header,
.intro.intro-logos .chat { animation: intro-fade var(--strip-in) cubic-bezier(.45, 0, .25, 1) both; }
/* ScrambleText cells: one per letter, each fixed to the final letter's width so nothing shifts */
.scramble-cell { display: inline-block; white-space: pre; text-align: left; }
.anim #top .rise { opacity: 1; transform: none; transition: none; }

/* Slide animatic — the hover card, played between slides.
   Each slide holds still (sticky) while the next slides up over it.
   When the next slide starts covering it (.is-covered), its words lift and fade
   exactly like the card's front. The new slide's words rise in (.is-in).
   Scrolling settles on each slide (snap). All of it reverses on the way back up. */
@media (min-height: 520px) {
  .anim .stack { position: sticky; top: 0; }
  html.anim { scroll-snap-type: y mandatory; }
}
.snap-track { position: absolute; inset: 0 0 auto 0; pointer-events: none; visibility: hidden; }
.snap-track > div { scroll-snap-align: start; scroll-snap-stop: always; }
#top { z-index: 1; } #intro-1 { z-index: 2; } #intro-2 { z-index: 3; } #intro-3 { z-index: 4; } #contact { z-index: 5; }
main { position: relative; }
.anim .stack .lockup, .anim .stack .statement {
  transition: translate var(--wipe-duration) var(--ease-wipe), opacity .4s ease;
}
.anim .stack .next-link {
  transition: translate var(--wipe-duration) var(--ease-wipe),
    opacity var(--rise-duration) ease calc(var(--rise-delay) + var(--i, 0) * var(--rise-stagger)),
    transform var(--rise-duration) var(--ease-wipe) calc(var(--rise-delay) + var(--i, 0) * var(--rise-stagger));
}
.anim .stack.is-covered .lockup,
.anim .stack.is-covered .statement { translate: 0 var(--lift); opacity: 0; }
.anim .stack.is-covered .next-link { translate: 0 var(--lift); visibility: hidden; transition: translate var(--wipe-duration) var(--ease-wipe), visibility 0s .4s; }

.anim .rise {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--rise-duration) ease, transform var(--rise-duration) var(--ease-wipe);
  transition-delay: calc(var(--rise-delay) + var(--i, 0) * var(--rise-stagger));
}
.anim .is-in .rise { opacity: 1; transform: none; }
/* Leaving (scrolling back up): lines drop away at once, like un-hovering the card */
.anim .reveal:not(.is-in) .rise, .anim .reveal-text:not(.is-in) .rise { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
  .form-card { padding: 28px clamp(20px, 6vw, 56px); }
}
@media (max-width: 640px) {
  .wordmark-art { width: 88vw; }
  .statement-img { width: min(calc(var(--w) * .0153vw), calc(100vw - 2 * var(--gutter))); }
  .contact-img { width: 88vw; margin-bottom: calc(88vw * -270 / 3354); }
  .wordmark { font-size: 16.5vw; }
  .tagline { font-size: 6.4vw; }
  .entry-row { font-size: 11.2px; }   /* 70% of 16px */
  .statement { font-size: 12.4vw; }
  .contact-title .small { font-size: 6.2vw; }
  .access-dialog { inset: auto var(--gutter) var(--gutter) var(--gutter); width: auto; }
  .field input, .field textarea { font-size: 16px; }
}
