/* The painting pages (index.html #page, pages.js): the pages the Growth
   room's five paintings open — the Growth ink and cream, the fold of a sales
   letter (copy left, art right, the numbers in red), linocuts in their own
   brown frames. Every rule is scoped to .paint-page: the stage shares the
   document with the home, Explore and Growth stages. The root itself
   scrolls (styles.css). */
.paint-page {
  --ink: #0b0908;
  --paper: #f4e7cf;
  --paper-dim: #c9bda6;
  --red: #720607;
  --red-hot: #c0262a;
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.45;
}
.paint-page .page { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px); }
.paint-page section { padding: clamp(40px, 7vw, 96px) 0; border-top: 1px solid rgba(244, 231, 207, 0.08); }
.paint-page section:first-child { border-top: 0; }
.paint-page h1, .paint-page h2 { font-family: "Anton", "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.98; margin: 0 0 0.5em; font-weight: 400; color: var(--paper); }
.paint-page h1 { font-size: clamp(38px, 5.6vw, 82px); }
.paint-page h2 { font-size: clamp(28px, 3.6vw, 52px); }
.paint-page .n { color: var(--red-hot); }   /* the red alone — an underline read as a link */
.paint-page .g { color: #cf9d48; }            /* the coin's gold (sampled from page 3's revenue emblem): what the visitor gets — money words on page 3, the Growth Engineer on page 4 */
.paint-page .kicker { font-size: 0.85em; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-dim); margin: 0 0 1.2em; }
.paint-page .lede { font-size: 1.25em; max-width: 30em; }
.paint-page .trust, .paint-page .note, .paint-page .fine, .paint-page .aside { color: var(--paper-dim); font-size: 0.9em; }
.paint-page .fine { max-width: 60em; margin-top: 2em; }
.paint-page p { margin: 0 0 1em; }

/* every linocut carries its own frame; the page only adds the wall's shadow */
.paint-page img.art, .paint-page .three-grid img, .paint-page .side-art img, .paint-page .scene img, .paint-page .pick img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }

/* ---- 1. the fold ---- */
.paint-page .fold { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(24px, 4vw, 56px); }   /* both columns sit on one baseline: the caption's bottom on the trust line's */
.paint-page .fold-copy > :last-child { margin-bottom: 0; }
.paint-page .fold-art { position: relative; margin: 0; }
.paint-page .fold-art .art.lit { position: absolute; inset: 0; opacity: 0; transition: opacity 120ms linear; }
.paint-page .fold-art figcaption { margin-top: 0.8em; font-size: 0.85em; color: var(--paper-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.paint-page .fold-art figcaption span { color: var(--red-hot); }

/* ---- 2. the three things ---- */
.paint-page .three-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 36px); }
.paint-page .three-grid li b { display: block; margin: 0.9em 0 0.3em; font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 1.25em; letter-spacing: 0.03em; }
.paint-page .three-grid li p { margin: 0; color: var(--paper-dim); }

.paint-page .three-grid.four { grid-template-columns: repeat(4, 1fr); }
.paint-page .wide-art { margin: 1.6em auto; max-width: 900px; }
.paint-page .wide-art figcaption, .paint-page .room-art figcaption { margin-top: 0.8em; font-size: 0.85em; color: var(--paper-dim); letter-spacing: 0.12em; text-transform: uppercase; }
/* what stays human: no box — the lede's size on a red rule, like the tiles */
.paint-page .human { border-left: 3px solid var(--red-hot); padding: 0.2em 0 0.2em 1.2em; max-width: 34em; }
.paint-page .human p { margin: 0; font-size: 1.25em; line-height: 1.45; color: var(--paper); }
/* the start (page 4): a lede, a wide picture, four cards */
.paint-page .cards.four { grid-template-columns: repeat(4, 1fr); }
/* the bound section (page 4): one bold statement in the red, then the rules */
.paint-page .bound .statement { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(24px, 3vw, 44px); line-height: 1.05; letter-spacing: 0.02em; color: var(--red-hot); margin: 0 0 0.5em; }
/* ---- cards (shared) ---- */
.paint-page .cards { display: grid; gap: clamp(12px, 1.6vw, 22px); }
.paint-page .cards.five { grid-template-columns: repeat(5, 1fr); }
.paint-page .cards.seven { grid-template-columns: repeat(4, 1fr); }
.paint-page .card img { display: block; width: 100%; height: auto; margin-bottom: 0.8em; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5); }
.paint-page .card.sys b { text-transform: uppercase; }
.paint-page .card.sys small { display: block; color: var(--red-hot); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75em; margin-bottom: 0.4em; }
.paint-page .card { background: rgba(244, 231, 207, 0.05); border: 1px solid rgba(244, 231, 207, 0.12); border-radius: 6px; padding: 1.1em 1.1em 1.2em; }
.paint-page .card .num { display: block; font-family: "Anton", sans-serif; font-size: 2.1em; color: var(--red-hot); line-height: 1; margin-bottom: 0.3em; }
.paint-page .card b { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95em; margin-bottom: 0.4em; }
.paint-page .card p { margin: 0; color: var(--paper-dim); font-size: 0.95em; }
.paint-page .card.low { border-style: dashed; }
.paint-page .sum { margin-top: 1.6em; font-size: 1.15em; }

/* ---- 3. the tunnel behind the area cards: the Explore stage's receding
   frames, drawn in CSS ---- */
