@charset "UTF-8";
/* ============================================================
   Kintsugi Editorial — common foundation ported from the frozen
   design mock (Space: jdsaito-jia-motuku) for the production
   generator. This file carries the shared layer only: design
   tokens, the champagne lens seam language, the page-transition
   curtain, the article reading seam, and the quiet-motion /
   reveal foundation. Per-page-type design lives in the other
   stylesheets and in later porting steps.
   Porting checklist: hidden_files/p5-porting-checklist-20261203.md
   ============================================================ */

/* ---------- design tokens (mock :root, verbatim values) ---------- */
:root{
  --green-950:#0a2018; --green-900:#0e2a20; --green-850:#123528; --green-800:#17402f; --green-700:#1f5240;
  --cream:#f4efe0; --cream-2:#ede5cf; --paper:#f8f4e8; --paper-2:#f1ebd9;
  --ink:#24352c; --ink-soft:#4c5d52; --ink-faint:#5c6d58;
  --gold:#c39a3f; --gold-hi:#e9cb7e; --gold-deep:#82601f; --gold-line:rgba(198,172,116,.42);
  /* champagne gold for the seam lines: paler, less saturated, hairline work */
  --champ:#d3ba85; --champ-hi:#efdfae; --champ-deep:#ab9059; --champ-line:rgba(211,186,133,.45);
  --on-green:#f2ecd9; --on-green-soft:#cfd6bf; --on-green-faint:#93a58d;
  --card-line:rgba(36,53,44,.16);
  --shadow:0 18px 44px rgba(10,32,24,.20);
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --mincho:"Shippori Mincho","Hiragino Mincho ProN","Yu Mincho","YuMincho","Hiragino Mincho Pro",serif;
  --barh:56px;
  --ease-lux:cubic-bezier(.22,1,.36,1);
  color-scheme:light;
}
/* light scheme, fixed: the design is a two-layer print — deep-green brand
   surfaces over a cream page — so the palette never follows the OS dark
   mode. Text-bearing tones hold 4.5:1 or better against the paper. */

/* ---------- type foundation: Mincho body, Fraunces labels ---------- */
body{font-family:var(--mincho)}
.eyebrow{font-family:var(--serif)}
::selection{background:var(--gold);color:var(--green-950)}

/* ---------- the lens seam: one shape language ----------
   A perfectly straight filled lens — thickest at its centre, narrowing
   symmetrically to a point at each end, champagne-pale and fading to
   nothing at both ends — via clip-path over a symmetric champagne
   gradient. No halo, no companion lines. */
.lens-rule{display:block;height:6px;background:linear-gradient(90deg,transparent,var(--champ) 28%,var(--champ-hi) 50%,var(--champ) 72%,transparent);clip-path:polygon(0% 50%,25% 38%,50% 37.5%,75% 38%,100% 50%,75% 62%,50% 62.5%,25% 62%)}

/* header seam: the lens draws itself once under the site header on load */
.site-header{position:relative}
.site-header::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:6px;background:linear-gradient(90deg,transparent,var(--champ) 28%,var(--champ-hi) 50%,var(--champ) 72%,transparent);clip-path:polygon(0% 50%,25% 38%,50% 37.5%,75% 38%,100% 50%,75% 62%,50% 62.5%,25% 62%);transform:scaleX(0);transform-origin:center;opacity:0;pointer-events:none;animation:seamdraw 1.2s var(--ease-lux) .15s forwards}
@keyframes seamdraw{from{transform:scaleX(0);opacity:1}to{transform:scaleX(1);opacity:1}}

