/* ============================================================
   Nebula Coffee — V3 page components
   Loaded only by Home, Coffee, Gallery and About (not the tools).
   Depends on tokens + nav in nebula.css.
   ============================================================ */

.v3 h1, .v3 h2, .v3 h3, .v3 .disp { font-family: var(--serif); font-weight: 400; color: var(--orange); }
.v3 .label { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.v3 .mut { color: var(--text-faint); }
.v3 .dash { border: 0; border-top: 1px dashed var(--dash); margin: 0 var(--padr) 0 var(--pad); }
.v3 .ctas { display: flex; gap: 0.7rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---- page head (wide) ---- */
.v3 .head { padding: clamp(7rem, 16vh, 10rem) var(--padr) 2.4rem var(--pad); }
.v3 .head h1 { font-size: clamp(2.6rem, 8.4vw, 7.2rem); line-height: 0.98; overflow-wrap: break-word; margin-top: 0.9rem; }
.v3 .head p { margin-top: 1.4rem; max-width: 36ch; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--text-dim); }

/* ---- home: hero ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--padr) clamp(2rem, 6vh, 4rem) var(--pad); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(0.9) brightness(0.78); animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,8,13,0.55) 0%, rgba(9,8,13,0) 30%, rgba(9,8,13,0.55) 70%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 6.6rem); line-height: 0.92; text-shadow: 0 0 60px rgba(254,188,88,0.35), 0 0 120px rgba(254,188,88,0.15); animation: heroIn 1.1s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 30ch; color: var(--text); font-weight: 300; }
.credit { position: absolute; right: var(--padr); top: 5.2rem; z-index: 2; text-align: right; font-size: 0.64rem; letter-spacing: 0.16em; color: var(--orange-dim); text-transform: uppercase; font-weight: 500; line-height: 1.6; }
.scrollcue { position: absolute; left: 50%; bottom: 1rem; z-index: 3; font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint); transform: translateX(-50%); }

/* ---- home: floating-object section ---- */
.void { overflow: hidden; display: grid; grid-template-columns: 1fr minmax(0, 1.7fr) 1fr; align-items: center; gap: 2rem; padding: 3.5rem var(--padr) 3.5rem var(--pad); }
.void .obj img { width: 100%; height: auto; display: block; transform: scale(1.45);
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 50%, transparent 100%); }
.void h2 { font-size: clamp(1.8rem, 3.1vw, 2.9rem); position: relative; z-index: 2; line-height: 0.98; margin: 0 0 1rem; }
.void p { font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-dim); }
.void .r { align-self: center; }
.void .r .eyebrow { letter-spacing: 0.2em; }
.spec-l { margin-top: 1.4rem; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); line-height: 2; font-weight: 500; }

/* ---- sections ---- */
.sec { padding: 3.5rem var(--padr) 3.5rem var(--pad); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 2rem; }
.sec-h h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.sec-h a { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); font-weight: 500; border-bottom: 1px solid var(--border-hi); padding-bottom: 2px; text-decoration: none; }
.sec-h a:hover { border-color: var(--orange); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.6rem; min-width: 0; }
.panel h3 { font-size: 1.5rem; margin-bottom: 1rem; line-height: 1; }
.chip { display: inline-block; border: 1px solid var(--border-hi); border-radius: 99px; padding: 0.25rem 0.8rem; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); font-weight: 500; background: rgba(9,8,13,0.55); }

/* ---- home: roastery copy ---- */
.roast-copy { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.roast-copy div { font-size: 0.95rem; line-height: 1.5; color: var(--text-dim); }
.roast-copy b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--orange); margin-bottom: 0.2rem; }


