/* Concept B · Ma, the space between
   A gallery that breathes: one thing at a time, monumental type, the collection unrolled like a handscroll. */
body { --menu-bg: var(--ink); --menu-fg: var(--ivory); }
em { font-style: italic; }

/* ---------- preloader: a wine curtain parts from a single rod ---------- */
.pre { position: fixed; inset: 0; z-index: 1400; pointer-events: none; }
.pre__half { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--wine); }
.pre__half--l { left: 0; } .pre__half--r { right: 0; }
.pre__rod { position: absolute; left: 50%; top: 18%; bottom: 18%; width: 1px; margin-left: -.5px; background: var(--ivory); z-index: 2; transform-origin: top; }
.pre__note { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; color: var(--ivory); z-index: 2; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 1000; display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad); transition: transform .9s var(--ease-io), background-color .6s;
}
.hdr.is-scrolled { background: rgba(251, 247, 241, .9); backdrop-filter: blur(10px); }
.hdr.is-hidden { transform: translateY(-105%); }
.hdr__logo img { width: clamp(90px, 7.4vw, 116px); height: auto; }
.hdr__nav { display: flex; gap: clamp(16px, 2.4vw, 40px); align-items: center; }
.hdr__nav a, .hdr__nav button { padding: 10px 0; position: relative; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.hdr__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-open .hdr { background: transparent; }
.menu-open .hdr__logo img { filter: brightness(0) invert(1); }
.menu-open .hdr__nav { color: var(--ivory); position: relative; z-index: 1300; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__stage { position: relative; height: 100%; overflow: hidden; }
.hero__frame { position: absolute; inset: 0; clip-path: inset(22% 40% 22% 40%); --shade: 0; }
.hero__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 27, 29, 0) 45%, rgba(31, 27, 29, .62)); opacity: var(--shade); pointer-events: none; }
.hero__reveal { position: absolute; inset: 0; }
.hero__reveal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.hero__words {
  position: absolute; inset: 0; z-index: 2; margin: 0; pointer-events: none;
  font: 300 clamp(40px, 6.2vw, 120px)/1 var(--serif); letter-spacing: -.035em; font-variation-settings: 'opsz' 144, 'SOFT' 40;
}
.hero__w--l { position: absolute; top: calc(50% - .56em); right: calc(50% + var(--fw, 22vw) / 2 + 2.4vw); }
.hero__w--r { position: absolute; top: calc(50% - .56em); left: calc(50% + var(--fw, 22vw) / 2 + 2.4vw); }
.hero__w { display: block; white-space: nowrap; overflow: hidden; padding: .04em 0 .1em; }
.hero__w .wi { display: inline-block; }
.hero__w--l { text-align: right; }
.hero__w em { color: var(--wine); }
.hero__corner { position: absolute; z-index: 2; color: var(--muted); }
.hero__corner--tl { left: var(--pad); top: 108px; }
.hero__corner--bl { left: var(--pad); bottom: 4.5vh; }
.hero__corner--br { right: var(--pad); bottom: 4.5vh; }
.hero__cap { position: absolute; z-index: 3; left: var(--pad); bottom: 6vh; display: flex; flex-direction: column; gap: 8px; color: var(--ivory); visibility: hidden; }
.hero__cap-name { font: 300 clamp(30px, 3.4vw, 58px)/1 var(--serif); letter-spacing: -.02em; }
.hero__cap-meta { font-size: 15px; opacity: .9; }

/* ---------- ma ---------- */
.ma { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5vh; padding: 22vh var(--pad); }
.ma__label { color: var(--gold-text); }
.ma__line { font: 300 clamp(40px, 5.6vw, 104px)/1.02 var(--serif); letter-spacing: -.03em; max-width: 14ch; font-variation-settings: 'opsz' 144, 'SOFT' 40; }
.ma__line em { color: var(--wine); }
.ma__sub { max-width: 44ch; color: var(--muted); }
.ma__rule { display: block; width: 1px; height: 14vh; background: var(--gold); transform-origin: top; }