/* ---------- page transition: full-screen curtain (Cover → Swap → Reveal) ----------
   One matte deep-green sheet. It rises from below to cover (Cover), the
   page is swapped — finished and at rest — while fully hidden (Swap),
   then the sheet carries on upward and off the top (Reveal). Only the
   curtain moves (transform: translateY); body text, headings and images
   never animate. A single gold thread rides the curtain's leading (top)
   edge only: a perfectly straight, filled tapered lens — thickest at
   its centre at just 1.5px, narrowing symmetrically to a point at each
   end, its opacity fading to nothing at the ends too — no halo and no
   companion lines; it is part of the sheet, never a rule drawn across
   the page. On the covered sheet, one thing only: on section crossings,
   a single Japanese word in gold Mincho, drawn from the destination's
   small set of beloved concept words — the set rotates on every
   crossing so the same word never appears twice in a row — or, on the
   way to an article, that article's own decoded word. Its fade-in
   begins the moment the Cover starts (script-driven, per tier), so it
   stands fully readable for the whole Hold, then fades out into the
   Reveal. The romaji rides under it on standard crossings; everywhere
   else the same word and gloss wait, standing still, at the head of
   the destination view. No counters, progress bars, CTAs or controls
   ever appear. The light tier carries no word at all, so reading
   continues undisturbed. The intro — the session's very first curtain
   only — is not a concept word at all: it is the brand introducing
   itself, the logo above the direct Japanese rendering of the title,
   「細部の中の日本」, with “Japan in the Details” in English beneath it
   and the official tagline small under that. On the intro alone, the
   brand is lit as though a paper lantern were catching its flame: a
   warm pool of light kindles behind it along one continuous curve —
   no flicker, no steps — into a full, gently breathing halo, the
   words' shadows warm as the light grows, and a few dust motes drift
   up through the glow — the first thing a visitor feels is lamplight,
   not a logo. */
.curtain{position:fixed;inset:0;z-index:200;background-color:var(--green-950);background-image:radial-gradient(rgba(233,203,126,.028) 1px,transparent 1.4px),radial-gradient(rgba(0,0,0,.16) 1px,transparent 1.4px);background-size:7px 7px,11px 11px;background-position:0 0,3px 5px;transform:translateY(101%);visibility:hidden;pointer-events:none}
.curtain.active{visibility:visible;pointer-events:all}
.curtain-edge{position:absolute;top:-4px;left:0;width:100%;height:8px;display:block;overflow:visible}
.curtain-center{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;padding:0 24px}
.curtain.intro .curtain-center,.curtain.has-word .curtain-center{display:flex}
.curtain-center img{width:104px;height:104px;display:none}
.curtain.intro .curtain-center img{display:block}
.curtain-trace{width:220px;height:12px;overflow:visible;display:none}
.curtain.intro .curtain-trace{display:block}
/* the destination word — gold Mincho, large, with a quiet romaji gloss.
   It settles in as the sheet finishes covering, then simply rides the
   sheet up and off; short enough to read whole within the cover + hold. */
.curtain-word-jp{font-family:var(--mincho);font-weight:600;font-size:clamp(3.1rem,11vw,6.4rem);line-height:1.25;letter-spacing:.16em;text-indent:.16em;color:var(--gold-hi);text-shadow:0 2px 34px rgba(0,0,0,.4)}
.curtain-word-romaji{font-family:var(--serif);color:var(--gold-hi);letter-spacing:.24em;text-transform:uppercase;font-size:clamp(.82rem,2.2vw,.98rem)}
.curtain-word-gloss{font-family:var(--serif);font-size:clamp(.86rem,2.4vw,1.02rem);color:var(--on-green-soft);letter-spacing:.05em;display:none}
.curtain.intro .curtain-word-gloss{display:block}
/* intro only: the brand name itself. The Japanese is the direct rendering
   of “Japan in the Details” — seven characters, so it sits a step smaller
   than a three-character concept word; the English title rides beneath it
   in cream Fraunces at title case (not the small tracked romaji), and the
   tagline stays small and quiet under that. */