/* ---- plates + gallery ---- */
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.plate { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--bg-raise); display: block; text-decoration: none; }
.plate img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75) saturate(0.9); transition: filter 0.5s, transform 0.9s; }
.plate:hover img, .plate:focus-visible img { filter: brightness(1) saturate(1); transform: scale(1.05); }
.plate .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(0deg, rgba(9,8,13,0.85), transparent); font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; color: var(--text); }
.plate .cap i { font-family: var(--sans); font-style: normal; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); font-weight: 500; display: block; margin-bottom: 0.15rem; }
.gal { columns: 3; column-gap: 0.9rem; padding: 0 var(--padr) 6rem var(--pad); }
.gal .plate { aspect-ratio: auto; margin-bottom: 0.9rem; break-inside: avoid; }
.gal .plate img { height: auto; display: block; }
.chips-row { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0 var(--padr) 2rem var(--pad); }

/* ---- plate view ---- */
.pv { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 2.4rem; padding: 0 var(--padr) 5rem var(--pad); align-items: start; }
.pv .img { border-radius: var(--r); overflow: hidden; background: var(--bg-raise); }
.pv .img img { width: 100%; height: auto; display: block; }
.pv h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.98; margin-bottom: 1rem; }
.pv .blurb { font-size: 1.1rem; line-height: 1.55; color: var(--text-dim); margin-bottom: 1.6rem; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 0 1.4rem; font-size: 0.9rem; }
dl.kv dt, dl.kv dd { padding: 0.65rem 0; border-bottom: 1px dashed var(--dash); }
dl.kv dt { color: var(--text-faint); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; padding-top: 0.85rem; }
dl.kv dd { font-weight: 400; }
.acq { margin-top: 1.6rem; border: 1px dashed var(--dash); border-radius: var(--r); padding: 1rem 1.1rem; font-size: 0.88rem; color: var(--text-faint); line-height: 1.55; }
.acq b { display: block; color: var(--orange); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.4rem; }
.pn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.em { display: inline-flex; gap: 0.35rem; font-size: 0.66rem; letter-spacing: 0.04em; }
.em i { font-style: normal; border: 1px solid var(--border); border-radius: 6px; padding: 0.1rem 0.45rem; color: var(--text-faint); }
.em i.l3 { border-color: var(--orange); color: var(--orange); background: rgba(254,188,88,0.1); }
.em i.l2 { border-color: var(--border-hi); color: var(--orange-dim); }
.back { display: inline-block; margin-bottom: 1rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; text-decoration: none; }
.back:hover { color: var(--orange); }

/* ---- coffee page ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; padding: 0 var(--padr) 3rem var(--pad); }
.ccard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; min-height: 30rem; transition: border-color 0.3s, background 0.3s; }
.ccard:hover { border-color: var(--border-hi); background: var(--surface-hi); }
.ccard .top { display: flex; justify-content: space-between; }
.ccard .bx { flex: 1; display: grid; place-items: center; padding: 1.2rem 0; background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(254,188,88,0.12), transparent 70%); }
.ccard .bx img { width: 82%; max-width: 360px; height: auto; transition: transform 0.6s var(--ease); }
.ccard:hover .bx img { transform: translateY(-6px) rotate(-2deg); }
.ccard h3 { font-size: 1.9rem; line-height: 1; }
.ccard p { font-size: 0.95rem; margin-top: 0.5rem; color: var(--text-dim); line-height: 1.5; min-height: 3em; }
.ccard .st { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--dash); display: flex; justify-content: space-between; align-items: center; }
.band { margin: 0 var(--padr) 6rem var(--pad); border: 1px dashed var(--dash); border-radius: var(--r); padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.band h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; }
.band p { font-size: 1rem; color: var(--text-dim); max-width: 42ch; margin-top: 0.4rem; line-height: 1.5; }

/* ---- meteor-box hero ---- */
.meteor { position: relative; margin: 0 var(--padr) 2.4rem var(--pad); height: clamp(400px, 68vh, 620px); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse 80% 70% at 62% 40%, #15131d 0%, #09080d 72%); }
.meteor > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.meteor .mt-copy { position: absolute; left: clamp(1.2rem, 3vw, 2.4rem); bottom: clamp(1.2rem, 3vw, 2.2rem); max-width: 30ch; z-index: 2; pointer-events: none; }
.meteor .mt-copy h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 0.98; margin: 0.6rem 0 0.8rem; }
.meteor .mt-copy p { font-size: 1rem; line-height: 1.5; color: var(--text-dim); }
.meteor .replay { position: absolute; right: 1rem; top: 1rem; z-index: 2; }

