/* grokbot.guru — Comp B Crew Stations + BREAK THE GRID (2026-09-04)
   Remy art direction. Personality over tidy card spreadsheet.
   Live copy restored; footer lock held. */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap");

:root {
  --paper: #f7f5f0;
  --paper-deep: #ebe6dc;
  --ink: #1c1a17;
  --ink-soft: #5a564e;
  --rule: #d9d2c5;
  --teal: #0f6e6a;
  --teal-deep: #0a524f;
  --pink: #f25aa6;
  --orange: #e87a2e;
  --gold: #d4a017;
  --purple: #6b4fa0;
  --rust: #8B4E3A;
  --card: #ffffff;
  --crew-band: #1c1a17;
  --max: 68rem;
  --gutter: clamp(1.25rem, 4.5vw, 2rem);
  --tap: 2.75rem;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.55;
  font-size: 1.0625rem;
  overflow-x: clip;
  font-optical-sizing: auto;
}

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

img, video { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(100% - (2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

/* —— Header —— */
header.site {
  border-bottom: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, #fff);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 var(--rule);
}

.top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0 0.75rem;
  flex-wrap: nowrap; /* Remy lock: never wrap search under a lonely hairline */
}
.top .brand {
  flex: 0 0 auto;
}
.top .site-search {
  flex: 0 1 14rem;
  min-width: 10rem;
  max-width: 16rem;
  margin-left: 0;
}
.top nav.primary {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.brand span { color: var(--teal); }
.brand .ico {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--pink);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
nav.primary a:hover {
  color: var(--teal-deep);
  box-shadow: inset 0 -2px 0 var(--teal);
}

/* —— Header search (Remy CHROME / MOTION 2026-09-05) —— */
.site-search {
  position: relative;
  flex: 0 1 14rem;
  min-width: 11rem;
  max-width: 16rem;
  margin-left: 0.25rem;
}
.site-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1.5px solid var(--ink);
  background: #fffef8;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
}
.site-search-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.site-search-shell {
  position: relative;
  width: 100%;
}
.site-search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.site-search-field .site-search-ico {
  position: absolute;
  left: 0.55rem;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.site-search-field .site-search-ico svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.site-search input[type="search"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  background: #fffef8;
  border: 1.5px solid var(--ink);
  border-radius: 0 !important;
  padding: 0.4rem 0.65rem 0.4rem 2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  transition: max-width 180ms ease-out, border-color 120ms ease-out;
}
.site-search input[type="search"]::-webkit-search-decoration,
.site-search input[type="search"]::-webkit-search-cancel-button,
.site-search input[type="search"]::-webkit-search-results-button,
.site-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.site-search input[type="search"]::placeholder {
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-weight: 500;
}
.site-search input[type="search"]:focus {
  outline: none;
  border-color: var(--teal, #0f6e6a);
  box-shadow: none;
}
.site-search.is-focused {
  max-width: 20rem;
  flex-basis: 18rem;
}
.site-search-panel {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  left: auto;
  width: max(100%, min(24rem, 92vw));
  max-height: min(60vh, 22rem);
  overflow: auto;
  z-index: 40;
  background: #fffef8;
  border: 1px solid var(--ink);
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.15rem 0.15rem 0.15rem 0;
  border-left: 3.5px solid var(--teal, #0f6e6a);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.site-search-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-search-panel[hidden]:not(.is-open) {
  display: none !important;
}
.site-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-search-hit {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.7rem 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 0;
  border-left: 2px solid transparent;
}
.site-search-hit:hover,
.site-search-hit.is-active,
.site-search-hit:focus {
  background: color-mix(in srgb, var(--teal, #0f6e6a) 10%, transparent);
  border-left-color: var(--teal, #0f6e6a);
  outline: none;
}
.site-search-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.site-search-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.site-search-blurb {
  font-size: 0.76rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.site-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.12rem;
}
.site-search-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
}
.site-search-tag.is-beginner {
  border-color: var(--teal, #0f6e6a);
  color: var(--teal-deep, #0a5552);
}
.site-search-tag.is-advanced {
  border-color: var(--orange, #e87a2e);
  color: color-mix(in srgb, var(--orange, #e87a2e) 80%, var(--ink));
}
.site-search-empty {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .site-search input[type="search"],
  .site-search-panel {
    transition: none !important;
  }
  .site-search-panel {
    transform: none;
  }
}
@media (max-width: 720px) {
  .top {
    flex-wrap: wrap;
  }
  .top nav.primary {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .top .site-search {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    margin-left: auto;
  }
  .site-search {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    margin-left: auto;
  }
  .site-search-toggle {
    display: inline-flex;
  }
  .site-search-shell {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    z-index: 40;
  }
  .site-search.is-open .site-search-shell {
    display: block;
  }
  .site-search.is-open .site-search-toggle {
    border-color: var(--teal, #0f6e6a);
  }
  .site-search input[type="search"] {
    padding-left: 2rem;
  }
  .site-search-panel {
    position: relative;
    top: 0.3rem;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* —— Hero —— */
.hero {
  padding: 2rem 0 2.75rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: visible;
}
.hero::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 12%;
  width: 42%;
  height: 1px;
  background: var(--teal);
  transform: rotate(8deg);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 1.25rem 0.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 28rem; }

.hero-kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-kicker .ico {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--pink);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  display: inline-block;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 6.4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: -0.032em;
  max-width: 18ch;
  overflow-wrap: break-word;
  font-weight: 700;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.45rem;
  line-height: 1.5;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: var(--tap);
  letter-spacing: 0.015em;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

.hero-stage {
  position: relative;
  margin-right: calc(-1 * var(--gutter) * 0.55);
  margin-bottom: -1.5rem;
  transform: rotate(-1.5deg);
  z-index: 2;
}
.hero-stage-frame {
  border: 2px solid var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
  outline: 1px solid var(--rule);
  outline-offset: 5px;
  position: relative;
}
.hero-stage-frame video,
.hero-stage-frame img {
  width: 112%;
  max-width: none;
  margin-left: -4%;
  margin-top: -6%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.hero-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.65rem 0.25rem 0;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.hero-caption strong { color: var(--ink); font-style: normal; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.bot-chip {
  position: absolute;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.bot-chip::before {
  content: "";
  width: 100%;
  height: 100%;
  background: var(--chip, var(--teal));
  display: block;
}
.bot-chip.square::before { border-radius: 0.35rem; }
.bot-chip.triangle {
  width: 0;
  height: 0;
  border-left: 1.05rem solid transparent;
  border-right: 1.05rem solid transparent;
  border-bottom: 1.85rem solid var(--orange);
  background: none;
}
.bot-chip.triangle::before { display: none; }
.bot-chip.circle::before { border-radius: 50%; background: var(--pink); }
.bot-chip .eyes {
  position: absolute;
  display: flex;
  gap: 0.28rem;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.bot-chip.triangle .eyes { top: 70%; }
.bot-chip .eyes i {
  width: 0.38rem;
  height: 0.22rem;
  background: #fff;
  border-radius: 999px;
  display: block;
}
.hero-stage .bot-chip.builder { --chip: var(--teal); top: -0.65rem; left: -0.55rem; }
.hero-stage .bot-chip.debater { top: 18%; right: -0.85rem; }
.hero-stage .bot-chip.you { --chip: var(--pink); bottom: -0.7rem; right: 12%; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulse-stamp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .bot-chip.builder { animation: bob 3.2s ease-in-out infinite; }
  .hero-stage .bot-chip.debater { animation: bob 2.7s ease-in-out 0.4s infinite; }
  .hero-stage .bot-chip.you { animation: pulse-stamp 2.4s ease-in-out infinite; }
}

/* —— Sections rhythm —— */
section.block {
  border-bottom: 1px solid var(--rule);
}
section.block.dense { padding: 2rem 0; }
section.block.loose { padding: 3.5rem 0; }

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.section-kicker.teal { color: var(--teal); }
.section-kicker.gold { color: var(--gold); }
.section-kicker.purple { color: var(--purple); }
.section-kicker.pink { color: var(--pink); }

section.block h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.8vw, 1.7rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.022em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
section.block h2::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 3.2rem;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--ink);
}
section.block.sec-beginner h2::after { background: var(--teal); max-width: 4.5rem; }
section.block.sec-howto h2::after { background: var(--teal); max-width: 4.5rem; }
section.block.sec-news h2::after { background: var(--gold); max-width: 2.4rem; transform: rotate(-2deg); }
section.block.sec-templates h2::after { background: var(--purple); max-width: 5rem; }
section.block.sec-what h2::after { background: var(--ink); }
section.block.sec-about h2::after { background: var(--pink); max-width: 3rem; }

.section-intro {
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

/* —— How-to hubs: OVERLAP, not twins —— */
.hubs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  align-items: start;
  margin: 0.5rem 0 1.75rem;
}
.hub {
  background: var(--card);
  border: 1px solid var(--ink);
  position: relative;
  overflow: visible;
}
.hub-beginner {
  grid-column: 1 / 8;
  min-height: 18rem;
  padding: 1.75rem 1.5rem 2.25rem;
  border-top: 5px solid var(--teal);
  z-index: 1;
}
.hub-advanced {
  grid-column: 6 / 13;
  margin-top: -2.5rem;
  min-height: 13rem;
  padding: 1.25rem 1.75rem 1.5rem;
  border-top: 5px solid var(--orange);
  z-index: 2;
  background: color-mix(in srgb, var(--card) 92%, var(--orange));
}
.hub .meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.55rem;
}
.hub-beginner .meta { color: var(--teal); }
.hub-advanced .meta { color: var(--orange); }
.hub h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hub p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 28ch;
}
.hub .more {
  display: inline-flex;
  margin-top: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 2.4rem;
  align-items: center;
  color: var(--ink);
}
.hub-beginner .more { color: var(--teal-deep); }
.hub-advanced .more { color: var(--orange); }
.hub .bot-chip {
  width: 2.4rem;
  height: 2.4rem;
}
.hub-beginner .bot-chip { --chip: var(--teal); top: -0.85rem; right: 1rem; }
.hub-advanced .bot-chip.triangle {
  top: -0.7rem;
  left: -0.55rem;
  border-left-width: 1.2rem;
  border-right-width: 1.2rem;
  border-bottom-width: 2.1rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 0.55rem 0.85rem;
  margin-top: 0.5rem;
  align-items: start;
}
.tile {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  padding: 0.85rem 0.95rem 0.95rem;
}
.tile:nth-child(1) { padding: 1.05rem 1rem 1.35rem; margin-top: 0; }
.tile:nth-child(2) { padding: 0.7rem 0.85rem 0.85rem; margin-top: 1.35rem; transform: rotate(0.6deg); }
.tile:nth-child(3) { padding: 1.2rem 1.1rem 1rem; margin-top: 0.45rem; margin-left: -0.35rem; }
.tile.adv { border-left-color: var(--orange); }
.tile .meta-line {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.3rem;
}
.tile.adv .meta-line { color: var(--orange); }
.tile h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.tile a.more {
  display: inline-flex;
  margin-top: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 2.2rem;
  align-items: center;
}

/* —— News: staggered fr tracks —— */
.news-band {
  background: color-mix(in srgb, var(--paper) 70%, #e8dfc8);
}
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.85fr;
  gap: 0 1.25rem;
  align-items: start;
}
.news-item {
  padding: 0.35rem 0.15rem 0.5rem;
  border: none;
  background: transparent;
  position: relative;
}
.news-item:nth-child(1) { padding-top: 0; }
.news-item:nth-child(2) { padding-top: 1.25rem; }
.news-item:nth-child(3) { padding-top: 0.5rem; }
.news-item + .news-item {
  border-left: 1px solid color-mix(in srgb, var(--gold) 55%, var(--rule));
  padding-left: 1.15rem;
}
.news-item .meta-line {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.45rem;
}
.news-item .meta-line::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.35rem;
  background: var(--gold);
  width: 42%;
}
.news-item:nth-child(2) .meta-line::after { width: 68%; }
.news-item:nth-child(3) .meta-line::after { width: 28%; transform: rotate(-3deg); }
.news-item h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.news-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.news-item a.more {
  display: inline-flex;
  margin-top: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

/* —— Templates —— */
.template-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 1.05fr;
  gap: 0.65rem 1.5rem;
  align-items: start;
}
.template-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--purple);
  padding: 1.15rem 1.05rem 1.2rem;
}
.template-card:nth-child(1) {
  padding: 1.35rem 1.15rem 1.55rem;
  margin-right: -0.5rem;
  z-index: 1;
}
.template-card:nth-child(2) {
  margin-top: 1.85rem;
  margin-left: -0.75rem;
  padding: 0.85rem 1.35rem 1.55rem;
  transform: rotate(1.2deg);
  z-index: 2;
}
.template-card:nth-child(3) {
  margin-top: -0.85rem;
  margin-left: 0.5rem;
  padding: 1.45rem 1rem 1.1rem;
  transform: rotate(-2deg);
  z-index: 0;
}
.template-card .meta-line {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 0.35rem;
}
.template-card h3 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}
.template-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.template-card a.more {
  display: inline-flex;
  margin-top: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.15rem;
}
.pill-row span {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  border: 1px solid color-mix(in srgb, var(--purple) 50%, var(--rule));
  padding: 0.35rem 0.75rem;
  display: inline-block;
}
.pill-row span:nth-child(2) { transform: rotate(-2deg); margin-left: 0.35rem; }
.pill-row span:nth-child(3) { margin-top: 0.35rem; }

/* —— What is / isn't —— */
.what-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}
.what-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.2rem 1.25rem;
}
.what-card.yes {
  border-left: 4px solid var(--teal);
  z-index: 1;
  padding: 1.35rem 1.35rem 1.6rem;
}
.what-card.no {
  border-left: 4px solid var(--pink);
  margin-top: 2rem;
  margin-left: -1.5rem;
  z-index: 2;
  padding: 1rem 1.15rem 1.2rem;
  background: color-mix(in srgb, var(--card) 94%, var(--pink));
}
.pill-list { list-style: none; padding: 0; margin: 0; }
.pill-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.pill-list li:last-child { border-bottom: 0; }
.pill-list strong { color: var(--ink); font-weight: 700; }

/* —— About / crew band —— */
.crew-band {
  background: var(--crew-band);
  color: #f3efe8;
  padding: 3rem 0 2.75rem;
  border-bottom: none;
}
.crew-band .section-kicker { color: var(--pink); }
.crew-band h2 {
  color: #f7f5f0;
  margin-bottom: 0.75rem;
}
.crew-band h2::after { background: var(--pink); }
.crew-band .section-intro { color: #c9c3b8; }
.crew-band a { color: #9fdad6; }
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.6rem;
  align-items: start;
}
.about-art {
  border: 1px solid #4a4640;
  overflow: visible;
  position: relative;
  transform: rotate(1deg);
}
.about-art img { width: 100%; }
.about-art .bot-chip.you {
  --chip: var(--pink);
  bottom: -0.75rem;
  right: -0.65rem;
}
.team-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-family: var(--font-sans);
}
.team-list li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 7.5rem) 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #3a3732;
  font-size: 0.95rem;
}
.team-list li:last-child { border-bottom: 0; }
.team-list .role { color: var(--pink); font-weight: 700; letter-spacing: 0.02em; }
.team-list .who { color: #f7f5f0; font-weight: 600; }
.crew-band #about-copy p { color: #c9c3b8; }

/* —— Article / shared —— */
.crumb {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0 0 0.95rem;
}
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--teal); }

.article {
  padding: 1.9rem 0 2.4rem;
  max-width: 44rem;
}
.article h1 {
  max-width: none;
  margin-bottom: 0.95rem;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
}
.article h2 {
  font-size: 1.28rem;
  margin: 1.65rem 0 0.55rem;
}
.article h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin: 1.2rem 0 0.45rem;
  font-weight: 700;
}
.article p, .article li { color: var(--ink); }
.article li { margin: 0.35rem 0; }
.article ol, .article ul { padding-left: 1.25rem; }
.article a { overflow-wrap: anywhere; }

.meta-line {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.source-foot {
  margin-top: 1.9rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.95rem 1rem 0.9rem;
}
.card h3 {
  font-family: var(--font-sans);
  font-size: 1.04rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.card a.more {
  display: inline-flex;
  margin-top: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 2.4rem;
  align-items: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.yes { border-left: 3px solid var(--teal); padding-left: 0.9rem; }
.no { border-left: 3px solid var(--rust); padding-left: 0.9rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.15rem; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.article th, .article td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.article th {
  background: var(--paper-deep);
  font-family: var(--font-sans);
  font-weight: 700;
}
.article blockquote {
  margin: 1rem 0;
  padding: 0.7rem 0.95rem;
  border-left: 2px solid var(--teal);
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.audience-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--teal);
  font-family: var(--font-sans);
}

footer.site {
  padding: 1.65rem 0 max(2.2rem, env(safe-area-inset-bottom));
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-top: 3px solid var(--ink);
  background: var(--paper);
}
footer.site .foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
footer.site strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid,
  .about-layout,
  .what-split,
  .news-grid,
  .template-grid { grid-template-columns: 1fr; }
  .hubs { display: flex; flex-direction: column; gap: 1rem; }
  .hub-beginner, .hub-advanced {
    grid-column: auto;
    margin-top: 0;
    min-height: 0;
  }
  .hub-advanced { margin-top: -1rem; margin-left: 8%; }
  .hero-stage {
    margin-right: 0;
    margin-bottom: 0;
    transform: rotate(-1deg);
  }
  .what-card.no { margin-left: 0; margin-top: 1rem; }
  .news-item + .news-item {
    border-left: none;
    border-top: 1px solid color-mix(in srgb, var(--gold) 55%, var(--rule));
    padding-left: 0.15rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
  .tile-grid { grid-template-columns: 1fr; }
  .tile:nth-child(1),
  .tile:nth-child(2),
  .tile:nth-child(3) {
    margin-top: 0;
    margin-left: 0;
    transform: none;
  }
  .tile:nth-child(2) { margin-left: 6%; }
  .tile:nth-child(3) { margin-left: 2%; }
  .template-card:nth-child(1),
  .template-card:nth-child(2),
  .template-card:nth-child(3) {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
  .template-card:nth-child(2) { margin-left: 8%; }
  .template-card:nth-child(3) { margin-left: 3%; transform: rotate(-1deg); }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .top {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 0.6rem;
  }
  nav.primary { width: 100%; gap: 0; }
  nav.primary a {
    flex: 1 1 calc(50% - 0px);
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0.45rem;
    background: var(--card);
    border: 1px solid var(--rule);
    margin: 0 -1px -1px 0;
  }
  nav.primary a:hover { box-shadow: none; background: var(--paper-deep); }
  .team-list li { grid-template-columns: 1fr; gap: 0.1rem; }
  .cta-row .btn { flex: 1 1 auto; }
  .hub-advanced { margin-left: 4%; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .hero-stage-frame video,
  .hero-stage-frame img {
    width: 108%;
    margin-left: -3%;
    margin-top: -4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage .bot-chip { animation: none !important; }
}


/* —— Templates panel motion (Remy) —— */
#templates .template-stage {
  position: relative;
  height: 0;
  pointer-events: none;
}
#templates .template-card {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
              margin 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
#templates .template-card.is-ordered {
  transform: none !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#templates .pill-row span {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), margin 420ms ease;
}
#templates .pill-row span.is-ordered {
  transform: none !important;
  margin: 0 !important;
}
#templates .tpl-bot {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0;
  z-index: 5;
  filter: drop-shadow(0 2px 0 rgba(28, 26, 23, 0.12));
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              right 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease, transform 0.35s ease;
}
#templates .tpl-bot--builder { left: -4%; top: 5.5rem; }
#templates .tpl-bot--debater { right: -4%; top: 4.5rem; }
#templates .tpl-bot.is-enter {
  opacity: 1;
  animation: tpl-bot-bob 0.9s ease-in-out infinite alternate;
}
#templates .tpl-bot.is-exit {
  opacity: 0;
}
#templates .tpl-bot--builder.is-enter { transform: translateX(0); }
#templates .tpl-bot--debater.is-enter { transform: rotate(-8deg); }
#templates .tpl-bot--builder[data-at="0"] { left: 8%; top: 6.5rem; }
#templates .tpl-bot--builder[data-at="1"] { left: 42%; top: 8rem; }
#templates .tpl-bot--builder[data-at="2"] { left: 72%; top: 5.5rem; }
#templates .tpl-bot--debater[data-at="0"] { right: auto; left: 10%; top: 6rem; }
#templates .tpl-bot--debater[data-at="1"] { right: auto; left: 44%; top: 7.5rem; }
#templates .tpl-bot--debater[data-at="2"] { right: auto; left: 74%; top: 5rem; }

@keyframes tpl-bot-bob {
  from { translate: 0 0; }
  to { translate: 0 6px; }
}

@media (max-width: 900px) {
  #templates .tpl-bot--builder[data-at="0"] { left: 6%; top: 5.5rem; }
  #templates .tpl-bot--builder[data-at="1"] { left: 18%; top: 14rem; }
  #templates .tpl-bot--builder[data-at="2"] { left: 28%; top: 24rem; }
  #templates .tpl-bot--debater[data-at="0"] { left: 8%; top: 5rem; }
  #templates .tpl-bot--debater[data-at="1"] { left: 22%; top: 13.5rem; }
  #templates .tpl-bot--debater[data-at="2"] { left: 30%; top: 23rem; }
}

@media (prefers-reduced-motion: reduce) {
  #templates .tpl-bot { display: none !important; }
  #templates .template-card,
  #templates .pill-row span { transition: none !important; }
}


/* —— What it is / isn’t panel motion (Patrick rewrite) —— */
#what .what-stage { position: relative; overflow: visible; min-height: 12rem; }

/* Carousel is the MAIN stage during walk (~4× prior strip height) */
#what .what-carousel {
  overflow: hidden;
  margin: 0 0 1rem;
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 75%, #fff);
  height: 18rem;
  opacity: 1;
  pointer-events: none;
  transition: height 0.4s ease, opacity 0.35s ease;
  position: relative;
  z-index: 2;
}
#what .what-stage:not(.what-carousel-mode) .what-carousel {
  height: 0;
  opacity: 0;
  margin: 0;
  border-width: 0;
  overflow: hidden;
}
#what .what-carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 1rem 1.1rem;
  height: 100%;
  align-items: stretch;
  transform: translateX(0);
  will-change: transform;
}
/* Infinite CSS scroll optional / unused — JS drives slide-to-Boss playthrough */
#what .what-stage.what-carousel-run .what-carousel-track {
  animation: none;
}
#what .what-slide {
  flex: 0 0 17rem;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 14rem;
}
#what .what-slide p { margin: 0; flex: 1; color: var(--ink); }
#what .what-slide-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
#what .what-slide--is .what-slide-tag { color: var(--teal); }
#what .what-slide--isnt .what-slide-tag { color: var(--pink); }
#what .what-slide--is { border-top: 4px solid var(--teal); }
#what .what-slide--isnt { border-top: 4px solid var(--rule); }
#what .what-slide--isnt.tag-pending .what-slide-tag[hidden] { display: none !important; }
#what .what-slide--isnt.tag-revealed { border-top-color: var(--pink); }
#what .what-slide--isnt.is-struck { position: relative; }
#what .what-slide--isnt.is-struck::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: url("/assets/what/red-x.svg") center / contain no-repeat;
  opacity: 0.92;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 2;
}