.curtain.intro .curtain-word-jp{font-size:clamp(2.05rem,8.2vw,4.7rem);letter-spacing:.12em;text-indent:.12em;line-height:1.3}
.curtain.intro .curtain-word-romaji{font-size:clamp(1.28rem,3.8vw,2.05rem);letter-spacing:.03em;text-transform:none;font-weight:500;color:var(--on-green)}
.curtain.intro .curtain-word-gloss{font-style:italic;font-size:clamp(.84rem,2.3vw,.99rem);letter-spacing:.02em;max-width:36em;line-height:1.55}
.curtain-trace path{fill:var(--champ);stroke:none;opacity:.8;transform-box:fill-box;transform-origin:center}
/* intro only: the brand is lit as if a paper lantern were catching its
   flame. A warm pool of light kindles behind the logo and the words and
   settles into a full halo that breathes gently for the rest of the
   Hold — the words' own shadows warm with it, and a few dust motes
   drift up through the light. Pure CSS riding on the .intro class, so
   it plays identically on the GSAP and WAAPI paths; it animates only
   glow, filter and text-shadow, never opacity or transform of the
   sheet, so the fixed 2.45s timing and the words' script-driven
   choreography are untouched. The bloom completes early in the Hold,
   leaving the lit brand standing still to be read.
   Smoothness rule: the light follows ONE continuous gain curve — every
   kindle animation below is a single from→to interpolation on the same
   S-curve (cubic-bezier(.65,0,.35,1): velocity zero at both ends, no
   intermediate keyframes, no flicker dip), so brightness, size and
   shadow all rise together frame by frame with no step anywhere. Once
   lit, only a slow sine-like breathing remains (ease-in-out alternate,
   a few percent of amplitude). Stepped keyframes read as cheap
   stage-lighting; a real flame never jumps. */
.curtain-glow{position:absolute;left:50%;top:50%;width:min(94vmin,680px);height:min(94vmin,680px);border-radius:50%;background:radial-gradient(circle,rgba(255,208,124,.36) 0%,rgba(255,178,94,.17) 38%,rgba(255,152,72,.055) 62%,transparent 72%);transform:translate(-50%,-55%) scale(.55);opacity:0;z-index:-1;pointer-events:none;will-change:opacity,transform}
.curtain.intro .curtain-glow{animation:lampKindle 1.9s cubic-bezier(.65,0,.35,1) both,lampBreathe 3.4s ease-in-out 1.9s infinite alternate}
@keyframes lampKindle{
  from{opacity:0;transform:translate(-50%,-55%) scale(.55)}
  to{opacity:.97;transform:translate(-50%,-55%) scale(1.05)}
}
@keyframes lampBreathe{
  from{opacity:.94;transform:translate(-50%,-55%) scale(1.04)}
  to{opacity:1;transform:translate(-50%,-55%) scale(1.07)}
}
.curtain.intro .curtain-center img{animation:logoKindle 1.9s cubic-bezier(.65,0,.35,1) both;will-change:filter}
@keyframes logoKindle{
  from{filter:drop-shadow(0 0 0 rgba(255,198,112,0))}
  to{filter:drop-shadow(0 0 26px rgba(255,198,112,.5))}
}
.curtain.intro .curtain-word-jp{animation:wordKindle 1.9s cubic-bezier(.65,0,.35,1) both;will-change:text-shadow}
.curtain.intro .curtain-word-romaji,.curtain.intro .curtain-word-gloss{animation:wordKindleSoft 1.9s cubic-bezier(.65,0,.35,1) both;will-change:text-shadow}
@keyframes wordKindle{
  from{text-shadow:0 0 0 rgba(255,196,110,0),0 0 0 rgba(255,170,84,0),0 2px 30px rgba(0,0,0,.4)}
  to{text-shadow:0 0 30px rgba(255,196,110,.5),0 0 72px rgba(255,170,84,.24),0 2px 30px rgba(0,0,0,.35)}
}
@keyframes wordKindleSoft{
  from{text-shadow:0 0 0 rgba(255,196,110,0)}
  to{text-shadow:0 0 16px rgba(255,196,110,.36)}
}
/* dust motes in the lamplight — they exist on the intro sheet only,
   rising slowly through the warm pool once the flame has caught */
