/* FyreFly Systems components, shared by FyreFly Scientific and FyreFly Industrial.
   Loads after tokens.css; every colour, length and curve is a token. Class prefix ff-.
   The site picks its accent: .ff-page (Scientific, ember) or .ff-page.ff-page--industrial (alef violet).
   Motion state arrives as custom properties set by bundle.js:
   --ff-p (0..1 progress), --ff-sp (split progress inside the stage), --ff-radius (stepped hero radius). */

/* ===== Page and accent ===== */
.ff-page {
  --ff-vh: 100svh;
  --accent: var(--ember);
  --accent-ink: var(--ember-ink);
  --on-accent: var(--on-ember);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stage-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ff-page--industrial {
  --accent: var(--alef);
  --accent-ink: var(--alef-ink);
  --on-accent: var(--on-alef);
}
.ff-page *, .ff-page *::before, .ff-page *::after { box-sizing: border-box; }
.ff-page :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.ff-page img { display: block; max-width: 100%; }
.ff-scroller {
  height: 100%;
  overflow-y: auto;
  scroll-padding-top: var(--topbar-height);
  scroll-snap-type: y proximity;
}
.ff-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.ff-snap { scroll-snap-align: start; }

/* The tick: a hairline that starts with 16px of the site accent and runs on to the edge. */
.ff-tick {
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0 var(--space-4), var(--rule) var(--space-4));
}

/* ===== Type helpers ===== */
.ff-headline {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.ff-title { font-size: 26px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; margin: 0; }
.ff-lede { font-size: 20px; line-height: 1.55; margin: 0; }
.ff-body { font-size: 16px; line-height: 1.65; margin: 0; max-width: 62ch; }
.ff-small { font-size: 13px; line-height: 1.5; margin: 0; }
.ff-muted { color: var(--ink-muted); }
.ff-link {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 40%, transparent);
  transition: border-color var(--dur-hover) var(--ease-plain);
}
.ff-link:hover { border-bottom-color: var(--accent-ink); }
.ff-stack > * + * { margin-top: var(--space-5); }

/* ===== Top bar ===== */
.ff-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--topbar-height);
  padding: 0 var(--gutter);
  background: var(--stage-100);
  color: var(--ink);
}
.ff-topbar::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0 var(--space-4), var(--rule) var(--space-4));
}
.ff-wordmark {
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.ff-wordmark span { color: var(--accent); }
[data-theme="dark"] .ff-page--industrial .ff-wordmark span, .ff-page--industrial .ff-footer .ff-wordmark span { color: var(--alef-soft); }
.ff-nav { display: flex; align-items: center; gap: var(--space-6); }
.ff-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat;
  transition: background-size var(--dur-hover) var(--ease-out-quart);
}
.ff-nav__link:hover, .ff-nav__link[aria-current="page"] { background-size: 100% 1px; }
.ff-nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.ff-lang {
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-plain), color var(--dur-hover) var(--ease-plain);
}
.ff-lang:hover { background: var(--ink); color: var(--stage-100); }
.ff-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.ff-menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-hover) var(--ease-plain), opacity var(--dur-hover) var(--ease-plain);
}
.ff-topbar.is-open .ff-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ff-topbar.is-open .ff-menu-btn span:nth-child(2) { opacity: 0; }
.ff-topbar.is-open .ff-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Division dot: marks the link to the other site (footer only). */
.ff-page [data-division]::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--ember);
  vertical-align: 0.08em;
}
.ff-page [data-division="industrial"]::before { background: var(--alef); }

/* ===== Buttons ===== */
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-plain), color var(--dur-hover) var(--ease-plain), border-color var(--dur-hover) var(--ease-plain);
}
.ff-btn--ink { background: var(--ink); color: var(--stage-100); border-color: var(--ink); }
.ff-btn--ink:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ff-btn--ember { background: var(--ember); color: var(--on-ember); border-color: var(--ember); }
.ff-btn--ember:hover { background: var(--ink); border-color: var(--ink); color: var(--stage-100); }
.ff-btn--alef { background: var(--alef); color: var(--on-alef); border-color: var(--alef); }
.ff-btn--alef:hover { background: var(--alef-hover); border-color: var(--alef-hover); }
.ff-btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.ff-btn--line:hover { background: var(--ink); color: var(--stage-100); }
.ff-btn--quiet {
  background: transparent;
  color: var(--ink);
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ff-btn--quiet:hover { color: var(--accent-ink); }
.ff-btn[disabled] { opacity: 0.45; pointer-events: none; }
.ff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }

