/* ==========================================================================
   Trailer Products Inc. — brand stylesheet
   Placeholder brand: white / gray, checkered flag, blue accents.
   Swap the tokens below once the official logo + colors arrive.
   ========================================================================== */

:root {
  --ink: #0f1217;
  --ink-2: #1b2029;
  --steel-900: #23272f;
  --steel-700: #4a515d;
  --steel-500: #7b8390;
  --steel-300: #c4c9d1;
  --steel-200: #dde1e6;
  --steel-100: #eef0f3;
  --paper: #ffffff;
  --blue: #1d5fd1;
  --blue-bright: #3b82f6;
  --blue-deep: #123c86;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 10px 30px -12px rgba(15, 18, 23, .35);
  --checker: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--steel-900);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* ---------- Checkered details ---------- */
.checker-strip {
  height: 14px;
  background: var(--checker) 0 0 / 14px 14px;
}
.checker-strip--sm { height: 8px; background-size: 8px 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 12px;
  background: var(--checker) 0 0 / 6px 6px;
  border: 1px solid var(--ink);
}
.on-dark .eyebrow { color: var(--blue-bright); }
.on-dark .eyebrow::before { border-color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn--ghost { color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--steel-300);
  font-size: .85rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--blue-bright); }
.topbar__hours { display: none; }
@media (min-width: 720px) { .topbar__hours { display: block; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--steel-200);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem;
  letter-spacing: .04em; text-transform: uppercase; font-style: italic;
}
.brand__name b { color: var(--blue); font-weight: 800; }
.brand__sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-500); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--steel-900); padding: 8px 12px; border-radius: var(--radius);
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; padding: 10px 18px; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--steel-200);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--steel-100); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 14px 0 0; }
  .brand__sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink);
  min-height: min(86vh, 760px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 35%;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.04);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(15,18,23,.92) 0%, rgba(15,18,23,.7) 45%, rgba(15,18,23,.25) 100%),
    linear-gradient(0deg, rgba(15,18,23,.85) 0%, rgba(15,18,23,0) 45%);
}
.hero__flag {
  position: absolute; z-index: 1; right: -60px; top: 40px; width: 360px; height: 220px;
  background: var(--checker) 0 0 / 30px 30px;
  opacity: .07; transform: skewX(-18deg);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 14ch; font-style: italic; }
.hero h1 em { font-style: italic; color: var(--blue-bright); }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 58ch; color: var(--steel-200); margin-bottom: 30px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero--page { min-height: 0; }
.hero--page .wrap { padding-top: 110px; padding-bottom: 60px; }
.hero--page h1 { max-width: 20ch; }

