:root {
  --clay: #c15a32;
  --clay-hot: #d4784a;
  --clay-deep: #8e3a1e;
  --clay-ink: #5c2a14;
  --clay-shadow: #6a2814;
  --stone: #f3e6d3;
  --stone-2: #efe0c8;
  --stone-3: #e4d2b4;
  --linen: #faf3e8;
  --ink: #3a2418;
  --mute: #7a5340;
  --gold: #c9a05a;
  --gold-soft: #e6c98a;
  --line: rgba(193, 90, 50, 0.22);
  --glass: rgba(250, 243, 232, 0.72);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--stone);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.kiln-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(212, 120, 74, 0.34), transparent 62%),
    radial-gradient(760px 480px at 88% 18%, rgba(201, 160, 90, 0.22), transparent 60%),
    radial-gradient(1000px 640px at 50% 110%, rgba(142, 58, 30, 0.18), transparent 58%),
    linear-gradient(180deg, #f6ead6 0%, #edd6b6 42%, #e2c49a 100%);
}

#dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.glyph-veil {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath d='M110 28c-6 18-6 36 0 54m-28-40c12 8 24 8 36 0M72 118c22-8 54-8 76 0M86 150c14 10 34 10 48 0' fill='none' stroke='%238e3a1e' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M40 40c8 2 10 10 8 16M180 70c-7 3-8 12-4 18M50 180c6-4 14-2 16 6' fill='none' stroke='%23c15a32' stroke-width='1.1'/%3E%3C/svg%3E");
  animation: glyph-drift 80s linear infinite;
}

.heat-shimmer {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 30%, rgba(212, 120, 74, 0.14), transparent 42%);
  filter: blur(28px);
  animation: heat 9s ease-in-out infinite;
}

.stone-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 248, 236, 0.35), transparent 36%),
    radial-gradient(circle at 78% 70%, rgba(142, 58, 30, 0.06), transparent 32%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.clay-nav,
main,
.colophon {
  position: relative;
  z-index: 1;
}

.clay-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(243, 230, 211, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Cinzel, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.mark img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(106, 40, 20, 0.18);
  animation: figurine-breathe 5.6s ease-in-out infinite;
}

.nav-trail {
  display: flex;
  gap: 26px;
  font-family: Cinzel, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-trail a {
  position: relative;
  color: var(--mute);
}

.nav-trail a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--clay), var(--gold));
  transition: transform 0.35s ease;
}

.nav-trail a:hover {
  color: var(--clay-ink);
}

.nav-trail a:hover::after {
  transform: scaleX(1);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--linen);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seal-icon img {
  width: 16px;
  height: 16px;
}

.seal-icon:hover {
  transform: translateY(-2px) rotate(-8deg);
  box-shadow: 0 10px 18px rgba(106, 40, 20, 0.14);
}

.clay-btn,
.tablet-cta,
.gather-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, #d4784a 0%, #c15a32 58%, #a34724 100%);
  color: #fff8ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 214, 0.45),
    0 10px 22px rgba(106, 40, 20, 0.2);
}

.clay-btn {
  padding: 10px 18px;
  font-family: Cinzel, serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.clay-btn:hover,
.tablet-cta:hover,
.gather-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.clay-btn:active,
.tablet-cta:active {
  transform: translateY(1px);
  box-shadow: inset 0 4px 10px rgba(90, 30, 12, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--clay-ink);
  border-radius: 2px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px 48px;
}

.wheel-plinth {
  position: relative;
  width: min(420px, 86vw);
  height: min(420px, 86vw);
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

.wheel-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(193, 90, 50, 0.42);
  box-shadow:
    inset 0 0 0 10px rgba(250, 243, 232, 0.12),
    0 0 24px rgba(193, 90, 50, 0.12);
}

.r1 {
  inset: 8%;
  animation: wheel 28s linear infinite;
}

.r2 {
  inset: 18%;
  border-style: dashed;
  animation: wheel 18s linear infinite reverse;
}

.r3 {
  inset: 28%;
  animation: wheel 12s linear infinite;
}

.kiln-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 120, 74, 0.35), transparent 70%);
  filter: blur(16px);
  animation: kiln 4.8s ease-in-out infinite;
}

.figurine-wrap {
  position: relative;
  z-index: 2;
  width: 52%;
  animation: figurine-float 6.4s ease-in-out infinite;
}

.figurine {
  width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 22px 28px rgba(106, 40, 20, 0.28));
  transition: transform 0.2s ease;
}

.eyebrow,
.kicker,
.step-num,
.ca-label {
  font-family: Cinzel, serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--clay-deep);
}

.hero h1,
.section-head h2 {
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(180deg, #e08a58 0%, #c15a32 42%, #7a3018 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 40px rgba(142, 58, 30, 0.08);
}

.hero h1 {
  font-size: clamp(54px, 9vw, 104px);
  margin: 8px 0 10px;
  animation: title-rise 1.1s ease both;
}

.symbol-seal {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(250, 243, 232, 0.7);
  font-family: Cinzel, serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--clay-ink);
}

