/* grlofmstry — the blend of us
   storybook cloth, gilt bricks, emerald glass */

:root {
  --p: 0;
  --parchment: #EFE3C8;
  --ink: #4A3B2A;
  --brick: #E8B931;
  --ochre: #B9861B;
  --emerald: #0F7B4F;
  --glow: #5FD39B;
  --night: #0B2A20;
  --ruby: #B3132B;
  --sun: #F6C23E;
  --paper: #FFFBF2;
  --muted: #6b563d;
  --font-display: "Limelight", "Times New Roman", serif;
  --font-quote: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --nav-h: 3.15rem;
  --bg-top: color-mix(in srgb, var(--parchment) calc((1 - var(--p)) * 100%), var(--emerald) calc(var(--p) * 100%));
  --bg-bot: color-mix(in srgb, #e4d3a4 calc((1 - var(--p)) * 100%), var(--night) calc(var(--p) * 100%));
  --radius: 4px;
  --g: 1;
  --s: 0;
  --by: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgb(246 194 62 / calc(0.18 * (1 - var(--p)))), transparent 55%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bot));
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: calc(0.28 * (1 - var(--p) * 0.55));
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgb(74 59 42 / 0.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(74 59 42 / 0.025) 0 1px, transparent 1px 4px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: calc(0.18 * (1 - var(--p) * 0.4));
  background-image: radial-gradient(rgb(74 59 42 / 0.18) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--emerald);
}

a:hover {
  color: var(--ochre);
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--emerald);
  color: var(--paper);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(40rem, calc(100% - 2rem));
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.55rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ochre);
}

.skip:focus {
  top: 0.65rem;
  outline: 3px solid var(--sun);
}

/* —— nav ribbon —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--nav-h);
  padding: 0.35rem 0.85rem;
  background: rgb(11 42 32 / 0.94);
  color: var(--paper);
  border-bottom: 3px solid var(--brick);
  box-shadow: 0 8px 24px rgb(11 42 32 / 0.28);
  backdrop-filter: blur(10px);
}

.home {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  text-decoration: none;
  font-size: 1.15rem;
  border-radius: 999px;
  background: rgb(255 251 242 / 0.08);
  border: 1px solid rgb(232 185 49 / 0.45);
}

.home:hover,
.home:focus-visible {
  background: rgb(246 194 62 / 0.2);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  color: var(--parchment);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list li:not(:last-child) a::after {
  content: "·";
  margin-left: 0.7rem;
  color: var(--brick);
  font-weight: 400;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a:focus-visible {
  color: var(--sun);
}

.site-nav :focus-visible {
  outline-color: var(--sun);
}

/* —— hero —— */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.4rem 0 2.2rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
  padding: 1.4rem 1rem 1.8rem;
  background: radial-gradient(ellipse at center, rgb(239 227 200 / 0.82) 0%, rgb(239 227 200 / 0) 72%);
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.swirl {
  position: absolute;
  left: 50%;
  top: 4%;
  width: min(760px, 124%);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.8;
}

.sun {
  position: absolute;
  overflow: visible;
}

.sun-a {
  width: min(150px, 36vw);
  left: 0;
  top: 6%;
  transform: rotate(-12deg);
}

.sun-b {
  width: min(124px, 30vw);
  right: 1%;
  top: 10%;
  transform: rotate(14deg);
}

.sun-c {
  width: min(72px, 20vw);
  left: 6%;
  top: 18%;
  transform: rotate(-8deg);
}

.hero-plate {
  position: relative;
  z-index: 1;
  margin: 1.15rem 0 0;
}

.hero-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
  border: 2px solid rgb(74 59 42 / 0.35);
  border-radius: 2px;
  box-shadow: 0 12px 28px rgb(74 59 42 / 0.16);
}

