/* ==========================================================================
   Tested Companions — shared design system
   Black chrome, pink CTAs, photo cards first. One stylesheet, three hosts.
   ========================================================================== */

:root {
  --bg: #0b0910;
  --bg-2: #15121c;
  --bg-3: #1e1a28;
  --bg-4: #272134;
  --ink: #f6f3f9;
  --muted: #a79fb5;
  --faint: #7a7189;
  --line: #2a2436;
  --accent: #ff4d8d;
  --accent-2: #ff8bb0;
  --accent-ink: #21030f;
  --ok: #5fcf9e;
  --warn: #e0b341;
  --bad: #f0705c;

  --sans: "Poppins", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --prose-font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --max: 76rem;
  --prose: 44rem;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

.theme-candy {
  --bg: #0a090c;
  --bg-2: #141218;
  --bg-3: #1d1a22;
  --bg-4: #262230;
  --ink: #fff6f8;
  --muted: #c2b2b8;
  --faint: #8b7b83;
  --line: #33262c;
  --accent: #f97187;
  --accent-2: #febbc5;
  --accent-ink: #1e0508;
}

.theme-lucky {
  --bg: #0a0813;
  --bg-2: #14101f;
  --bg-3: #1c1729;
  --bg-4: #262036;
  --ink: #f4f1fb;
  --muted: #a99fc0;
  --faint: #776e91;
  --line: #2a2340;
  --accent: #ff2d74;
  --accent-2: #22d3c5;
  --accent-ink: #1e0410;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

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

/* Hard safety net: nothing coming out of /logos/ can ever render as a poster. */
img[src*="/logos/"] {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink); }

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

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 60;
  background: var(--accent); color: var(--accent-ink); padding: .5rem .8rem; border-radius: 8px;
}

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.prose { max-width: var(--prose); font-family: var(--prose-font); }

/* ---------------------------------------------------------------- type --- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

/* Long unbreakable strings (email addresses, URLs) must not scroll the page. */
h1, h2, h3, h4, p, li, td, dd { overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: .4rem 0 .8rem; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin: 2.6rem 0 .9rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1rem; }

article p, article li, .prose, .card p, .callout p { font-family: var(--prose-font); }

.lede { font-size: 1.13rem; color: var(--muted); font-family: var(--prose-font); }

.kicker {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 .35rem;
}

.section-head {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  margin: 2.6rem 0 1rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--faint); font-size: .88rem; }

/* ------------------------------------------------------------- top bar --- */

.notice {
  background: #000;
  color: var(--faint);
  font-size: .74rem;
  letter-spacing: .02em;
  padding: .4rem 0;
}
.notice .wrap { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.mast {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.mast-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 0;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  margin-right: auto;
}
.brand small {
  font-weight: 500; font-size: .6rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.brand .stack { display: flex; flex-direction: column; line-height: 1.15; }

.nav { display: flex; flex-wrap: wrap; gap: .3rem 1.15rem; font-size: .875rem; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  background: var(--bg-3); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .85rem; font: inherit; font-size: .85rem; cursor: pointer;
}

.mast .btn { padding: .5rem 1rem; font-size: .82rem; }

/* -------------------------------------------------------------- logos --- */
/* Every logo box below has an explicit height and an explicit max width,
   plus object-fit: contain, so no source file can inflate its container. */

.blogo {
  height: 22px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  object-position: left center;
  flex: none;
}
.blogo.sm { height: 16px; max-width: 94px; }
.blogo.md { height: 26px; max-width: 150px; }
.blogo.lg { height: 34px; max-width: 190px; }

.bmark { height: 24px; width: 24px; object-fit: contain; flex: none; border-radius: 6px; }
.bmark.sm { height: 17px; width: 17px; }
.bmark.md { height: 28px; width: 28px; }
.bmark.lg { height: 38px; width: 38px; }

/* Mark + typeset wordmark lockup (LuckyCrush, Xotic, Joi). */
.lock {
  display: inline-flex; align-items: center; gap: .42rem;
  font-weight: 600; letter-spacing: -.02em; color: var(--ink);
  line-height: 1; white-space: nowrap; text-decoration: none;
}
.lock .lw { font-size: 1.02rem; font-weight: 500; }
.lock .lw b { font-weight: 700; }
.lock.sm .lw { font-size: .8rem; }
.lock.md .lw { font-size: 1.18rem; }
.lock.lg .lw { font-size: 1.6rem; }

.logo-lock { height: 30px; width: auto; max-width: 176px; object-fit: contain; object-position: left center; }
.logo-lock.lg { height: 38px; max-width: 216px; }

/* Inline "we are naming a brand" chip. */
.cite {
  display: inline-flex; align-items: center; gap: .4rem;
  vertical-align: middle;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .16rem .62rem;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .88em; white-space: nowrap;
}
.cite img { height: 16px; width: auto; max-width: 88px; object-fit: contain; }
.cite img.mark { height: 16px; width: 16px; }
a.cite:hover { border-color: var(--accent); color: var(--ink); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .78rem 1.4rem;
  border: 1px solid transparent;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  text-decoration: none; font-weight: 700; font-size: .95rem;
  cursor: pointer; border-radius: 999px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.07); color: var(--accent-ink); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); background: rgba(255,255,255,.1); }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0; }