.inscription {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 26px;
  font-style: italic;
  color: var(--mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tablet-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: Cinzel, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tablet-cta.primary {
  padding-inline: 22px;
}

.tablet-cta:not(.primary) {
  background: linear-gradient(180deg, #faf3e8, #edd8b8);
  color: var(--clay-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 18px rgba(106, 40, 20, 0.1);
}

.tablet-cta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ca-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(720px, 92vw);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px dashed var(--clay);
  background: rgba(250, 243, 232, 0.65);
  transition: transform 0.25s ease, background 0.25s ease;
}

.ca-seal:hover {
  transform: translateY(-1px);
  background: #fff8ee;
}

.ca-value {
  font-size: 15px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.descend {
  margin-top: 28px;
  font-family: Cinzel, serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  animation: descend 2.2s ease-in-out infinite;
}

section {
  padding: 88px 24px;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 56px);
}

.about-shelf {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.votives,
.tablet,
.kiln-step,
.chart-alcove,
.lintel-frame {
  border: 1px solid rgba(193, 90, 50, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 246, 230, 0.92), rgba(232, 196, 154, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -10px 22px rgba(142, 58, 30, 0.06),
    0 18px 40px rgba(90, 40, 18, 0.1);
}

.votives {
  padding: 32px;
  border-radius: 28px;
}

.votive-well {
  width: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(106, 40, 20, 0.16);
}

.votives blockquote {
  font-size: 26px;
  font-style: italic;
  color: var(--clay-deep);
  margin-bottom: 14px;
}

.tablet-stack {
  display: grid;
  gap: 16px;
}

.tablet {
  padding: 22px 24px;
  border-radius: 22px;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.3s ease;
}

.tablet.reveal,
.kiln-step.reveal,
.chart-alcove.reveal,
.lintel-frame.reveal,
.gather-card.reveal {
  transform: none;
  opacity: 1;
}

.tablet span,
.kiln-step .step-num {
  display: inline-block;
  margin-bottom: 6px;
}

.tablet h3,
.kiln-step h3,
.gather-card strong {
  font-family: Cinzel, serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--clay-ink);
}

.tablet:hover {
  box-shadow:
    inset 0 8px 16px rgba(142, 58, 30, 0.08),
    0 10px 24px rgba(90, 40, 18, 0.1);
}

.workshop {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
}

.kiln-step {
  padding: 24px 20px 28px;
  border-radius: 24px;
  text-align: center;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.kiln-step:nth-child(2) { transition-delay: 0.08s; }
.kiln-step:nth-child(3) { transition-delay: 0.16s; }
.kiln-step:nth-child(4) { transition-delay: 0.24s; }

.stamp {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--linen);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 18px rgba(106, 40, 20, 0.1);
  transition: transform 0.35s ease;
}

.stamp img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.kiln-step:hover .stamp {
  transform: rotate(-8deg) scale(1.06);
}

.chart-alcove {
  max-width: var(--max);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  min-height: 620px;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.chart-alcove iframe {
  width: 100%;
  height: 620px;
  border: 0;
  background: #faf3e8;
}

.lintel-frame {
  position: relative;
  max-width: var(--max);
  margin: 0 auto 28px;
  aspect-ratio: 3 / 1;
  border-radius: 28px;
  overflow: hidden;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.lintel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 248, 236, 0.28) 46%, transparent 70%);
  transform: translateX(-120%);
  animation: lintel-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

.lintel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gather-row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gather-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  text-align: center;
  color: #fff8ee;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease, filter 0.3s ease;
}

.gather-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 50%;
  background: #fff8ee;
  object-fit: contain;
}

.gather-card span {
  color: rgba(255, 248, 238, 0.82);
  font-size: 16px;
}

.colophon {
  padding: 36px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.colophon .mark {
  justify-content: center;
  margin-bottom: 10px;
}

.fine {
  margin-top: 8px;
  font-size: 15px;
  color: var(--mute);
}

@keyframes wheel {
  to { transform: rotate(360deg); }
}

@keyframes kiln {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes figurine-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes figurine-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes title-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes descend {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(7px); opacity: 1; }
}

@keyframes glyph-drift {
  to { background-position: 220px 220px; }
}

@keyframes heat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-12px) scale(1.05); opacity: 1; }
}

@keyframes lintel-sweep {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@media (max-width: 980px) {
  .about-shelf,
  .workshop,
  .gather-row {
    grid-template-columns: 1fr;
  }

  .workshop {
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .nav-trail {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px 22px;
    background: rgba(243, 230, 211, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 14px;
  }

  .clay-nav.open .nav-trail {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .clay-btn {
    display: none;
  }

  .hero h1 {
    font-size: 56px;
  }

  .inscription {
    font-size: 22px;
  }

  .chart-alcove,
  .chart-alcove iframe {
    min-height: 480px;
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