.hero-plate .cap {
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: clamp(2.05rem, 10.5vw, 6.4rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgb(232 185 49 / 0.4), 0 12px 40px rgb(185 134 27 / 0.12);
  overflow-wrap: anywhere;
}

.tagline {
  margin-top: 0.7rem;
  font-family: var(--font-hand);
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

.lede {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  color: var(--muted);
}

.bio {
  margin-top: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.vibe {
  margin: 0.55rem 0 1.5rem;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
}

.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.62rem 1.25rem 0.55rem;
  background: linear-gradient(#f6d768, var(--brick));
  border: 2px solid var(--ochre);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--ochre), 0 10px 22px rgb(74 59 42 / 0.18);
}

.cta:hover {
  color: var(--ink);
  transform: translateY(1px);
  box-shadow: 0 3px 0 var(--ochre), 0 8px 16px rgb(74 59 42 / 0.16);
}

.cta:focus-visible {
  outline-offset: 4px;
}

/* —— chapter heads —— */
.chapter {
  text-align: center;
  margin-bottom: 2.4rem;
}

.chapter h2 {
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.chapter h2::after {
  content: "";
  display: block;
  width: 7.5rem;
  height: 5px;
  margin: 0.75rem auto 0;
  background: repeating-linear-gradient(90deg, var(--brick) 0 12px, transparent 12px 18px);
  border-radius: 2px;
}

.kicker {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

.chapter-night h2 {
  color: var(--paper);
}

.chapter-night h2::after {
  width: min(16rem, 70%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow), var(--brick), var(--glow), transparent);
}

.chapter-night .kicker {
  color: rgb(255 251 242 / 0.78);
}

/* —— yellow brick road —— */
.quotes {
  position: relative;
  z-index: 1;
  padding: 3.2rem 0 0.5rem;
}

.road {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  padding: 0.5rem 0 0.35rem;
}

.road-line {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 10px;
  margin-left: -5px;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--brick) 0 18px,
      var(--ochre) 18px 20px,
      transparent 20px 34px
    );
  border-radius: 3px;
  box-shadow: 0 0 0 3px #8a5a12, 0 0 16px rgb(232 185 49 / 0.35);
}

.brick {
  position: relative;
  width: min(100%, 46%);
  background: var(--paper);
  border: 2px solid var(--ochre);
  border-radius: 3px;
  box-shadow:
    0 1px 0 #f6d768,
    0 7px 0 var(--ochre),
    0 14px 28px rgb(74 59 42 / 0.16);
}

.brick-left {
  align-self: flex-start;
  --tilt: -0.7deg;
}

.brick-right {
  align-self: flex-end;
  --tilt: 0.7deg;
}

.brick-head {
  height: 28px;
  background-color: #7a4e10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Crect width='56' height='28' fill='%237a4e10'/%3E%3Crect x='1' y='1' width='26' height='12' fill='%23E8B931'/%3E%3Crect x='29' y='1' width='26' height='12' fill='%23F0C54A'/%3E%3Crect x='-13' y='15' width='26' height='12' fill='%23E8B931'/%3E%3Crect x='15' y='15' width='26' height='12' fill='%23F0C54A'/%3E%3Crect x='43' y='15' width='26' height='12' fill='%23E8B931'/%3E%3C/svg%3E");
  background-size: 56px 28px;
  border-bottom: 2px solid #7a4e10;
}

.road-end {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 2.6rem;
  margin-top: 0.35rem;
}

.road-end svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgb(74 59 42 / 0.25));
}

.brick blockquote {
  margin: 0;
  padding: 1.05rem 1.15rem 0.35rem;
}

.brick blockquote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.18rem, 2.1vw, 1.42rem);
  line-height: 1.42;
  color: var(--ink);
  overflow-wrap: break-word;
}

.context {
  margin: 0 1.15rem 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.brick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.55rem 1.15rem 1rem;
}

.brick-meta time {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.x-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--emerald);
  text-underline-offset: 3px;
}

.x-link:hover {
  color: var(--emerald);
}

/* —— emerald city —— */
.city {
  position: relative;
  z-index: 1;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 50% 8%, rgb(15 123 79 / calc(0.42 + var(--p) * 0.25)), transparent 58%),
    rgb(11 42 32 / calc(0.86 + var(--p) * 0.12));
  box-shadow: inset 0 1px 0 rgb(232 185 49 / 0.28);
}

.city a {
  color: var(--sun);
}

.city a:hover {
  color: var(--glow);
}

.city .x-link {
  color: var(--paper);
  text-decoration-color: var(--brick);
}

.city .x-link:hover {
  color: var(--sun);
}

.skyline {
  line-height: 0;
  margin-top: -1px;
  overflow: hidden;
}

.skyline svg {
  display: block;
  width: 100%;
  height: clamp(8rem, 20vw, 15rem);
}

.gallery,
.ai,
.about {
  padding: 3.2rem 0 1.5rem;
}

.about {
  padding-bottom: 4.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.tile,
.ai-frame {
  margin: 0;
}

.tile-frame {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border: 3px solid var(--brick);
  box-shadow:
    0 0 0 6px var(--emerald),
    0 0 0 8px rgb(232 185 49 / 0.9),
    0 0 14px rgb(95 211 155 / 0.55),
    0 16px 40px rgb(0 0 0 / 0.35),
    inset 0 0 36px rgb(15 123 79 / 0.16);
}

.tile-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.tile-frame-wide img {
  aspect-ratio: 1168 / 784;
  object-fit: cover;
}

.tile-frame-road img {
  aspect-ratio: 1152 / 864;
  object-fit: cover;
}

.tile-frame-cinema img {
  aspect-ratio: 1200 / 675;
  object-fit: cover;
}

.made {
  margin-top: 2.8rem;
}

.made-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 3.1vw, 1.8rem);
  line-height: 1.25;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.made-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.6rem;
  margin-top: 1.35rem;
}

.made-grid > * {
  min-width: 0;
}

.made-road {
  grid-column: 1 / -1;
}

.glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(95 211 155 / 0.04), rgb(15 123 79 / 0.08)),
    linear-gradient(115deg, rgb(255 251 242 / 0.14) 0%, transparent 34%);
}

.tile-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(95 211 155 / 0.28) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.tile:hover .tile-frame::after,
.ai-frame:hover .tile-frame::after,
.tile:focus-within .tile-frame::after,
.ai-frame:focus-within .tile-frame::after {
  transform: translateX(120%);
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.85rem 0.15rem 0.2rem;
}

.cap {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.25;
}

/* —— me + grok bot —— */
.ai-layout {
  display: grid;
  gap: 1.8rem;
}

.ai-layout > * {
  min-width: 0;
}