/* ---------- Stats bar ---------- */
.stats { background: var(--steel-100); border-bottom: 1px solid var(--steel-200); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; border-left: 1px solid var(--steel-200); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; font-style: italic; }
.stat__num span { color: var(--blue); }
.stat__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--steel-700); margin-top: 6px; }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--steel-200); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--gray { background: var(--steel-100); }
.section--dark { background: var(--ink); color: var(--steel-300); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section__head p { max-width: 56ch; margin: 0; color: var(--steel-700); }
.section--dark .section__head p { color: var(--steel-300); }
.section__head h2 { margin: 0; }

/* ---------- Product lines ---------- */
.lines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.line-card {
  grid-column: span 2;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: 26px; color: #fff; border-radius: var(--radius);
  overflow: hidden; background: var(--ink); isolation: isolate;
}
.line-card:nth-child(1), .line-card:nth-child(2) { grid-column: span 3; min-height: 400px; }
.line-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .6s ease, filter .4s;
  filter: grayscale(.35);
}
.line-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(15,18,23,.92) 8%, rgba(15,18,23,.15) 70%);
}
.line-card:hover img { transform: scale(1.06); filter: grayscale(0); }
.line-card:hover { color: #fff; }
.line-card h3 { color: #fff; font-size: 1.9rem; margin: 0 0 6px; font-style: italic; }
.line-card p { margin: 0 0 14px; color: var(--steel-200); font-size: .98rem; max-width: 42ch; }
.line-card__go {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .95rem; color: var(--blue-bright); display: inline-flex; gap: 8px; align-items: center;
}
.line-card__go::after { content: "→"; transition: transform .2s; }
.line-card:hover .line-card__go::after { transform: translateX(4px); }
.line-card__tag {
  position: absolute; top: 18px; left: 18px;
  background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}
@media (max-width: 900px) {
  .lines { grid-template-columns: 1fr 1fr; }
  .line-card, .line-card:nth-child(1), .line-card:nth-child(2) { grid-column: span 1; min-height: 300px; }
}
@media (max-width: 560px) {
  .lines { grid-template-columns: 1fr; }
}
.makes { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.makes span { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-700); margin-right: 6px; }
.chip {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--steel-300); border-radius: 999px;
  font-size: .92rem; color: var(--steel-900); background: #fff; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.chip:hover, .chip.is-active { border-color: var(--blue); color: #fff; background: var(--blue); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in;
  break-inside: avoid; position: relative; border-radius: var(--radius); overflow: hidden;
}
.gallery img { width: 100%; height: auto; transition: transform .5s, filter .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; text-align: left;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem;
  color: #fff; background: linear-gradient(0deg, rgba(15,18,23,.85), transparent);
  opacity: 0; transform: translateY(6px); transition: all .25s;
}
.gallery button:hover figcaption, .gallery button:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 3px solid var(--ink); }
.step { padding: 28px 24px 10px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--steel-200); }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue); margin-bottom: 14px;
}
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { font-size: .98rem; color: var(--steel-700); margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--steel-200); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--steel-200); }
}
.fitment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.fitment div { background: #fff; border: 1px solid var(--steel-200); border-left: 4px solid var(--blue); padding: 20px 22px; border-radius: var(--radius); }
.fitment h4 { font-size: 1.2rem; margin-bottom: 6px; }
.fitment p { margin: 0; font-size: .95rem; color: var(--steel-700); }
@media (max-width: 760px) { .fitment { grid-template-columns: 1fr; } }

/* ---------- Split / legacy ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1); }
.split__media::before {
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 140px; height: 90px; z-index: -1;
  background: var(--checker) 0 0 / 18px 18px;
}
.split__media { isolation: isolate; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media::before { left: -8px; bottom: -8px; } }

.timeline { list-style: none; margin: 0 0 28px; padding: 0; border-left: 2px solid var(--steel-300); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px;
  background: var(--checker) 0 0 / 7px 7px; border: 1px solid var(--ink);
}
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; color: var(--ink); letter-spacing: .03em; }
.timeline span { color: var(--steel-700); font-size: .98rem; }

/* ---------- Movies teaser ---------- */
.movies-teaser { position: relative; overflow: hidden; }
.movies-teaser::before {
  content: ""; position: absolute; inset: 0;
  background: var(--checker) 0 0 / 60px 60px; opacity: .04;
}
.movies-teaser .wrap { position: relative; }
.marquee {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 34px;
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1.05; color: #fff;
}
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--steel-300); }
.marquee span.blue { color: var(--blue-bright); -webkit-text-stroke: 0; }

