/* ==========================================================================
   The Casino Ledger

   Direction:  the floor at night. Near-black surfaces, glass panels,
               full-bleed imagery, one hot accent.
   Dials:      DESIGN_VARIANCE 8 · MOTION_INTENSITY 6 · VISUAL_DENSITY 5
   Type:       Archivo (display), Manrope (body)
   Shape:      one radius, 10px, on every card, control and media frame.
   Colour:     one accent on a light ground. Light only: the page does not
               follow the OS colour-scheme setting.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg:         #f4f3f1;
  --surface:    #ffffff;
  --surface-2:  #ebeae7;
  --glass:      rgba(10, 10, 12, .035);
  --glass-line: rgba(10, 10, 12, .10);

  --fg:         #121216;
  --fg-2:       #4f4f58;
  --fg-3:       #5f5f69;

  --accent:      #b80c29;
  --accent-deep: #94061f;
  --accent-fg:   #ffffff;
  --accent-weak: rgba(184, 12, 41, .09);
  --accent-line: rgba(184, 12, 41, .32);

  --line:    rgba(10, 10, 12, .11);
  --line-2:  rgba(10, 10, 12, .2);

  --glow:   0 0 0 1px var(--glass-line), 0 20px 48px -34px rgba(10, 10, 12, .45);
  --glow-2: 0 0 0 1px var(--accent-line), 0 24px 56px -32px rgba(184, 12, 41, .3);

  --display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --r: 10px;

  --shell:  1280px;
  --gutter: 1.5rem;
  --header: 4.5rem;

  --ease: cubic-bezier(.2, .8, .25, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: var(--header);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.06;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 1.35vw, 1.2rem); letter-spacing: -.018em; }
h4 { font-size: 1rem; letter-spacing: -.014em; line-height: 1.3; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--fg); }

::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 200;
  background: var(--accent); color: var(--accent-fg);
  padding: .8rem 1.2rem; border-radius: var(--r);
  font-size: .875rem; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------------------
   PRIMITIVES
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.section--raised { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .6rem; }

.lede { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--fg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--body);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: var(--accent); }

.num { font-variant-numeric: tabular-nums; }

/* --- glass panel --------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--glass);
  border-radius: var(--r);
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (prefers-reduced-transparency: reduce) {
  .panel { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: .9375rem; font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease),
              border-color .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 12px 30px -14px rgba(255, 59, 82, .8); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 18px 40px -14px rgba(255, 59, 82, .95); }

.btn--glass { background: var(--glass); color: var(--fg); border-color: var(--line-2); }
.btn--glass:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: .58rem 1.05rem; font-size: .875rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9375rem; font-weight: 700;
  color: var(--fg-2);
  transition: color .16s var(--ease), gap .16s var(--ease);
}
.link:hover { color: var(--accent); gap: .65rem; }
.link svg { flex: none; }

/* --- stars --------------------------------------------------------------- */
.stars { display: inline-flex; align-items: center; gap: .05rem; color: var(--accent); }
.stars .star--full, .stars .star--half { color: var(--accent); }
.stars .star--empty { color: var(--line-2); }
.score { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- logo plate ---------------------------------------------------------- */
.plate {
  flex: none; display: grid; place-items: center;
  background: #fff;                     /* operator logos always sit on white */
  border-radius: var(--r);
  overflow: hidden;
}
.plate img { width: auto; height: auto; object-fit: contain; }
.plate--xs { width: 2.2rem; height: 2.2rem; }
.plate--xs img { max-width: 76%; max-height: 1.3rem; }
.plate--sm { width: 3.25rem; height: 3.25rem; }
.plate--sm img { max-width: 76%; max-height: 2rem; }
.plate--md { width: 4.25rem; height: 4.25rem; }
.plate--md img { max-width: 76%; max-height: 2.6rem; }

/* --- tables -------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--r);
  box-shadow: var(--glow);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table.data { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .9375rem; }
table.data th, table.data td { padding: .8rem 1.05rem; text-align: left; vertical-align: top; }
table.data thead th {
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--display); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
table.data tbody tr:nth-child(even) { background: var(--glass); }
table.data tbody th { font-weight: 700; width: 32%; color: var(--fg); }
table.data tbody td { color: var(--fg-2); }

/* --------------------------------------------------------------------------
   CHECK LIST
   li is display:block so "<strong>Title:</strong> body" flows as one line box.
   -------------------------------------------------------------------------- */
.feature-check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.feature-check-list li {
  display: block; position: relative;
  padding-left: 2.1rem;
  color: var(--fg-2);
}
.feature-check-list li::before {
  content: '';
  position: absolute; left: 0; top: .5em;
  width: .8rem; height: .8rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px -2px var(--accent);
}
.feature-check-list li strong { color: var(--fg); }

.feature-check-list--plain { gap: .7rem; }
.feature-check-list--plain li {
  padding: 1rem 1.15rem 1rem 3rem;
  background: var(--glass);
  border-radius: var(--r);
  box-shadow: var(--glow);
}
.feature-check-list--plain li::before { left: 1.15rem; top: 1.35rem; }
@media (min-width: 780px) { .feature-check-list--plain { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
/* The blur sits on a pseudo-element: backdrop-filter would make .site-header
   the containing block for the position:fixed mobile nav and trap it inside. */
.site-header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header::before { background: var(--bg); }
}

.header-bar {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header);
  max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.logo, .menu-toggle { position: relative; z-index: 90; }
.logo-mark { width: 1.9rem; height: 1.9rem; flex: none; color: var(--accent); }
.logo-word {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.03em;
  white-space: nowrap;
}
.logo-word span { color: var(--accent); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; position: relative; }
.nav-list > li:not(.nav-indicator) { position: relative; }

.nav-list a.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .75rem;
  border-radius: var(--r);
  font-size: .9375rem; font-weight: 600;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-list a.nav-link:hover { color: var(--fg); background: var(--glass); }
.nav-list a.nav-link.active { color: var(--fg); }

.nav-list > .nav-indicator {
  position: absolute; bottom: -.2rem; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px 0 var(--accent);
  opacity: 0;
  transition: transform .3s var(--ease), width .3s var(--ease), opacity .2s var(--ease);
  pointer-events: none;
}

/* --- dropdown ------------------------------------------------------------ */
.nav-item--has-submenu > .nav-parent svg { transition: transform .2s var(--ease); }
.nav-item--has-submenu:hover > .nav-parent svg,
.nav-item--has-submenu:focus-within > .nav-parent svg { transform: rotate(180deg); }

/* Transparent bridge so the cursor keeps :hover crossing the gap. */
.nav-item--has-submenu::after {
  content: ''; position: absolute; top: 100%;
  left: -.75rem; right: -.75rem; height: 1rem; pointer-events: auto;
}

.nav-submenu {
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translate(-50%, .5rem);
  width: min(27rem, calc(100vw - 3rem));
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem;
  margin: 0; padding: .55rem; list-style: none;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--glow), 0 30px 60px -30px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .22s var(--ease), visibility .2s;
  z-index: 20;
}
.nav-item--has-submenu:hover > .nav-submenu,
.nav-item--has-submenu:focus-within > .nav-submenu,
.nav-item--has-submenu.is-open > .nav-submenu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.nav-submenu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem;
  border-radius: var(--r);
  font-size: .9375rem; font-weight: 600;
  color: var(--fg-2);
  transition: background-color .14s var(--ease), color .14s var(--ease);
}
.nav-submenu a:hover { background: var(--accent-weak); color: var(--accent); }