/* ---------- emaki: horizontal handscroll ---------- */
.emaki { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ivory); }
.emaki__track { display: flex; align-items: flex-start; height: 100%; gap: 5.5vw; padding: 15vh 10vw 14vh var(--pad); width: max-content; will-change: transform; }
.emaki__intro { flex: none; width: min(34vw, 520px); height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 0 3vw; align-content: center; }
.emaki__v { grid-row: 1 / 4; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--gold-text); align-self: stretch; text-align: right; }
.emaki__title { font: 300 clamp(48px, 5.6vw, 100px)/.95 var(--serif); letter-spacing: -.035em; font-variation-settings: 'opsz' 144, 'SOFT' 40; }
.emaki__title em { color: var(--wine); }
.emaki__lede { margin-top: 28px; color: var(--muted); max-width: 30ch; }
.plate { flex: none; display: flex; flex-direction: column; gap: 16px; }
.plate__img { display: block; position: relative; height: var(--h, 56vh); aspect-ratio: 2 / 3; overflow: hidden; background: var(--blush); }
.plate__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform: scale(1.14); transition: opacity .9s var(--ease-out); }
.plate__img img.b { opacity: 0; }
.plate:hover .plate__img img.b { opacity: 1; }
.plate__cap { display: flex; flex-direction: column; gap: 4px; max-width: calc(var(--h, 56vh) * .66 + 40px); }
.plate__cap .label { color: var(--gold-text); }
.plate__name { font: 300 clamp(20px, 1.7vw, 30px)/1.15 var(--serif); letter-spacing: -.01em; }
.plate__meta { font-size: 14.5px; color: var(--muted); }
.plate--a { --h: 62vh; }
.plate--b { --h: 42vh; margin-top: 15vh; }
.plate--c { --h: 54vh; margin-top: 3vh; }
.plate--d { --h: 38vh; margin-top: 24vh; }
.plate--e { --h: 60vh; }
.plate--f { --h: 44vh; margin-top: 13vh; }
.plate--g { --h: 52vh; margin-top: 4vh; }
.plate--h { --h: 36vh; margin-top: 26vh; }
.emaki__end { flex: none; width: min(36vw, 520px); height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.emaki__end-t { font: 300 clamp(40px, 4.4vw, 80px)/1 var(--serif); letter-spacing: -.03em; }
.emaki__end-l { color: var(--wine); align-self: flex-start; padding-bottom: 8px; border-bottom: 1px solid var(--gold); }
.emaki__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 5vh; display: flex; align-items: center; gap: 24px; }
.emaki__count b { font-weight: 500; color: var(--wine); }
.emaki__line { flex: 1; height: 1px; background: var(--line); position: relative; }
.emaki__line i { position: absolute; inset: 0; background: var(--wine); transform-origin: left; transform: scaleX(0); }

/* ---------- shoji: craft behind sliding screens ---------- */
.shoji { display: grid; grid-template-columns: 56fr 44fr; gap: 5vw; align-items: center; min-height: 100vh; padding: 14vh var(--pad); background: var(--blush); }
.shoji__stage { position: relative; height: 82vh; overflow: hidden; background: var(--ivory); }
.shoji__stage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.shoji__panel {
  position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 25%); width: 25.2%;
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(168, 132, 58, .32) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 132, 58, .32) 1px, transparent 1px);
  background-size: 100% 20%, 50% 100%; background-position: 0 -1px, -1px 0;
  box-shadow: inset 1px 0 0 rgba(110, 20, 35, .35), inset -1px 0 0 rgba(110, 20, 35, .35);
}
.shoji__copy { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: center; }
.shoji__v { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--gold-text); }
.shoji__title { font: 300 clamp(46px, 4.8vw, 92px)/.96 var(--serif); letter-spacing: -.034em; font-variation-settings: 'opsz' 144, 'SOFT' 40; }
.shoji__title em { color: var(--wine); }
.shoji__body { margin-top: 30px; color: var(--muted); max-width: 40ch; }
.shoji__facts { margin-top: 34px; border-top: 1px solid var(--gold); }
.shoji__facts li { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 300 20px/1.3 var(--serif); align-items: baseline; }
.shoji__facts .label { color: var(--gold-text); }

/* ---------- 4–6 weeks ---------- */
.weeks { padding: 18vh var(--pad) 16vh; text-align: center; }
.weeks__num { position: relative; display: inline-block; font: 300 clamp(150px, 31vw, 560px)/.8 var(--serif); letter-spacing: -.06em; font-variation-settings: 'opsz' 144, 'SOFT' 30; }
.weeks__out { color: transparent; -webkit-text-stroke: 1.2px var(--wine); }
.weeks__fill { position: absolute; inset: 0; color: var(--wine); clip-path: inset(0 100% 0 0); }
.weeks__unit { margin-top: 3vh; color: var(--gold-text); }
.weeks__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4vw; margin: 12vh auto 0; max-width: 1180px; text-align: left; border-top: 1px solid var(--ink); }
.weeks__steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; }
.weeks__steps .label { color: var(--gold-text); }
.weeks__steps b { font: 300 clamp(26px, 2.4vw, 38px)/1.1 var(--serif); }
.weeks__steps span:last-child { color: var(--muted); font-size: 15.5px; }
.when { margin: 10vh auto 0; max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.when__q { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font: 300 clamp(22px, 2vw, 32px) var(--serif); }
.when__q input { font: 300 clamp(20px, 1.8vw, 28px) var(--serif); color: var(--wine); background: transparent; border: 0; border-bottom: 1px solid var(--wine); padding: 4px 2px; min-height: 46px; }
.when__a { font: 300 clamp(20px, 1.8vw, 28px)/1.35 var(--serif); color: var(--muted); }
.when__a em { color: var(--wine); }
.when__a a { color: var(--wine); border-bottom: 1px solid var(--gold); }

/* ---------- occasions: sliding drawers ---------- */
.occ { padding: 16vh var(--pad) 18vh; background: var(--ivory); }
.occ__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; margin-bottom: 6vh; }
.occ__head .label { color: var(--gold-text); }
.occ__title { font: 300 clamp(46px, 5.6vw, 104px)/.95 var(--serif); letter-spacing: -.035em; text-align: right; }
.occ__title em { color: var(--wine); }
.occ__list { border-bottom: 1px solid var(--ink); }
.occ__list a { display: block; border-top: 1px solid var(--ink); }
.occ__row { display: grid; grid-template-columns: 7ch 1fr auto; align-items: baseline; padding: 2.6vh 0; }
.occ__n { color: var(--gold-text); }
.occ__name { font: 300 clamp(34px, 5vw, 96px)/1 var(--serif); letter-spacing: -.035em; transition: transform .9s var(--ease-out), color .5s; }
.occ__count { color: var(--muted); transition: color .5s; }
.occ__drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1.1s var(--ease-out); }
.occ__img { min-height: 0; overflow: hidden; }
.occ__img img { width: 100%; height: 46vh; object-fit: cover; object-position: 50% 28%; transform: scale(1.14); transition: transform 1.6s var(--ease-out); }
@media (hover: hover) {
  .occ__list a:hover .occ__drawer, .occ__list a:focus-visible .occ__drawer { grid-template-rows: 1fr; }
  .occ__list a:hover .occ__img img { transform: scale(1); }
  .occ__list a:hover .occ__name { transform: translateX(1.6vw); color: var(--wine); }
  .occ__list a:hover .occ__count { color: var(--wine); }
}