/* ---- about ---- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 0 var(--padr) 6rem var(--pad); align-items: start; }
.about p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; margin-bottom: 1.2rem; max-width: 40ch; color: var(--text-dim); }
.about figure { margin: 0; }
.about figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: var(--r); display: block; }
.about figcaption { margin-top: 0.8rem; }

/* ---- big footer (home) ---- */
.big-foot { padding: 5rem var(--padr) 2.4rem var(--pad); border-top: 1px dashed var(--dash); }
.big-foot .big2 { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 7rem); line-height: 0.95; color: var(--orange); text-shadow: 0 0 70px rgba(254,188,88,0.3); }
.big-foot .row { display: flex; justify-content: space-between; margin-top: 3rem; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); flex-wrap: wrap; gap: 1rem; font-weight: 500; }
.big-foot .row a { color: var(--orange-dim); text-decoration: none; border-bottom: 1px solid var(--border-hi); }
.big-foot .row a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .hero-in, .pv, .about { grid-template-columns: minmax(0, 1fr); }
  .void { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 2.5rem var(--padr) 2.5rem var(--pad); }
  .void .r { padding-bottom: 0; }
  .plates { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .gal { columns: 2; }
  .roast-copy { grid-template-columns: minmax(0, 1fr); }
  .v3 .two-up { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) { .meteor { height: min(78vh, 620px); } .meteor .mt-copy { right: 1.2rem; max-width: none; } }
@media (max-width: 560px) { .gal { columns: 1; } }
@media (prefers-reduced-motion: reduce) { .hero > img, .hero h1 { animation: none; } }
@media (max-width: 700px) { .credit { top: 4.6rem; } }

/* ---- "By night" slideshow ---- */
.void .obj { position: relative; aspect-ratio: 16 / 9; }
.void .obj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(var(--z, 1.1)); transition: opacity 1.4s ease;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 50%, transparent 100%); }
.void .obj img.on { opacity: 1; animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(var(--z, 1.1)); } to { transform: scale(calc(var(--z, 1.1) * 1.08)); } }
.void .swap { transition: opacity 0.45s ease, transform 0.45s ease; }
.void .swap.out { opacity: 0; transform: translateY(8px); }
.night-ui { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 2rem; }
.night-ui .dots { display: flex; gap: 0.1rem; }
.night-ui .dots button { background: none; border: 0; cursor: pointer; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.night-ui .dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); opacity: 0.6; transition: background 0.3s, opacity 0.3s, transform 0.3s; }
.night-ui .dots button:hover::before { opacity: 1; }
.night-ui .dots button[aria-current="true"]::before { background: var(--orange); opacity: 1; transform: scale(1.35); }
.night-ui .pill { padding: 0.4rem 0.9rem; font-size: 0.62rem; }
@media (prefers-reduced-motion: reduce) { .void .obj img.on { animation: none; } .void .obj img { transition: none; } .void .swap { transition: none; } }