.header-cta { flex: none; }
.site-nav .header-cta { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 2.6rem; height: 2.6rem;
  margin-left: auto;
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--fg);
  flex-shrink: 0;
}
.menu-toggle .bar {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   HERO  (full-bleed image, copy overlaid)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(76vh, 44rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  /* Enough wash under the copy to hold contrast, and little enough on the
     right for the photograph to actually read. */
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(244,243,241,.72) 34%, rgba(244,243,241,.12) 72%, rgba(244,243,241,0)),
    linear-gradient(to right, rgba(244,243,241,.92) 0 24%, rgba(244,243,241,.45) 48%, rgba(244,243,241,0) 78%);
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 5rem); }
/* Over a photograph the measure is set by a grid column, not by a cap on the
   text. Headings and paragraphs always fill the column they are given. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 2rem; }

.hero h1 { margin-bottom: 1rem; }
.hero .lede { margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --------------------------------------------------------------------------
   STAT BAND
   -------------------------------------------------------------------------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.stat { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1; letter-spacing: -.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; font-size: .5em; color: var(--fg-3); }
.stat span { display: block; margin-top: .55rem; font-size: .9375rem; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   RANK RAIL  (horizontal scroll, tall cards)
   -------------------------------------------------------------------------- */
.rank-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .75rem;
  -webkit-overflow-scrolling: touch;
}
.rank-card {
  scroll-snap-align: start;
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--glass);
  border-radius: var(--r);
  box-shadow: var(--glow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.rank-card:hover { transform: translateY(-5px); box-shadow: var(--glow-2); }
.rank-card--top { background: var(--accent-weak); box-shadow: var(--glow-2); }

.rank-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.rank-n { font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--fg-3); }
.rank-badge {
  padding: .25rem .6rem; border-radius: var(--r);
  background: var(--accent); color: var(--accent-fg);
  font-size: .7rem; font-weight: 800; letter-spacing: .02em;
}
.rank-name { font-size: 1.3rem; margin: 0 0 .45rem; }
.rank-rating { display: flex; align-items: center; gap: .45rem; margin-bottom: .9rem; }
.rank-rating .score { font-size: .95rem; }
.rank-bonus { font-size: .9375rem; color: var(--fg-2); margin-bottom: 1.1rem; }

