/* ==========================================================================
   ActiveVitPH — site layer
   Navigation, hero composition, puzzle shelves, guides, editorial, footer.
   ========================================================================== */

/* ============================================================ navigation === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 18px 0;
  transition: padding var(--t-slow) var(--ease-out);
}

.nav.is-stuck { padding: 10px 0; }

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition:
    background-color var(--t-slow) var(--ease-out),
    border-color var(--t-slow) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out),
    backdrop-filter var(--t-slow) var(--ease-out);
}

.nav.is-stuck .nav__inner {
  background: rgba(10, 12, 18, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--sh-2);
}

/* --- logotype: the white palm lockup, plus the strapline beneath it --- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-right: auto;
}

.logo__img {
  display: block;
  width: auto;
  height: 25px;
  transition: opacity var(--t-mid) var(--ease-out),
    filter var(--t-mid) var(--ease-out);
}

.logo:hover .logo__img {
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.35));
}

.logo__tag {
  font-size: 0.66rem;
  color: var(--text-4);
  letter-spacing: 0.03em;
  padding-left: 1px;
}

/* --- links --- */

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__link.is-active { color: var(--text); }

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--brass);
  box-shadow: 0 0 8px var(--brass);
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  place-items: center;
}

.nav__burger i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-out),
    opacity var(--t-fast) linear;
}

.nav__burger i + i { margin-top: 4px; }

body.menu-open .nav__burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav__burger i:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- mobile drawer --- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 790;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 96px var(--gutter) var(--gutter);
  background: rgba(6, 8, 12, 0.94);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--ease-out), visibility var(--t-mid);
}

body.menu-open .drawer { opacity: 1; visibility: visible; }

.drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  transform: translateY(14px);
  opacity: 0;
  transition: color var(--t-fast), transform var(--t-slow) var(--ease-out),
    opacity var(--t-slow) var(--ease-out);
}

body.menu-open .drawer a { transform: none; opacity: 1; }
.drawer a:hover { color: var(--brass); }
.drawer a:nth-child(1) { transition-delay: 60ms; }
.drawer a:nth-child(2) { transition-delay: 110ms; }
.drawer a:nth-child(3) { transition-delay: 160ms; }
.drawer a:nth-child(4) { transition-delay: 210ms; }
.drawer a:nth-child(5) { transition-delay: 260ms; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
}

/* The strapline wraps to two lines once the burger and the button are both in
   the bar, which pushes the header taller than the logo needs. */
@media (max-width: 560px) {
  .logo__tag { display: none; }
}

/* ================================================================= hero === */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  padding: 126px 0 72px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

.hero__bg .mesh { opacity: 0.65; }

.hero__bg .glow--brass {
  width: 780px; height: 780px;
  top: -220px; right: -140px;
}

.hero__bg .glow--teal {
  width: 560px; height: 560px;
  bottom: -260px; left: -180px;
}

.hero__bg .glow--violet {
  width: 420px; height: 420px;
  top: 42%; left: 44%;
  opacity: 0.7;
}

/* Horizon line: separates the "floor" the scene sits on from the sky. */
.hero__horizon {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 46%;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 6, 10, 0.85), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

/* --- copy column --- */

/* min-width:0 because a grid item defaults to refusing to shrink below its
   content, and the eyebrow chip does not wrap. */
.hero__copy { position: relative; z-index: 2; min-width: 0; max-width: 700px; }

.hero__eyebrow { margin-bottom: 24px; }

/* The eyebrow is a sentence rather than a label, so on a narrow screen it
   should wrap instead of forcing the whole column wider than the viewport. */
@media (max-width: 620px) {
  .hero__eyebrow {
    white-space: normal;
    text-align: left;
    line-height: 1.7;
  }
}

.hero h1 { margin-bottom: 20px; }