.curtain-mote{position:absolute;width:5px;height:5px;border-radius:50%;background:radial-gradient(circle,rgba(255,226,160,.95),rgba(255,196,110,.35) 60%,transparent 72%);opacity:0;pointer-events:none;display:none}
.curtain.intro .curtain-mote{display:block;animation:moteRise 2.3s ease-out both}
.curtain.intro .curtain-mote.m1{left:41%;top:64%;--mx:9px;--my:-54px;animation-delay:.55s}
.curtain.intro .curtain-mote.m2{left:52%;top:68%;width:4px;height:4px;--mx:-7px;--my:-44px;animation-delay:.8s}
.curtain.intro .curtain-mote.m3{left:58%;top:61%;--mx:12px;--my:-62px;animation-delay:1s}
.curtain.intro .curtain-mote.m4{left:47%;top:70%;width:3px;height:3px;--mx:-11px;--my:-38px;animation-delay:1.15s}
.curtain.intro .curtain-mote.m5{left:63%;top:66%;width:4px;height:4px;--mx:6px;--my:-48px;animation-delay:.7s}
@keyframes moteRise{
  0%{opacity:0;transform:translate(0,10px) scale(.7)}
  25%{opacity:.75}
  80%{opacity:.5}
  100%{opacity:0;transform:translate(var(--mx,8px),var(--my,-50px)) scale(1)}
}
/* intro (session's first arrival on Home): the page starts fully covered */
html.intro-pending .curtain{transform:translateY(0);visibility:visible;pointer-events:all}
/* arrival from a curtained departure (MPA): the page starts fully covered
   and the sheet lifts in the tier's reveal time */
html.curtain-arrive .curtain{transform:translateY(0);visibility:visible;pointer-events:all}
/* CSS backstop: if the curtain script never runs, a covered page must
   still uncover itself — delayed well past every tier's total time,
   so it can only fire when the script path has failed */
html.intro-pending .curtain,html.curtain-arrive .curtain{animation:curtainBackstop .5s ease-in 4s forwards}
@keyframes curtainBackstop{to{transform:translateY(-101%);visibility:hidden}}
body.nav-locked{overflow:hidden}
@media (prefers-reduced-motion:reduce){
  .curtain{display:none!important}
}

/* ---------- article reading seam ----------
   A hairline seam fixed at the left edge of the screen on article
   pages; it fills with champagne gold as the reading advances, and at
   100% a small horizontal step (a kintsugi joint mark) appears at its
   foot. */
.progress-seam{position:fixed;left:0;top:0;bottom:0;width:2px;background:color-mix(in srgb,var(--champ) 13%,transparent);z-index:55;overflow:hidden}
.progress-seam i{display:block;width:100%;height:100%;background:linear-gradient(180deg,var(--champ-hi),var(--champ) 55%,var(--champ-deep));transform-origin:top;transform:scaleY(0)}
.progress-seam .seam-notch{position:absolute;left:0;bottom:12%;width:9px;height:2px;background:var(--champ-hi);box-shadow:0 0 0 1px rgba(10,32,24,.25);opacity:0;transition:opacity .5s var(--ease-lux)}
.progress-seam.complete .seam-notch{opacity:1}

/* ---------- quiet motion: reveal foundation ----------
   Stillness is the baseline. Movement appears only at entrances, on
   hover, and along the gold seam — never as a constant loop, never
   across the whole screen, and never inside article body text. Hidden
   start states are armed by script per element, only where an
   observer will fire, so without script every element simply rests in
   its final form. */
.reveal{opacity:1}
.reveal.in{opacity:1}
/* the hidden start state exists only on elements script has actually
   armed with a working observer (.rv-armed); CSS alone never hides
   content, so with script off or the observer silent everything
   simply rests visible */
.reveal.rv-armed{opacity:0;transform:translateY(14px);transition:opacity 1s var(--ease-lux),transform 1s var(--ease-lux)}
.reveal.rv-armed.in{opacity:1;transform:none}
/* staggered entrances on card grids: the container itself stays at
   rest while its children rise one after another, a breath apart */
.reveal.rv-armed[data-stagger]{opacity:1;transform:none;transition:none}
.reveal.rv-armed[data-stagger]>*{opacity:0}
.reveal.rv-armed[data-stagger].in>*{opacity:1}
.reveal.rv-armed[data-stagger].in>*{animation:staggerIn 1s var(--ease-lux) backwards}
.reveal.rv-armed[data-stagger].in>*:nth-child(2){animation-delay:.09s}
.reveal.rv-armed[data-stagger].in>*:nth-child(3){animation-delay:.18s}
.reveal.rv-armed[data-stagger].in>*:nth-child(4){animation-delay:.27s}
.reveal.rv-armed[data-stagger].in>*:nth-child(5){animation-delay:.36s}
.reveal.rv-armed[data-stagger].in>*:nth-child(6){animation-delay:.45s}
.reveal.rv-armed[data-stagger].in>*:nth-child(7){animation-delay:.54s}
.reveal.rv-armed[data-stagger].in>*:nth-child(8){animation-delay:.63s}
@keyframes staggerIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes riseIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ============================================================
   Step 2b — page types & shared components (checklist C4–C7,
   D15, D20, F3, F4, F6, G1–G3, G5–G8, H1, H2, H6, H7, H8)
   ============================================================ */

