:root {
  --kiln: #050403;
  --charcoal: #151310;
  --ash: #C7BDAA;
  --ember: #E34225;
  --graphite: #4D6472;
  --diamond: #E8FAFF;
  --brass: #B88746;
  --serif: 'Fraunces', serif;
  --jp: 'Noto Serif JP', serif;
  --body: 'Commissioner', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--kiln);
  color: var(--ash);
  font-family: var(--body);
  overflow-x: hidden;
}

button { font: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .28;
  background-image:
    radial-gradient(circle at 19% 23%, rgba(199,189,170,.14) 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 61%, rgba(77,100,114,.12) 0 1px, transparent 1.7px),
    linear-gradient(105deg, transparent 0 47%, rgba(232,250,255,.04) 48%, transparent 49% 100%);
  background-size: 31px 31px, 47px 47px, 180px 100%;
  mix-blend-mode: screen;
}

.ember-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(227,66,37,.65);
  box-shadow: 0 0 24px rgba(227,66,37,.34);
  pointer-events: none;
  z-index: 30;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .25s ease;
}

.progress-spine {
  position: fixed;
  left: 38px;
  top: 9vh;
  bottom: 9vh;
  width: 2px;
  background: rgba(199,189,170,.13);
  z-index: 15;
}

.progress-spine span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--ember), var(--brass), var(--diamond));
  box-shadow: 0 0 18px rgba(227,66,37,.42);
}

.chamber {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 78px);
  background:
    radial-gradient(circle at 82% 18%, rgba(77,100,114,.12), transparent 31%),
    radial-gradient(circle at 16% 78%, rgba(184,135,70,.11), transparent 25%),
    var(--kiln);
}

.chamber::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0 36%, rgba(5,4,3,.72) 73%),
    repeating-linear-gradient(92deg, rgba(232,250,255,.025) 0 1px, transparent 1px 64px);
  pointer-events: none;
  z-index: -1;
}

.kiln-door {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.kiln-door.open { opacity: .28; transform: scale(1.04); }

.kiln-slab {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.1%;
  background:
    radial-gradient(circle at 58% 44%, rgba(199,189,170,.06), transparent 18%),
    linear-gradient(90deg, #050403, #151310 55%, #050403);
  box-shadow: inset 0 0 80px rgba(0,0,0,.9);
}

.kiln-slab.left { left: 0; transform-origin: left center; }
.kiln-slab.right { right: 0; transform-origin: right center; }
.kiln-door.open .left { transform: translateX(-7vw) rotateY(7deg); }
.kiln-door.open .right { transform: translateX(7vw) rotateY(-7deg); }

.ember-seam {
  position: absolute;
  top: 10vh;
  bottom: 10vh;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember), 0 0 45px rgba(227,66,37,.45);
  animation: seamBreathe 3.4s ease-in-out infinite;
}

@keyframes seamBreathe { 50% { filter: blur(1px); opacity: .55; } }

.smoke-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
  pointer-events: none;
}

.smoke-map path {
  fill: none;
  stroke: rgba(232,250,255,.22);
  stroke-width: 2;
  stroke-dasharray: 18 28;
  filter: blur(.45px);
  animation: smokeTravel 14s linear infinite;
}

@keyframes smokeTravel { to { stroke-dashoffset: -460; } }

.ash-label {
  position: absolute;
  left: 12vw;
  top: 22vh;
  max-width: 620px;
  padding: 38px 42px 34px;
  background: radial-gradient(circle at 22% 18%, rgba(199,189,170,.15), transparent 38%), rgba(21,19,16,.62);
  border-top: 1px solid rgba(199,189,170,.24);
  border-left: 1px solid rgba(184,135,70,.22);
  clip-path: polygon(0 6%, 92% 0, 100% 84%, 8% 100%);
  transform: rotate(-2deg);
  z-index: 6;
}