/* Hide main cards during Boss walk */
#what .what-stage.what-carousel-mode .what-split {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
#what .what-split {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
}
#what .what-split.is-visible { opacity: 1; }
#what .what-stage.what-cards-up .what-split {
  position: relative;
  width: auto;
  height: auto;
  padding: unset;
  margin: unset;
  overflow: visible;
  clip: auto;
  white-space: normal;
  min-height: 18rem;
}
#what .what-split.is-building {
  outline: 2px dashed var(--teal);
  outline-offset: 6px;
}
#what .what-split.is-askew {
  transform: rotate(-1.5deg) translate(0.25rem, 0.15rem);
}

#what .what-bot {
  position: absolute;
  width: 56px;
  height: 56px;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 2px 0 rgba(28, 26, 23, 0.12));
}
#what .what-bot--boss { left: -6%; top: 38%; z-index: 6; }
#what .what-bot--clipboard {
  width: 30px;
  height: 30px;
  left: -4%;
  top: 46%;
  z-index: 7;
}
#what .what-bot--builder { right: 12%; bottom: 10%; }
#what .what-bot--debater { right: -4%; top: 42%; }
#what .what-bot.is-enter { opacity: 1; }
#what .what-bot--boss.is-walk {
  animation: what-boss-walk 8.5s linear forwards;
}
#what .what-bot--boss.is-walk ~ .what-bot--clipboard {
  opacity: 1;
  animation: what-boss-walk 8.5s linear forwards;
}
#what .what-bot--boss.is-tap { animation: what-foot-tap 0.35s ease-in-out 3; }
#what .what-bot--boss.is-tap ~ .what-bot--clipboard {
  opacity: 1;
  animation: what-foot-tap 0.35s ease-in-out 3;
}
#what .what-bot.is-exit-right {
  opacity: 0;
  transform: translateX(8rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
#what .what-bot.is-exit { opacity: 0; transition: opacity 0.35s ease; }

#what .what-card.no .pill-list li { position: relative; }
#what .what-card.no .pill-list li.isnt-struck::after {
  content: "";
  position: absolute;
  inset: 10% 4%;
  background: url("/assets/what/red-x.svg") center / contain no-repeat;
  opacity: 0.92;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 2;
}

