#philosophy:has(> .glaze-film) { overflow: visible; padding-top: 0; }
.glaze-film {
  --ink: #080c0c;
  --paper: #e9e9dd;
  --secondary: #b0bbb2;
  --rule: #3a4641;
  --cg-header: 74px;
  --inset: clamp(26px, 6vw, 120px);
  position: relative;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Guanqi Reference Sans', 'PingFang SC', sans-serif;
  text-align: left;
}
.glaze-film[data-enhanced] { height: 385svh; }
.cg-stage {
  position: relative;
  height: calc(100svh - var(--cg-header));
  min-height: 370px;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}
.glaze-film[data-enhanced] .cg-stage { position: sticky; top: var(--cg-header); }
.cg-viewport { position: absolute; inset: 1% 12% 19% 16%; touch-action: pan-y pinch-zoom; }
.cg-viewport:focus-visible { outline: 1px solid #829687; outline-offset: -5px; }
.glaze-film[data-state="ready"] .cg-viewport { cursor: grab; }
.cg-viewport[data-dragging] { cursor: grabbing !important; }
.cg-viewport canvas, .mh-cup-viewport canvas { display: block; width: 100%; height: 100%; }
.cg-poster { position: absolute; inset: 8% 15%; width: 70%; height: 84%; object-fit: contain; }
.glaze-film[data-state="ready"] .cg-poster { visibility: hidden; }
.cg-heading, .cg-facts { position: absolute; z-index: 1; }
.cg-heading { left: var(--inset); top: 15%; max-width: 24%; pointer-events: none; }
.glaze-film :is(h2,h3,p,dl,dd) { margin: 0; }
.cg-kicker { color: #aab8ae; font-size: .875rem; letter-spacing: .18em; }
.cg-heading h2, .cg-caption h3, .cg-facts dd {
  font-family: 'Guanqi Serif','Songti SC','STSong',serif;
  font-weight: 400;
}
.cg-heading h2 { margin: .3em 0 .49em; font-size: clamp(3rem,5.1vw,6rem); line-height: 1.09; letter-spacing: .02em; }
.cg-heading h2 span { display: block; }
.cg-caption h3 { font-size: clamp(1.05rem,1.42vw,1.45rem); line-height: 1.45; }
.cg-caption p { max-width: 15em; margin-top: .65em; color: var(--secondary); font-size: .97rem; line-height: 1.8; text-wrap: pretty; }
.cg-link { pointer-events: auto; display: inline-flex; align-items: center; min-height: 40px; margin: 1em 1em 0 0; padding: 0;
  border: 0; border-bottom: 1px solid #6c8178; border-radius: 0; background: none; color: var(--paper); font: inherit; font-size: .875rem; text-decoration: none; cursor: pointer; }
.cg-facts { top: 30%; right: var(--inset); max-width: 17%; }
.cg-facts > div { margin-bottom: 1.25rem; }
.cg-facts dt { color: #94a59c; font-size: .8rem; letter-spacing: .12em; }
.cg-facts dd { margin-top: .25em; color: #d3dbcf; font-size: clamp(.98rem,1.14vw,1.25rem); line-height: 1.5; }
.cg-status { position: absolute; left: 31%; right: 25%; bottom: 18%; text-align: center; color: var(--secondary); font-size: .875rem; }
.cg-console { position: absolute; z-index: 2; left: var(--inset); right: var(--inset); bottom: max(3.5%, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr max-content; align-items: center; row-gap: 3px; background: rgba(8,12,12,.78); }
.cg-transport { grid-column: 1/-1; display: grid; grid-template-columns: max-content minmax(20px,1fr) max-content; align-items: center; gap: clamp(12px,2.4vw,40px); }
.cg-play, .cg-angles button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0; color: var(--secondary); background: none; font: inherit; font-size: .875rem; cursor: pointer; }
.cg-play { gap: .7em; min-width: 6.2em; justify-content: start; color: var(--paper); }
.cg-play-icon { display: inline-block; width: 12px; height: 14px; background: currentColor; clip-path: polygon(12% 7%,97% 50%,12% 93%); }
.cg-play[aria-pressed="true"] .cg-play-icon { clip-path: polygon(8% 9%,36% 9%,36% 91%,8% 91%,8% 9%,64% 9%,92% 9%,92% 91%,64% 91%,64% 9%); }
.cg-track { position: relative; display: grid; align-items: center; height: 44px; }
.cg-track::before, .cg-track-marks { position: absolute; left: 6px; right: 6px; top: 50%; }
.cg-track::before { content: ''; height: 1px; background: linear-gradient(to right,#cadbc9 var(--played,0%),var(--rule) var(--played,0%)); }
.cg-track-marks i { position: absolute; height: 5px; width: 1px; top: -2px; background: #6c7972; }
.cg-range { z-index: 1; display: block; width: 100%; height: 40px; margin: 0; padding: 0; appearance: none; background: transparent; cursor: pointer; touch-action: pan-y; }
.cg-range::-webkit-slider-runnable-track { height: 1px; background: transparent; }
.cg-range::-moz-range-track { height: 1px; background: transparent; }
.cg-range::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -5.5px; border: 2px solid var(--ink); border-radius: 50%; appearance: none; background: #dae3d8; }
.cg-range::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid var(--ink); border-radius: 50%; background: #dae3d8; }
.cg-time { font: 400 .8125rem/1.5 ui-monospace,monospace; color: #b9c4b8; white-space: nowrap; }
.cg-angles { display: flex; column-gap: clamp(11px,1.7vw,29px); flex-wrap: wrap; }
.cg-angles button { position: relative; min-width: 32px; }
.cg-angles button[aria-pressed="true"] { color: #f4f2e9; }
.cg-angles button[aria-pressed="true"]::after { content: ''; position: absolute; bottom: 4px; height: 1px; width: 18px; background: #cbdacb; }
.cg-gesture { justify-self: end; font-size: .8rem; color: #97a69c; }
.glaze-film :is(button,a,input):focus-visible { outline: 1px solid #cbdacb; outline-offset: 3px; }
.glaze-film [hidden] { display: none !important; }
.cg-console button:hover, .cg-link:hover { color: white; }

/* One shared 3D stage sits beside the original process photography. */
#making .mh-cup { display: none; }
#making .mh-story-links { display: flex; align-items: center; gap: clamp(14px,2.5vw,42px); }
#making .mh-story-links a { font-size: .875rem; }
#making .mh-stage[data-cup-ready] { background: #080c0c; }
#making .mh-stage[data-cup-ready] .mh-cup {
  position: absolute; display: block; left: 4%; width: 38%; top: 25%; height: 54%;
}
#making .mh-cup-viewport { position: absolute; inset: 0; }
#making .mh-cup-label { position: absolute; bottom: -1.4em; left: 0; width: 100%; color: #afbaad; font: 400 .875rem/1.8 var(--mh-serif); text-align: center; letter-spacing: .08em; }
#making .mh-stage[data-cup-ready] :is(.mh-field,.mh-nav) { left: 44%; }
#making .mh-stage[data-cup-ready] .mh-field { top: 26%; height: 51%; }
#making .mh-stage[data-cup-ready] .mh-nav { top: 78.5%; }
#making .mh-stage[data-cup-ready] .mh-caption { text-shadow: 0 1px 6px #060706; }
#lakeside-closing .lakeside-closing-title { letter-spacing: .035em; }
#visit .consultation-note { color: #a5b1a8; }
@media (max-width: 760px) {
  .glaze-film { --cg-header: 62px; --inset: clamp(18px,5vw,36px); }
  .glaze-film[data-enhanced] { height: 335svh; }
  .cg-heading { left: var(--inset); top: 3.5%; max-width: 70%; }
  .cg-kicker { font-size: .8125rem; }
  .cg-heading h2 { margin: .19em 0 .2em; font-size: clamp(1.85rem,7.6vw,3rem); line-height: 1.2; }
  .cg-heading h2 span { display: inline; }
  .cg-caption h3 { font-size: 1.05rem; }
  .cg-caption p { max-width: 18em; margin-top: .15em; font-size: .875rem; }
  .cg-link { margin: .2em 1em 0 0; min-height: 32px; }
  .cg-facts { top: 4.4%; right: var(--inset); max-width: 26%; }
  .cg-facts > div { display: none; margin: 0; }
  .cg-facts > div:last-child { display: block; }
  .cg-facts dd { font-size: .875rem; }
  .cg-viewport { inset: 23% 0 19%; }
  .cg-console { bottom: max(2%,env(safe-area-inset-bottom)); grid-template-columns: 1fr; row-gap: 0; }
  .cg-angles { justify-content: space-between; column-gap: 0; }
  .cg-angles button { min-width: 30px; font-size: .8125rem; }
  .cg-gesture { justify-self: center; margin-top: 4px !important; }
  .cg-status { left: 10%; right: 10%; bottom: 20%; }
  #making .mh-stage[data-cup-ready] .mh-intro { display: none; }
  #making .mh-stage[data-cup-ready] .mh-cup { left: 42%; top: 1%; width: 54%; height: 33%; }
  #making .mh-stage[data-cup-ready] .mh-cup-label { bottom: 0; font-size: .8125rem; }
  #making .mh-stage[data-cup-ready] :is(.mh-field,.mh-nav) { left: 5%; right: 5%; }
  #making .mh-stage[data-cup-ready] .mh-field { top: 37%; height: 40%; }
  #making .mh-stage[data-cup-ready] .mh-nav { top: 78%; }
  #making .mh-stage[data-cup-ready] .mh-lead { left: 5%; top: 8%; }
  #making .mh-stage[data-cup-ready] .mh-lead h2 { max-width: 3.2em; white-space: normal; font-size: clamp(1.8rem,7vw,2.5rem); }
}
@media (max-height: 600px) and (min-width: 600px) {
  .glaze-film { --cg-header: 52px; }
  .cg-stage { min-height: 250px; }
  .cg-heading { top: 4%; max-width: 26%; }
  .cg-heading h2 { font-size: 2.3rem; display: block; }
  .cg-heading h2 span { display: inline; }
  .cg-caption p { font-size: .8125rem; }
  .cg-viewport { inset: 0 12% 22% 22%; }
  .cg-facts { top: 10%; }
  .cg-console { bottom: 1%; display: grid; grid-template-columns: 1fr max-content; }
  .cg-play, .cg-angles button, .cg-track, .cg-range { min-height: 30px; height: 30px; }
  .cg-angles { justify-content: start; column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .glaze-film[data-enhanced] { height: 230svh; }
}