.hero h1 em {
  font-style: normal;
  display: block;
  background: linear-gradient(96deg, var(--brass-hi), var(--brass) 40%, var(--brass-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead { max-width: 29em; margin-bottom: 30px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.hero__facts {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.hero__fact { display: flex; flex-direction: column; gap: 2px; }

.hero__fact b {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero__fact span { font-size: 0.74rem; color: var(--text-4); letter-spacing: 0.01em; }

/* --- the scene: an isometric board floating over the page --- */

.scene {
  position: relative;
  height: clamp(360px, 46vw, 580px);
  perspective: 1400px;
  perspective-origin: 50% 42%;
}

.scene__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 700ms var(--ease-out);
}

/* Board plate */
.plate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  height: 430px;
  margin: -215px 0 0 -215px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  transform: rotateX(58deg) rotateZ(-40deg);
  transform-style: preserve-3d;
  background: linear-gradient(150deg, rgba(28, 34, 47, 0.95), rgba(8, 10, 15, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 60px 80px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: plate-drift 16s var(--ease-in-out) infinite;
}

@keyframes plate-drift {
  0%, 100% { transform: rotateX(58deg) rotateZ(-40deg) translateZ(0); }
  50%      { transform: rotateX(56deg) rotateZ(-38deg) translateZ(14px); }
}

.cell {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-3);
  transform-style: preserve-3d;
}

/* Thicker seams every third column/row, as on a real sudoku grid. */
.cell.seam-r { margin-right: -2px; border-right: 2px solid rgba(255, 255, 255, 0.11); }
.cell.seam-b { margin-bottom: -2px; border-bottom: 2px solid rgba(255, 255, 255, 0.11); }

.cell--given { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.cell--lit {
  color: #1a1206;
  background: linear-gradient(160deg, var(--brass-hi), var(--brass-deep));
  box-shadow:
    0 0 18px var(--brass-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateZ(16px);
  animation: cell-pulse 4.5s var(--ease-in-out) infinite;
}

.cell--lit:nth-of-type(even) { animation-delay: -2.2s; }

@keyframes cell-pulse {
  0%, 100% { transform: translateZ(16px); }
  50%      { transform: translateZ(30px); }
}

.cell--cool {
  color: #04201f;
  background: linear-gradient(160deg, #a8f0eb, #2f9c96);
  box-shadow: 0 0 16px var(--teal-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateZ(10px);
}

/* Light pooling under the plate, sold as a cast glow rather than a shadow. */
.plate__pool {
  position: absolute;
  top: 62%;
  left: 50%;
  width: 560px;
  height: 300px;
  margin-left: -280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230, 174, 93, 0.2), transparent 70%);
  filter: blur(46px);
  z-index: -1;
}

/* Floating props — each one is a real puzzle object, matched to the scene plane. */
.prop {
  position: absolute;
  transform-style: preserve-3d;
  animation: prop-float 9s var(--ease-in-out) infinite;
}

@keyframes prop-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

/* Props stay square to the camera so their glyphs read, which also gives the
   composition a foreground plane distinct from the isometric board. */
.prop__face {
  display: grid;
  place-items: center;
  border-radius: 12px;
  transform: rotateX(13deg) rotateZ(-6deg);
  background: linear-gradient(155deg, rgba(46, 54, 72, 0.92), rgba(10, 13, 19, 0.94));
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 30px 40px -16px rgba(0, 0, 0, 0.9),
    0 4px 10px rgba(0, 0, 0, 0.5),
    var(--sh-inset);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}

.prop--tile   { top: 6%;  right: 14%; animation-delay: -1s; }
.prop--tile .prop__face { width: 66px; height: 66px; font-size: 26px; }

.prop--mine   { top: 26%; right: 2%;  animation-delay: -3.4s; }
.prop--mine .prop__face {
  width: 54px; height: 54px;
  color: var(--bad);
  border-color: rgba(239, 114, 105, 0.32);
}

.prop--flag   { bottom: 20%; left: 2%; animation-delay: -5.1s; }
.prop--flag .prop__face {
  width: 50px; height: 50px;
  color: var(--brass-hi);
  border-color: rgba(230, 174, 93, 0.3);
}

.prop--disc   { bottom: 4%; right: 22%; animation-delay: -6.8s; }
.prop--disc .prop__face {
  width: 62px; height: 62px;
  border-radius: 50%;
  color: var(--teal);
  border-color: rgba(90, 211, 204, 0.3);
}

.prop svg { width: 56%; height: 56%; }

/* Dust motes rising through the light. */
.motes { position: absolute; inset: 0; pointer-events: none; }

.motes i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--brass-hi);
  opacity: 0;
  animation: mote 11s linear infinite;
}

@keyframes mote {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  12%  { opacity: 0.7; }
  70%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-190px) scale(1.1); }
}

/* ============================================================== sections === */

.section { position: relative; padding: clamp(72px, 9vw, 130px) 0; }

.section--tight { padding-block: clamp(56px, 6vw, 88px); }

.section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(16px, 3vw, 34px);
  margin-bottom: clamp(34px, 5vw, 58px);
}

/* Nudged down so the numeral sits on the heading's cap height, not its box. */
.section__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  padding-top: 0.5em;
}

.section__titles { min-width: 0; }

.section__titles p {
  margin-top: 12px;
  max-width: 46em;
  color: var(--text-3);
  font-size: 0.96rem;
}

.section__aside { display: flex; align-items: center; gap: 14px; padding-top: 0.35em; }

@media (max-width: 720px) {
  .section__head { grid-template-columns: 1fr; gap: 12px; }
  .section__index { padding-top: 0; }
  .section__aside { padding-top: 0; }
}

/* ================================================= puzzle shelf (layout) === */

/* Asymmetric: one featured composition plus a stack of compact entries.
   Flipped on alternating shelves so the page never reads as a card grid. */
.shelf {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: stretch;
}

/* Flipping the shelf has to move the wide column too, otherwise the featured
   composition ends up narrower than the list beside it. */
.shelf--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
.shelf--flip > .feature { order: 2; }

.shelf__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.shelf--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 940px) {
  .shelf,
  .shelf--duo { grid-template-columns: 1fr; }
  .shelf--flip > .feature { order: 0; }
}