.grok-note {
  margin: 0.45rem 0.15rem 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.45;
  color: rgb(255 251 242 / 0.9);
}

.grokonik-hero {
  max-width: 34rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.grokonik-hero .tile-frame img {
  width: 100%;
  height: auto;
}

.grokonik .cap {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.ai-copy {
  max-width: 42rem;
  margin-inline: auto;
}

.ai-copy > p {
  font-size: 1.02rem;
  color: var(--paper);
}

.dialog {
  margin-top: 1.4rem;
  padding: 1.15rem 1.2rem;
  background: rgb(255 251 242 / 0.06);
  border: 1px solid rgb(232 185 49 / 0.35);
  border-left: 4px solid var(--brick);
  box-shadow: inset 0 0 40px rgb(15 123 79 / 0.12);
}

.dialog p {
  margin-bottom: 0.85rem;
}

.dialog p:last-child {
  margin-bottom: 0;
}

.who {
  font-weight: 600;
  margin-right: 0.4rem;
  white-space: nowrap;
}

.who.me {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--sun);
}

.who.ai {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glow);
}

/* —— about —— */
.epigraph {
  margin: 0 auto 1.8rem;
  padding: 0;
  border: 0;
  max-width: 36em;
}

.epigraph p {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.22rem, 2.5vw, 1.58rem);
  line-height: 1.45;
  color: var(--paper);
}

.epigraph footer {
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun);
}

.about-body {
  font-size: 1.05rem;
  color: var(--paper);
}

/* —— footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1rem 2.4rem;
  text-align: center;
  background: var(--night);
  color: var(--paper);
  border-top: 3px solid var(--brick);
}

.flower-band {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.4rem, 2vw, 1.1rem);
  margin-bottom: 1.1rem;
}

.flower-band svg {
  width: clamp(2rem, 6vw, 3.1rem);
  height: auto;
  overflow: visible;
}

.flower-band svg:nth-child(even) {
  width: clamp(1.7rem, 5vw, 2.55rem);
  transform: translateY(4px);
}

.homeline {
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--parchment);
  margin: 0 0 0.45rem;
}

.shoe {
  display: inline-block;
  width: 2rem;
  height: auto;
  margin-right: 0.28rem;
  vertical-align: -0.45rem;
  overflow: visible;
}

.brick-divider {
  margin: 1.5rem auto 0.15rem;
  line-height: 0;
}

.brick-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.copy {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.hi {
  font-size: 0.92rem;
  color: rgb(255 251 242 / 0.82);
}

.site-footer a {
  color: var(--sun);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--glow);
}

/* —— scroll color: grayscale, then sepia, then full color —— */
.hero,
.quotes {
  background-color: var(--parchment);
  background-image: radial-gradient(ellipse 110% 68% at 50% -12%, rgb(246 194 62 / 0.16), transparent 58%);
}

.quotes {
  filter: grayscale(var(--g)) sepia(var(--s));
}

html.tone-off .hero,
html.tone-off .quotes,
html.reduce .hero,
html.reduce .quotes {
  filter: none;
}

/* —— emerald flash —— */
.gallery,
.ai {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(95 211 155 / 0.14), transparent 42%),
    radial-gradient(ellipse at 8% 100%, rgb(15 123 79 / 0.24), transparent 46%),
    radial-gradient(ellipse at 92% 76%, rgb(15 123 79 / 0.2), transparent 42%);
}

.gallery > .wrap,
.ai > .wrap {
  position: relative;
  z-index: 1;
}

.sparkle-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #f4fff9;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  pointer-events: none;
  animation: twinkle 3.4s ease-in-out infinite;
}

.spark.sun {
  background: var(--sun);
}

.sp1 { left: 7%; top: 0.55rem; animation-delay: 0s; }
.sp2 { left: 24%; top: 1.1rem; animation-delay: 0.7s; }
.sp3 { right: 20%; top: 0.4rem; animation-delay: 1.3s; }
.sp4 { right: 7%; top: 1.15rem; animation-delay: 1.9s; }
.sp5 { left: 42%; top: 0.65rem; animation-delay: 0.45s; }
.sp6 { right: 38%; top: 1.2rem; animation-delay: 1.55s; }
.sp-side { display: none; }

.ai .sp1 { animation-delay: 0.35s; }
.ai .sp2 { animation-delay: 1.05s; }
.ai .sp3 { animation-delay: 1.65s; }
.ai .sp4 { animation-delay: 0.15s; }
.ai .sp5 { animation-delay: 1.2s; }
.ai .sp6 { animation-delay: 2.05s; }

.gem-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.65rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0.55rem;
  min-height: 2.6rem;
  pointer-events: none;
}

.gem {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgb(95 211 155 / 0.5));
}

.gem-row .gem:nth-child(2) {
  width: 26px;
  transform: rotate(-12deg);
}

.gem-row .gem:nth-child(3) {
  width: 42px;
}

.gem-row .gem:nth-child(4) {
  width: 24px;
  transform: rotate(10deg);
}

.sp-gem-l {
  left: 0.1rem;
  top: 0;
  animation-delay: 0.55s;
}

.sp-gem-r {
  right: 0.15rem;
  top: 0.45rem;
  animation-delay: 1.35s;
}