/* ---- home: roast cards + tool cards ---- */
.cards--home { padding: 0; }
.cards--home .ccard { min-height: 0; }
a.ccard { text-decoration: none; color: inherit; }
a.ccard:focus-visible { outline-offset: 4px; border-radius: var(--r); }
.ccard:target { border-color: var(--orange); }
.sec-h .eyebrow { display: block; margin-bottom: 0.6rem; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.tool { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 0.3s, background 0.3s; }
.tool:hover, .tool:focus-visible { border-color: var(--border-hi); background: var(--surface-hi); }
.tool h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0.7rem 0 0.6rem; }
.tool p { color: var(--text-dim); flex: 1; }
.tool .pill { align-self: flex-start; margin-top: 1.6rem; }
.tool:hover .pill { background: rgba(254,188,88,0.1); border-color: var(--orange); }
@media (max-width: 900px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.ccard { scroll-margin-top: 6rem; }

/* ---- phones ---- */
@media (max-width: 700px) {
  .v3 .label, .chip, .spec-l, .credit, .scrollcue, .big-foot .row, .night-ui .pill, dl.kv dt, .acq b, .em { font-size: 0.7rem; }
  .sec-h a, .big-foot .row a, .back { display: inline-block; padding: 0.7rem 0; }
  .night-ui .dots button { width: 36px; height: 36px; }
  .night-ui { gap: 0.4rem 0.7rem; }
}


/* "Astrophotography" slideshow: text always sits above the zooming photograph */
.void > div:first-child, .void .r { position: relative; z-index: 2; }
.void .obj { z-index: 1; }

/* footer quote */
.big-foot .quote { margin: 0; max-width: 42ch; }
.big-foot blockquote { font-family: var(--serif); font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.05; color: var(--orange); text-shadow: 0 0 70px rgba(254, 188, 88, 0.3); text-wrap: balance; }
.big-foot figcaption { margin-top: 1.4rem; }
.big-foot figcaption::before { content: '\2014\00a0'; }

/* footer: cycling quotes (all quotes share one grid cell, so the footer never changes height) */
.quotes { display: grid; max-width: 42ch; }
.quotes .q { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s; }
.quotes .q.on { opacity: 1; visibility: visible; }
.quotes blockquote { font-family: var(--serif); font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.05; color: var(--orange); text-shadow: 0 0 70px rgba(254, 188, 88, 0.3); text-wrap: balance; }
.quotes .long blockquote { font-size: clamp(1.6rem, 3.5vw, 3rem); line-height: 1.1; }
.quotes figcaption { margin-top: 1.4rem; }
.quotes figcaption::before { content: '\2014\00a0'; }
.quotes figcaption i { font-style: italic; }
.big-foot .quotes { max-width: 46ch; }
.quote-dots { display: flex; gap: 0.1rem; margin-top: 1.4rem; margin-left: -0.45rem; }
.quote-dots button { background: none; border: 0; cursor: pointer; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.quote-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); opacity: 0.6; transition: background 0.3s, opacity 0.3s, transform 0.3s; }
.quote-dots button:hover::before { opacity: 1; }
.quote-dots button[aria-current="true"]::before { background: var(--orange); opacity: 1; transform: scale(1.35); }
@media (max-width: 700px) { .quote-dots button { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .quotes .q { transition: none; } }

/* the quote box follows the height of the quote on show (smooth), so there is no blank gap under short quotes */
.quotes { transition: height 0.6s ease; align-content: start; }
@media (prefers-reduced-motion: reduce) { .quotes { transition: none; } }
.quotes .q { align-self: start; }

/* ---- meteor box: a real CSS 3D cuboid (170 x 114 x 94 proportions), turned continuously by the browser ---- */
.mt-box { position: absolute; left: 0; top: 0; width: var(--w, 200px); height: var(--h, 134px); transform-origin: 50% 50%; will-change: transform; pointer-events: none; opacity: 0; z-index: 1; }
.mt-float { width: 100%; height: 100%; perspective: calc(var(--w, 200px) * 4); }
.mt-cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.mt-f { position: absolute; display: block; background-size: 100% 100%; background-position: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mt-f::after { content: ''; position: absolute; inset: 0; background: rgba(5, 4, 9, var(--sh, 0)); }
.mt-front  { width: var(--w); height: var(--h); left: 0; top: 0; transform: translateZ(calc(var(--d) / 2)); background-image: url(../uploads/coffee/medium-front.webp); }
.mt-back   { width: var(--w); height: var(--h); left: 0; top: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background-image: url(../uploads/coffee/medium-back.webp); --sh: 0.5; }
.mt-right  { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); top: 0; transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background-image: url(../uploads/coffee/medium-right.webp); --sh: 0.36; }
.mt-left   { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); top: 0; transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background-image: url(../uploads/coffee/medium-left.webp); --sh: 0.3; }
.mt-top    { width: var(--w); height: var(--d); left: 0; top: calc((var(--h) - var(--d)) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background-image: url(../uploads/coffee/medium-top.webp); --sh: 0.04; }
.mt-bottom { width: var(--w); height: var(--d); left: 0; top: calc((var(--h) - var(--d)) / 2); transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #0a090d; --sh: 0.5; }
/* landed: gentle hover plus a slow sway, both on the compositor, both starting exactly at the resting pose */
.mt-box.landed .mt-float { animation: mtfloat 6s ease-in-out infinite; }
.mt-box.landed .mt-cube { animation: mtsway 11s ease-in-out infinite; }
@keyframes mtfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mtsway { 0%, 100% { transform: rotateX(var(--rx)) rotateY(var(--ry)); } 50% { transform: rotateX(calc(var(--rx) + 1.5deg)) rotateY(calc(var(--ry) + 5deg)); } }
@media (prefers-reduced-motion: reduce) { .mt-box.landed .mt-float, .mt-box.landed .mt-cube { animation: none; } }

/* drag to spin */
.mt-box.landed { pointer-events: auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mt-box.landed::after { content: ''; position: absolute; inset: -22%; }     /* generous grab area around the box */
.mt-box.dragging { cursor: grabbing; }
.mt-box.dragging .mt-cube { animation: none !important; }
.mt-hint { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 2; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.meteor.landed .mt-hint { opacity: 1; }
.meteor.touched .mt-hint { opacity: 0; }

/* ---- home: coffees drift slowly across (seamless loop; pauses on hover/focus; static + scrollable with reduced motion) ---- */
.marquee { overflow: hidden; margin: 0 calc(var(--padr) * -1) 0 calc(var(--pad) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; width: max-content; padding: 0.4rem 0 0.8rem; animation: marq 90s linear infinite; will-change: transform; }
.marquee .ccard { flex: 0 0 clamp(250px, 24vw, 320px); margin-right: 0.9rem; min-height: 0; }
@keyframes marq { to { transform: translateX(-50%); } }
/* desktop: keep the strip inside the content column (aligned with the heading) so a short list never wraps round on screen, with deeper fades at both ends */
@media (min-width: 900px) {
  .marquee { margin: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  .marquee-track { animation: none; }
  .marquee .ccard[aria-hidden="true"] { display: none; }
}

/* ---- coffee product page ---- */
.prod { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.4rem; padding: 0 var(--padr) 5rem var(--pad); align-items: start; }
.stage3d { position: relative; height: clamp(340px, 58vh, 560px); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse 80% 70% at 50% 45%, #15131d 0%, #09080d 72%); display: grid; }
.stage3d.landed .mt-hint { opacity: 1; }
.stage3d.touched .mt-hint { opacity: 0; }
.prod-info .acq { margin-top: 1.6rem; }
@media (max-width: 900px) { .prod { grid-template-columns: minmax(0, 1fr); } }

/* ---- coffee page: real roast profile from the roaster's log ---- */
.rprof { margin-top: 1.6rem; }
.rprof svg { width: 100%; height: auto; display: block; overflow: visible; margin: 0.9rem 0 1.2rem; }
.rprof .ln { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rprof .gl { stroke: var(--dash); stroke-width: 1; stroke-dasharray: 3 5; }
.rprof text { font-family: var(--sans); font-size: 11px; fill: var(--text-faint); font-weight: 500; }
.rprof .ev { fill: var(--bg); stroke: var(--orange); stroke-width: 2; }
.rprof .evt { fill: var(--text); letter-spacing: 0.04em; }
.fine { font-size: 0.7rem; color: var(--text-faint); margin-top: 0.8rem; line-height: 1.5; }