/* --------------------------------------------------- featured composition --- */

.feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(158deg, var(--ink-850) 0%, var(--ink-950) 62%, var(--ink-1000) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3), var(--sh-inset);
  transition: transform var(--t-slow) var(--ease-out),
    border-color var(--t-slow) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 174, 93, 0.26);
}

.feature__glow {
  position: absolute;
  top: -34%;
  right: -22%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.85;
  background: radial-gradient(circle, rgba(230, 174, 93, 0.34), transparent 66%);
  filter: blur(54px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}

.feature:hover .feature__glow { transform: scale(1.14); opacity: 1; }

.feature--cool .feature__glow { background: radial-gradient(circle, rgba(90, 211, 204, 0.28), transparent 66%); }
.feature--cool:hover { border-color: rgba(90, 211, 204, 0.26); }

/* Sits in the upper corner and lets the panel edge crop one side, so it reads
   as a board caught mid-frame rather than a picture pasted into a box. */
.feature__art {
  position: absolute;
  top: 10px;
  right: -28px;
  width: 44%;
  max-width: 286px;
  z-index: -1;
  opacity: 0.92;
  transform: rotate(-7deg);
  transition: transform 700ms var(--ease-out), opacity var(--t-slow) var(--ease-out);
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.7));
}

.feature:hover .feature__art { transform: rotate(-4deg) scale(1.06) translateY(-8px); opacity: 1; }

.feature__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to top left, #000, transparent 62%);
}

.feature__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }

.feature h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.feature p {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 40ch;
  margin-bottom: 22px;
}

.feature__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.feature__spec {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-4);
  text-transform: uppercase;
}

/* ---------------------------------------------------------- compact entry --- */

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  flex: 1;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    background-color var(--t-mid) var(--ease-out);
}

.entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-radius: 2px;
  background: var(--brass);
  box-shadow: 0 0 12px var(--brass-glow);
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}

.entry:hover {
  transform: translateX(5px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.entry:hover::before { opacity: 1; transform: scaleY(1); }

.entry__art {
  width: 62px;
  height: 62px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  padding: 7px;
  flex: none;
  transition: transform var(--t-mid) var(--ease-out);
}

.entry:hover .entry__art { transform: scale(1.06) rotate(-3deg); }

.entry__body { min-width: 0; }

.entry__body h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.entry__body p {
  font-size: 0.845rem;
  line-height: 1.5;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry__body .t-meta { font-size: 0.62rem; margin-top: 7px; display: block; }

.entry__go {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-3);
  flex: none;
  transition: all var(--t-mid) var(--ease-out);
}

.entry:hover .entry__go {
  color: #1a1206;
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: 0 0 16px var(--brass-glow);
}

.entry__go svg { width: 13px; height: 13px; }

@media (max-width: 560px) {
  .entry { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; gap: 14px; }
  .entry__art { width: 48px; height: 48px; }
  .entry__go { display: none; }
}

/* ------------------------------------------------------- wide duo panels --- */

.duo {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 300px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-850), var(--ink-1000));
  border: 1px solid var(--line);
  box-shadow: var(--sh-2), var(--sh-inset);
  transition: transform var(--t-slow) var(--ease-out), border-color var(--t-slow) var(--ease-out);
}

.duo:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.duo__art {
  position: absolute;
  right: -8%;
  bottom: -14%;
  width: 54%;
  max-width: 260px;
  z-index: -1;
  opacity: 0.9;
  transition: transform 700ms var(--ease-out);
}

.duo:hover .duo__art { transform: translateY(-8px) scale(1.05); }