/* ===== CTA link: the underline holds still while the arrow walks away ===== */
.ff-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: gap var(--dur-cta) var(--ease-out-quart);
}
.ff-cta:hover, .ff-cta:focus-visible { gap: 20px; }

/* ===== Slot text ===== */
.ff-slot {
  display: block;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.ff-slot__row { display: flex; flex-wrap: wrap; column-gap: 0.32em; row-gap: 0.08em; }
.ff-word { display: inline-flex; white-space: nowrap; }
.ff-letter {
  display: inline-block;
  min-width: 0.6em;
  text-align: center;
  transition: color var(--dur-hover) var(--ease-plain);
}
.ff-slot--on-image { color: var(--on-image); text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5); }
.ff-slot--on-light { color: var(--on-image-ink); }
.ff-letter.is-sweep { animation: ff-sweep var(--dur-sweep) var(--ease-plain); }
@keyframes ff-sweep { 50% { color: var(--accent); } }

/* ===== Stage: hero window in front, split behind ===== */
.ff-stage { position: relative; --ff-p: 0; --ff-sp: 1; }
.ff-stage__sticky { position: relative; }
.ff-stage.is-staged { height: calc((var(--ff-vh) - var(--topbar-height)) * 2); }
.ff-stage.is-staged .ff-stage__sticky {
  position: sticky;
  top: var(--topbar-height);
  height: calc(var(--ff-vh) - var(--topbar-height));
  overflow: hidden;
}
.ff-stage__end {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  top: calc(100% - (var(--ff-vh) - var(--topbar-height)));
  scroll-snap-align: start;
  pointer-events: none;
}
.ff-stage:not(.is-staged) .ff-stage__end { display: none; }

/* ===== Hero window ===== */
.ff-hero {
  position: relative;
  overflow: hidden;
  height: calc(var(--ff-vh) - var(--topbar-height) - var(--space-4));
  min-height: 460px;
  margin: 0 var(--space-4) var(--space-4);
  background: var(--stage-300);
  color: var(--on-image);
  transform-origin: center top;
}
.ff-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% center;
}
.ff-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--scrim);
}
.ff-hero--light { color: var(--on-image-ink); background: var(--stage-200); }
.ff-hero--light::before {
  background: linear-gradient(90deg, var(--veil) 0%, color-mix(in srgb, var(--veil) 55%, transparent) 50%, rgba(255, 255, 255, 0) 80%);
}
.ff-hero__content {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 15%;
}
.ff-hero__title { margin: 0; font: inherit; }
.ff-hero__advance {
  position: relative;
  display: block;
  margin: 0 0 0 -40px;
  padding: 24px 40px 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-plain);
}
.ff-hero__advance:hover { background: rgba(0, 0, 0, 0.15); }
.ff-hero--light .ff-hero__advance:hover { background: rgba(255, 255, 255, 0.35); }
.ff-hero__advance:hover .ff-letter { color: var(--accent); }
.ff-page .ff-hero__advance:focus-visible { outline: 3px solid var(--focus-on-image); outline-offset: -4px; }
.ff-page .ff-hero--light .ff-hero__advance:focus-visible { outline-color: var(--on-image-ink); }
.ff-hero__hint {
  position: absolute;
  left: 40px;
  bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-hover) var(--ease-plain), transform var(--dur-hover) var(--ease-plain);
  pointer-events: none;
}
.ff-hero__advance:hover .ff-hero__hint, .ff-hero__advance:focus-visible .ff-hero__hint { opacity: 1; transform: none; }
.ff-hero__lede {
  max-width: 36ch;
  margin: var(--space-3) 0 0;
  font-size: 20px;
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.ff-hero--light .ff-hero__lede { text-shadow: none; }
.ff-hero__credit {
  position: absolute;
  z-index: 2;
  right: var(--space-5);
  bottom: var(--space-4);
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-image);
  text-decoration: none;
  opacity: 0.85;
}
.ff-hero--light .ff-hero__credit { color: var(--on-image-ink); background: color-mix(in srgb, var(--veil) 80%, transparent); opacity: 1; }
.ff-hero__credit:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.ff-stage.is-staged .ff-hero {
  position: absolute;
  inset: 0 var(--space-4) var(--space-4);
  height: auto;
  min-height: 0;
  margin: 0;
  z-index: 3;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateY(calc(var(--ff-p) * -100%)) scale(calc(1 - var(--ff-p) * 0.5)) rotateX(calc(var(--ff-p) * -12deg));
  opacity: calc(1 - var(--ff-p));
  border-radius: var(--ff-radius, 0);
}
.ff-stage.is-staged.is-live .ff-hero { pointer-events: none; }