.gem-float {
  display: none;
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.gallery .chapter h2,
.ai .chapter h2 {
  line-height: 1.22;
}

.gemword {
  position: relative;
  display: inline-block;
  isolation: isolate;
  overflow: hidden;
  padding: 0.02em 0.12em 0.06em;
  line-height: 1.22;
}

.gemword::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12%;
  bottom: 18%;
  left: 0;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.92), rgb(95 211 155 / 0.72), transparent);
  transform: translate3d(-180%, 0, 0) skewX(-16deg);
  opacity: 0;
  animation: gem-sweep 5.4s ease-in-out infinite;
}

.ai .gemword::after {
  animation-delay: 1.7s;
}

.gallery .tile-frame,
.ai-frame .tile-frame {
  animation: em-pulse 3.6s ease-in-out infinite;
}

/* —— balloon, road into the city —— */
.balloon {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 46px;
  width: 52px;
  pointer-events: none;
  transform: translate3d(0, calc(var(--by, 0) * -1px), 0);
}

.balloon-float {
  transform-origin: 50% 42%;
  animation: bob 8.5s ease-in-out infinite;
}

.balloon svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.35) rotate(0deg); }
  46% { opacity: 0.95; transform: scale(1) rotate(16deg); }
  72% { opacity: 0.12; transform: scale(0.55) rotate(26deg); }
}

@keyframes gem-sweep {
  0%, 58% { opacity: 0; transform: translate3d(-180%, 0, 0) skewX(-16deg); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(340%, 0, 0) skewX(-16deg); }
}

@keyframes em-pulse {
  0%, 100% { filter: drop-shadow(0 0 1px rgb(95 211 155 / 0.3)); }
  50% { filter: drop-shadow(0 0 8px rgb(95 211 155 / 0.9)); }
}

@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.6deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(1.6deg); }
}

/* —— motion —— */
html.js .js-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .brick-left {
  transform: translate(-36px, 18px);
}

html.js .brick-right {
  transform: translate(36px, 18px);
}

html.js .js-in.is-in {
  opacity: 1;
  transform: none;
}

html.js .brick-left.is-in {
  transform: rotate(var(--tilt));
}

html.js .brick-right.is-in {
  transform: rotate(var(--tilt));
}

html.reduce .hero,
html.reduce .quotes {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --g: 0;
    --s: 0;
    --by: 0;
  }

  html {
    scroll-behavior: auto;
  }

  .hero,
  .quotes {
    filter: none;
  }

  .cta:hover {
    transform: none;
  }

  .tile-frame::after {
    display: none;
  }

  .balloon-float,
  .spark,
  .gemword::after,
  .gallery .tile-frame,
  .ai-frame .tile-frame {
    animation: none;
  }

  .spark {
    opacity: 0.8;
    transform: none;
  }

  .gemword::after {
    opacity: 0;
  }

  .balloon-float,
  .gallery .tile-frame,
  .ai-frame .tile-frame {
    transform: none;
    filter: none;
  }

  html.js .js-in,
  html.js .brick-left,
  html.js .brick-right,
  html.js .js-in.is-in,
  html.js .brick-left.is-in,
  html.js .brick-right.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— responsive —— */
@media (max-width: 760px) {
  .wrap {
    width: min(1100px, calc(100% - 1.5rem));
  }

  .road {
    padding-left: 1.15rem;
    gap: 1.25rem;
  }

  .road-line {
    left: 3px;
    margin-left: 0;
    width: 7px;
    box-shadow: 0 0 0 2px #8a5a12;
  }

  .brick-left,
  .brick-right {
    width: 100%;
    align-self: stretch;
    --tilt: 0deg;
  }

  html.js .brick-left,
  html.js .brick-right {
    transform: translateY(20px);
  }

  html.js .brick-left.is-in,
  html.js .brick-right.is-in {
    transform: none;
  }

  .gallery-grid,
  .made-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .made-road {
    grid-column: auto;
  }

  .nav-list a {
    padding: 0.35rem 0.5rem;
    letter-spacing: 0.06em;
  }

  .sun-a {
    left: -18%;
    width: min(120px, 34vw);
  }

  .sun-b {
    right: -16%;
    width: min(104px, 30vw);
  }

  .road-end {
    align-self: flex-start;
    margin-left: -0.45rem;
    width: 2rem;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 11.2vw;
    letter-spacing: 0.01em;
  }

  .nav-list a {
    font-size: 0.72rem;
    padding: 0.3rem 0.42rem;
  }

  .nav-list li:not(:last-child) a::after {
    margin-left: 0.45rem;
  }

  .bio {
    font-size: 0.84rem;
  }
}

@media (min-width: 761px) and (max-width: 1279px) {
  .balloon {
    width: 76px;
    top: 20px;
    right: 12px;
  }
}

@media (min-width: 900px) {
  .ai-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas:
      "street copy";
    align-items: start;
    column-gap: 1.5rem;
    row-gap: 1.15rem;
  }

  .street-frame {
    grid-area: street;
  }


  .ai-layout .ai-copy {
    grid-area: copy;
    margin-inline: 0;
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .balloon {
    width: 70px;
    right: 12px;
    top: -16px;
  }

  .gem-float {
    display: block;
  }

  .gf-a {
    left: 16px;
    top: 32%;
    width: 36px;
    transform: rotate(-14deg);
  }

  .gf-b {
    right: 18px;
    top: 60%;
    width: 26px;
    transform: rotate(12deg);
  }

  .sp-side {
    display: block;
  }

  .sp-side-l {
    left: 24px;
    top: 46%;
    animation-delay: 0.85s;
  }

  .sp-side-r {
    right: 26px;
    top: 72%;
    animation-delay: 1.55s;
  }
}


