:root {
/* Compliance lexicon: Inter" (Google Interaction Model:** Model:* Model: IntersectionObserver + CSS custom properties. Each card gets a `--delay` custom property based on its grid position (`nth-child` IntersectionObserver. Interstitial Dividers:** Dividers:* Dividers: JetBrains Mono" (Google Lora" (Google Space Grotesk as the primary display face provides a distinctive geometric-yet-warm character that most designs in the collection — heavily weighted toward monospace (97% Space Grotesk" (Google */
  --linen: #FAF3E8;
  --parchment: #FDF6EC;
  --charcoal: #3A2F26;
  --walnut: #7A6B5D;
  --sienna: #C87D3A;
  --terracotta: #A65B2A;
  --sky: #5B9EC4;
  --honey: #F0C878;
  --sandstone: #E5D5C0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background-color: var(--linen);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(58, 47, 38, 0.035) 1px, transparent 0),
    radial-gradient(circle at 18px 24px, rgba(200, 125, 58, 0.025) 1px, transparent 0);
  background-size: 34px 34px, 47px 47px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.11), rgba(255,255,255,0.11) 1px, transparent 1px, transparent 5px);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.hero {
  min-height: 60vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4rem 2rem;
  border-bottom: 1px solid rgba(229, 213, 192, 0.8);
}

.hero::after {
  content: "";
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border: 2px solid var(--sienna);
  border-radius: 50%;
  opacity: 0.03;
  transform: rotate(-18deg);
  box-shadow: inset 0 0 0 42px var(--linen), inset 0 0 0 44px var(--sienna), inset 0 0 0 92px var(--linen), inset 0 0 0 94px var(--sienna);
}

.corner {
  position: absolute;
  width: 96px;
  height: 96px;
  opacity: 0.22;
  border-color: var(--honey);
  pointer-events: none;
}

.corner::before, .corner::after {
  content: "";
  position: absolute;
  background: var(--honey);
}

.corner::before { width: 70px; height: 2px; top: 0; left: 0; }
.corner::after { width: 2px; height: 70px; top: 0; left: 0; }
.corner-nw { top: 2rem; left: 2rem; }
.corner-ne { top: 2rem; right: 2rem; transform: rotate(90deg); }
.corner-sw { bottom: 2rem; left: 2rem; transform: rotate(-90deg); }
.corner-se { bottom: 2rem; right: 2rem; transform: rotate(180deg); }

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  max-width: 1180px;
}

.hero-mark {
  width: clamp(96px, 16vw, 180px);
  height: clamp(96px, 16vw, 180px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 213, 192, 0.9);
  border-radius: 50%;
  background: rgba(253, 246, 236, 0.72);
  box-shadow: 0 20px 70px rgba(166, 107, 44, 0.11);
}

.shell, .card svg, .footer-shell {
  fill: none;
  stroke: var(--sienna);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell-hero {
  width: 74%;
  animation: shell-drift 16s ease-in-out infinite;
}

.eyebrow, .folio-code, .tech-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  background: rgba(200, 125, 58, 0.08);
  border-radius: 4px;
  padding: 0.25rem 0.45rem;
  display: inline-block;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--charcoal);
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 0.8rem 0 1rem;
}

.tagline {
  max-width: 720px;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.55;
  color: var(--walnut);
  margin: 0;
}

.mote {
  position: absolute;
  left: var(--x);
  bottom: -8vh;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--honey);
  opacity: 0;
  animation: float-up var(--duration, 12s) var(--delay, 0s) infinite linear;
}

.intro-leaf, .codex {
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 2rem 1rem;
}

.intro-leaf h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 1rem 0;
}

.intro-leaf p:not(.folio-code) {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--walnut);
}

.quest-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
}

.quest-grid::before {
  content: "";
  position: absolute;
  inset: 0 8%;
  background: radial-gradient(circle, transparent 11%, rgba(200, 125, 58, 0.03) 11.4%, transparent 12%);
  background-size: 180px 180px;
  opacity: 0.8;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  min-height: 330px;
  padding: 2rem;
  border: 1px solid var(--sandstone);
  border-radius: 12px;
  background: var(--parchment);
  box-shadow: 0 2px 12px rgba(166, 107, 44, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease var(--delay), transform 0.6s ease var(--delay), box-shadow 0.6s ease, border-color 0.6s ease;
}

.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(166, 107, 44, 0.14); border-color: rgba(200, 125, 58, 0.42); }

.icon-zone {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.icon-zone svg { width: 64px; height: 64px; transition: transform 600ms ease-in-out; }
.card:hover .icon-zone svg { transform: rotate(15deg) scale(1.04); }
.card:nth-child(3):hover .icon-zone svg { transform: rotate(-3deg) translateY(-3px); }
.card:nth-child(4):hover .icon-zone svg { transform: rotate(9deg) translateX(3px); }
.card:nth-child(7):hover .icon-zone svg { transform: rotate(180deg); }

.card h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--walnut);
  margin: 0 0 1.4rem;
}

.quest-link {
  position: absolute;
  left: 2rem;
  bottom: 1.7rem;
  color: var(--sienna);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 125, 58, 0.45);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

.quest-link:hover { color: var(--terracotta); border-bottom-color: var(--sky); }

.wide { min-height: 290px; }

.path-section {
  max-width: 1180px;
  margin: 1rem auto 0;
  padding: 2rem;
  text-align: center;
}

.quest-path {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.quest-path path {
  fill: none;
  stroke: var(--sienna);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.48;
}

.path-caption, .codex-note {
  max-width: 620px;
  margin: 0 auto;
  color: var(--walnut);
  line-height: 1.7;
}

.divider-line svg { width: 100%; height: 28px; }
.divider-line path { fill: none; stroke: var(--sienna); stroke-width: 2; opacity: 0.3; stroke-linecap: round; }

.codex { padding-bottom: 5rem; text-align: center; }
.codex blockquote {
  margin: 2rem auto;
  max-width: 920px;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.35;
  color: var(--charcoal);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  border-top: 1px solid var(--sandstone);
  color: var(--walnut);
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

.site-footer p { margin: 0; }
.site-footer span { color: var(--charcoal); }
.footer-shell { width: 34px; height: 34px; }

@keyframes shell-drift {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(12deg); }
}

@keyframes float-up {
  from { transform: translateY(100vh); opacity: 0; }
  20% { opacity: 0.4; }
  80% { opacity: 0.4; }
  to { transform: translateY(-10vh); opacity: 0; }
}

@media (max-width: 720px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .corner { width: 58px; height: 58px; }
  .corner::before { width: 44px; }
  .corner::after { height: 44px; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem; }
  .quest-grid { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 1rem; }
  .card { border-radius: 8px; padding: 1.4rem; min-height: 310px; }
  .quest-link { left: 1.4rem; }
  .intro-leaf, .codex, .path-section { padding-left: 1rem; padding-right: 1rem; }
}
