/* FAVORITE Media Hub — single stylesheet.
   Design tokens come straight from the 2024 brand guide and the Penpot mockup;
   do not invent values here. */

:root {
  /* brand core */
  --red: #E1251B;
  --turquoise: #00ADBB;
  --white: #FFFFFF;
  --black: #000000;

  /* brand extras */
  --terracota: #B12028;
  --light-gray: #D9D8D6;
  --dark-blue: #003764;
  --blue: #005E9F;
  --marine: #0080A4;
  --light-blue: #00C1DE;
  --yellow: #FFBF3C;

  /* neutral scale (portal-specific, from the mockup library) */
  --bg-900: #0A0A0A;
  --bg-800: #111111;
  --bg-700: #161616;
  --bg-600: #1C1C1C;
  --border: #2A2A2A;
  --text-muted: #8A8A8A;
  --text-dim: #5A5A5A;

  /* type */
  --font-display: "Hyperspace Race Expanded", "Hyperspace Race", system-ui, sans-serif;
  --font-ui: "Hyperspace Race", system-ui, sans-serif;
  --font-body: "Geologica", system-ui, -apple-system, sans-serif;

  /* rhythm — the guide's 90/40/30 print scale, scaled for screen */
  --step-h1: clamp(2.5rem, 5vw, 4.5rem);
  --step-h2: clamp(2rem, 3.6vw, 3.25rem);
  --step-h3: clamp(1.125rem, 1.5vw, 1.5rem);
  --step-body: 1rem;
  --step-small: 0.8125rem;
  --step-micro: 0.6875rem;

  --gutter: clamp(1.25rem, 4vw, 7.5rem);
  --section-gap: clamp(3rem, 6vw, 6.25rem);
  --radius: 10px;
}

/* --- fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Hyperspace Race";
  src: url("../fonts/HyperspaceRace-Regular.57d3eb3433fa.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hyperspace Race";
  src: url("../fonts/HyperspaceRace-Bold.e52d2203871a.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hyperspace Race Expanded";
  src: url("../fonts/HyperspaceRace-Expanded.aa3406e756c1.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hyperspace Race Expanded";
  src: url("../fonts/HyperspaceRace-ExpandedBold.b3facb4b1794.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hyperspace Race Expanded";
  src: url("../fonts/HyperspaceRace-ExpandedHeavy.0f681f07a1ee.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Geologica";
  src: url("../fonts/Geologica-Variable.b36a5ef1f10d.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-900);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }

.shell {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- the 60° slash motif ------------------------------------------------- */
/* Two stacked bars at the brand's 60° angle; used as a section marker. */
.slash {
  display: inline-flex;
  gap: 6px;
  flex: none;
  align-items: center;
}
.slash i {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  transform: skewX(-30deg);
}
.slash i:first-child { background: var(--red); }

/* A diagonal cut across the bottom-right of a card image. */
.diagonal-cut {
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
}