/* ---------- Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--steel-200); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(29, 95, 209, .55);
  opacity: 0; transition: opacity .25s;
}
.ig-grid a:hover img { transform: scale(1.08); }
.ig-grid a:hover::after { opacity: 1; }
.ig-grid svg { position: absolute; z-index: 1; inset: 0; margin: auto; width: 34px; height: 34px; color: #fff; opacity: 0; transition: opacity .25s; }
.ig-grid a:hover svg { opacity: 1; }
@media (max-width: 860px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.ig-embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.ig-embeds .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.ig-handle { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; color: var(--ink); }

/* ---------- Visit / Contact ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.visit__info { padding: clamp(28px, 4vw, 48px); background: var(--ink); color: var(--steel-300); position: relative; }
.visit__info::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--checker) 0 0 / 10px 10px; filter: invert(1);
}
.visit__info h2 { color: #fff; }
.visit__info a { color: #fff; }
.visit__info a:hover { color: var(--blue-bright); }
.visit__info dl { margin: 22px 0 28px; display: grid; gap: 16px; }
.visit__info dt { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; color: var(--blue-bright); }
.visit__info dd { margin: 2px 0 0; font-size: 1.08rem; color: #fff; }
.visit__map { min-height: 420px; background: var(--steel-200); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.6) contrast(1.05); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit__map, .visit__map iframe { min-height: 320px; } }

/* ---------- Catalog (products page) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.toolbar__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar label { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--steel-700); }
.toolbar select {
  font: inherit; font-size: .95rem; padding: 8px 34px 8px 12px; border: 1px solid var(--steel-300); border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a515d' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; color: var(--steel-900);
}
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--steel-300); color: inherit; }
.product__img { aspect-ratio: 4/3; background: var(--steel-100); overflow: hidden; position: relative; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__line {
  position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 2px;
}
.product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product__make { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--steel-500); }
.product h3 { font-size: 1.22rem; text-transform: none; letter-spacing: 0; margin: 4px 0 12px; line-height: 1.2; flex: 1; }
.product__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--steel-100); padding-top: 12px; }
.product__price { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--ink); font-style: italic; }
.product__price small { font-size: .8rem; font-style: normal; font-weight: 600; color: var(--steel-500); letter-spacing: .06em; }
.product__cta { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); font-size: .95rem; }
.notice {
  margin-top: 40px; padding: 20px 24px; border: 1px dashed var(--steel-300); border-radius: var(--radius); background: var(--steel-100);
  display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.notice p { margin: 0; max-width: 70ch; }
.browse { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.browse h3 { font-size: 1.3rem; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.browse ul { list-style: none; margin: 0; padding: 0; }
.browse li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--steel-200); color: var(--steel-900); }
.browse li a:hover { color: var(--blue); padding-left: 4px; }

/* ---------- History page ---------- */
.prose { max-width: 70ch; }
.prose p { font-size: 1.08rem; }
.portrait {
  aspect-ratio: 4/5; background: var(--steel-100); border: 1px solid var(--steel-200); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 30px; position: relative; overflow: hidden;
}
.portrait::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--checker) 0 0 / 10px 10px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portrait__ph { color: var(--steel-500); font-size: .95rem; }
.portrait__ph strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); text-transform: uppercase; }
.gens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gen { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--ink); }
.gen:nth-child(2) { border-top-color: var(--blue); }
.gen:nth-child(3) { border-top-color: var(--steel-500); }
.gen__era { font-family: var(--font-display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-size: .9rem; }
.gen h3 { margin: 6px 0 10px; font-size: 1.7rem; }
.gen p { margin: 0; color: var(--steel-700); }
@media (max-width: 860px) { .gens { grid-template-columns: 1fr; } }
.review-note {
  font-size: .85rem; color: var(--steel-500); border-left: 3px solid var(--steel-300); padding-left: 12px; margin-top: 18px;
}

/* ---------- Movies page ---------- */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.film {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  border: 1px solid #2a303b; cursor: zoom-in; padding: 0; text-align: left; color: #fff; font: inherit;
}
.film[disabled] { cursor: default; }
.film img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.film:hover img { transform: scale(1.05); }
.film__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--checker) 0 0 / 40px 40px; opacity: .06;
}
.film__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(15,18,23,.95), transparent);
}
.film__label strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-style: italic; text-transform: uppercase; line-height: 1.05; }
.film__label span { font-size: .9rem; color: var(--steel-300); }
.film__soon {
  position: absolute; top: 14px; right: 14px; background: var(--blue); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 13, .94);
  display: none; align-items: center; justify-content: center; padding: 60px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 80vh; border-radius: var(--radius); }
.lightbox__cap { position: absolute; bottom: 20px; left: 16px; right: 16px; text-align: center; color: var(--steel-200); font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center;
}
.lightbox button:hover { background: var(--blue); border-color: var(--blue); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 280px;
  background: var(--checker) 0 0 / 28px 28px; opacity: .12; transform: skewX(-18deg);
}
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0; font-style: italic; }
.cta-band p { margin: 6px 0 0; color: #dbe7ff; }
.cta-band .btn--white { background: #fff; color: var(--blue-deep); }
.cta-band .btn--white:hover { background: var(--ink); color: #fff; }
.cta-band .btn--ghost { color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--blue-deep); border-color: #fff; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--steel-500); font-size: .95rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--steel-300); }
.site-footer a:hover { color: var(--blue-bright); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand__sub { display: block; color: var(--steel-500); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #2c323d; color: #fff;
}
.social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.social svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid #232833; margin-top: 46px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 420px) { .stat__num { font-size: 1.6rem; } }
