/* ==========================================================================
   sections — hero, process, the pour, the law, colour, work, atelier
   ========================================================================== */

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(6rem, 15vh, 9rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero h1 {
  margin-top: 0.6rem;
}
/* The temperature is set in the display face at hero size, because it is the
   one number the whole trade turns on. */
.hero h1 .deg {
  font-variant-numeric: lining-nums;
  color: var(--patina);
}
.hero__lead {
  margin-top: clamp(1.2rem, 3vh, 1.9rem);
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vh, 2.4rem);
}
.hero__fig {
  margin: 0;
}
.hero__cap {
  margin-top: 0.85rem;
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  color: var(--sand);
  text-transform: uppercase;
}

/* ── the flask — the only dark region on the page ───────────────────────── */

.flask {
  position: relative;
  background: var(--flask);
  border: 1px solid var(--flask-line);
  border-radius: 3px;
  overflow: hidden;
  /* Sunk rather than raised: this is a hole cut in the plaster, not a card
     sitting on it. The inner highlight is the light catching the near edge. */
  box-shadow:
    inset 0 1px 0 rgba(236, 234, 228, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 40px -28px rgba(35, 33, 28, 0.6);
}
.flask__stage {
  position: relative;
  aspect-ratio: 1;
}
.flask canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.flask canvas:focus-visible {
  outline-offset: -3px;
}

/* corner ticks — a flask has register marks on it */
.flask__tick {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid var(--flask-line);
  pointer-events: none;
}
.flask__tick--tl {
  top: 9px;
  left: 9px;
  border-right: 0;
  border-bottom: 0;
}
.flask__tick--tr {
  top: 9px;
  right: 9px;
  border-left: 0;
  border-bottom: 0;
}
.flask__tick--bl {
  bottom: 9px;
  left: 9px;
  border-right: 0;
  border-top: 0;
}
.flask__tick--br {
  bottom: 9px;
  right: 9px;
  border-left: 0;
  border-top: 0;
}

.flask__hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  padding: 0.7rem 0.95rem;
  background: linear-gradient(to top, rgba(25, 26, 22, 0.92), transparent);
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  color: var(--flask-ink-2);
  pointer-events: none;
  text-transform: uppercase;
}
.flask__hud b {
  font-weight: 400;
  color: var(--flask-ink);
  font-variant-numeric: tabular-nums;
}

/* ── the pour: controls and verdict ─────────────────────────────────────── */

.pour__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 64rem) {
  .pour__grid {
    grid-template-columns: 1fr 21.5rem;
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--shell-2);
}
.panel + .panel {
  margin-top: 1rem;
}
.panel__hd {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
}
.panel__bd {
  padding: 1rem;
}

.pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.pick button {
  border: 0;
  background: var(--shell);
  padding: 0.7rem 0.4rem;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-height: 46px;
  transition:
    background-color 0.3s var(--settle),
    color 0.3s var(--settle);
}
.pick button:hover {
  color: var(--ink);
}
.pick button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--shell);
}

.ctl {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
}
.ctl label {
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}
.ctl input[type='range'] {
  flex: 1;
  accent-color: var(--patina);
  min-height: 44px;
}
.ctl output {
  font-family: var(--f-mono);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 4.2em;
  text-align: right;
}

.acts {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.acts .btn {
  flex: 1;
  justify-content: center;
}

/* the read-out table */
.read {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: var(--t-small);
}
.read th,
.read td {
  padding: 0.42rem 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.read th {
  color: var(--sand);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.read td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.read tr:last-child th,
.read tr:last-child td {
  border-bottom: 0;
}
.read td[data-good='yes'] {
  color: var(--patina);
}
.read td[data-good='no'] {
  color: var(--ink);
}

.verdict {
  margin-top: 1rem;
  /* Held open so the panel does not grow when a verdict lands. It sits beside
     the flask, and a column that changes height mid-pour drags the thing the
     visitor is watching up the screen. */
  min-height: 7.5rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--line-2);
  background: var(--shell-3);
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--ink-2);
}
.verdict[data-state='sound'] {
  border-left-color: var(--patina);
  background: var(--patina-wash);
}
.verdict strong {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

/* ── process strip ──────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(2rem, 5vh, 3.2rem);
}
@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  background: var(--shell);
  padding: 1rem 1rem 1.2rem;
}
.step__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--shell-3);
  border-radius: 2px;
}
.step__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The photographs are desaturated towards the plaster ground so that the
     only saturated colour on the page stays the one the physics emits. */
  filter: saturate(0.55) contrast(1.02);
}
.step__img svg {
  width: 100%;
  height: 100%;
}
.step__n {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.16em;
  color: var(--patina);
}
.step h3 {
  font-size: 1.18rem;
  margin-top: 0.3rem;
}
.step p {
  margin-top: 0.5rem;
  font-size: var(--t-small);
  color: var(--ink-2);
  line-height: 1.55;
}

/* ── the law ────────────────────────────────────────────────────────────── */

.law__grid {
  display: grid;
  gap: clamp(1.8rem, 4.5vw, 3.4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .law__grid {
    grid-template-columns: 0.92fr 1.08fr;
  }
}
.plot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--shell-2);
  aspect-ratio: 4 / 3;
}
.plot canvas {
  width: 100%;
  height: 100%;
}
.fit {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.9rem 1.6rem;
}
.fit div {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}
.fit dt {
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}
.fit dd {
  margin: 0.2rem 0 0;
  font-family: var(--f-mono);
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
  color: var(--patina);
}

/* ── fire's colour ──────────────────────────────────────────────────────── */

.spectrum {
  border: 1px solid var(--flask-line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--flask);
}
.spectrum canvas {
  width: 100%;
  height: clamp(5rem, 12vh, 8rem);
}
.spectrum__scale {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.8rem 0.7rem;
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.08em;
  color: var(--flask-ink-2);
}

/* ── work + atelier ─────────────────────────────────────────────────────── */

.gal {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 5vh, 3rem);
}
@media (min-width: 48rem) {
  .gal {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.gal figure {
  margin: 0;
}
.gal img {
  width: 100%;
  border-radius: 3px;
  filter: saturate(0.6) contrast(1.02);
}
.gal figcaption {
  margin-top: 0.7rem;
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
}

.band {
  position: relative;
  height: clamp(16rem, 42vh, 30rem);
  overflow: hidden;
  background: var(--flask);
}
.band video,
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.band__over {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  background: linear-gradient(to top, rgba(25, 26, 22, 0.86), rgba(25, 26, 22, 0.15));
}
.band__over p {
  color: var(--flask-ink);
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1.1;
  max-width: 22ch;
  padding: 0 var(--gut) clamp(1.5rem, 4vh, 2.6rem);
  margin: 0 auto;
  width: 100%;
  max-width: var(--maxw);
}

/* ── commission ─────────────────────────────────────────────────────────── */

.contact {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vh, 3rem);
}
@media (min-width: 56rem) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}
.rows {
  border-top: 1px solid var(--line);
}
.rows a,
.rows div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.rows a:hover {
  color: var(--patina);
}
.rows span:first-child {
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}
.rows span:last-child {
  text-align: right;
}

/* ── the questions, for the answer engines as much as for people ────────── */

.qa {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.qa details {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  cursor: pointer;
  padding: 1rem 0;
  font-size: var(--t-lead);
  font-family: var(--f-display);
  line-height: 1.2;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '+';
  font-family: var(--f-mono);
  color: var(--patina);
  flex: none;
}
.qa details[open] summary::after {
  content: '−';
}
.qa p {
  padding-bottom: 1.1rem;
  color: var(--ink-2);
  max-width: 68ch;
}
