/* ==========================================================================
   Design B — "Shiro" 白
   Structure learnt from Japanese culture-school sites: full-bleed video,
   catch copy with vertical Japanese, fixed "photo windows" between sections,
   dark title bars, card grid, zigzag classes, coloured footer.
   Palette stays Lynh Ko: washi paper, ink navy, gold hairlines.
   Loaded after main.css only when body.design-b.
   ========================================================================== */

.design-b {
	--paper: #f7f4ee;
	--paper-2: #f0e9de;   /* tinted section, like the sample's soft band */
	--ink: #262a33;
	--serif: 'Shippori Mincho', 'Cormorant Garamond', Georgia, serif;
	--jp: 'Shippori Mincho', 'Noto Serif JP', serif;
	--label: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	--brush: 'Water Brush', 'Shippori Mincho', cursive; /* calligraphy headlines — use large sizes only */
	--line: rgba(38, 42, 51, .14);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	background: var(--paper);
	color: var(--ink);
}
.design-b h1, .design-b h2, .design-b h3 { font-weight: 400; letter-spacing: .04em; color: var(--ink); }
.design-b .eyebrow, .design-b .text-link, .design-b .button, .design-b .site-header__book,
.design-b .menu-toggle, .design-b .b-label, .design-b .b-card__tag, .design-b .b-lesson__meta dt { font-family: var(--label); font-weight: 400; }