/* ---------- labels (the mock's .label, used by the ported parts) ---------- */
.label{font-family:var(--serif);font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;font-weight:600}

/* ---------- standing word (D15): the destination's word, at rest ----------
   The same word the curtain showed waits at the head of the page,
   filled in by kintsugi.js (setViewWord); without script it simply
   stays hidden and the page rests as before. */
.view-word{font-family:var(--serif);font-size:.98rem;color:var(--ink-soft);letter-spacing:.04em;margin:0}
.view-word .vw-jp{font-family:var(--mincho);color:var(--gold-deep);font-size:1.14rem;letter-spacing:.1em;margin-right:.4em}
.view-word .vw-romaji{color:var(--gold-deep);font-style:italic;margin-right:.4em}
.view-word .vw-gloss{color:var(--ink-soft)}
.view-word-wrap{padding-top:20px}
.hero .view-word{margin-top:18px}

/* ---------- headroom header (G1/G2) + curtain linkage (D20) ----------
   Other pages: a slim fixed bar of deep green (56px) with the seam
   drawn under it; it hides on the way down and returns on the way up.
   Article pages: the bar rests in flow on paper, logo only. */
body{padding-top:var(--barh)}
body.on-article{padding-top:0}
.site-header{position:fixed;top:0;left:0;right:0;z-index:60;height:var(--barh);background:color-mix(in srgb,var(--green-950) 94%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(216,192,141,.22);transition:transform .55s var(--ease-lux);will-change:transform}
.site-header.bar-hidden{transform:translateY(-102%)}
body.nav-locked .site-header{transform:translateY(-102%)}
.header-inner{display:flex;align-items:center;gap:18px;height:var(--barh);padding-top:0;width:min(1180px,calc(100% - clamp(36px,8vw,88px)))}
.site-header nav{width:auto;margin:0 0 0 auto;border-top:0;padding:0;justify-content:flex-start}
.site-header .search-open{margin:0 0 0 12px;align-self:center}
.brand{gap:10px}
.brand .brand-enso{width:34px;height:34px;flex:0 0 auto}
.brand .bname{font-family:var(--serif);font-size:1.02rem;font-weight:500;letter-spacing:.02em;line-height:1.15;color:var(--on-green)}
.brand .bname small{display:block;font-family:var(--mincho);font-size:.58rem;font-weight:400;color:var(--on-green-faint);letter-spacing:.18em;margin-top:2px}
.site-header nav{color:var(--on-green-soft)}
.site-header nav summary{color:inherit}
.site-header nav>a:hover,.site-header nav summary:hover{color:var(--gold-hi)}
.site-header nav>a[aria-current]:after{background:var(--gold-hi)}
.nav-topic-list{background:var(--green-900);border:1px solid rgba(216,192,141,.22)}
.nav-topic-list a{color:var(--on-green-soft)}
.nav-topic-list a:hover{color:var(--gold-hi)}
.search-open{color:var(--on-green-soft);border-left-color:rgba(216,192,141,.25)}
.menu-toggle{color:var(--on-green)}
.skip-link{z-index:300}
@media(max-width:900px){
  .site-header nav{background:var(--green-950);color:var(--on-green-soft);border-bottom:1px solid rgba(216,192,141,.22);border-top:0;top:var(--barh);width:100%;margin:0}
}
/* article pages: paper bar, in flow, no brand name, no seam */
body.on-article .site-header{position:relative;background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--champ)}
body.on-article .site-header::after{display:none}
body.on-article .brand .brand-enso{width:30px;height:30px}
body.on-article .brand{color:var(--ink)}
body.on-article .brand .bname{color:var(--ink)}
body.on-article .brand .bname small{color:var(--muted)}
body.on-article .site-header nav{color:var(--ink)}
body.on-article .site-header nav>a:hover,body.on-article .site-header nav summary:hover{color:var(--gold-deep)}
body.on-article .search-open{color:var(--ink);border-left-color:var(--line)}
body.on-article .menu-toggle{color:var(--ink)}
@media(max-width:900px){
  body.on-article .site-header nav{background:var(--paper);color:var(--ink)}
}