/* --- navbar -------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .shell {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  width: 100%;
}
.navbar__logo { flex: none; }
.navbar__logo svg { width: 148px; height: auto; fill: var(--white); }
.navbar__logo:hover svg { fill: var(--red); }

.navbar__links {
  display: flex;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
  font-family: var(--font-ui);
  font-size: var(--step-small);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-right: auto;
}
.navbar__links a { color: var(--text-muted); white-space: nowrap; }
.navbar__links a:hover { color: var(--white); }
.navbar__links a.is-active { color: var(--white); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 320px;
  padding: 0 14px;
  height: 38px;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.search:focus-within { border-color: var(--turquoise); }
.search svg { width: 15px; height: 15px; flex: none; stroke: var(--text-muted); }
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--step-small);
}
.search input::placeholder { color: var(--text-dim); }
.search input:focus { outline: none; }

.lang {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  flex: none;
}
.lang button {
  background: none;
  border: 0;
  color: var(--text-dim);
  padding: 2px 3px;
  text-transform: uppercase;
}
.lang button:hover { color: var(--white); }
.lang button.is-active { color: var(--white); }
.lang span { color: var(--border); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  padding: 0 22px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #f5372d; color: var(--white); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--light-gray); color: var(--black); }
.btn--ghost { border-color: var(--border); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* --- section header (eyebrow + slash + title) ---------------------------- */
.section { padding-block: var(--section-gap); }
.section--tint { background: var(--bg-800); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}
.section-head__main { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.section-head__aside {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
}
.section-head h2 .count {
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  color: var(--turquoise);
  vertical-align: super;
  margin-left: 0.75rem;
}

/* --- filter pills -------------------------------------------------------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.pill {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pill:hover { border-color: var(--white); color: var(--white); }
.pill.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.pill .n { opacity: 0.6; margin-left: 6px; }

/* --- grids --------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* --- cards --------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: #3a3a3a; transform: translateY(-2px); }
.card:hover a { color: inherit; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-600);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__body { padding: 16px 18px 18px; }
.card__kicker {
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.card__meta {
  margin-top: 6px;
  font-size: var(--step-small);
  color: var(--text-muted);
}
.card__meta--clip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* the type badge shown when we cannot render a preview */
.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background:
    repeating-linear-gradient(60deg, #1a1a1a 0 2px, transparent 2px 14px),
    var(--bg-600);
}
.placeholder__kind {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--red);
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge--turquoise { background: var(--turquoise); color: var(--black); }
.badge--dark { background: rgba(0, 0, 0, 0.78); }

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.06em;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play span {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
}
.play svg { width: 20px; height: 20px; fill: var(--black); margin-left: 3px; }

.dl-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red);
}
.dl-dot svg { width: 15px; height: 15px; stroke: var(--white); }
.dl-dot:hover { background: var(--white); }
.dl-dot:hover svg { stroke: var(--black); }