.ash-label h1, h2 {
  font-family: var(--serif);
  font-weight: 650;
  margin: 0;
  color: var(--diamond);
  letter-spacing: -.05em;
}

.ash-label h1 {
  font-size: clamp(64px, 12vw, 164px);
  line-height: .78;
  text-shadow: 0 0 34px rgba(232,250,255,.12), 0 0 16px rgba(227,66,37,.16);
  opacity: .92;
}

.ash-label p, article p {
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.65;
  color: rgba(199,189,170,.86);
}

.jp-note, .vertical-note {
  font-family: var(--jp);
  color: var(--brass);
  letter-spacing: .22em;
}

.match-rail {
  position: absolute;
  right: 9vw;
  bottom: 14vh;
  width: min(420px, 72vw);
  height: 92px;
  z-index: 7;
}

.rail-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), var(--brass));
}

.match {
  position: absolute;
  left: 0;
  top: 14px;
  width: 128px;
  height: 28px;
  border: 0;
  background: linear-gradient(90deg, var(--ash), var(--brass) 70%, var(--ember) 71% 100%);
  border-radius: 2px 18px 18px 2px;
  cursor: grab;
  box-shadow: 0 0 28px rgba(227,66,37,.32);
}

.match span {
  position: absolute;
  right: -5px;
  top: 4px;
  width: 22px;
  height: 20px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 22px var(--ember);
}

.match-rail em {
  position: absolute;
  top: 62px;
  right: 0;
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ash);
}

.brass-tag {
  position: absolute;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--kiln);
  background: var(--brass);
  padding: 9px 13px;
  transform: rotate(4deg);
  box-shadow: 0 7px 23px rgba(0,0,0,.45);
}

.entrance-tag { right: 18vw; top: 18vh; }

