/* HALO — single-ingredient detail page. Standalone artifact. Bright clinical
   identity (cool near-white, ink, saline-teal accent) — deliberately opposite
   to MERIDIAN's cold-black and HÚN's warm-amber. */
:root {
  --paper: #f1f2f3;
  --paper-2: #e9eaec;
  --ink: #14171a;
  --muted: #565b61;
  --faint: #8a9097;
  --line: rgba(20, 23, 26, 0.12);
  --accent: #3d7a82;
  --serif: "Newsreader", "Songti SC", "STSong", serif;
  --sans: ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; mix-blend-mode: normal; }
.mark { font-family: var(--sans); font-weight: 600; letter-spacing: 0.28em; font-size: 15px; color: var(--ink); padding-left: 0.28em; }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); font: 500 11px/1 var(--sans); letter-spacing: 0.14em; padding: 8px 12px; cursor: pointer; transition: color 0.3s, border-color 0.3s; }
.lang:hover { color: var(--ink); border-color: var(--ink); }

.page { width: 100%; }
.sec { min-height: 100dvh; display: grid; align-items: center; padding: 120px clamp(24px, 7vw, 120px); position: relative; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; }
.img { display: block; width: 100%; aspect-ratio: 3 / 2; background-size: cover; background-position: center; background-color: var(--paper-2); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.sec--hero { grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 96px); }
.hero__media .img { aspect-ratio: 4 / 5; }
.hero__txt { display: flex; flex-direction: column; align-items: flex-start; }
.brand { font-family: var(--sans); font-weight: 600; letter-spacing: 0.3em; font-size: 13px; color: var(--accent); }
.hero__product { margin: 0.5em 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.05; color: var(--ink); }
.hero__line { margin: 0.8em 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 26px); color: var(--muted); }
.scroll-hint { margin-top: 3em; font: 500 13px/1 var(--mono); color: var(--faint); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- statement ---------- */
.sec--statement { justify-items: center; text-align: center; overflow: hidden; }
.stmt__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.12; }
.stmt { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5.2vw, 68px); line-height: 1.12; color: var(--ink); text-wrap: balance; position: relative; }
.stmt__body { margin: 1.2em 0 0; font: 400 clamp(15px, 1.6vw, 19px)/1.6 var(--sans); color: var(--muted); position: relative; }

/* ---------- feature ---------- */
.sec--feature { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.sec--feature.sec--flip .feat__media { order: 2; }
.tag { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.feat__title { margin: 0.7em 0 0.5em; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.16; color: var(--ink); text-wrap: balance; }
.feat__body { margin: 0; max-width: 42ch; font: 400 clamp(15px, 1.4vw, 18px)/1.65 var(--sans); color: var(--muted); }

/* ---------- end ---------- */
.sec--end { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.end__media .img { aspect-ratio: 4 / 5; }
.end__txt { display: flex; flex-direction: column; align-items: flex-start; }
.end__product { margin: 0.4em 0 1.2em; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 48px); color: var(--ink); }
.btn { background: var(--ink); border: none; color: var(--paper); font: 500 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 15px 24px; cursor: pointer; transition: background 0.3s; }
.btn:hover { background: var(--accent); }
.end__note { margin-top: 1.6em; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--faint); }

/* ---------- still mode (gallery capture): one section, full frame ---------- */
body.still-mode .sec { min-height: 100dvh; padding: 96px clamp(24px, 7vw, 110px); }
body.still-mode .topbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .sec { min-height: auto; padding: 96px 24px; }
  .sec--hero, .sec--feature, .sec--end { grid-template-columns: 1fr; gap: 32px; }
  .sec--feature.sec--flip .feat__media { order: 0; }
  .hero__media .img, .end__media .img { aspect-ratio: 3 / 2; }
}

/* ---------- embedded in case-page iframe: no fixed-viewport jumps ---------- */
body.embedded .sec { min-height: auto; padding: 80px clamp(24px, 6vw, 90px); }
body.embedded .topbar { padding: 12px 20px; }