/* ---------- enso ---------- */
.enso { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 12vh var(--pad); background: var(--blush); overflow: hidden; }
.enso__svg { position: absolute; inset: 0; margin: auto; width: min(80vw, 82vh); height: min(80vw, 82vh); overflow: visible; }
.enso__path { fill: none; stroke: var(--wine); stroke-width: 15; stroke-linecap: round; opacity: .92; }
.enso__in { position: relative; z-index: 1; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.enso__label { color: var(--gold-text); }
.enso__title { font: 300 clamp(36px, 3.8vw, 64px)/1.02 var(--serif); letter-spacing: -.03em; }
.enso__title em { color: var(--wine); }
.join { width: min(100%, 420px); }
.join__row { display: flex; border-bottom: 1px solid var(--ink); }
.join__row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 17px var(--body); padding: 14px 0; color: var(--ink); }
.join__row button { padding: 0 4px 0 16px; color: var(--wine); }
.join__msg { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.ft { padding: 10vh var(--pad) 26px; }
.ft__mark { width: 100%; height: auto; }
.ft__row { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 5vh; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.ft__row span { margin-left: auto; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .hdr__nav a { display: none; }
  .hero__words { font-size: clamp(38px, 11vw, 64px); }
  .hero__w--l, .hero__w--r { left: 0; right: 0; text-align: center; }
  .hero__w--l { top: auto; bottom: calc(50% + var(--fh, 70vw) / 2 + 2.2vh); }
  .hero__w--r { top: calc(50% + var(--fh, 70vw) / 2 + 1.4vh); }
  .hero__corner--tl { top: 84px; }
  .emaki { height: auto; overflow: visible; padding: 14vh 0 10vh; }
  .emaki__track { width: auto; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 20px; gap: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .emaki__track::-webkit-scrollbar { display: none; }
  .emaki__intro { width: 74vw; height: auto; grid-template-columns: 1fr; scroll-snap-align: start; }
  .emaki__v { display: none; }
  .plate { scroll-snap-align: start; }
  .plate, .plate--a, .plate--b, .plate--c, .plate--d, .plate--e, .plate--f, .plate--g, .plate--h { --h: 104vw; margin-top: 0; }
  .plate__img { height: auto; width: 70vw; }
  .plate__cap { max-width: 70vw; }
  .emaki__end { width: 70vw; height: auto; scroll-snap-align: start; }
  .emaki__bar { display: none; }
  .shoji { grid-template-columns: 1fr; padding: 12vh var(--pad); }
  .shoji__stage { height: 70vh; }
  .shoji__copy { grid-template-columns: 1fr; }
  .shoji__v { writing-mode: horizontal-tb; transform: none; }
  .weeks__steps { grid-template-columns: 1fr; gap: 0; }
  .weeks__steps li { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .occ__head { flex-direction: column; align-items: flex-start; }
  .occ__title { text-align: left; }
  .occ__row { grid-template-columns: 1fr auto; }
  .occ__n { display: none; }
  .occ__drawer { grid-template-rows: 1fr; }
  .occ__img img { height: 34vh; transform: none; }
  .ft__row span { margin-left: 0; }
  .hero__corner--bl { display: none; }
  .hero__corner--br { left: var(--pad); right: var(--pad); text-align: center; }
  .emaki__track { scroll-padding-inline: var(--pad); }
  .enso__svg { width: 128vw; height: 128vw; }
  .enso__in { max-width: 74vw; }
}