/* ---------- footer (G3): deep green, ensō at 64px, quiet rows ---------- */
.site-footer{background:var(--green-950);border-top:0;color:var(--on-green-soft)}
.site-footer a{color:var(--on-green-soft)}
.site-footer a:hover{color:var(--gold-hi)}
.site-footer .eyebrow{color:var(--gold-hi)}
.foot-brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.foot-logo{width:64px;height:64px;flex:0 0 auto}
.foot-name{font-family:var(--serif);font-size:1.2rem;color:var(--on-green)}
.foot-tag{font-family:var(--serif);font-style:italic;color:var(--on-green-faint);margin-top:10px}
.footer-note{color:var(--on-green-faint)}
.footer-bottom{border-top:1px solid rgba(233,203,126,.18);color:var(--on-green-faint)}
.fm-btn{margin-left:auto;padding:9px 18px;font-size:.88rem;min-height:40px;border:1px solid rgba(233,203,126,.42);border-radius:99px;color:var(--gold-hi);font-family:var(--serif);display:inline-flex;align-items:center}
.fm-btn:hover{border-color:var(--gold-hi);background:rgba(233,203,126,.1);color:var(--gold-hi)}
@media(max-width:580px){.fm-btn{margin-left:0}}

/* ---------- share rows (G5/G6): thin gold ghost buttons, never filled ---------- */
.share-block{margin:36px 0 4px;padding-top:24px;border-top:1px solid var(--gold-line)}
.share-block .label{color:var(--gold-deep)}
.share-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.share-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;border-radius:99px;border:1px solid var(--gold-line);background:transparent;color:var(--gold-deep);padding:0;text-decoration:none;transition:border-color .45s var(--ease-lux),color .45s var(--ease-lux),background .45s var(--ease-lux),transform .45s var(--ease-lux)}
.share-btn svg{width:17px;height:17px;display:block}
.share-btn:hover{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 10%,transparent);transform:translateY(-2px);color:var(--gold-deep)}
.share-btn:active{transform:scale(.96)}
.foot-share{display:flex;align-items:center;gap:18px;flex-wrap:wrap;border-top:1px solid rgba(233,203,126,.18);margin-top:26px;padding-top:22px}
.foot-share .label{color:var(--gold-hi)}
.foot-share .share-row{margin-top:0}
.share-row.on-dark .share-btn{color:var(--gold-hi);border-color:rgba(233,203,126,.42)}
.share-row.on-dark .share-btn:hover{border-color:var(--gold-hi);color:var(--gold-hi);background:rgba(233,203,126,.1)}

/* ---------- toast (G7) ---------- */
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:var(--green-950);color:var(--on-green);border:1px solid var(--gold);border-radius:12px;padding:14px 20px;font-size:.92rem;max-width:min(520px,92vw);text-align:center;opacity:0;pointer-events:none;transition:opacity .55s var(--ease-lux),transform .55s var(--ease-lux);z-index:120;box-shadow:var(--shadow)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast b{color:var(--gold-hi);font-family:var(--serif)}

