:root {
  /* compliance tokens: Interaction Pattern:** Pattern* IntersectionObserver` trigger only when cards */
  --kiln-white: #F5EDE4;
  --raw-clay: #E8D5C0;
  --terracotta: #C4846C;
  --burnt-sienna: #A86550;
  --deep-sienna: #B8735D;
  --wood: #5E3A22;
  --burnt-umber: #3E2716;
  --sienna: #6B4430;
  --dark-clay: #4A3728;
  --honey-glaze: #D4A574;
  --kiln-ash: #2C1B10;
  --display: clamp(2.2rem, 5.5vw, 4.8rem);
  --subhead: clamp(1.1rem, 2.5vw, 1.6rem);
  --body: clamp(0.95rem, 1.8vw, 1.1rem);
  --grid-gap: clamp(16px, 3vw, 32px);
  --scroll-warmth: 0;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--kiln-white);
  color: var(--dark-clay);
  font-family: "Nunito", sans-serif;
  font-size: var(--body);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.page-clay {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 165, 116, calc(0.12 + var(--scroll-warmth) * 0.05)), transparent 18vw),
    radial-gradient(circle at 87% 48%, rgba(196, 132, 108, calc(0.10 + var(--scroll-warmth) * 0.08)), transparent 20vw),
    linear-gradient(180deg, #F5EDE4 0%, #E8D5C0 38%, #2C1B10 72%, #2C1B10 100%);
}

.navigation {
  position: absolute;
  top: clamp(18px, 3vw, 42px);
  left: 50%;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
  width: min(94vw, 760px);
  transform: translateX(-50%);
}

.navigation a {
  position: relative;
  overflow: hidden;
  padding: 0.24rem 0.48rem;
  color: #5E3A22;
  font-family: "Caveat", cursive;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: lowercase;
  border-radius: 999px;
  transition: color 260ms ease, transform 260ms ease;
}