/* Decorative candy.ai-style filter chips. */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.3rem; }
.chips span, .chips a {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: .34rem .95rem;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  text-decoration: none;
}
.chips .on { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); }
.chips a:hover { border-color: var(--accent); color: var(--ink); }

/* ---------------------------------------------------------------- hero --- */

/* Plain (no photo) hero, used on legal and secondary pages. */
.hero {
  padding: 2.6rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 300px at 12% -20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    var(--bg);
}
.hero.hero-bleed { padding: 0; border-bottom: 0; background: var(--bg); }

.hero-bleed {
  position: relative;
  min-height: min(76vh, 40rem);
  display: grid; align-items: end;
  overflow: hidden;
}
.hero-bleed .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 20%;
}
.hero-bleed::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 62%, transparent) 40%, transparent 78%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 44%, transparent 68%);
  pointer-events: none;
}
.hero-bleed .wrap { position: relative; z-index: 1; padding: 4.5rem 0 2.6rem; }
.hero-bleed h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero-bleed .lede { color: #efe9f2; text-shadow: 0 1px 14px rgba(0,0,0,.6); max-width: 46ch; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 2.4rem; align-items: end;
}

.review-badge {
  display: flex; align-items: center; gap: .45rem;
  background: rgba(10, 8, 14, .62);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: .24rem .8rem .24rem .3rem;
  font-size: .8rem; margin: 0 0 .9rem; width: fit-content;
}
.review-badge b {
  white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: .12rem .55rem; font-size: .76rem;
}

.meta-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem;
  color: var(--muted); font-size: .85rem; margin: .8rem 0 0;
}

.score-card {
  background: rgba(12, 10, 16, .72);
  backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.score-num { font-size: 3.2rem; line-height: 1; color: var(--accent); font-weight: 800; letter-spacing: -.04em; }
.score-card > p { color: var(--muted); font-size: .9rem; margin: .2rem 0 0; }
.score-card dl { margin: 1rem 0 0; }
.score-card dt { font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.score-card dd { margin: .1rem 0 .6rem; font-size: .92rem; font-family: var(--prose-font); }

/* ------------------------------------------------- character card grids --- */

/* Dense portrait grid — the page is the cards. */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: .7rem;
  margin-block: 1.1rem 2rem;
}
.gcard {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  text-decoration: none; color: #fff;
  isolation: isolate;
}
.gcard img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  transition: transform .35s ease;
}
.gcard::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.12) 46%, transparent 68%);
}
.gcard .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: .7rem .8rem .75rem;
  display: flex; flex-direction: column; gap: .18rem;
}
.gcard .cap b { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.gcard .cap span { font-size: .74rem; color: #cfc7d8; }
.gcard:hover img { transform: scale(1.04); }

/* Horizontal rail, candy.ai "Featured characters" feel. */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12.5rem, 1fr);
  gap: .7rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: .2rem .2rem 1.2rem;
  margin: 0 -.2rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }

/* Legacy tight mosaic (still used as a texture strip). */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .45rem;
  padding-block: .2rem 0;
}
.mosaic img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: center 18%;
  border-radius: 10px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  margin-block: 1.2rem 1.8rem;
}
.photo-row img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: center 18%;
  border-radius: var(--radius-sm);
}