/* ---------- buy us a matcha (G8): Home card + footer row ---------- */
.matcha-card{max-width:760px;margin:0 auto;border:1px solid var(--gold-line);border-radius:14px;background:var(--cream);padding:clamp(28px,4vw,40px);text-align:center}
.matcha-card .matcha-bowl{width:64px;height:64px;margin:0 auto 6px;color:var(--gold-deep)}
.matcha-card .label{color:var(--gold-deep)}
.matcha-card h2{font-size:clamp(1.7rem,3.4vw,2.3rem);margin:10px 0 8px}
.matcha-card p{color:var(--ink-soft);max-width:34em;margin:0 auto}
.matcha-amts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:22px 0 6px}
.matcha-amt{border:1px solid var(--gold-deep);background:transparent;color:var(--ink);border-radius:99px;padding:10px 20px;font-family:var(--serif);font-size:.95rem;min-height:44px;cursor:pointer;transition:background .45s var(--ease-lux),color .45s var(--ease-lux),border-color .45s var(--ease-lux)}
.matcha-amt:hover{border-color:var(--gold)}
.matcha-amt[aria-pressed="true"]{background:var(--green-900);color:var(--gold-hi);border-color:var(--green-900)}
.matcha-note{font-family:var(--serif);font-style:italic;font-size:.88rem;color:var(--ink-faint);min-height:1.6em;margin:4px 0 14px}
.matcha-fine{font-size:.8rem;color:var(--ink-faint);margin-top:14px}
.foot-matcha{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid rgba(233,203,126,.18);margin-top:26px;padding-top:22px}
.foot-matcha .matcha-bowl{width:40px;height:40px;margin:0;color:var(--gold-hi);flex:0 0 auto}
.fm-title{font-family:var(--serif);color:var(--on-green);font-size:1rem;line-height:1.35}
.fm-sub{font-size:.82rem;color:var(--on-green-faint);margin-top:2px}

/* ---------- section-head gold rule (C4) ---------- */
.section-heading h2::after,.home-section-heading h2::after{content:"";display:block;width:78px;height:6px;margin-top:14px;background:linear-gradient(90deg,transparent,var(--champ-deep) 24%,var(--champ-hi) 50%,var(--champ) 76%,transparent);clip-path:polygon(0% 50%,25% 38%,50% 37.5%,75% 38%,100% 50%,75% 62%,50% 62.5%,25% 62%)}
.page-intro::after{content:"";display:block;width:78px;height:6px;margin-top:17px;background:linear-gradient(90deg,transparent,var(--champ-deep) 24%,var(--champ-hi) 50%,var(--champ) 76%,transparent);clip-path:polygon(0% 50%,25% 38%,50% 37.5%,75% 38%,100% 50%,75% 62%,50% 62.5%,25% 62%)}

/* ---------- card hover: lift + lens underline (C7/F6) ---------- */
.story-card,.find-card{position:relative;transition:transform .55s var(--ease-lux),box-shadow .55s var(--ease-lux)}
.story-card::after,.find-card::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:6px;background:linear-gradient(90deg,transparent,var(--champ) 28%,var(--champ-hi) 50%,var(--champ) 72%,transparent);clip-path:polygon(0% 50%,25% 38%,50% 37.5%,75% 38%,100% 50%,75% 62%,50% 62.5%,25% 62%);transform:scaleX(0);transform-origin:center;transition:transform .8s var(--ease-lux);pointer-events:none}
.story-card:hover,.find-card:hover{transform:translateY(-3px)}
.story-card:hover::after,.find-card:hover::after{transform:scaleX(1)}