#what .what-replay {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  z-index: 8;
  font: 700 0.75rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--card);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
#what .what-replay[hidden] { display: none !important; }

@keyframes what-carousel-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-60%); }
}
@keyframes what-boss-walk {
  from { transform: translateX(0); }
  to { transform: translateX(min(70vw, 38rem)); }
}
@keyframes what-foot-tap {
  from { translate: 0 0; }
  to { translate: 0 5px; }
}

@media (max-width: 900px) {
  #what .what-carousel { height: 16rem; }
  #what .what-slide { flex-basis: 14rem; min-height: 12rem; font-size: 0.95rem; }
  #what .what-stage.what-cards-up .what-split { min-height: 16rem; }
}

@media (prefers-reduced-motion: reduce) {
  #what .what-bot { display: none !important; }
  #what .what-carousel { display: none !important; }
  #what .what-stage.what-carousel-mode .what-split {
    position: relative;
    width: auto;
    height: auto;
    clip: auto;
    opacity: 1;
    overflow: visible;
    margin: 0;
    padding: unset;
  }
  #what .what-split { transition: none !important; opacity: 1; }
  #what .what-stage.what-carousel-run .what-carousel-track { animation: none !important; }
}

/* —— News / Trending — Remy MOTION-SPEC + CHROME (2026-09-04) —— */
.news-wrap { position: relative; }
.news-head {
  display: block;
  margin-bottom: 0.85rem;
  padding-right: 0;
}
.news-head .section-intro { margin-bottom: 0; max-width: 34rem; }