/* ===== Split: text left, revealed image right (or flipped) ===== */
.ff-split {
  --ff-p: 1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(var(--ff-vh) - var(--topbar-height));
  background: var(--stage-100);
}
.ff-stage.is-staged .ff-split {
  --ff-p: var(--ff-sp);
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: var(--ff-sp);
  pointer-events: none;
}
.ff-stage.is-staged.is-live .ff-split { pointer-events: auto; }
.ff-split::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 1px;
  height: calc(var(--ff-p) * 60%);
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  pointer-events: none;
}
.ff-split__text {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-9) var(--space-8) var(--space-9) var(--gutter);
}
.ff-split__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 420px;
  background: var(--stage-200);
  transform: scaleX(var(--ff-p));
  transform-origin: left center;
  opacity: min(calc(var(--ff-p) * 2), 1);
}
.ff-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ff-split--flip .ff-split__media { order: -1; transform-origin: right center; }
.ff-split--flip .ff-split__text { padding: var(--space-9) calc(var(--gutter) + var(--space-7)) var(--space-9) var(--space-8); }
.ff-split__credit {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: color-mix(in srgb, var(--stage-100) 85%, transparent);
  text-decoration: none;
}
.ff-split__credit:hover { text-decoration: underline; text-underline-offset: 3px; }
.ff-rise {
  opacity: min(calc(var(--ff-p) * 1.5), 1);
  transform: translateY(calc(20px - var(--ff-p) * 20px));
}
.ff-trail {
  --ff-q: clamp(0, calc((var(--ff-p) - 0.15) * 1.6), 1);
  opacity: var(--ff-q);
  transform: translateY(calc(20px - var(--ff-q) * 20px));
}

/* ===== Lore frame (Scientific) ===== */
.ff-lore {
  --ff-lore-tick: var(--space-4);
  position: relative;
  width: 100%;
  margin-top: var(--space-6);
}
.ff-lore__corner { position: absolute; inset: 0; pointer-events: none; }
.ff-lore__card::before, .ff-lore__card::after,
.ff-lore__corner::before, .ff-lore__corner::after { content: ''; position: absolute; }
.ff-lore__card::before {
  top: -1px; left: 100%; width: 100vw; height: 1px;
  background: linear-gradient(to right, var(--accent) 0 var(--ff-lore-tick), var(--rule) var(--ff-lore-tick));
}
.ff-lore__card::after {
  bottom: 100%; right: -1px; width: 1px; height: 100vh;
  background: linear-gradient(to top, var(--accent) 0 var(--ff-lore-tick), var(--rule) var(--ff-lore-tick));
}
.ff-lore__corner::before {
  bottom: -1px; right: 100%; width: 100vw; height: 1px;
  background: linear-gradient(to left, var(--accent) 0 var(--ff-lore-tick), var(--rule) var(--ff-lore-tick));
}
.ff-lore__corner::after {
  top: 100%; left: -1px; width: 1px; height: 100vh;
  background: linear-gradient(to bottom, var(--accent) 0 var(--ff-lore-tick), var(--rule) var(--ff-lore-tick));
}
.ff-lore__card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lore) 0 var(--radius-lore) 0;
  padding: 26px 30px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}