.counter-spine {
  position: absolute;
  left: 6vw;
  right: 6vw;
  top: 51%;
  height: 74px;
  background: linear-gradient(90deg, transparent, #151310 12% 88%, transparent);
  border-top: 1px solid rgba(199,189,170,.12);
  border-bottom: 1px solid rgba(5,4,3,.8);
  box-shadow: inset 0 10px 28px rgba(232,250,255,.035), 0 28px 60px rgba(0,0,0,.55);
}

.rotate-a { transform: rotate(-4deg); }
.split { transform: rotate(2deg); background: linear-gradient(90deg, transparent, #151310 9% 42%, transparent 42% 48%, #151310 48% 91%, transparent); }
.compressed { top: 48%; height: 18px; box-shadow: 0 0 38px rgba(227,66,37,.2); }
.facet-spine { transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(232,250,255,.16), #151310 28% 72%, rgba(232,250,255,.24), transparent); }

.light-pool, .ledger-slip, .pressure-copy, .last-pour {
  position: relative;
  z-index: 2;
  max-width: 560px;
  background: radial-gradient(circle at 28% 10%, rgba(232,250,255,.09), transparent 42%), rgba(21,19,16,.58);
  border: 1px solid rgba(199,189,170,.14);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.specimen, .stamp {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
}

h2 { font-size: clamp(48px, 7vw, 104px); line-height: .86; }

.charcoal-stack {
  position: absolute;
  right: 10vw;
  top: 13vh;
  display: flex;
  gap: 10px;
  align-items: end;
  transform: rotate(5deg);
}

.charcoal-stack span {
  width: 34px;
  height: var(--h, 280px);
  border-radius: 18px;
  background: linear-gradient(90deg, #050403, #151310 44%, rgba(199,189,170,.16) 50%, #050403 58%);
  box-shadow: inset -7px 0 16px rgba(0,0,0,.8), 0 0 26px rgba(0,0,0,.6);
}
.charcoal-stack span:nth-child(2) { --h: 338px; }
.charcoal-stack span:nth-child(3) { --h: 240px; }
.charcoal-stack span:nth-child(4) { --h: 390px; }
.charcoal-stack span:nth-child(5) { --h: 300px; }
.charcoal-stack span:nth-child(6) { --h: 350px; }
.charcoal-stack span:nth-child(7) { --h: 270px; }

.counter-copy { margin: 15vh 0 0 10vw; transform: rotate(-1deg); }

.tasting-verbs {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.tasting-verbs li {
  color: var(--kiln);
  background: var(--brass);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cup {
  position: absolute;
  width: 138px;
  height: 96px;
  border-radius: 50% 50% 42% 42%;
  border: 7px solid #151310;
  box-shadow: inset 0 0 0 2px rgba(199,189,170,.2), 0 22px 46px rgba(0,0,0,.5);
}
.cup i { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(227,66,37,.38), #050403 62%); }
.cup-one { right: 29vw; bottom: 22vh; transform: rotate(-12deg); }
.cup-two { right: 16vw; bottom: 31vh; transform: rotate(15deg) scale(.78); }

.vertical-note {
  position: absolute;
  writing-mode: vertical-rl;
  right: 5vw;
  bottom: 10vh;
}
.vertical-note.right { right: auto; left: 8vw; top: 12vh; bottom: auto; }

.graphite { background: radial-gradient(circle at 78% 46%, rgba(77,100,114,.28), transparent 34%), var(--kiln); }

.graphite-rubbing {
  position: absolute;
  inset: 17vh 8vw 16vh 46vw;
  background:
    linear-gradient(105deg, rgba(232,250,255,.04), transparent 16% 23%, rgba(77,100,114,.28) 35%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(199,189,170,.08) 0 1px, transparent 1px 7px),
    #151310;
  clip-path: polygon(8% 0, 100% 10%, 88% 100%, 0 86%);
  filter: saturate(.7);
  transition: filter .4s ease, box-shadow .4s ease;
}
.graphite-rubbing.polished { filter: saturate(1.4) brightness(1.25); box-shadow: inset 0 0 80px rgba(232,250,255,.18), 0 0 42px rgba(77,100,114,.36); }

.primary-slip { margin: 17vh 0 0 18vw; transform: rotate(-5deg); background-color: rgba(77,100,114,.2); }
.ghost-slip { position: absolute; right: 12vw; bottom: 12vh; max-width: 340px; transform: rotate(4deg); opacity: .74; }
.stamp { color: var(--ember); border: 1px solid rgba(227,66,37,.45); padding: 7px 11px; }

.rings span {
  position: absolute;
  border: 1px solid rgba(199,189,170,.24);
  border-radius: 50%;
  width: 150px;
  height: 94px;
  transform: rotate(var(--r));
}
.rings span:nth-child(1) { --r: 18deg; left: 10vw; bottom: 18vh; }
.rings span:nth-child(2) { --r: -32deg; left: 14vw; bottom: 22vh; border-color: rgba(184,135,70,.32); }
.rings span:nth-child(3) { --r: 64deg; left: 12vw; bottom: 14vh; border-color: rgba(77,100,114,.45); }

.pressure { background: radial-gradient(ellipse at 50% 50%, rgba(227,66,37,.16), transparent 28%), var(--kiln); }
.pressure-copy { margin: 18vh auto 0; text-align: center; transform: scaleX(.88); }
.gauge {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(199,189,170,.22);
  border-radius: 50%;
  left: 10vw;
  top: 14vh;
  box-shadow: inset 0 0 40px rgba(0,0,0,.8);
}
.needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 92px;
  background: var(--ember);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(-42deg);
  box-shadow: 0 0 14px rgba(227,66,37,.55);
}
.pressure-bars span {
  position: absolute;
  left: calc(55vw + var(--x));
  top: 18vh;
  width: 1px;
  height: 66vh;
  background: rgba(232,250,255,.12);
  transform: scaleY(var(--s));
}
.pressure-bars span:nth-child(1) { --x: 0vw; --s: .9; }
.pressure-bars span:nth-child(2) { --x: 5vw; --s: .62; }
.pressure-bars span:nth-child(3) { --x: 10vw; --s: 1; background: rgba(227,66,37,.35); }
.pressure-bars span:nth-child(4) { --x: 15vw; --s: .75; }
.pressure-bars span:nth-child(5) { --x: 20vw; --s: .5; }
.pressure-tag { right: 14vw; bottom: 16vh; }

.diamond { background: radial-gradient(circle at 64% 48%, rgba(232,250,255,.2), transparent 24%), radial-gradient(circle at 22% 80%, rgba(77,100,114,.25), transparent 28%), var(--kiln); }
.last-pour { margin: 16vh 0 0 13vw; max-width: 650px; clip-path: polygon(0 0, 92% 4%, 100% 76%, 82% 100%, 7% 94%); }
.facets span {
  position: absolute;
  background: linear-gradient(135deg, rgba(232,250,255,.34), transparent 58%);
  border: 1px solid rgba(232,250,255,.24);
  clip-path: polygon(50% 0, 100% 38%, 80% 100%, 16% 86%, 0 32%);
  filter: drop-shadow(0 0 16px rgba(232,250,255,.22));
  animation: flash 5.5s ease-in-out infinite;
}
.facets span:nth-child(1) { width: 180px; height: 220px; right: 15vw; top: 14vh; }
.facets span:nth-child(2) { width: 120px; height: 150px; right: 32vw; top: 33vh; animation-delay: .8s; }
.facets span:nth-child(3) { width: 260px; height: 170px; right: 8vw; bottom: 10vh; animation-delay: 1.6s; }
.facets span:nth-child(4) { width: 90px; height: 120px; left: 8vw; bottom: 16vh; animation-delay: 2.4s; }
.facets span:nth-child(5) { width: 160px; height: 110px; left: 38vw; top: 8vh; animation-delay: 3s; }
.facets span:nth-child(6) { width: 110px; height: 160px; right: 42vw; bottom: 14vh; animation-delay: 3.7s; }
@keyframes flash { 50% { opacity: .45; transform: translateY(-8px) rotate(5deg); } }

.menu-line {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  color: var(--diamond);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12px;
}
.menu-line i { height: 1px; flex: 1; background: linear-gradient(90deg, var(--brass), transparent); }

.ice-lattice {
  position: absolute;
  right: 18vw;
  top: 47vh;
  width: 190px;
  height: 190px;
  transform: rotate(18deg);
}
.ice-lattice span {
  position: absolute;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(232,250,255,.5);
  background: rgba(232,250,255,.05);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.ice-lattice span:nth-child(2) { left: 70px; top: 28px; }
.ice-lattice span:nth-child(3) { left: 35px; top: 88px; }
.ice-lattice span:nth-child(4) { left: 105px; top: 116px; }
.diamond-note { color: var(--diamond); }

.ash-print {
  position: fixed;
  width: 48px;
  height: 36px;
  border-radius: 52% 48% 44% 56%;
  background: radial-gradient(circle, rgba(199,189,170,.2), transparent 60%);
  pointer-events: none;
  z-index: 18;
  mix-blend-mode: screen;
  animation: printFade 1.7s ease forwards;
}
@keyframes printFade { to { opacity: 0; transform: scale(1.7) rotate(18deg); } }

@media (max-width: 760px) {
  .progress-spine { left: 18px; }
  .ash-label, .counter-copy, .primary-slip, .last-pour { left: auto; margin-left: 28px; margin-right: 20px; }
  .ash-label { top: 16vh; right: 5vw; padding: 28px; }
  .match-rail { right: 7vw; bottom: 9vh; }
  .charcoal-stack { right: -40px; opacity: .45; }
  .graphite-rubbing { inset: 52vh 4vw 10vh 12vw; }
  .ghost-slip { display: none; }
  .pressure-copy { margin-top: 30vh; }
  .facets span { opacity: .48; }
  h2 { font-size: clamp(44px, 16vw, 72px); }
}