/* --- quick access tiles -------------------------------------------------- */
.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tile:hover { border-color: var(--red); color: inherit; }
.tile__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--bg-600);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--red);
}
.tile__text { min-width: 0; }
.tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tile__sub {
  font-size: var(--step-small);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.tile__arrow { margin-left: auto; flex: none; color: var(--text-dim); }
.tile:hover .tile__arrow { color: var(--white); }

/* --- toolkit cards ------------------------------------------------------- */
.toolkit-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toolkit-card:hover { border-color: #3a3a3a; color: inherit; }
.toolkit-card__demo {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--bg-600);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.toolkit-card h3 { font-size: 1.0625rem; }
.toolkit-card p { margin: 0; font-size: var(--step-small); color: var(--text-muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.swatches i {
  width: 42px; height: 42px;
  border-radius: 4px;
  display: block;
}
.logo-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; width: 100%; }
.logo-chip {
  display: grid; place-items: center;
  padding: 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.type-demo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.hex-demo {
  width: 100%; height: 100%;
  background-image: url("../img/honeycomb.e5c57ff0b9f5.svg");
  background-size: 62px;
  opacity: 0.7;
}

/* --- category cards ------------------------------------------------------ */
.cat-card { position: relative; }
.cat-card__title {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  /* keep long names on one line rather than breaking mid-word */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 36px);
}
.cat-card__stats {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* --- partner CTA --------------------------------------------------------- */
.cta {
  background: var(--red);
  padding-block: clamp(2.5rem, 4vw, 3.75rem);
}
.cta .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.cta__text { flex: 1 1 420px; }
.cta__text .eyebrow { color: rgba(255, 255, 255, 0.75); }
.cta__text .slash i { background: var(--white); }
.cta__text .slash i:first-child { background: var(--black); }
.cta h2 { max-width: 18ch; }
.cta p { max-width: 62ch; margin: 1rem 0 0; }

/* --- footer -------------------------------------------------------------- */
.footer {
  padding-block: clamp(2.5rem, 4vw, 3.75rem) 2rem;
  background: var(--bg-900);
  border-top: 1px solid var(--border);
  font-size: var(--step-small);
  color: var(--text-muted);
}
.footer__top {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
}
.footer__brand svg { width: 168px; fill: var(--white); margin-bottom: 1rem; }
.footer h4 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--step-micro);
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.footer__social { margin-left: auto; display: flex; gap: 8px; }
.footer__social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__social a:hover { border-color: var(--white); color: var(--white); }

/* --- hero (02 · Hero) ----------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.25rem);
  background: var(--bg-900);
}
.hero__hex {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(900px, 55vw);
  background-image: url("../img/honeycomb.e5c57ff0b9f5.svg");
  background-size: 80px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero__content { position: relative; max-width: 1280px; }
.hero__title {
  font-family: var(--font-ui);
  font-size: clamp(3rem, 7.3vw, 8.75rem);
  font-weight: 700;
  line-height: 0.9;
  margin-top: 1.5rem;
}
.hero__title span { color: var(--red); }
.hero__sub {
  color: var(--light-gray);
  font-size: 1.125rem;
  max-width: 46ch;
  margin: 1.5rem 0 2.5rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn--lg {
  height: 56px;
  padding: 0 34px;
  font-size: var(--step-small);
  letter-spacing: 0.15em;
}

/* --- splash -------------------------------------------------------------- */
.splash {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-900);
}
.splash__hex {
  position: absolute;
  inset: -10%;
  background-image: url("../img/honeycomb.e5c57ff0b9f5.svg");
  background-size: 78px;
  opacity: 0.5;
}
.splash__glow {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 37, 27, 0.16), transparent 62%);
  pointer-events: none;
}
.splash__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.splash__center { position: relative; text-align: center; padding-inline: 1.5rem; }
.splash__tagline {
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 1.75rem;
}
.splash__logo { width: min(700px, 82vw); fill: var(--white); margin-inline: auto; }
.splash__sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin: 1.25rem 0 2.75rem;
}
.splash__enter {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: var(--step-small);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.splash__enter::after {
  content: "";
  width: 260px; height: 1px;
  background: var(--white);
  transition: background 0.2s;
}
.splash__enter:hover { color: var(--white); }
.splash__enter:hover::after { background: var(--red); }
.splash__foot {
  position: absolute;
  inset: auto var(--gutter) 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2f2f2f;
}

/* --- asset detail -------------------------------------------------------- */
.asset-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  align-items: start;
}
.asset-stage {
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1rem;
}
.asset-stage img, .asset-stage video { max-height: 70vh; width: auto; }
.asset-facts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0; }
.asset-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--step-small);
}
.asset-facts dt, .asset-facts .k {
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
}
.asset-facts .v { text-align: right; overflow-wrap: anywhere; }

.notice {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--turquoise);
  border-radius: 6px;
  background: var(--bg-800);
  font-size: var(--step-small);
  margin-bottom: 1.5rem;
}
.notice--warn { border-left-color: var(--yellow); }

/* --- forms --------------------------------------------------------------- */
.form-page {
  max-width: 620px;
  margin-inline: auto;
  padding-block: var(--section-gap);
}
.field { margin-bottom: 1.125rem; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--step-body);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--turquoise); }
.field .help { margin-top: 5px; font-size: var(--step-small); color: var(--text-dim); }
.field .errors { margin: 6px 0 0; padding: 0; list-style: none; color: var(--red);
                 font-size: var(--step-small); }

.messages { list-style: none; margin: 0; padding: 0; }
.messages li {
  padding: 12px 18px;
  background: var(--bg-800);
  border-left: 3px solid var(--turquoise);
  font-size: var(--step-small);
}
.messages li.error { border-left-color: var(--red); }
.messages li.success { border-left-color: var(--turquoise); }

/* --- breadcrumbs, pagination, empty states ------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--white); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  font-family: var(--font-ui);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.pagination a:hover { border-color: var(--white); color: var(--white); }
.pagination .current { background: var(--bg-600); color: var(--white); }

.empty {
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty h3 { margin-bottom: 0.75rem; color: var(--white); }

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .asset-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .navbar { height: auto; padding-block: 12px; }
  .navbar .shell { flex-wrap: wrap; }
  .navbar__links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .search { order: 2; flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .splash__enter::after { width: 180px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