/* Big product cards — the "app store of companions". */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-block: 1.2rem 2.2rem;
}
.pcard {
  position: relative; display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none; color: #fff;
  background: var(--bg-2);
  isolation: isolate;
}
.pcard img.cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 16%;
  transition: transform .4s ease;
}
.pcard::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 4%, rgba(0,0,0,.35) 42%, rgba(0,0,0,.05) 70%);
}
.pcard:hover img.cover { transform: scale(1.045); }
.pcard-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1rem 1.05rem 1.1rem;
  display: flex; flex-direction: column; gap: .3rem; align-items: flex-start;
}
.pcard-body .blogo, .pcard-body .lock { margin-bottom: .15rem; }
.pcard-body .lock { color: #fff; }
.pcard strong { display: block; font-size: 1.06rem; font-weight: 600; }
.pcard span.meta { display: block; color: #d5cddd; font-size: .8rem; }
.pcard .score {
  position: absolute; top: .7rem; right: .75rem; z-index: 1;
  background: rgba(8,6,12,.72);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: .18rem .6rem;
  font-size: .78rem; font-weight: 700;
}

/* Small compare strip at the foot of review pages. */
.comp-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .6rem;
  margin-block: 1.3rem 0;
}
.comp-strip a {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  text-decoration: none; color: #fff;
}
.comp-strip a img.cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 16%;
}
.comp-strip a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.05) 62%);
}
.comp-strip a .txt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: .6rem .65rem .7rem;
  display: flex; flex-direction: column; gap: .15rem; align-items: flex-start;
}
.comp-strip strong { font-size: .9rem; font-weight: 600; }
.comp-strip span { font-size: .72rem; color: #cfc7d8; }
.comp-strip a:hover { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Framed official screenshot — used once per page, captioned. */
.shot-frame {
  margin: 1.6rem 0 2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot-frame img { width: 100%; height: auto; }
.shot-frame figcaption {
  padding: .75rem 1rem .9rem;
  font-size: .82rem; color: var(--muted);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}

/* ----------------------------------------------------------- editorial --- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 3rem;
  padding: 1.6rem 0 4rem;
}
/* Grid children must be allowed to shrink, or the wide comparison tables
   (min-width: 42rem) blow the track out and the whole page scrolls sideways. */
.layout > * { min-width: 0; }

.toc { position: sticky; top: 5rem; font-size: .86rem; color: var(--muted); align-self: start; }
.toc a { color: var(--muted); text-decoration: none; display: block; padding: .24rem 0; }
.toc a:hover { color: var(--ink); }
.toc h2 {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 .6rem; color: var(--faint);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 42rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  background: var(--bg-3);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
td { font-family: var(--prose-font); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.grid-2, .grid-3 { display: grid; gap: .9rem; margin: 1.2rem 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
}
.card h3 { margin-top: .1rem; }
.card p:last-child { margin-bottom: 0; }

.list-plain { padding-left: 1.1rem; font-family: var(--prose-font); }
.list-plain li { margin-bottom: .4rem; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .95rem 1.15rem;
  margin: 1.4rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); }
.callout.bad { border-left-color: var(--bad); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > button {
  width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--ink);
  font: inherit; font-family: var(--sans); font-weight: 600; font-size: 1.03rem;
  padding: .95rem 0; cursor: pointer;
}
.faq-item > div { display: none; color: var(--muted); padding: 0 0 1rem; font-family: var(--prose-font); }
.faq-item.is-open > div { display: block; }

.rule { height: 1px; background: var(--line); border: 0; margin: 2.2rem 0; }

.tag {
  display: inline-block;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .1rem .55rem;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

.form { display: grid; gap: .7rem; max-width: 28rem; }
.form label { font-size: .85rem; color: var(--muted); }
.form input, .form textarea {
  width: 100%;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: .65rem .75rem; font: inherit;
}

.placeholder-note { font-size: .82rem; color: var(--faint); margin-top: .4rem; }

/* -------------------------------------------------------------- footer --- */

.foot {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 3rem;
  color: var(--muted); font-size: .87rem;
  background: #06050a;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.8rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: .25rem 0; }
.foot h2 {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 .6rem;
}
.foot p { font-family: var(--prose-font); }

/* ------------------------------------------------------------ age gate --- */
/* A bottom bar. Never a full-page blackout over the photos. */

#age-gate {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(8, 6, 12, .92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .5);
}
#age-gate[hidden] { display: none; }
.gate-card {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1rem 1.4rem;
  flex-wrap: wrap;
  padding: .75rem 0 .85rem;
}
.gate-card .gate-txt { flex: 1 1 22rem; min-width: 0; }
.gate-card p { margin: 0; font-size: .85rem; color: var(--muted); font-family: var(--prose-font); }
.gate-card strong { color: var(--ink); font-family: var(--sans); }
.gate-card .actions { margin: 0; flex: none; }
.gate-card .btn { padding: .55rem 1.15rem; font-size: .85rem; }

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .toc { position: static; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}

@media (max-width: 900px) {
  .foot-grid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { display: inline-flex; }
  .mast-inner { position: relative; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + .7rem);
    background: var(--bg-2);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .8rem 1rem 1rem;
    flex-direction: column; gap: .55rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-bleed { min-height: 33rem; }
  .hero-bleed .wrap { padding: 3rem 0 2rem; }
  .hero-bleed .hero-photo { object-position: 76% 16%; }
  .hero-bleed::after {
    background:
      linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 72%, transparent) 46%, color-mix(in srgb, var(--bg) 25%, transparent) 82%),
      linear-gradient(90deg, color-mix(in srgb, var(--bg) 78%, transparent) 0%, color-mix(in srgb, var(--bg) 22%, transparent) 62%, transparent 100%);
  }
  .brand small { display: none; }
  .hide-sm { display: none; }
}

@media (max-width: 600px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .comp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .notice { font-size: .68rem; }
  .notice .wrap { gap: .5rem; }
  .hero-bleed { min-height: 30rem; }
  .hero-bleed h1 { max-width: 100%; }
  .score-card { padding: 1rem 1.05rem; }
  .gate-card { padding: .7rem 0 .8rem; gap: .6rem; }
  .gate-card .btn { flex: 1 1 auto; }
  .pcard { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gcard img, .pcard img.cover { transition: none; }
}
