.coffee-finder { padding:clamp(18px,3vw,44px) 0 clamp(30px,5vw,72px); }
.finder-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:clamp(14px,2vw,30px); }
.finder-heading h1 { font-size:clamp(36px,4.3vw,69px); line-height:1; margin:0; font-weight:490; letter-spacing:-.065em; }
.finder-heading em { color:var(--brown); font-family:Georgia,serif; font-weight:400; }
.finder-heading a { display:inline-flex; gap:8px; align-items:center; font-size:14px; min-height:44px; }
.finder-heading svg,.brew-choices svg { width:17px; }
.finder-body { display:grid; grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr); align-items:stretch; border-block:1px solid var(--line); }
.brew-stage { margin:0; background:#a8b4b0; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; position:relative; overflow:hidden; }
.brew-art { width:100%; aspect-ratio:800/662; position:relative; transform-origin:50% 49%; }
.machine-art,.brew-motion { position:absolute; inset:0; width:100%; height:100%; display:block; }
.brew-motion { pointer-events:none; }
.brew-caption { height:34px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding-inline:18px; align-self:stretch; color:#fff; background:#314441; font-size:12px; position:relative; }
.brew-caption span:first-child { font-weight:550; }
.finder-panel { align-self:center; padding:clamp(25px,3.7vw,66px); min-width:0; }
.brew-progress { display:flex; align-items:start; list-style:none; margin:0 0 clamp(24px,4vw,56px); padding:0; gap:6px; }
.brew-progress li { flex:1; border-top:2px solid var(--line); padding-top:6px; font-size:12px; color:#686863; }
.brew-progress li[aria-current],.brew-progress .done { border-color:var(--brown); color:var(--brown); }
.finder-meta { font-size:12px; color:var(--brown); margin:0 0 9px; }
.finder-panel h2 { font-size:clamp(32px,3.7vw,65px); line-height:1.04; letter-spacing:-.055em; font-weight:490; margin:0 0 23px; }
.brew-choices { display:grid; gap:8px; }
.brew-choices a { min-height:49px; display:flex; gap:10px; align-items:center; justify-content:space-between; border:1px solid #b8b9b5; text-decoration:none; padding:11px 15px; line-height:1.25; font-size:16px; transition:background-color .15s,color .15s; }
.brew-choices a:is(:hover,:focus-visible,.picked) { color:white; background:var(--ink); border-color:var(--ink); }
.finder-recap { margin-top:18px; border-top:1px solid var(--line); padding-top:9px; }
.finder-recap p { margin:0; color:var(--muted); font-size:13px; }
.finder-recap a,.concept-nav a { display:inline-flex; align-items:center; min-height:44px; margin-right:15px; font-size:14px; }
.finder-panel>.text-link { margin:5px 0 0 10px; }
.match-reason { color:var(--muted); margin-bottom:14px; }
.concept-nav { display:flex; align-items:center; flex-wrap:wrap; gap:0 14px; font-size:14px; border-bottom:1px solid var(--line); margin-top:12px; }
.concept-nav span { font-weight:600; }
.concept-nav a { margin:0; }
.concept-nav [aria-current] { text-decoration-thickness:2px; color:var(--brown); }
.finder-cutaway .brew-stage,.finder-cutaway .brew-caption { background:#20312f; }
.finder-cutaway .brew-caption { border-top:1px solid #687b73; font-family:monospace; }
.finder-paper .brew-stage { background:#f3e9df; }
.finder-paper .brew-caption { background:#6a3627; }
.finder-paper .brew-choices a { border-color:#936951; }
@media(min-width:761px) {
 .finder-cutaway .brew-stage { grid-column:2; grid-row:1; }
 .finder-cutaway .finder-panel { grid-column:1; grid-row:1; padding-left:0; }
 .finder-cutaway .finder-body { grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); }
}
@media(max-width:760px) {
 .finder-heading h1 { font-size:clamp(30px,7.4vw,43px); }
 .finder-heading a { font-size:13px; gap:5px; }
 .finder-heading svg { width:14px; }
 .finder-body { grid-template-columns:minmax(0,1fr); }
 .brew-stage { display:block; height:clamp(177px,29svh,285px); }
 .brew-art { position:absolute; height:calc(100% - 26px); width:auto; max-width:100%; inset:0; margin:0 auto; }
 .brew-caption { position:absolute; inset:auto 0 0; height:26px; padding-inline:12px; font-size:11px; }
 .finder-panel { padding:18px 0 24px; }
 .brew-progress { margin-bottom:15px; }
 .brew-progress li { font-size:11px; padding-top:3px; }
 .finder-meta { margin-bottom:5px; }
 .finder-panel h2 { margin-bottom:14px; font-size:clamp(28px,7vw,41px); }
 .brew-choices { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
 .brew-choices a { min-height:48px; padding:9px; font-size:14px; }
 .finder-recap { margin-top:14px; }
 .finder-recap a { font-size:13px; }
 .concept-nav { gap:0 10px; }
}
@media (max-width:600px) {
 .brew-stage { height:auto; }
 .brew-art { position:relative; height:auto; width:100%; aspect-ratio:800/662; }
 .brew-caption { position:relative; }
}

/* Keep the square photographic stage and its projected controls on the same scale. */
.finder-countertop .brew-stage { background:#f7f6f6; }
.finder-countertop .brew-art { position:relative; inset:auto; margin:auto; width:min(100%,67svh); height:auto; aspect-ratio:1; }
.finder-countertop .brew-caption { background:#40342e; width:100%; }
@media (max-width:760px) {
  .finder-countertop .brew-stage { height:auto; }
  .finder-countertop .brew-art { width:min(100%,42svh); }
  .finder-countertop .brew-caption { position:relative; inset:auto; }
}
.brew-motion[hidden] { display:none; }

/* Vapour sits above the cup surface; the underlying machine is always registered. */
.cup-steam { display:none; }
@media (prefers-reduced-motion:no-preference) {
  .cup-steam {
    display:block; position:absolute; left:45.3%; top:57.8%; width:9.1%; height:7.65%;
    pointer-events:none; opacity:0; background-size:4900% 100%; background-repeat:no-repeat;
    transition:opacity 1.1s ease-in-out;
  }
  [data-steaming] .cup-steam {
    opacity:1; background-image:url('cup-steam.webp');
    animation:cup-vapour 4s steps(48,end) infinite;
  }
}
@keyframes cup-vapour {
  from { background-position:0% 0; }
  to   { background-position:100% 0; }
}