.duo h3 { font-size: 1.5rem; margin-bottom: 10px; }
.duo p { color: var(--text-2); font-size: 0.92rem; max-width: 34ch; }
.duo__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* ================================================================ guides === */

.guides {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.guides__pitch { position: sticky; top: 120px; }
.guides__pitch h2 { margin-bottom: 18px; }
.guides__pitch p { color: var(--text-2); margin-bottom: 26px; max-width: 36ch; }

.guides__list { display: flex; flex-direction: column; }

.guide-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(14px, 2vw, 26px);
  padding: 20px 8px;
  border-top: 1px solid var(--line-soft);
  transition: padding-left var(--t-mid) var(--ease-out);
}

.guide-row:last-child { border-bottom: 1px solid var(--line-soft); }
.guide-row:hover { padding-left: 16px; }

.guide-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(230, 174, 93, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-out);
}

.guide-row:hover::after { opacity: 1; }

.guide-row__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-4);
  transition: color var(--t-mid) var(--ease-out);
}

.guide-row:hover .guide-row__no { color: var(--brass); }

.guide-row__body h4 {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
  transition: color var(--t-mid) var(--ease-out);
}

.guide-row:hover .guide-row__body h4 { color: var(--brass-hi); }

.guide-row__body p { font-size: 0.87rem; color: var(--text-3); max-width: 56ch; }

.guide-row__tag { flex: none; align-self: center; }

@media (max-width: 880px) {
  .guides { grid-template-columns: 1fr; }
  .guides__pitch { position: static; }
  .guide-row { grid-template-columns: auto minmax(0, 1fr); }
  .guide-row__tag { display: none; }
}

/* ============================================================= editorial === */

.editorial {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 70px);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(230, 174, 93, 0.07), transparent 58%),
    linear-gradient(165deg, var(--ink-900), var(--ink-1000));
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}

.editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.editorial h2 { margin-bottom: 20px; }

.editorial__lede {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
}

.editorial__body { --stack-gap: 1.1rem; font-size: 0.945rem; color: var(--text-2); }
.editorial__body strong { color: var(--text); font-weight: 600; }

/* Struck-through list of things the site refuses to do. */
.nope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.nope span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: var(--text-4);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 114, 105, 0.55);
  text-decoration-thickness: 1.5px;
}

@media (max-width: 880px) {
  .editorial__grid { grid-template-columns: 1fr; }
}

/* ================================================================ footer === */

.footer {
  position: relative;
  margin-top: clamp(60px, 8vw, 110px);
  padding: clamp(48px, 6vw, 82px) 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.015), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 54px);
  margin-bottom: 46px;
}

.footer__brand p {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-3);
  max-width: 34ch;
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 16px;
}

.footer__col li + li { margin-top: 9px; }

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--t-fast), padding-left var(--t-fast) var(--ease-out);
}

.footer__col a:hover { color: var(--brass); padding-left: 4px; }

.footer__note {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line-soft);
  font-size: 0.82rem;
  line-height: 1.62;
  color: var(--text-3);
  margin-bottom: 26px;
}

.footer__note strong { color: var(--text-2); font-weight: 600; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--text-4);
}

.footer__base nav { display: flex; gap: 18px; }
.footer__base a:hover { color: var(--brass); }

/* Interior pages get a shorter footer: the puzzle is the point of the page. */
.footer--slim { padding-top: clamp(38px, 4vw, 56px); }

.footer__slim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.footer__slim nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
}

.footer__slim nav a { color: var(--text-2); transition: color var(--t-fast); }
.footer__slim nav a:hover { color: var(--brass); }

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============================================== hero responsive rebuild === */

/* Mobile is a recomposition, not a squeeze: the scene moves behind the copy
   and shrinks, but the board stays the loudest object on screen. */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding: 128px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__copy { max-width: 100%; order: 2; }
  .hero__lead { max-width: 54ch; }
  .scene { order: 1; height: clamp(300px, 60vw, 440px); margin-bottom: 8px; }
  .plate { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .cell { font-size: 15px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 112px; }
  .scene { height: 280px; }
  .plate { width: 268px; height: 268px; margin: -134px 0 0 -134px; }
  .cell { font-size: 12px; }
  /* Secondary decoration is dropped rather than crowded. */
  .prop--flag, .prop--disc { display: none; }
  .prop--tile .prop__face { width: 46px; height: 46px; font-size: 18px; }
  .prop--mine .prop__face { width: 40px; height: 40px; }
  .hero__facts { gap: 18px; }
  .hero__fact b { font-size: 1.25rem; }
  .hero__cta .btn { flex: 1 1 100%; }
}