/* ---------- home hero: seam, entrance, scroll cue (C5/C6/F3/F4) ---------- */
.hero{position:relative}
.hero-seam{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hero-copy,.hero-visual{position:relative}
.scroll-cue{position:relative;display:flex;align-items:center;gap:12px;color:var(--ink-faint);font-size:.78rem;letter-spacing:.22em;font-family:var(--serif);text-transform:uppercase;margin-top:28px;text-decoration:none}
.scroll-cue::after{content:"";height:6px;align-self:center;flex:1;background:linear-gradient(90deg,transparent,rgba(171,144,89,.42) 28%,rgba(211,186,133,.85) 50%,rgba(171,144,89,.42) 72%,transparent);clip-path:polygon(0% 50%,25% 38%,50% 37.5%,75% 38%,100% 50%,75% 62%,50% 62.5%,25% 62%)}
.scroll-cue:hover{color:var(--gold-deep)}
/* hero entrance: first session view only (the pre-paint check adds
   .hero-seen on every later load), playing behind the intro curtain */
html:not(.hero-seen) .hero-copy>*{animation:riseIn 1.15s var(--ease-lux) both}
html:not(.hero-seen) .hero-copy>*:nth-child(1){animation-delay:.85s}
html:not(.hero-seen) .hero-copy>*:nth-child(2){animation-delay:.97s}
html:not(.hero-seen) .hero-copy>*:nth-child(3){animation-delay:1.09s}
html:not(.hero-seen) .hero-copy>*:nth-child(4){animation-delay:1.21s}
html:not(.hero-seen) .hero-copy>*:nth-child(5){animation-delay:1.33s}
html:not(.hero-seen) .hero-copy>*:nth-child(6){animation-delay:1.45s}
html:not(.hero-seen) .hero-copy>*:nth-child(7){animation-delay:1.57s}
html:not(.hero-seen) .hero-copy>*:nth-child(8){animation-delay:1.69s}
/* scroll-driven drift (F4): the hero photograph breathes a few pixels
   against the scroll; enhancement only, inside @supports */
@supports (animation-timeline:view()){
  .hero-visual img{animation:heroDrift linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
  .home-story-image img{animation:heroDrift linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
}
@keyframes heroDrift{from{transform:translateY(-6px) scale(1.05)}to{transform:translateY(6px) scale(1.05)}}

/* ---------- article page (H6/C10) ---------- */
@media(min-width:1151px){
  .article-layout{grid-template-columns:215px minmax(0,768px)}
}
.article-header .lens-rule.short{width:78px;margin:14px 0 6px}
.takeaway{border-left:2px solid var(--champ-deep);padding-left:18px}
.branch{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:clamp(36px,6vw,60px) auto clamp(52px,7vw,80px)}
.branch .bcard{display:block;border:1px solid var(--card-line);border-radius:14px;padding:22px;background:var(--paper);text-align:left;color:var(--ink);text-decoration:none;transition:transform .55s var(--ease-lux),box-shadow .55s var(--ease-lux)}
.branch .bcard:hover{transform:translateY(-3px);box-shadow:var(--shadow);color:var(--ink)}
.branch .bcard.dark{background:var(--green-900);color:var(--on-green);border-color:var(--green-900)}
.branch .bcard.dark:hover{color:var(--on-green)}
.branch .bcard .label{color:var(--gold-deep)}
.branch .bcard.dark .label{color:var(--gold-hi)}
.branch .bcard h3{font-size:1.3rem;margin:8px 0 6px}
.branch .bcard p{font-size:.9rem;color:var(--ink-soft);margin:0}
.branch .bcard.dark p{color:var(--on-green-soft)}
@media(max-width:650px){.branch{grid-template-columns:1fr}}

/* ---------- question box pieces (H7) ---------- */
.q-next{border:1px solid var(--gold-line);border-radius:12px;padding:20px 22px;background:var(--cream);margin-top:24px}
.q-next .label{color:var(--gold-deep)}
.q-next ol{margin:12px 0 0;padding-left:1.35em}
.q-next li{margin:8px 0;font-size:.95rem;color:var(--ink-soft)}
.q-next li::marker{font-family:var(--serif);color:var(--gold-deep);font-weight:600}
.q-mail{margin-top:22px;border-top:1px dashed var(--card-line);padding-top:18px}
.q-mail .label{color:var(--gold-deep)}
.q-mail p{margin:10px 0 0}
.q-mail .addr{font-family:var(--serif);font-size:1.02rem;color:var(--ink);margin-right:10px;overflow-wrap:anywhere}
.copybtn{border:1px solid var(--gold-deep);background:transparent;color:var(--gold-deep);border-radius:99px;padding:7px 14px;font-family:var(--serif);font-size:.82rem;min-height:36px;cursor:pointer;transition:background .45s var(--ease-lux),color .45s var(--ease-lux),border-color .45s var(--ease-lux)}
.copybtn:hover{background:var(--gold);color:#231a05}
@media print{
  body,body.on-article{padding-top:0}
  .site-header{position:relative}
}

/* ---------- reduced motion: everything rests in its final form ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .reveal,.reveal.rv-armed{opacity:1!important;transform:none!important;transition:none}
  .reveal.rv-armed[data-stagger]>*{opacity:1!important;animation:none!important}
}