/* Patrick STOP: narrow ticker + restore featured cards beside it */
.news-duo,
.news-layout {
  display: grid;
  /* Remy: ticker ~34–40%, companion cards remaining */
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 38%); /* cards LEFT, ticker RIGHT ~38% */
  gap: 1.25rem 1.75rem;
  align-items: start;
}
.news-duo .news-grid,
.news-duo .news-cards {
  margin: 0;
  /* restored Comp B card stack — beside narrow ticker */
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 0 1rem;
}
.news-duo .news-item h3 { font-size: 1.05rem; }
.news-duo .news-item p { font-size: 0.88rem; }

.news-stage {
  position: relative;
  width: 100%;
  max-width: none; /* Remy 38%: let 0.38fr column set width (22rem cap made wide viewports look ~25%) */
  min-height: 20rem;
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 96%, #fff);
  box-shadow: none;
  /* teal left rail */
  border-left: 4px solid var(--teal);
  padding: 0.65rem 0.7rem 0.65rem 0.85rem;
}

.news-all-btn {
  position: absolute;
  top: -0.85rem;
  right: -0.55rem;
  z-index: 3;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  box-shadow: none;
}
.news-duo--ticker-right .news-all-btn {
  right: auto;
  left: -0.55rem; /* spill toward companion cards */
}
.news-all-btn:hover,
.news-all-btn:focus-visible {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
  outline: none;
}