.ff-lore__body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-muted); max-width: 62ch; }
.ff-term {
  position: relative;
  color: var(--ink);
  border-bottom: 1px dotted var(--ink-muted);
  cursor: help;
  transition: color 0.2s var(--ease-plain), border-color 0.2s var(--ease-plain);
}
.ff-term:hover, .ff-term:focus-visible { color: var(--accent-ink); border-bottom-color: var(--accent-ink); outline: none; }
.ff-term__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  width: max-content;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--night);
  color: var(--on-night);
  box-shadow: var(--shadow-tip);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease-plain), transform 0.18s var(--ease-plain), visibility 0.18s;
}
.ff-term__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--night);
}
.ff-term:hover .ff-term__tip, .ff-term:focus-visible .ff-term__tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== Sections, definition lists, steps ===== */
.ff-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-9) calc(var(--gutter) + var(--space-7)) var(--space-9) var(--gutter);
  background: var(--stage-100);
}
.ff-section::before {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0 var(--space-4), var(--rule) var(--space-4));
}
.ff-section--deep { background: var(--stage-200); }
.ff-section__head > * + * { margin-top: var(--space-5); }
.ff-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px var(--space-5);
  margin: var(--space-6) 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.ff-facts dt { color: var(--ink-muted); }
.ff-facts dd { margin: 0; }
.ff-defs { margin: 0; }
.ff-defs > div { padding: var(--space-5) 0; border-top: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.ff-defs > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.ff-defs dt { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.ff-defs__role { display: block; margin-bottom: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.ff-defs dd { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); max-width: 52ch; }
.ff-steps { margin: 0; padding: 0; list-style: none; }
.ff-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.ff-steps li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.ff-steps__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.ff-steps h3 { margin: 2px 0 6px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; }
.ff-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); max-width: 46ch; }

/* ===== Contact ===== */
.ff-contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: end;
  padding: var(--space-9) calc(var(--gutter) + var(--space-7)) var(--space-9) var(--gutter);
  background: var(--stage-100);
}
.ff-contact::before {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0 var(--space-4), var(--rule) var(--space-4));
}
.ff-contact__mail {
  display: inline-block;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat;
  padding-bottom: 6px;
  transition: background-size var(--dur-cta) var(--ease-out-quart);
}
.ff-contact__mail:hover { background-size: 30% 2px; }
.ff-contact__note { max-width: 46ch; margin: var(--space-5) 0 0; color: var(--ink-muted); }
.ff-contact address { font-style: normal; margin-top: var(--space-5); font-size: 14px; line-height: 1.6; color: var(--ink-muted); }

/* ===== Footer ===== */
.ff-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-7) var(--gutter) var(--space-6);
  background: var(--night);
  color: var(--on-night);
}
.ff-footer .ff-wordmark { color: var(--on-night); }
.ff-footer__address { margin: var(--space-3) 0 0; font-size: 13px; line-height: 1.5; font-style: normal; color: var(--on-night-muted); }
.ff-footer__nav { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-4); }
.ff-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none; }
.ff-footer__links a, .ff-footer__links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-night);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--dur-hover) var(--ease-plain);
}
.ff-footer__links a:hover, .ff-footer__links button:hover { opacity: 0.6; }
.ff-footer__sister {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--on-night) 35%, transparent);
  border-radius: var(--radius-sm);
  color: var(--on-night);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color var(--dur-hover) var(--ease-plain);
}
.ff-footer__sister:hover { border-color: var(--on-night); }
.ff-page .ff-footer :focus-visible { outline-color: var(--ember); }

/* ===== Section dots ===== */
.ff-dots {
  position: fixed;
  right: var(--space-5);
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  transform: translateY(-50%);
  --ff-dot-ink: var(--ink);
  --ff-dot-ground: var(--stage-100);
}
.ff-dots.is-on-image { --ff-dot-ink: var(--on-image); --ff-dot-ground: rgba(0, 0, 0, 0.35); }
.ff-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ff-dot-ink) 20%, transparent);
  border: 2px solid color-mix(in srgb, var(--ff-dot-ink) 55%, transparent);
  cursor: pointer;
  transition: transform var(--dur-hover) var(--ease-plain), background var(--dur-hover) var(--ease-plain), border-color var(--dur-hover) var(--ease-plain);
}
.ff-dot[aria-current="true"] { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.ff-dots__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ff-dot-ink) 25%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ff-dot-ground) 70%, transparent);
  color: var(--ff-dot-ink);
  font: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.ff-dots__arrow:hover { border-color: var(--accent); color: var(--accent-ink); }
.ff-dots.is-on-image .ff-dots__arrow:hover { color: var(--accent); }
.ff-dots__arrow:disabled { opacity: 0.25; pointer-events: none; }