.paint-page .areas { position: relative; overflow: hidden; }
.paint-page .tunnel { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.paint-page .tunnel i { position: absolute; left: 50%; top: 50%; border: 2px solid rgba(114, 6, 7, 0.55); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.paint-page .tunnel i:nth-child(1) { width: 96%; height: 92%; --r: 0deg; }
.paint-page .tunnel i:nth-child(2) { width: 82%; height: 78%; --r: 1.6deg; opacity: 0.85; }
.paint-page .tunnel i:nth-child(3) { width: 69%; height: 65%; --r: 3.2deg; opacity: 0.7; }
.paint-page .tunnel i:nth-child(4) { width: 57%; height: 53%; --r: 4.8deg; opacity: 0.55; }
.paint-page .tunnel i:nth-child(5) { width: 46%; height: 42%; --r: 6.4deg; opacity: 0.4; }
.paint-page .tunnel i:nth-child(6) { width: 36%; height: 32%; --r: 8deg; opacity: 0.3; }
.paint-page .areas > :not(.tunnel) { position: relative; z-index: 1; }

/* ---- 4. the rooms and the handle ---- */
.paint-page .rooms p { max-width: 46em; }
.paint-page .room-art { position: relative; margin: 1.6em auto; max-width: 900px; }
.paint-page .room-art figcaption, .paint-page .panel-art figcaption { margin-top: 0.8em; font-size: 0.85em; color: var(--paper-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.paint-page .panel-art { margin: 0 auto; max-width: 760px; }
/* ---- side-by-side sections (5, 9) ---- */
.paint-page .precision, .paint-page .honest { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.paint-page .side-art { margin: 0; }
.paint-page .side-art.small { max-width: 420px; }
.paint-page .precision .cards { grid-template-columns: 1fr 1fr; }
.paint-page .aside { margin-top: 1.4em; }

/* ---- 6. faster ---- */
.paint-page .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-bottom: clamp(24px, 3vw, 48px); }
.paint-page .tile { border-top: 3px solid var(--red-hot); padding-top: 0.8em; }
.paint-page .tile b { display: block; font-family: "Anton", sans-serif; font-size: 2.4em; line-height: 1; letter-spacing: 0.02em; }
.paint-page .tile p { margin: 0.4em 0 0; color: var(--paper-dim); }
/* ---- 7. compare ---- */
.paint-page .compare table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.paint-page .compare th, .paint-page .compare td { text-align: left; padding: 0.8em 0.9em; border-bottom: 1px solid rgba(244, 231, 207, 0.12); vertical-align: top; }
.paint-page .compare th { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05em; }
.paint-page .compare td.y { color: var(--paper); }
.paint-page .compare td.y::before { content: "◉ "; color: var(--red-hot); }
.paint-page .compare td.x { color: var(--paper-dim); }
.paint-page .compare td.x::before { content: "— "; }

/* ---- 8. scenes ---- */
.paint-page .scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 26px); }
.paint-page .scene b { display: block; margin: 0.8em 0 0.3em; font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.1em; }
.paint-page .scene p { margin: 0; color: var(--paper-dim); font-size: 0.95em; }

/* ---- 10. the close: two pictures, the right one always at its full
   brightness (the hover only lifts it), the left one dimmed; their captions
   in the closing line's face — the left one greyed, the undesirable choice;
   then the closing line itself, set like the bound statement, its first
   sentence in the red and the rest in the paper ---- */
.paint-page .close-section { padding-top: clamp(56px, 9vw, 120px); }
.paint-page .choice { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 40px); margin: 1.2em 0 0; }
.paint-page .pick { position: relative; margin: 0; cursor: pointer; }
.paint-page .pick img { transition: filter 400ms ease-out, transform 400ms ease-out; }
.paint-page .pick.dim-pick img { filter: brightness(0.55); }
.paint-page .pick.dim-pick:hover img { filter: brightness(0.8); }
.paint-page .pick.lit-pick img { filter: brightness(1.05); }
.paint-page .pick.lit-pick:hover img { transform: translateY(-4px); }
.paint-page .pick figcaption { position: relative; z-index: 1; margin-top: 0.8em; font-size: 1.25em; line-height: 1.4; }   /* the lede's face and size; above the picture's drop shadow (the filtered picture paints over later text otherwise) */
.paint-page .pick.dim-pick figcaption { color: #9a9083; }
.paint-page .pick.lit-pick figcaption { color: var(--paper); }
.paint-page .last { margin: clamp(48px, 7vw, 96px) 0 0; font-family: "Anton", "Archivo Black", sans-serif; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.05; letter-spacing: 0.02em; color: var(--paper); max-width: 22em; }
.paint-page .last .n { color: var(--red-hot); }

@media (max-width: 900px) {
  .paint-page .fold, .paint-page .precision, .paint-page .honest, .paint-page .choice { grid-template-columns: 1fr; }
  .paint-page .fold { min-height: 0; }
  .paint-page .three-grid, .paint-page .three-grid.four, .paint-page .tiles { grid-template-columns: 1fr 1fr; }
  .paint-page .cards.seven, .paint-page .cards.four { grid-template-columns: 1fr 1fr; }
  .paint-page .cards.five, .paint-page .precision .cards, .paint-page .scenes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .paint-page .cards.five, .paint-page .cards.seven, .paint-page .cards.four, .paint-page .precision .cards, .paint-page .scenes, .paint-page .three-grid, .paint-page .three-grid.four { grid-template-columns: 1fr; }
}