.news-ticker {
  height: 18.5rem;
  overflow: hidden;
  position: relative;
}
.news-ticker-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.news-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding: 0.72rem 0.25rem 0.72rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 85%, transparent);
}
.news-headline:hover,
.news-headline:focus-visible {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  outline: none;
}
.news-headline-text {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}

.news-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--ink);
  line-height: 1.25;
  color: var(--ink);
  background: var(--paper);
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.news-tag--beginner { border-color: var(--teal); color: var(--teal); }
.news-tag--advanced { border-color: var(--orange, #e07a3a); color: var(--orange, #e07a3a); }
.news-tag--news {
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--pink, #E91E8C);
}
.news-tag--howto { color: var(--muted); }

.news-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 18rem;
  padding: 0.5rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink);
  /* Remy soft: cream + ink hairline (not dark panel) */
  background: #fffef8;
  border: 1.5px solid var(--ink);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: none;
}
.news-tooltip[hidden] { display: none; }
.news-tooltip .news-tip-blurb { display: block; }
.news-tooltip.is-below { max-width: none; }

/* reduced motion / static stack */
.news-static .news-ticker { height: auto; min-height: 14rem; overflow: auto; }
.news-static .news-ticker-track { transform: none !important; }

/* right drawer */
.news-drawer[hidden] { display: none; }
.news-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.news-drawer.is-open { pointer-events: auto; }
.news-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  opacity: 0;
  transition: opacity 0.28s ease-out;
}
.news-drawer.is-open .news-drawer-backdrop { opacity: 1; }
.news-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(28rem, 92vw);
  height: 100%;
  max-height: 100vh;
  overflow: auto;
  background: color-mix(in srgb, var(--paper) 94%, #fff);
  border-left: 1.5px solid var(--ink);
  padding: 1.1rem 1.15rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  pointer-events: auto;
}
.news-drawer.is-open .news-drawer-panel { transform: translateX(0); }
.news-static .news-drawer-backdrop,
.news-static .news-drawer-panel,
.news-drawer.news-instant .news-drawer-backdrop,
.news-drawer.news-instant .news-drawer-panel {
  transition: none;
}