/* ===== Cookie consent ===== */
.ff-consent {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 80;
  width: min(560px, calc(100% - 2 * var(--space-5)));
  max-height: 85svh;
  overflow: auto;
  padding: var(--space-5) var(--space-5) 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--rule) 45%, transparent);
  border-radius: var(--radius-lore) 0 var(--radius-lore) 0;
  box-shadow: var(--shadow-sheet);
}
.ff-consent__title { margin: 0 0 var(--space-2); font-size: 20px; line-height: 1.3; font-weight: 400; }
.ff-consent__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.ff-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.ff-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}
.ff-modal__sheet {
  width: min(520px, 100%);
  max-height: 90svh;
  overflow: auto;
  padding: var(--space-6);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lore) 0 var(--radius-lore) 0;
}
.ff-modal__title { margin: 0 0 var(--space-5); font-size: 26px; line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; }
.ff-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
}
.ff-option__label { display: block; font-size: 15px; line-height: 1.4; }
.ff-option__hint { display: block; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.ff-switch { position: relative; display: inline-block; flex: 0 0 auto; width: 44px; height: 24px; }
.ff-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ff-switch input:disabled { cursor: not-allowed; }
.ff-switch__track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--ink-muted);
  transition: background var(--dur-hover) var(--ease-plain);
}
.ff-switch__track::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  transition: transform var(--dur-hover) var(--ease-out-quart);
}
.ff-switch input:checked + .ff-switch__track { background: var(--accent-ink); }
.ff-switch input:checked + .ff-switch__track::before { transform: translateX(20px); }
.ff-switch input:disabled + .ff-switch__track { opacity: 0.55; }
.ff-switch input:focus-visible + .ff-switch__track { outline: 3px solid var(--focus); outline-offset: 3px; }
.ff-consent[hidden], .ff-modal[hidden] { display: none; }

/* ===== Small screens ===== */
@media (max-width: 860px) {
  .ff-topbar { padding: 0 var(--gutter-sm); }
  .ff-topbar::after { left: var(--gutter-sm); }
  .ff-menu-btn { display: inline-flex; }
  .ff-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-5) var(--gutter-sm) var(--space-6);
    background: var(--stage-100);
    border-bottom: 1px solid var(--rule);
  }
  .ff-topbar.is-open .ff-nav { display: flex; }
  .ff-nav__link { font-size: 16px; }
  .ff-hero { height: min(78svh, 680px); min-height: 440px; margin: 0 var(--space-3) var(--space-3); }
  .ff-hero__content { left: var(--gutter-sm); right: var(--gutter-sm); bottom: 12%; }
  .ff-hero__advance { margin-left: -16px; padding: 16px 16px 36px; }
  .ff-hero__hint { left: 16px; }
  .ff-hero__lede { font-size: 17px; }
  .ff-hero__credit { right: var(--space-3); bottom: var(--space-3); font-size: 12px; }
  .ff-hero--light::before { background: linear-gradient(0deg, var(--veil) 0%, color-mix(in srgb, var(--veil) 55%, transparent) 60%, rgba(255, 255, 255, 0) 100%); }
  .ff-split, .ff-section, .ff-contact { grid-template-columns: 1fr; min-height: 0; }
  .ff-split::after { display: none; }
  .ff-split__text, .ff-split--flip .ff-split__text { padding: var(--space-8) var(--gutter-sm); }
  .ff-split--flip .ff-split__media { order: 0; }
  .ff-split__media { min-height: 360px; }
  .ff-section, .ff-contact { gap: var(--space-6); padding: var(--space-8) var(--gutter-sm); }
  .ff-section::before, .ff-contact::before { left: var(--gutter-sm); }
  .ff-footer { padding: var(--space-7) var(--gutter-sm) var(--space-6); }
  .ff-footer__nav { align-items: flex-start; }
  .ff-dots { display: none; }
  .ff-consent { right: var(--space-3); bottom: var(--space-3); width: calc(100% - 2 * var(--space-3)); }
}

@media (prefers-reduced-motion: reduce) {
  .ff-page *, .ff-page *::before, .ff-page *::after { transition: none !important; animation: none !important; }
  .ff-scroller { scroll-snap-type: none; }
}