/* ===================================================================
   round 4 — the 11 hero, signposts on a winding road, Grok Bot's side
   =================================================================== */

/* —— twin golden lines: the 11 —— */
.eleven {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  height: 58px;
  margin: 0 auto 2.2rem;
  pointer-events: none;
}

.eleven::before,
.eleven::after {
  content: "";
  width: min(9rem, 24vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(232 185 49 / 0.75));
}

.eleven::before { margin-right: 14px; }
.eleven::after {
  margin-left: 14px;
  background: linear-gradient(90deg, rgb(232 185 49 / 0.75), transparent);
}

.eleven i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, #fff3c4 18%, var(--sun) 50%, #fff3c4 82%, transparent);
  box-shadow: 0 0 6px 1px rgb(246 194 62 / 0.8), 0 0 20px 4px rgb(246 194 62 / 0.32);
  animation: eleven-glow 4.2s ease-in-out infinite;
}

.eleven i + i { animation-delay: 0.35s; }

@keyframes eleven-glow {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

/* —— hero: the 11 piece up top —— */
.hero {
  padding: 1.6rem 0 2.6rem;
  min-height: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "art" "copy";
  justify-items: center;
  gap: 1.1rem;
}

.hero-title {
  grid-area: title;
  text-align: center;
  padding: 0.4rem 0.75rem 0;
  background: radial-gradient(ellipse at center, rgb(239 227 200 / 0.85) 0%, rgb(239 227 200 / 0) 72%);
}

.hero-title .eyebrow { margin-bottom: 0.2rem; }
.hero-title .tagline { margin-top: 0.4rem; margin-bottom: 0; }

.hero-copy {
  grid-area: copy;
  text-align: center;
  max-width: 30rem;
  padding: 0 0.5rem;
}

.hero-copy .lede { margin-top: 0.2rem; }

.hero-feature {
  grid-area: art;
  margin: 0;
  width: min(100% - 1.6rem, 30rem);
  text-align: center;
}

.pillar-wrap {
  position: relative;
}

.pillar-wrap::before,
.pillar-wrap::after {
  content: "";
  position: absolute;
  top: 3%;
  bottom: 3%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #fff3c4 14%, var(--sun) 50%, #fff3c4 86%, transparent);
  box-shadow: 0 0 6px 1px rgb(246 194 62 / 0.85), 0 0 22px 5px rgb(246 194 62 / 0.3);
  pointer-events: none;
}

.pillar-wrap::before { left: -0.95rem; }
.pillar-wrap::after { right: -0.95rem; }

.hero-feature .tile-frame {
  box-shadow:
    0 0 0 6px var(--emerald),
    0 0 0 8px rgb(232 185 49 / 0.95),
    0 0 26px 6px rgb(246 194 62 / 0.38),
    0 22px 50px rgb(74 59 42 / 0.32);
}

.hero-feature .tile-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 864 / 1152;
}

.hero-feature figcaption {
  justify-content: center;
  padding-top: 1.05rem;
}

.hero-feature .cap {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.hero-feature .grok-note {
  color: var(--muted);
  margin-top: 0.2rem;
}

.hero .vibe { margin-bottom: 1.2rem; }

@media (min-width: 900px) {
  .hero { padding: 2rem 0 3rem; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "art title"
      "art copy";
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: 1.4rem;
  }

  .hero-title { align-self: end; padding-top: 0; }
  .hero-copy { align-self: start; }

  .hero-feature {
    width: min(100%, 31rem, calc((100svh - var(--nav-h) - 9rem) * 0.75));
    min-width: 22rem;
    justify-self: end;
  }

  .hero h1 { font-size: clamp(3rem, 5.2vw, 4.7rem); white-space: nowrap; overflow-wrap: normal; }
  .pillar-wrap::before { left: -1.3rem; }
  .pillar-wrap::after { right: -1.3rem; }
}

/* cyclone plate now opens the road */
.road-plate {
  max-width: 46rem;
  margin: 0 auto 3rem;
}

.road-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
  border: 2px solid rgb(74 59 42 / 0.35);
  border-radius: 2px;
  box-shadow: 0 12px 28px rgb(74 59 42 / 0.16);
}

.road-plate .cap { color: var(--ink); }