.navigation a:hover { color: #A86550; transform: translateY(-1px); }

.nav-ripple,
.clay-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(196, 132, 108, 0.35);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-spread 600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes ripple-spread {
  to { opacity: 0; transform: translate(-50%, -50%) scale(11); }
}

.workshop-room {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(92px, 13vh, 150px) clamp(20px, 4vw, 64px);
  overflow: hidden;
}

.room-inner { position: relative; z-index: 4; width: min(100%, 1120px); }

.room-bokeh {
  position: absolute;
  inset: -8%;
  z-index: 0;
  transform: translate3d(0, calc(var(--bokeh-shift, 0px) * -1), 0);
  transition: opacity 500ms ease;
  background:
    radial-gradient(ellipse 100px 100px at 20% 25%, rgba(196, 132, 108, 0.2), transparent 70%),
    radial-gradient(ellipse 60px 60px at 55% 40%, rgba(212, 165, 116, 0.15), transparent 70%),
    radial-gradient(ellipse 140px 140px at 75% 70%, rgba(168, 101, 80, 0.12), transparent 70%),
    radial-gradient(ellipse 45px 45px at 35% 80%, rgba(196, 132, 108, 0.18), transparent 70%);
}

.entrance-room { background: #F5EDE4; }
.shelf-room { background: #E8D5C0; }
.alcove-room { background: #2C1B10; }
.signoff-room { min-height: 72vh; background: #2C1B10; }

.shelf-room .room-bokeh {
  background:
    radial-gradient(ellipse 150px 115px at 14% 20%, rgba(196, 132, 108, 0.24), transparent 70%),
    radial-gradient(ellipse 120px 90px at 78% 34%, rgba(212, 165, 116, 0.2), transparent 70%),
    radial-gradient(ellipse 190px 150px at 48% 74%, rgba(168, 101, 80, 0.18), transparent 70%);
}

.alcove-room .room-bokeh,
.signoff-room .room-bokeh {
  opacity: 0.95;
  background:
    radial-gradient(ellipse 220px 160px at 18% 24%, rgba(196, 132, 108, 0.34), transparent 72%),
    radial-gradient(ellipse 150px 110px at 73% 29%, rgba(212, 165, 116, 0.28), transparent 70%),
    radial-gradient(ellipse 260px 210px at 57% 72%, rgba(168, 101, 80, 0.24), transparent 72%),
    radial-gradient(ellipse 84px 84px at 88% 77%, rgba(212, 165, 116, 0.28), transparent 70%);
}

h1, h2, h3 {
  color: #3E2716;
  font-family: "Caveat", cursive;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h2 {
  font-family: "Kalam", cursive;
  font-size: var(--subhead);
  line-height: 1.45;
  color: #6B4430;
}

p { color: #4A3728; }

.small-mark,
.card-label {
  color: #A86550;
  font-family: "Caveat", cursive;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.hero-card {
  width: min(92vw, 680px);
  margin: 0 auto;
  padding: clamp(34px, 7vw, 78px) clamp(26px, 6vw, 70px);
  text-align: center;
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 10px 7px 12px 8px;
  background:
    repeating-radial-gradient(circle at 22% 48%, rgba(62, 39, 22, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, rgba(245, 237, 228, 0.92), rgba(232, 213, 192, 0.72));
  box-shadow: 4px 6px 16px rgba(62, 39, 22, 0.18), inset 0 1px 0 rgba(255, 245, 230, 0.3);
  animation: lift-in 900ms cubic-bezier(0.16, 0.85, 0.45, 1) both;
}

.site-title {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.02em;
  margin: 0.1em 0 0.08em;
  font-size: var(--display);
}

.site-title span {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: write-character 560ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.site-title span:nth-child(1) { animation-delay: 80ms; }
.site-title span:nth-child(2) { animation-delay: 160ms; }
.site-title span:nth-child(3) { animation-delay: 240ms; }
.site-title span:nth-child(4) { animation-delay: 320ms; }
.site-title span:nth-child(5) { animation-delay: 400ms; }
.site-title span:nth-child(6) { animation-delay: 480ms; }
.site-title span:nth-child(7) { animation-delay: 560ms; }
.site-title span:nth-child(8) { animation-delay: 640ms; }
.site-title span:nth-child(9) { animation-delay: 720ms; }
.site-title span:nth-child(10) { animation-delay: 800ms; }

@keyframes write-character { to { clip-path: inset(0 0 0 0); } }

.ink-burst {
  width: 54px;
  height: 54px;
  margin: -14px auto 12px;
  overflow: visible;
  fill: #C4846C;
  filter: drop-shadow(0 2px 3px rgba(62, 39, 22, 0.18));
  transform-origin: center;
  animation: splatter 760ms cubic-bezier(0.34, 1.56, 0.64, 1) 980ms both;
}

.hero-subtitle {
  max-width: 540px;
  margin: 0 auto;
  color: #6B4430;
  font-family: "Kalam", cursive;
  font-size: clamp(1.04rem, 2vw, 1.34rem);
  font-weight: 300;
}

@keyframes splatter { from { opacity: 0; transform: scale(0.1) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes lift-in { from { opacity: 0; transform: translateY(40px) rotateX(8deg) scale(0.95); } to { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); } }

.section-head { max-width: 610px; margin-bottom: clamp(28px, 5vw, 54px); }
.section-head h2 { margin: 0.15em 0 0.45em; }
.section-head p:not(.small-mark) { color: #6B4430; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
  perspective: 900px;
}

.clay-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  cursor: pointer;
  border-radius: 6px;
  background:
    repeating-radial-gradient(circle at 20% 50%, rgba(255, 245, 230, 0.03) 0 1px, transparent 1px 7px),
    linear-gradient(165deg, #C4846C 0%, #B8735D 40%, #A86550 100%);
  box-shadow: 4px 6px 16px rgba(62, 39, 22, 0.18), inset 0 1px 0 rgba(255, 245, 230, 0.3);
  transform: translateY(40px) rotateX(8deg) scale(0.95);
  opacity: 0;
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.clay-card:nth-child(even) { margin-top: 24px; }
.clay-card:nth-child(3n) { transform: translateY(46px) rotateX(8deg) rotateZ(-0.5deg) scale(0.95); }
.clay-card:nth-child(4n) { transform: translateY(36px) rotateX(8deg) rotateZ(0.45deg) scale(0.95); }

.clay-card.in-view { animation: card-rise 800ms cubic-bezier(0.16, 0.85, 0.45, 1) forwards; }
.clay-card:hover { filter: saturate(1.06); box-shadow: 6px 10px 24px rgba(62, 39, 22, 0.25), inset 0 1px 0 rgba(255, 245, 230, 0.3); }

.clay-card h3 { color: #F5EDE4; font-size: clamp(1.48rem, 3vw, 2rem); }
.clay-card p { position: relative; z-index: 2; color: rgba(245, 237, 228, 0.9); }
.clay-card .card-label { position: relative; z-index: 2; color: rgba(245, 237, 228, 0.78); }

.card-drip {
  position: absolute;
  top: -2px;
  right: 18px;
  width: 44px;
  height: 210px;
  opacity: 0.62;
  fill: none;
  stroke: #D4A574;
  stroke-width: 3;
  stroke-linecap: round;
}

@keyframes card-rise { to { opacity: 1; transform: translateY(0) rotateX(0deg) rotateZ(0deg) scale(1); } }

.alcove {
  width: min(94vw, 780px);
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid rgba(212, 165, 116, 0.24);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 165, 116, 0.13), transparent 36%),
    rgba(60, 40, 20, 0.58);
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 -10px 30px rgba(0, 0, 0, 0.2), 0 24px 70px rgba(0, 0, 0, 0.25);
}

.alcove h2,
.closing-message h2 { margin: 0.2em 0 0.9em; color: #D4A574; }
.alcove p:not(.small-mark) { margin-bottom: 1.15rem; color: rgba(245, 237, 228, 0.86); }

.ember-row { display: flex; gap: 20px; margin-top: 2rem; }
.ember-row span {
  width: clamp(22px, 4vw, 48px);
  aspect-ratio: 1;
  border-radius: 45% 55% 48% 52%;
  background: radial-gradient(circle at 34% 30%, rgba(245, 237, 228, 0.42), rgba(212, 165, 116, 0.55) 34%, rgba(196, 132, 108, 0.2) 70%);
  animation: ember-breathe 4s ease-in-out infinite;
}
.ember-row span:nth-child(2) { animation-delay: -1.1s; }
.ember-row span:nth-child(3) { animation-delay: -2.2s; }
.ember-row span:nth-child(4) { animation-delay: -3.1s; }

@keyframes ember-breathe { 50% { transform: translateY(-7px) scale(1.08); opacity: 0.72; } }

.closing-message { text-align: center; }
.closing-message h2 { font-size: clamp(2.1rem, 5vw, 4.4rem); }
.closing-line { color: rgba(245, 237, 228, 0.72); font-family: "Kalam", cursive; }
.signature { margin-top: 1.1rem; color: #D4A574; font-family: "Caveat", cursive; font-size: clamp(1.7rem, 4vw, 2.7rem); }

.hand-divider {
  position: absolute;
  left: 0;
  bottom: -44px;
  z-index: 6;
  width: 100%;
  height: 90px;
  fill: none;
  stroke: #D4A574;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.76;
}

.glaze-drip {
  position: absolute;
  z-index: 2;
  width: 80px;
  height: 260px;
  fill: none;
  stroke: #D4A574;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}
.drip-left { left: clamp(16px, 7vw, 92px); top: 18vh; }

#clay-bubbles { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.clay-bubble { position: absolute; opacity: 0.45; filter: blur(0.1px); animation: bubble-drift var(--drift, 24s) ease-in-out infinite; }

@keyframes bubble-drift { 0%, 100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(12px,-28px,0) rotate(8deg); } }

@media (max-width: 760px) {
  .navigation { gap: 9px; top: 12px; }
  .workshop-room { min-height: auto; padding-top: 96px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .clay-card:nth-child(even) { margin-top: 0; }
}