.rank-meta { display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); margin-bottom: 1.3rem; }
.rank-meta div { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.rank-meta span { color: var(--fg-3); }
.rank-meta b { font-weight: 700; text-align: right; }

.rank-foot { margin-top: auto; display: grid; gap: .65rem; justify-items: center; }
.rank-foot .btn { width: 100%; }

/* --------------------------------------------------------------------------
   STATEMENT
   -------------------------------------------------------------------------- */

.statement p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 500; line-height: 1.35; letter-spacing: -.024em;
  color: var(--fg);
}
.statement p + p { margin-top: 1.1rem; font-family: var(--body); font-size: clamp(1rem, 1.2vw, 1.1rem); font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   GLASS GRID  (methodology)
   -------------------------------------------------------------------------- */
.glass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.glass-cell { padding: 1.5rem 1.4rem; }
.glass-cell h3 { margin-bottom: .9rem; }
.glass-cell .row + .row { margin-top: .8rem; }
.glass-cell .row em {
  display: block; font-style: normal;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .2rem;
}
.glass-cell .row p { margin: 0; font-size: .9375rem; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   MEDIA SPLIT
   -------------------------------------------------------------------------- */
.split-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.split-layout--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split-layout--reverse .split-media { order: 2; }
.split-media { border-radius: var(--r); overflow: hidden; box-shadow: var(--glow); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-body h2 { margin-bottom: .8rem; }
.split-body p { color: var(--fg-2); }

/* --------------------------------------------------------------------------
   TIMELINE
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 0; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: .55rem; top: .6rem; bottom: .6rem;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -2.5rem; top: 1.55rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--accent-line), inset 0 0 0 3px var(--accent);
}
.tl-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.tl-item p { margin: 0; color: var(--fg-2); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   FACE OFF  (fair vs penalty)
   -------------------------------------------------------------------------- */
.faceoff { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faceoff-col { padding: 1.6rem 1.5rem; }
.faceoff-col > h3 {
  display: flex; align-items: center; gap: .5rem;
  padding-bottom: .9rem; margin-bottom: .3rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.faceoff-col--good > h3 { color: var(--accent); }
.faceoff-item { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.faceoff-item:last-child { border-bottom: 0; }
.faceoff-item em {
  display: block; font-style: normal;
  font-size: .8125rem; font-weight: 700; color: var(--fg-3); margin-bottom: .2rem;
}
.faceoff-item p { margin: 0; font-size: .9375rem; }
.faceoff-col--good .faceoff-item p { color: var(--fg); font-weight: 600; }
.faceoff-col--bad .faceoff-item p { color: var(--fg-2); }

.callout {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 2rem;
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.callout p { margin: 0; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   CLOSING BAND
   -------------------------------------------------------------------------- */
.closing { position: relative; overflow: hidden; }
.closing-bg { position: absolute; inset: 0; z-index: 0; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; }
.closing-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg), rgba(244,243,241,.9) 40%, var(--bg));
}
.closing .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   PANELS, PROSE, MEDIA
   -------------------------------------------------------------------------- */
.plain-card { padding: clamp(1.5rem, 3vw, 2.4rem); }
.plain-card > h2 { margin-bottom: 1rem; }
.plain-card p { color: var(--fg-2); }

.image-divider { border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--glow); }
.image-divider img { width: 100%; height: 100%; object-fit: cover; }

.prose h2 { margin-bottom: .9rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .6rem; }
.prose h4 { margin-top: 1.5rem; margin-bottom: .4rem; }
.prose p { color: var(--fg-2); }
.prose a[href^="http"] { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.intro-block { border-left: 2px solid var(--accent); padding-left: 1.6rem; }
.intro-block p { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--fg-2); }
.intro-block p:first-child { color: var(--fg); }

/* --------------------------------------------------------------------------
   FLOOR GRID (builder output)
   -------------------------------------------------------------------------- */
.floor-grid { display: grid; gap: 1rem; }
.floor-grid--1 { grid-template-columns: minmax(0, 1fr); }
.floor-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.floor-tile { padding: clamp(1.35rem, 2vw, 1.8rem); }
.floor-tile h3 { margin-bottom: .7rem; }
.floor-tile p { color: var(--fg-2); font-size: .95rem; }
.floor-tile--span2 { grid-column: span 2; }
.floor-tile--span3 { grid-column: span 3; }
.floor-tile--span4 { grid-column: span 4; }
.floor-tile .table-scroll { margin-block: 1rem 0; background: transparent; box-shadow: none; }
.floor-tile table.data { min-width: 0; font-size: .875rem; }
.floor-tile table.data th, .floor-tile table.data td { padding: .55rem .7rem; }
.floor-tile table.data thead th { white-space: normal; }

.tile-row { margin-top: .95rem; }
.tile-row .tile-label {
  display: block; margin-bottom: .2rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.tile-row p { margin: 0; font-size: .9375rem; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   REVIEW HERO
   -------------------------------------------------------------------------- */
.review-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.review-hero-bg { position: absolute; inset: 0; z-index: 0; }
.review-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.review-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0 22%, rgba(244,243,241,.88) 46%, rgba(244,243,241,.3) 76%, rgba(244,243,241,.08)),
    linear-gradient(to bottom, rgba(244,243,241,.55), rgba(244,243,241,.2) 40%, var(--bg));
}
.review-hero .container { position: relative; z-index: 1; }
.review-hero-grid { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 2rem; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .875rem; font-weight: 600; color: var(--fg-3);
  margin-bottom: 1.15rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--fg); }

.review-hero h1 { margin-bottom: 1rem; }

.rating-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .9rem; border-radius: var(--r);
  background: var(--accent-weak);
  box-shadow: 0 0 0 1px var(--accent-line);
  margin-bottom: 1.2rem;
}
.rating-pill .score { color: var(--accent); font-size: 1rem; }
.rating-pill small { color: var(--fg-3); font-weight: 600; }

.byline { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.35rem; }
.byline-avatar { width: 2.6rem; height: 2.6rem; flex: none; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { display: flex; align-items: center; gap: .3rem; font-weight: 700; }
.byline-name svg { color: var(--accent); }
.byline-role { font-size: .875rem; color: var(--fg-3); }

.review-lede { color: var(--fg-2); }

.offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 1.4rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: 1.2rem 1.4rem;
}
.offer-copy span {
  display: block; margin-bottom: .2rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.offer-copy b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   VERDICT
   -------------------------------------------------------------------------- */
.verdict { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.verdict h2 { margin-bottom: 1.4rem; }

.rating-list { display: grid; gap: .5rem; }
.rating-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 1rem;
  padding: .8rem 1.1rem;
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line);
}
.rating-row > span:first-child { font-weight: 600; color: var(--fg-2); }
.rating-row .score { min-width: 2.4rem; text-align: right; }
.rating-row--overall {
  background: var(--accent); color: var(--accent-fg);
  padding: 1.15rem 1.35rem; box-shadow: none;
}
.rating-row--overall > span:first-child { color: var(--accent-fg); font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.rating-row--overall .score { font-size: 1.65rem; min-width: 3.1rem; }
.rating-row--overall .stars .star--full,
.rating-row--overall .stars .star--half { color: var(--accent-fg); }
.rating-row--overall .stars .star--empty { color: rgba(255,255,255,.42); }

.verdict-note { padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.verdict-note p { color: var(--fg-2); margin-bottom: 1.1rem; }
.verdict-note cite { display: flex; align-items: center; gap: .7rem; font-style: normal; }
.verdict-note .byline-avatar { width: 2.3rem; height: 2.3rem; }
.verdict-note cite b { display: block; color: var(--fg); font-weight: 700; }
.verdict-note cite span { display: block; font-size: .875rem; color: var(--fg-3); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr);
  gap: 2.5rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.footer-tagline { margin-top: 1rem; font-size: .9375rem; color: var(--fg-2); }
.footer-heading {
  font-family: var(--body); font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { font-size: .9375rem; color: var(--fg-2); transition: color .14s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-desk p { font-size: .9375rem; color: var(--fg-2); margin-bottom: 1rem; }

.footer-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-bottom: 2.5rem; }
.mark { display: flex; align-items: center; gap: .65rem; padding: .95rem 1.1rem; }
.mark svg { color: var(--accent); flex: none; }
.mark b { display: block; font-size: .875rem; font-weight: 700; color: var(--fg); }
.mark span { display: block; font-size: .8125rem; color: var(--fg-3); }

.footer-bottom { padding-block: 1.6rem 2.25rem; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: .875rem; color: var(--fg-3); }
.footer-bottom a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: .9rem; font-size: .8125rem; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.page-404 { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.page-404 .code { font-family: var(--display); font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 700; letter-spacing: -.05em; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.page-404 p { color: var(--fg-2); margin-bottom: 1.9rem; }
.page-404 .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   MOTION
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .glass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-desk { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header: 4.25rem; --gutter: 1.15rem; }

  .menu-toggle { display: flex; }

  .site-nav {
    position: fixed; inset: 0; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    padding: 5.75rem 1.15rem 3rem;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-1rem);
    transition: opacity .26s var(--ease), transform .28s var(--ease), visibility .26s;
    margin-left: 0;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-list a.nav-link { padding: .95rem 1rem; font-size: 1.05rem; justify-content: space-between; background: var(--glass); }
  .nav-indicator { display: none; }

  .nav-item--has-submenu::after { display: none; }
  .nav-submenu {
    position: static; transform: none; width: auto;
    grid-template-columns: 1fr; box-shadow: none; background: transparent;
    padding: .45rem 0 0;
    opacity: 1; visibility: visible; pointer-events: auto; display: none;
  }
  .nav-item--has-submenu.is-open > .nav-submenu { display: grid; transform: none; }
  .nav-submenu a { background: var(--glass); padding: .65rem .85rem; }

  .header-cta { display: none; }
  .site-nav .header-cta { display: inline-flex; margin-top: 1.4rem; width: 100%; }

  .hero { min-height: auto; }
  .split-layout, .split-layout--reverse, .verdict, .faceoff,
  .hero-grid, .review-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .split-layout--reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16 / 10; }

  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .glass-grid { grid-template-columns: minmax(0, 1fr); }
  .floor-grid--3, .floor-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor-tile--span2, .floor-tile--span3, .floor-tile--span4 { grid-column: span 2; }
  .callout { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .footer-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .stat-band { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .floor-grid--2, .floor-grid--3, .floor-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .floor-tile--span2, .floor-tile--span3, .floor-tile--span4 { grid-column: span 1; }
  .feature-check-list--plain { grid-template-columns: 1fr; }
  .footer-main, .footer-marks { grid-template-columns: minmax(0, 1fr); }
  .rank-rail { grid-auto-columns: minmax(14rem, 84%); }
  .timeline { padding-left: 2rem; }
  .tl-item::before { left: -2rem; }
}