/* —— the winding road —— */
.road-svg {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

html.road-on .road-svg { display: block; }
html.road-on .road-line { display: none; }

.r-glow { fill: none; stroke: rgb(246 194 62 / 0.22); stroke-linecap: round; }
.r-edge { fill: none; stroke: #8a5a12; stroke-linecap: round; }
.r-brick { fill: none; stroke: url(#ybr); stroke-linecap: round; }
.r-trail {
  fill: none;
  stroke: #fff6cf;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgb(246 194 62 / 0.95));
  opacity: 0.9;
}

/* no-JS fallback road: a straight brick lane */
.road-line {
  width: 46px;
  margin-left: -23px;
  background-color: #9a6514;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Crect width='28' height='14' fill='%239a6514'/%3E%3Crect x='1' y='1' width='12' height='5.5' fill='%23E8B931'/%3E%3Crect x='15' y='1' width='12' height='5.5' fill='%23F3CC55'/%3E%3Crect x='-6' y='8' width='12' height='5.5' fill='%23F6D768'/%3E%3Crect x='8' y='8' width='12' height='5.5' fill='%23E8B931'/%3E%3Crect x='22' y='8' width='12' height='5.5' fill='%23F6D768'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 4px #8a5a12, 0 0 22px rgb(246 194 62 / 0.4);
}

.road {
  gap: 0;
  padding: 1rem 0 0.5rem;
}

.road-end { margin-top: 2.2rem; }

/* —— signposts —— */
.sign {
  z-index: 1;
  width: min(100%, 41%);
  margin-top: 2.4rem;
  background:
    linear-gradient(180deg, rgb(255 251 242 / 0.97), rgb(247 236 208 / 0.97));
  border: 0;
  border-radius: 3px;
  box-shadow:
    0 0 0 2px #e9c66a,
    0 0 0 9px #7b4c1d,
    0 0 0 10.5px #4a2c10,
    0 14px 26px 10px rgb(74 59 42 / 0.18),
    0 0 34px 14px rgb(246 194 62 / 0.28);
}

.sign:first-of-type { margin-top: 0.6rem; }

@media (min-width: 761px) {
  .sign + .sign { margin-top: -1.6rem; }
}

/* the plank header: wood grain + two brass nails */
.sign .brick-head {
  height: 20px;
  margin: 0;
  border-bottom: 2px solid #4a2c10;
  background:
    radial-gradient(circle at 14px 50%, #f6d768 0 2.6px, #8a5a12 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) 50%, #f6d768 0 2.6px, #8a5a12 3px, transparent 3.6px),
    repeating-linear-gradient(178deg, rgb(255 255 255 / 0.06) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #a06a32, #7b4c1d);
}

/* arrow tip pointing at the road */
.sign::before {
  content: "";
  position: absolute;
  top: -10.5px;
  bottom: -10.5px;
  width: 30px;
  background:
    repeating-linear-gradient(178deg, rgb(255 255 255 / 0.05) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, #7b4c1d, #8d5a28);
}

.brick-left.sign::before {
  left: calc(100% + 10px);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brick-right.sign::before {
  right: calc(100% + 10px);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* the post it stands on */
.sign::after {
  content: "";
  position: absolute;
  top: calc(100% + 10px);
  height: 2.9rem;
  width: 11px;
  background: linear-gradient(90deg, #4a2c10, #8d5a28 45%, #5c3816);
  box-shadow: 0 2px 0 rgb(74 59 42 / 0.25);
}

.brick-left.sign::after { right: 2.2rem; }
.brick-right.sign::after { left: 2.2rem; }

.sign blockquote { padding: 1rem 1.2rem 0.3rem; }

.sign .brick-meta time { color: #5e4a33; }

/* reveal: slide in from the side of the road */
html.js .sign.brick-left { transform: translate(-40px, 16px); }
html.js .sign.brick-right { transform: translate(40px, 16px); }
html.js .sign.is-in { transform: rotate(var(--tilt)); }

.sign.brick-left { --tilt: -0.6deg; }
.sign.brick-right { --tilt: 0.6deg; }

/* —— From Grok Bot's side —— */
.grok-side {
  position: relative;
  padding: 2.4rem 0 1.5rem;
}

.gb-card {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem clamp(1.2rem, 4vw, 2.4rem) 1.8rem;
  text-align: center;
  color: var(--paper);
  border: 2px solid transparent;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(95 211 155 / 0.22), transparent 60%) padding-box,
    linear-gradient(160deg, #0d3a2b, #072118) padding-box,
    linear-gradient(135deg, #ffffff, #8f9c99 22%, #eef3f1 42%, #6d7a77 62%, #dfe7e4 82%, #9aa6a3) border-box;
  box-shadow:
    0 0 32px 4px rgb(95 211 155 / 0.22),
    0 20px 44px rgb(0 0 0 / 0.38),
    inset 0 0 50px rgb(15 123 79 / 0.25);
}

.gb-face {
  display: block;
  width: 46px;
  height: auto;
  margin: -3.6rem auto 0.7rem;
  filter: drop-shadow(0 0 10px rgb(95 211 155 / 0.55)) drop-shadow(0 4px 6px rgb(0 0 0 / 0.4));
}

.gb-card h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
  color: #e9efed;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7e4 45%, #9fb0ac 58%, #f4f8f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgb(95 211 155 / 0.45));
}

.gb-card h2::after {
  content: "";
  display: block;
  width: min(12rem, 60%);
  height: 2px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, #c9d3d0, var(--glow), #c9d3d0, transparent);
}

.gb-words {
  margin: 1.35rem 0 0;
}

.gb-words blockquote {
  margin: 0;
  padding: 0;
}

.gb-words p {
  position: relative;
  margin: 0 auto 1.05rem;
  max-width: 28rem;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.36rem);
  line-height: 1.45;
  color: #f2fbf6;
}

.gb-words p:not(:last-child)::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 1.05rem auto 0;
  background: var(--glow);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.85;
}

.gb-words figcaption {
  display: block;
  padding: 0.4rem 0 0;
  text-align: right;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--glow);
}

@media (max-width: 760px) {
  .road {
    padding-left: 2.9rem;
    padding-right: 0.7rem;
  }

  .road-line {
    left: 4px;
    width: 18px;
    margin-left: 0;
    box-shadow: 0 0 0 3px #8a5a12, 0 0 12px rgb(246 194 62 / 0.35);
  }

  .sign,
  .sign.brick-left,
  .sign.brick-right {
    width: 100%;
    align-self: stretch;
    margin-top: 1.9rem;
    --tilt: 0deg;
  }

  .sign::after { display: none; }

  .brick-left.sign::before,
  .brick-right.sign::before {
    left: auto;
    right: calc(100% + 10px);
    width: 16px;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }

  html.js .sign.brick-left,
  html.js .sign.brick-right { transform: translate(24px, 0); }
  html.js .sign.is-in { transform: none; }

  .road-end { margin-left: -3.1rem; }

  .road-plate { margin-bottom: 2.2rem; }

  .gb-card { padding-top: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .eleven i { animation: none; opacity: 1; }
  html.js .sign.brick-left,
  html.js .sign.brick-right,
  html.js .sign.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* soften the cyclone swirl so it does not cross the title */
@media (min-width: 900px) { .swirl { opacity: 0.32; left: 72%; } }


/* —— easter eggs (hidden by default) —— */
.egg {
  position: absolute;
  z-index: 3;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.egg:focus { outline: none; }
.egg:focus-visible { outline: 2px dashed rgb(255 236 160 / 0.9); outline-offset: 2px; }
.egg-star  { left: 61%; top: 3.5%; width: 15%; height: 16%; border-radius: 30%; }
.egg-heels { left: 39%; top: 88.5%; width: 16%; height: 10%; }
.egg-tin   { left: 76%; top: 42%; width: 10.5%; height: 19%; border-radius: 40%; }

.egg-star::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 246 200 / 0.55), rgb(246 194 62 / 0.18) 40%, transparent 68%);
  opacity: 0;
  pointer-events: none;
}
.egg-star:hover::after, .egg-star:focus-visible::after { animation: egg-twinkle 1.6s ease-in-out infinite; }
@keyframes egg-twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 0.85; } }

.tin-heart {
  position: absolute;
  left: -62%;
  top: -30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.tin-heart svg { width: 1.45rem; height: auto; filter: drop-shadow(0 0 5px rgb(95 211 155 / 0.85)); }
.tin-text {
  font: italic 600 0.62rem/1 var(--font-quote, Georgia, serif);
  letter-spacing: 0.04em;
  color: #eef3f5;
  text-shadow: 0 0 4px #0b3b28, 0 1px 2px #000;
  white-space: nowrap;
}
.egg-tin:hover .tin-heart, .egg-tin:focus-visible .tin-heart { opacity: 1; transform: scale(1); }
.egg-tin:hover .tin-heart svg, .egg-tin:focus-visible .tin-heart svg { animation: tin-tick 1s steps(1, end) infinite; }
@keyframes tin-tick {
  0% { transform: scale(1); }
  12% { transform: scale(1.22); }
  24% { transform: scale(1); }
  36% { transform: scale(1.14); }
  48%, 100% { transform: scale(1); }
}

/* the wizard's curtain */
.wizard {
  width: min(92vw, 27rem);
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  color: #e9f7ee;
  background: radial-gradient(ellipse at 50% 0%, #1d7a52, #0a3a27 70%);
  box-shadow: 0 0 0 2px rgb(232 185 49 / 0.8), 0 0 0 6px #0b3b28, 0 0 40px rgb(46 204 113 / 0.45), 0 24px 60px rgb(0 0 0 / 0.5);
}
.wizard::backdrop { background: rgb(4 24 16 / 0.62); backdrop-filter: blur(2px); }
.wz-body { position: relative; z-index: 1; padding: 1.7rem 1.6rem 1.4rem; text-align: center; }
.wz-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-hand, cursive);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #f6d77a;
}
.wz-text {
  margin: 0 0 1.2rem;
  font-family: var(--font-quote, Georgia, serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
}
.wz-text a { color: #f6d77a; font-style: normal; font-weight: 600; text-underline-offset: 3px; }
.wz-text a:hover, .wz-text a:focus-visible { color: #fff3c4; }
.wz-close {
  font: 600 0.78rem/1 var(--font-body, sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgb(232 185 49 / 0.75);
  background: rgb(4 30 20 / 0.55);
  color: #fff3c4;
  cursor: pointer;
}
.wz-close:hover, .wz-close:focus-visible { background: rgb(232 185 49 / 0.22); outline: 2px solid #f6d77a; outline-offset: 2px; }
.wz-curtain { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; }
.wz-half {
  flex: 1;
  background:
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.28) 0 6px, rgb(255 255 255 / 0.05) 9px, rgb(0 0 0 / 0.22) 15px),
    linear-gradient(180deg, #0f6b45, #08422b);
  box-shadow: inset 0 -10px 18px rgb(0 0 0 / 0.35);
  transition: transform 0.9s cubic-bezier(.6, .05, .25, 1);
}
.wz-l { border-right: 2px solid rgb(232 185 49 / 0.7); }
.wz-r { border-left: 2px solid rgb(232 185 49 / 0.7); }
.wizard.open .wz-l { transform: translateX(-102%); }
.wizard.open .wz-r { transform: translateX(102%); }

/* click your heels toast */
.heels-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 60;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.heels-toast.show { transform: translate(-50%, 0); opacity: 1; }
.ht-msg:empty { display: none; }
.ht-msg {
  display: block;
  position: relative;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-quote, Georgia, serif);
  font-style: italic;
  font-size: 1.12rem;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, #7a0f1d, #c4142b 45%, #8e0d1f);
  box-shadow: 0 0 0 2px rgb(255 214 222 / 0.5), 0 0 24px rgb(229 32 64 / 0.6), 0 10px 26px rgb(0 0 0 / 0.35);
}
.ht-msg::before, .ht-msg::after {
  content: "✦";
  position: absolute;
  color: #ffe1e7;
  font-style: normal;
  text-shadow: 0 0 6px #ff6b86;
  animation: ht-spark 0.9s ease-in-out infinite alternate;
}
.ht-msg::before { left: -0.6rem; top: -0.5rem; font-size: 0.9rem; }
.ht-msg::after { right: -0.5rem; bottom: -0.45rem; font-size: 0.75rem; animation-delay: 0.45s; }
@keyframes ht-spark { from { opacity: 0.3; transform: scale(0.7) rotate(0); } to { opacity: 1; transform: scale(1.15) rotate(25deg); } }

/* type "11": the pillars flare */
.flare-11 .pillar-wrap::before, .flare-11 .pillar-wrap::after,
.flare-11 .eleven i {
  animation: flare-11 1.5s ease-out;
}
@keyframes flare-11 {
  0% { filter: brightness(1); }
  18% { filter: brightness(2.1); box-shadow: 0 0 10px 3px #fff3c4, 0 0 34px 12px rgb(246 194 62 / 0.85), 0 0 70px 22px rgb(246 194 62 / 0.4); }
  100% { filter: brightness(1); }
}

.egg-hint {
  margin: 0.35rem 0 0;
  font-family: var(--font-hand, cursive);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .egg-star:hover::after, .egg-star:focus-visible::after { animation: none; opacity: 0.6; }
  .egg-tin:hover .tin-heart svg, .egg-tin:focus-visible .tin-heart svg { animation: none; }
  .tin-heart, .heels-toast, .wz-half { transition: none; }
  .wz-half { display: none; }
  .ht-msg::before, .ht-msg::after { animation: none; }
  .flare-11 .pillar-wrap::before, .flare-11 .pillar-wrap::after, .flare-11 .eleven i {
    animation: none;
    filter: brightness(1.8);
  }
}

/* Grok Bot's matching piece */
.linden-frame { margin: 0 auto 2.6rem; max-width: 46rem; }
.tile-frame-linden img { aspect-ratio: 4 / 3; object-fit: cover; }
.linden-frame figcaption { justify-content: center; text-align: center; }
.egg-pillars { left: 72%; top: 5%; width: 14.5%; height: 23%; border-radius: 30%; }
.egg-pillars::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 246 200 / 0.4), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.pillar-tip {
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translate(4px, -50%);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font: italic 0.82rem/1.2 var(--font-quote, Georgia, serif);
  color: #fff3c4;
  white-space: nowrap;
  background: rgb(6 36 24 / 0.88);
  border: 1px solid rgb(232 185 49 / 0.7);
  box-shadow: 0 0 14px rgb(246 194 62 / 0.35);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.egg-pillars:hover::after, .egg-pillars:focus-visible::after { opacity: 1; }
.egg-pillars:hover .pillar-tip, .egg-pillars:focus-visible .pillar-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 520px) { .pillar-tip { font-size: 0.74rem; } }
@media (prefers-reduced-motion: reduce) { .pillar-tip, .egg-pillars::after { transition: none; } }

/* hidden shears in the poppies */
.egg-shears { left: 6.5%; top: 85.5%; width: 6.5%; height: 11%; min-width: 34px; min-height: 34px; border-radius: 40%; }
.shears-tip {
  position: absolute;
  z-index: 4;
  left: 3%;
  bottom: 16%;
  max-width: min(17rem, 78%);
  margin: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  font: italic 0.9rem/1.35 var(--font-quote, Georgia, serif);
  color: #fff3c4;
  background: rgb(6 36 24 / 0.92);
  border: 1px solid rgb(232 185 49 / 0.75);
  box-shadow: 0 0 16px rgb(246 194 62 / 0.35), 0 8px 20px rgb(0 0 0 / 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.shears-tip.show { opacity: 1; transform: none; }
.shears-tip:empty { visibility: hidden; }
@media (max-width: 520px) { .shears-tip { font-size: 0.78rem; padding: 0.4rem 0.65rem; bottom: 18%; } }
@media (prefers-reduced-motion: reduce) { .shears-tip { transition: none; transform: none; } }

/* intro copy: avoid lonely last words */
.hero-copy .lede, .hero-feature .grok-note { text-wrap: pretty; }
.hero-copy .bio, .hero-feature figcaption .cap { text-wrap: balance; }