.news-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.55rem;
}
.news-drawer-top h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.news-drawer-close {
  font-size: 1.55rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink);
}
.news-drawer-close:hover,
.news-drawer-close:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}
.news-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  counter-reset: news-n;
}
.news-drawer-item {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--rule);
}
.news-drawer-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-drawer-title {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}
.news-drawer-title:hover,
.news-drawer-title:focus-visible {
  color: var(--teal);
  outline: none;
}
.news-blurb {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .news-duo .news-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .news-duo .news-item + .news-item {
    border-left: none;
    padding-left: 0.15rem;
    border-top: 1px solid color-mix(in srgb, var(--gold) 45%, var(--rule));
    padding-top: 0.85rem;
  }
}
@media (max-width: 720px) {
  .news-duo {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .news-stage {
    max-width: none;
    min-height: 14rem;
  }
}
@media (max-width: 640px) {
  .news-head { padding-right: 0; }
  .news-stage {
    min-height: 14rem;
    padding-top: 1.75rem;
  }
  .news-all-btn {
    top: -0.65rem;
    right: 0.35rem;
  }
  .news-ticker { height: 12.5rem; }
  /* bottom sheet on narrow */
  .news-drawer-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 78vh;
    border-left: none;
    border-top: 1.5px solid var(--ink);
    transform: translateY(100%);
  }
  .news-drawer.is-open .news-drawer-panel { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .news-drawer-backdrop,
  .news-drawer-panel { transition: none !important; }
}


/* —— How-to lanes + demo station — Remy CHROME (2026-09-04) —— */
.howto-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(12rem, 0.9fr) minmax(18rem, 1.6fr);
  gap: 1.25rem 1.5rem;
  align-items: stretch;
  position: relative;
}
.howto-lane {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  min-height: 100%;
}
.howto-lane-head {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fffef8;
  padding: 0.85rem 1rem;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--ink);
}
.howto-lane--beginner .howto-lane-head { background: #0f6e6a; }
.howto-lane--advanced .howto-lane-head { background: #e87a2e; }
.howto-lane-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  flex: 1;
}
.howto-lane-list li {
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 85%, transparent);
}
.howto-lane-list li:last-child { border-bottom: 0; }
.howto-lane-link {
  display: block;
  padding: 0.7rem 0.95rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.howto-lane-link:hover,
.howto-lane-link:focus-visible {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  outline: none;
}
.howto-lane--advanced .howto-lane-link:hover,
.howto-lane--advanced .howto-lane-link:focus-visible {
  background: color-mix(in srgb, var(--orange) 12%, transparent);
}
.howto-hub-link {
  display: inline-block;
  margin: 0.35rem 0.95rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.howto-lane--beginner .howto-hub-link { color: #0f6e6a; }
.howto-lane--advanced .howto-hub-link { color: #e87a2e; }
.howto-hub-link:hover { text-decoration: underline; }

.howto-tooltip {
  position: absolute;
  z-index: 6;
  max-width: 18rem;
  padding: 0.5rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink);
  background: #fffef8;
  border: 1.5px solid var(--ink);
  pointer-events: none;
}
.howto-tooltip[hidden] { display: none; }
#how-to .wrap { position: relative; }

.howto-demo {
  position: relative;
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, #fff);
  border-left: 4px solid #f25aa6;
  padding: 0.75rem 0.9rem 2.6rem;
  min-height: 17rem;
  margin-left: -0.35rem;
}
.howto-demo-head {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f25aa6;
  margin-bottom: 0.75rem;
}
.howto-demo-board { display: flex; flex-direction: column; gap: 0.65rem; }
.demo-field { display: flex; flex-direction: column; gap: 0.15rem; min-height: 1.5rem; }
.demo-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
  white-space: pre-wrap;
  min-height: 1.2em;
}
.howto-demo-caret {
  display: inline-block;
  width: 0.55rem;
  height: 1em;
  margin-left: 1px;
  background: #f25aa6;
  animation: howto-caret 0.9s steps(1) infinite;
  vertical-align: text-bottom;
}
@keyframes howto-caret { 50% { opacity: 0; } }
.howto-demo-copy {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.howto-demo-copy:hover:not(:disabled),
.howto-demo-copy:focus-visible:not(:disabled) {
  background: #f25aa6;
  color: #fff;
  border-color: #f25aa6;
  outline: none;
}
.howto-demo-copy:disabled { opacity: 0.45; cursor: default; }

@media (max-width: 720px) {
  .howto-layout { grid-template-columns: 1fr; gap: 1.15rem; }
  .howto-demo { margin-left: 0; min-height: 15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .howto-demo-caret { animation: none; }
}


/* —— Templates catalog + home CTA —— */
.template-card--cta {
  border: 1.5px dashed var(--ink);
  background: color-mix(in srgb, var(--paper) 85%, #fff);
}
.template-card--cta .more {
  font-weight: 700;
}
.templates-home-note {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.tpl-catalog .lede {
  max-width: 40rem;
}
.tpl-catalog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.tpl-catalog-toolbar input[type="search"] {
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 22rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: #fffef8;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 0.45rem 0.75rem;
  height: 2.2rem;
  appearance: none;
  -webkit-appearance: none;
}
.tpl-catalog-toolbar input[type="search"]:focus {
  outline: none;
  border-color: var(--teal, #0f6e6a);
}
.tpl-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
/* chip chrome: see x.ai category chips block */
.tpl-catalog-count {
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}
.tpl-catalog-lane {
  margin: 1.75rem 0 2rem;
  padding-left: 0.85rem;
  border-left: 3.5px solid var(--ink);
}
.tpl-catalog-lane--beginner {
  border-left-color: var(--teal, #0f6e6a);
}
.tpl-catalog-lane--advanced {
  border-left-color: var(--orange, #e87a2e);
}
.tpl-catalog-lane-head {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
}
.tpl-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.tpl-catalog-card {
  background: color-mix(in srgb, var(--paper) 92%, #fff);
  border: 1.5px solid var(--ink);
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tpl-catalog-card h2 {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
}
.tpl-catalog-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.tpl-catalog-card h2 a:hover {
  color: var(--teal-deep, #0a5552);
}
.tpl-catalog-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.tpl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.tpl-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--ink);
}
.tpl-tag.is-beginner {
  border-color: var(--teal, #0f6e6a);
  color: var(--teal-deep, #0a5552);
}
.tpl-tag.is-advanced {
  border-color: var(--orange, #e87a2e);
}
.tpl-catalog-lane-empty,
.tpl-catalog-empty {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}


/* —— Templates IA Remy lock —— */
.templates-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.templates-head-row h2 {
  margin-bottom: 0;
}
.templates-all-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 0.45rem 0.75rem;
  white-space: nowrap;
}
.templates-all-link:hover {
  color: var(--teal-deep, #0a5552);
  border-color: var(--teal, #0f6e6a);
}
.templates-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  margin: 0.5rem 0 0.65rem;
}
.template-card.is-beginner {
  border-left: 3px solid var(--teal, #0f6e6a);
}
.template-card.is-advanced {
  border-left: 3px solid var(--orange, #e87a2e);
}
.tpl-catalog-card {
  transition: transform 140ms ease-out, border-color 140ms ease-out;
}
.tpl-catalog-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-deep, #0a5552);
}
@media (prefers-reduced-motion: reduce) {
  .tpl-catalog-card {
    transition: none;
  }
  .tpl-catalog-card:hover {
    transform: none;
  }
}


/* —— Templates catalog x.ai category chips (Remy lock 2026-09-05) —— */
.tpl-catalog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.tpl-catalog-search input[type="search"] {
  width: 100%;
  max-width: 28rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper, #f7f5f0);
  border: 1.5px solid var(--ink);
  border-radius: 0; /* site DNA hard corners */
  padding: 0.55rem 0.9rem;
  height: 2.4rem;
  appearance: none;
  -webkit-appearance: none;
}
.tpl-catalog-search input[type="search"]:focus {
  outline: none;
  border-color: var(--teal, #0f6e6a);
}
.tpl-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tpl-filter {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ink); /* idle hairline */
  background: var(--paper, #f7f5f0);
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: none;
  transition: background 120ms ease-out, border-color 120ms ease-out;
}
.tpl-filter:hover {
  background: color-mix(in srgb, var(--ink) 8%, var(--paper, #f7f5f0));
}
.tpl-filter.is-active,
.tpl-filter[aria-pressed="true"] {
  background: var(--ink);
  color: #fffef8;
  border-color: var(--ink);
}
.tpl-filter.is-active:hover,
.tpl-filter[aria-pressed="true"]:hover {
  background: var(--ink);
  color: #fffef8;
}
@media (prefers-reduced-motion: reduce) {
  .tpl-filter { transition: none; }
}