/* Buttons: small, square, like the sample's "more" pills */
.design-b .button { font-size: .78rem; letter-spacing: .3em; padding: .85rem 2.4rem; border-radius: 0; }
.design-b .button--gold { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.design-b .button--gold:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.design-b .button--light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.75); }
.design-b .button--light:hover { background: #fff; color: var(--ink); }
.design-b .text-link { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

/* Header: white over video/photo, paper after scrolling */
.design-b .site-brand__name { font-family: var(--serif); letter-spacing: .2em; font-size: 1.1rem; }
.design-b .menu-toggle { font-size: .76rem; }


/* ---------------------------------------------------------------------------
   1. Hero — full-bleed video, logo + name centred (brief 2, Gemini mock-up)
   ------------------------------------------------------------------------ */
/* Header on the homepage: no small logo over the hero, it fades in after the hero. */
.design-b .site-header.has-hero:not(.show-brand) .site-brand { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.design-b .site-header.has-hero.is-scrolled .site-brand,
.design-b.menu-open .site-header.has-hero .site-brand { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* Language switch (EN / FR) */
.lang-switch { display: flex; align-items: center; gap: .45rem; margin: 0; padding: 0; font-family: var(--label, sans-serif); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.lang-switch__item { color: inherit; text-decoration: none; opacity: .65; padding: .6rem .1rem; }
a.lang-switch__item:hover { opacity: 1; color: var(--gold-soft); }
.lang-switch__item.is-current { opacity: 1; }
.lang-switch__item.is-soon { cursor: default; opacity: .4; }
.lang-switch__sep { opacity: .4; }


/* ---------------------------------------------------------------------------
   2. Catch copy — centred title, vertical Japanese beside English
   ------------------------------------------------------------------------ */
.b-catch { background: var(--paper-2); padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.b-catch__inner { max-width: 1040px; margin: 0 auto; }
.b-catch__title { text-align: center; margin: 0 0 clamp(3rem, 7vw, 5rem); }
.b-catch__brush { display: block; font-family: var(--brush); font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem); line-height: 1.1; letter-spacing: .01em; }
.b-catch__title small { display: block; margin-top: 1rem; font-family: var(--label); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--stone); }
.b-catch__body { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 820px) { .b-catch__body { grid-template-columns: auto 1fr; gap: clamp(3rem, 8vw, 7rem); } }
.b-catch__poem {
	margin: 0; padding-left: 1.6rem; border-left: 1px solid var(--gold); white-space: nowrap;
	font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.9; color: var(--gold-ink);
}
.b-catch__text p { max-width: 34em; }
.b-catch__text .button { margin-top: 1.4rem; }

/* ---------------------------------------------------------------------------
   3. Photo windows — image fixed, page scrolls over it
   ------------------------------------------------------------------------ */
.b-band { position: relative; clip-path: inset(0); height: clamp(220px, 32vw, 380px); overflow: hidden; }
.b-band--short { height: clamp(200px, 28vw, 320px); }
.b-band--tall { height: clamp(420px, 70vh, 680px); display: grid; place-items: center; }
.b-band__img { position: fixed; inset: 0; background-size: cover; background-position: center; z-index: -1; }
.b-band--tall .b-band__img::after { content: ""; position: absolute; inset: 0; background: rgba(17,18,22,.45); }
.b-band__inner { position: relative; padding: 2rem var(--gutter); }
.b-band__card { text-align: center; color: #fff; max-width: 560px; }
.b-band__jp { font-family: var(--brush); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem); line-height: 1.1; margin: 0 0 1rem; color: var(--gold-soft); }
.b-band__text { font-size: 1.1rem; margin-bottom: 2rem; }
@media (prefers-reduced-motion: reduce) { .b-band { clip-path: none; } .b-band__img { position: absolute; z-index: 0; } .b-band__inner { z-index: 1; } }

/* ---------------------------------------------------------------------------
   4. News & Topics
   ------------------------------------------------------------------------ */
.b-news { max-width: 960px; margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) var(--gutter); }
.b-label { font-size: 1.15rem; letter-spacing: .3em; margin: 0 0 1.6rem; color: var(--gold-ink); font-family: var(--serif); }
.b-label span { border-bottom: 1px solid var(--gold); padding-bottom: .3rem; }
.b-news__list { list-style: none; margin: 0; padding: 0; }
.b-news__list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.b-news__list time { font-family: var(--label); font-size: .82rem; letter-spacing: .12em; color: var(--stone); padding-top: .2rem; }
.b-news__list a { text-decoration: none; }
.b-news__list a:hover { color: var(--gold-ink); }
@media (max-width: 520px) { .b-news__list li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------------------------------------------------------------------------
   5. Title bars + upcoming-date cards
   ------------------------------------------------------------------------ */
.b-bar { background: var(--ink); color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) var(--gutter); }
.b-bar h2 { max-width: 1160px; margin: 0 auto; color: #fff; font-family: var(--brush); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); line-height: 1.1; letter-spacing: .01em; }
.b-events { background: var(--paper-2); }
.b-events__grid { max-width: 1160px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter); display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.b-card { display: block; text-decoration: none; color: var(--ink); }
.b-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.b-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.b-card:hover .b-card__img img { transform: scale(1.04); }
.b-card__tag { display: inline-block; margin-top: .9rem; background: var(--ink); color: #fff; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; padding: .25rem .7rem; }
.b-card.is-full .b-card__tag { background: var(--stone); }
.b-card__title { display: block; margin-top: .6rem; font-family: var(--serif); font-size: 1.15rem; }
.b-card__date { display: block; font-family: var(--label); font-size: .82rem; letter-spacing: .08em; color: var(--stone); }
.b-card:hover .b-card__title { color: var(--gold-ink); }

/* ---------------------------------------------------------------------------
   6. Workshops — zigzag image/text
   ------------------------------------------------------------------------ */
.b-lessons { background: var(--paper); }
.b-lessons__list { max-width: 1160px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) 0; }
.b-lesson { display: grid; gap: 1.6rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 860px) {
	.b-lesson { grid-template-columns: 1fr 1fr; gap: 0; align-items: center; margin-bottom: 0; }
	.b-lesson--flip .b-lesson__img { order: 2; }
	.b-lesson__body { padding: clamp(2rem, 5vw, 4.5rem); }
}
.b-lesson__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.b-lesson__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.b-lesson__img:hover img { transform: scale(1.03); }
.b-lesson__jp { color: var(--gold-ink); font-family: var(--label); text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; margin-bottom: .3rem; }
.b-lesson__title { font-family: var(--brush); font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3.2rem); line-height: 1.1; letter-spacing: .01em; margin-bottom: .4rem; }
.b-lesson__title a { text-decoration: none; }
.b-lesson__teacher { font-family: var(--label); font-size: .82rem; letter-spacing: .14em; color: var(--stone); }
.b-lesson__meta { margin: 1.4rem 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.4rem; font-size: .98rem; }
.b-lesson__meta div { display: contents; }
.b-lesson__meta dt { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); padding-top: .25rem; }
.b-lesson__meta dd { margin: 0; }
.b-lesson__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 1.6rem; }
.b-lessons > .center { padding: clamp(3rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem); margin: 0; }

/* ---------------------------------------------------------------------------
   Scroll reveal — slower, softer than design A; cards stagger
   ------------------------------------------------------------------------ */
.design-b.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.2s var(--ease-out) var(--d, 0ms), transform 1.2s var(--ease-out) var(--d, 0ms); }
.design-b.js [data-reveal].is-in { opacity: 1; transform: none; }
.design-b.js .b-catch__poem[data-reveal] { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 2.2s var(--ease-out), opacity 1s; }
.design-b.js .b-catch__poem[data-reveal].is-in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
	.design-b.js [data-reveal], .design-b.js .b-catch__poem[data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* ---------------------------------------------------------------------------
   Inner pages: photo-window header with title
   ------------------------------------------------------------------------ */
.design-b .page-header { background: #111; text-align: center; clip-path: inset(0); padding: clamp(10rem, 22vw, 15rem) var(--gutter) clamp(4.5rem, 10vw, 7rem); }
.design-b .page-header::before { display: block; z-index: 1; background: rgba(17,18,22,.5); }
.design-b .page-header__img { display: block; position: fixed; inset: 0; background: var(--ph-img) center / cover no-repeat; z-index: 0; }
.design-b .page-header__inner { z-index: 2; }
.design-b .page-header__jp { color: var(--gold-soft); font-family: var(--label); }
.design-b .page-header__title { color: #fff; font-family: var(--brush); letter-spacing: .01em; line-height: 1.05; font-size: clamp(3rem, 2.2rem + 3.6vw, 5.4rem); }
.design-b .page-header__lead { color: rgba(255,255,255,.85); }
@media (prefers-reduced-motion: reduce) { .design-b .page-header__img { position: absolute; } }
.design-b .page-body, .design-b .workshop-single { background: var(--paper); }
.design-b .entry-content h2 { font-family: var(--brush); letter-spacing: .01em; line-height: 1.15; font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3rem); margin-top: 2em; }
.design-b .about-split h2 { margin-top: 0; }
.design-b .entry-content blockquote { border-left-color: var(--gold); }
.design-b .home-workshops { background: var(--paper-2); }
.design-b .workshop-row__media { background: var(--paper); }
.design-b .fact-card { background: #fff; border-color: var(--line); }
.design-b .choice, .design-b .field input, .design-b .field select, .design-b .field textarea { background: #fff; }

/* ---------------------------------------------------------------------------
   Footer: deep ink, big calligraphy mark
   ------------------------------------------------------------------------ */

/* Small screens */
@media (max-width: 700px) {
	.b-hero__scroll { font-size: 0; gap: 0; }
	.design-b .site-header .lang-switch { font-size: .64rem; gap: .3rem; }
	.b-card:nth-child(n+5) { display: none; }
	.b-hero__pause { display: none; }
	.b-catch__poem { white-space: normal; }
	.b-lesson__img { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------------------
   Class schedule — design B tones
   ------------------------------------------------------------------------ */
.design-b .lk-sched { background: var(--paper-2); }
.design-b .lk-sched__board, .design-b .lk-class, .design-b .lk-chip { border-color: var(--line); }
.design-b .lk-cal__day.has-class { background: var(--paper); }
.design-b .lk-month__title { font-family: var(--brush); font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; }
.design-b .lk-month__title span { font-family: var(--label); font-size: .9rem; letter-spacing: .2em; vertical-align: middle; margin-left: .3rem; }
.design-b .lk-class__title { font-family: var(--brush); font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem); line-height: 1.1; }
.design-b .lk-sched__how, .design-b .lk-class__meta dt, .design-b .lk-slot__book, .design-b .lk-chip,
.design-b .lk-cal__dow, .design-b .lk-day__date span, .design-b .lk-legend, .design-b .lk-sched__tz { font-family: var(--label); }
.design-b .lk-slot__time { font-family: var(--label); font-weight: 300; }
.design-b .lk-slot__book:hover { background: var(--gold-ink); }
.design-b .lk-cal__day.is-dim { background: transparent; }
.design-b .lk-cal__day.is-picked { background: var(--ink); color: #fff; }

/* The practice page: two anchored halves */
.practice-part { scroll-margin-top: 6rem; }
