:root {
  --ink: #211714;
  --black: #180e0b;
  --red: #7d221b;
  --rust: #a33d25;
  --teal: #0e575c;
  --sand: #ddbb99;
  --paper: #f5efe5;
  --ivory: #fffaf0;
  --line: rgba(33, 23, 20, .22);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Futura PT", Futura, "A-OTF UD Shin Go Pr6N", "A-OTF UD新ゴ Pr6N", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.95; letter-spacing: .055em; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
::selection { color: #fff; background: var(--red); }

.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 8px 16px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; z-index: 130; top: 0; left: 0; width: 100%; height: 3px; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--sand); }

.site-header { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 9px 34px; color: var(--ink); background: rgba(245, 239, 229, .96); transition: background .35s, box-shadow .35s; }
.site-header.is-scrolled { background: rgba(245, 239, 229, .96); box-shadow: 0 8px 30px rgba(33,23,20,.08); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup b { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.brand .obeer-logo { width: 42px; height: 52px; object-fit: contain; }
.brand .maisha-logo { width: 72px; height: auto; }
.brand-project { padding-left: 15px; border-left: 1px solid currentColor; font-size: 9px; letter-spacing: .24em; }
.site-nav { display: flex; align-items: center; gap: 23px; }
.site-nav a { position: relative; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: currentColor; transition: width .25s; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.menu-button { display: none; border: 0; padding: 8px 0; color: inherit; background: none; }

.section-pad { padding-left: max(6vw, calc((100vw - var(--max)) / 2)); padding-right: max(6vw, calc((100vw - var(--max)) / 2)); }
.kicker { margin: 0 0 22px; color: var(--rust); font-size: 10px; font-weight: 800; letter-spacing: .3em; }
.chapter { position: relative; overflow: hidden; }
.chapter-no { position: absolute; z-index: 2; top: 46px; right: max(3vw, calc((100vw - 1400px) / 2)); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.chapter-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(430px, 1fr); gap: 10vw; align-items: start; }
.chapter-heading h2, .opening h2, .study-title h2, .message-opening h2, .closing h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.2vw, 44px); font-weight: 500; line-height: 1.55; letter-spacing: .06em; }
.chapter-en { margin: 40px 0 0; font-family: Georgia, serif; font-size: 17px; font-style: italic; line-height: 1.55; }
.chapter-body { max-width: 620px; padding-top: 50px; }
.chapter-body p { margin: 0 0 26px; }
.lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.9; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.hero { position: relative; height: min(600px, 70svh); min-height: 520px; display: flex; align-items: center; overflow: hidden; color: var(--ivory); background: var(--black); padding-top: 76px; }
.hero-product { position: absolute; top: 76px; right: 0; bottom: 0; width: 58%; display: grid; place-items: center; overflow: hidden; background: #f6f5f2; border-left: 1px solid rgba(33,23,20,.15); }
.hero-product img { position: absolute; inset: 7%; width: 86%; height: 86%; max-width: none; object-fit: contain; animation: hero-in 1.4s ease-out both; }
.hero-copy { position: relative; z-index: 2; align-self: stretch; width: 42%; display: flex; flex-direction: column; justify-content: center; padding-left: max(6vw, calc((100vw - var(--max)) / 2)); padding-right: 4vw; text-align: left; background: url("assets/hero-label-art-close.webp") center / cover no-repeat; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(50px, 5vw, 60px); font-weight: 500; line-height: 1.25; letter-spacing: .12em; }
.hero-en { margin: 16px 0 0; font-family: Georgia, serif; font-size: clamp(18px, 1.8vw, 25px); font-style: italic; letter-spacing: .08em; }
.hero-sub { margin: 23px 0 0; font-size: 10px; letter-spacing: .23em; }
.hero-edition { position: absolute; z-index: 2; left: max(6vw, calc((100vw - var(--max)) / 2)); bottom: 23px; margin: 0; font-size: 8px; letter-spacing: .22em; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1.01); } }
@keyframes scroll-line { 0%, 100% { transform: scaleY(.18); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

.opening { min-height: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; background: var(--ivory); }
.opening-index { color: transparent; -webkit-text-stroke: 1px rgba(125,34,27,.55); font-family: Arial Black, var(--sans); font-size: clamp(82px, 10vw, 155px); line-height: .77; letter-spacing: -.055em; }
.opening-copy { max-width: 550px; padding-left: 7vw; border-left: 1px solid var(--line); }
.opening-copy > p:last-child { margin: 34px 0 0; }

.cassava-section { padding: 145px 0; background-color: var(--sand); background-image: linear-gradient(rgba(221,187,153,.74), rgba(221,187,153,.74)), url("assets/maisha-pattern-beige-motif.webp"); background-position: center; background-size: auto, 520px auto; background-repeat: repeat, repeat; }
.fact-box { display: grid; grid-template-columns: 48px 1fr; gap: 22px; margin-top: 54px; padding: 28px; border: 1px solid rgba(125,34,27,.48); }
.fact-box h3 { margin: 0 0 11px; font-family: var(--serif); font-size: 17px; }
.fact-box p { margin: 0 0 12px; font-size: 13px; line-height: 1.75; }
.fact-box p:last-child { margin-bottom: 0; }
.fact-mark { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 800; }

.life-section { min-height: 1020px; padding: 150px 0 170px; color: var(--ivory); background-color: var(--teal); background-image: linear-gradient(rgba(14,87,92,.76), rgba(14,87,92,.76)), url("assets/maisha-pattern-teal-motif.webp"); background-position: center; background-size: auto, 520px auto; background-repeat: repeat, repeat; }
.life-section .kicker { color: var(--sand); }
.life-section .chapter-grid { position: relative; }
.life-section blockquote { margin: 54px 0; padding: 24px 0 24px 28px; border-left: 1px solid var(--sand); font-family: var(--serif); font-size: 21px; line-height: 2; }
.line-art { position: absolute; right: -5%; top: 7%; width: 52vw; color: var(--sand); opacity: .18; }
.line-art path { fill: none; stroke: currentColor; stroke-width: 2; }
.life-band { position: absolute; left: 0; bottom: 0; width: 100%; display: flex; gap: 5vw; padding: 15px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,250,240,.2); border-bottom: 1px solid rgba(255,250,240,.2); color: rgba(255,250,240,.16); font-family: Arial Black, var(--sans); font-size: clamp(38px, 6vw, 86px); letter-spacing: -.04em; }

.kyoto-section { padding: 145px 0 150px; background: var(--sand); }
.kyoto-intro { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(430px, 1fr); gap: 10vw; margin-bottom: 110px; }
.field-photo { position: relative; margin: 0; }
.field-photo img { width: 100%; height: auto; object-fit: contain; }
figure figcaption { margin-top: 12px; font-size: 9px; font-weight: 700; letter-spacing: .22em; }
figure figcaption span { margin-right: 16px; color: var(--red); }
.field-photo figcaption { position: absolute; right: 26px; bottom: 20px; margin: 0; padding: 7px 10px; color: #fff; background: rgba(24,14,11,.68); }
.harvest-row { display: grid; grid-template-columns: 1.1fr .7fr; gap: 8vw; align-items: end; margin-top: 100px; }
.harvest-photo { margin: 0; }
.harvest-photo img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.harvest-note { padding-bottom: 34px; }
.note-en { margin: 0 0 32px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); font-family: Georgia, serif; font-size: 17px; font-style: italic; line-height: 1.7; }

.study-section { padding: 150px 0; background: var(--ivory); }
.study-title { margin-bottom: 70px; }
.encounter { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(430px,1fr); gap: 10vw; margin-bottom: 110px; padding-top: 60px; padding-bottom: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.encounter .kicker { grid-column: 1 / -1; margin-bottom: -20px; }
.encounter h3 { margin: 0; font-family: var(--serif); font-size: clamp(27px,2.8vw,40px); font-weight: 500; line-height: 1.65; }
.encounter div p { margin: 0 0 20px; }
.encounter div p:last-child { margin-bottom: 0; }
.studies { display: grid; grid-template-columns: minmax(300px, 1fr) 170px minmax(300px, 1fr); gap: 4vw; align-items: start; }
.study-card figure { margin: 0; }
.study-card figure img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.study-two .label-figure { padding: 0; background: #f3f2ef; }
.study-two .label-figure img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; box-shadow: none; }
.study-two .label-figure figcaption { color: var(--ink); }
.study-card-copy { position: relative; padding: 36px 0 0 62px; }
.study-number { position: absolute; left: 0; top: 40px; color: var(--red); font-family: Georgia, serif; font-size: 30px; }
.study-card h3 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; line-height: 1.65; }
.study-card p { margin: 0; font-size: 14px; }
.study-arrow { align-self: center; padding: 28px 0; text-align: center; }
.study-arrow span { display: block; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.study-arrow i { display: block; margin: 12px 0; color: var(--red); font-size: 50px; font-style: normal; font-weight: 300; }
.study-arrow p { margin: 0; font-family: var(--serif); font-size: 13px; line-height: 1.8; }

.brewing-section { padding: 150px 0; color: var(--ivory); background: var(--teal); }
.brewing-section .kicker { color: var(--sand); }
.brewing-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4.2vw, 58px); font-weight: 500; line-height: 1.5; letter-spacing: .06em; }
.brewing-heading h2 span { font-size: .46em; }
.brew-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 0; margin-top: 100px; padding-bottom: 90px; list-style: none; }
.brew-steps li { position: relative; grid-column: span 2; min-width: 0; padding: 18px 20px 34px; border: 1px solid rgba(255,250,240,.2); border-top-color: rgba(255,250,240,.55); }
.brew-steps li:nth-child(4) { grid-column: 2 / span 2; }
.brew-steps li:nth-child(5) { grid-column: 4 / span 2; }
.step-no { display: block; margin-bottom: 18px; color: var(--sand); font-size: 9px; letter-spacing: .2em; }
.step-image, .step-symbol { width: 100%; aspect-ratio: 4/3; margin-bottom: 26px; }
.step-image { display: grid; place-items: center; overflow: hidden; background: rgba(255,250,240,.055); }
.step-image img { width: 100%; height: 100%; object-fit: contain; filter: saturate(.9) contrast(1.03); }
.step-symbol { position: relative; display: grid; place-items: center; background: rgba(255,250,240,.055); }
.peel-symbol::before { content: ""; width: 68px; height: 150px; border: 2px solid var(--sand); border-radius: 49% 42% 53% 46%; transform: rotate(24deg); }
.peel-symbol::after { content: ""; position: absolute; width: 52px; height: 132px; border: 1px dashed rgba(255,250,240,.75); border-radius: 49% 42% 53% 46%; transform: rotate(24deg); }
.wash-symbol::before { content: ""; width: 105px; height: 82px; border: 2px solid var(--sand); border-top: 0; border-radius: 0 0 45px 45px; }
.wash-symbol::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--ivory); border-radius: 50%; box-shadow: 20px 18px 0 -1px var(--teal), 20px 18px 0 0 var(--ivory), -18px 27px 0 -1px var(--teal), -18px 27px 0 0 var(--ivory), 9px 48px 0 -1px var(--teal), 9px 48px 0 0 var(--ivory); }
.brew-steps h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.brew-steps p { margin: 0; font-size: 12px; line-height: 1.75; }
.kivunde { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: start; padding-top: 95px; border-top: 1px solid rgba(255,250,240,.35); }
.kivunde-word span { display: block; color: transparent; -webkit-text-stroke: 1px var(--sand); font-size: clamp(62px, 8vw, 120px); font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.kivunde-word em { display: block; margin-top: 18px; color: var(--sand); font-family: var(--serif); font-style: normal; font-size: 18px; letter-spacing: .18em; }
.kivunde-copy p { margin: 0 0 24px; }
.process-caution { margin-top: 38px !important; padding-top: 18px; border-top: 1px solid rgba(255,250,240,.25); font-size: 11px; opacity: .75; }

.message-section { padding: 150px 0 0; background: var(--paper); }
.message-opening { text-align: center; }
.message-flow { margin-top: 125px; }
.message-block { display: grid; grid-template-columns: 150px minmax(260px, .8fr) minmax(360px, 1fr); gap: 5vw; align-items: start; padding: 85px 0; border-top: 1px solid var(--line); }
.message-index { margin: 8px 0 0; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.message-block h3 { margin: 0; font-family: var(--serif); font-size: clamp(25px, 2.5vw, 38px); font-weight: 500; line-height: 1.65; }
.message-block div p { margin: 0 0 22px; }
.big-quote { margin: 40px 0 60px 20%; color: var(--red); font-family: var(--serif); font-size: clamp(28px, 3.8vw, 48px); line-height: 1.65; letter-spacing: .055em; }
.final-message { border-bottom: 1px solid var(--line); }

.closing { position: relative; min-height: 780px; display: flex; align-items: center; overflow: hidden; color: var(--ivory); background: var(--black); }
.closing-art { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,14,11,.96) 0, rgba(24,14,11,.72) 48%, rgba(24,14,11,.15)), url("assets/hero-study-02.webp") center / cover no-repeat; opacity: .8; }
.closing-copy { position: relative; z-index: 2; max-width: 680px; }
.closing-copy .kicker { color: var(--sand); }
.closing-copy > p:not(.kicker) { margin: 34px 0 42px; }
.closing-copy a { display: inline-flex; justify-content: space-between; width: min(360px, 100%); padding: 17px 0; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.closing-copy a i { font-size: 21px; font-style: normal; transition: transform .25s; }
.closing-copy a:hover i { transform: translate(5px,-5px); }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 40px; align-items: end; min-height: 220px; padding: 54px 6vw; color: rgba(255,250,240,.72); background: #0c0706; font-size: 9px; letter-spacing: .17em; }
.footer-lockup { display: flex; align-items: center; gap: 12px; }
.footer-lockup b { color: var(--ivory); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.footer-lockup .obeer-logo { width: 46px; height: 56px; object-fit: contain; filter: invert(1); }
.footer-lockup .maisha-logo { width: 85px; filter: invert(1); }
.site-footer p { margin: 4px 0; }
.footer-source { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-source p { width: 100%; }

@media (max-width: 1050px) {
  .site-header { min-height: 72px; padding: 7px 22px; }
  .menu-button { position: relative; z-index: 122; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 9px; letter-spacing: .2em; }
  .menu-button i, .menu-button i::before { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .25s; }
  .menu-button i::before { content: ""; transform: translateY(6px); }
  .menu-button[aria-expanded="true"] { color: var(--ivory); }
  .menu-button[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] i::before { transform: rotate(-90deg); }
  .site-nav { position: fixed; inset: 0; z-index: 121; display: flex; flex-direction: column; justify-content: center; gap: 22px; visibility: hidden; opacity: 0; color: var(--ivory); background: var(--black); transition: opacity .25s, visibility .25s; }
  .site-nav.is-open { visibility: visible; opacity: 1; }
  .site-nav a { font-family: var(--serif); font-size: 22px; }
  .chapter-grid, .kyoto-intro { grid-template-columns: 1fr; gap: 20px; }
  .chapter-body { padding-top: 12px; }
  .encounter { grid-template-columns: minmax(260px,.8fr) minmax(360px,1fr); gap: 6vw; }
  .studies { grid-template-columns: 1fr 110px 1fr; gap: 3vw; }
  .study-card-copy { padding-left: 50px; }
  .brew-steps { grid-template-columns: repeat(2,1fr); gap: 0; }
  .brew-steps li, .brew-steps li:nth-child(4), .brew-steps li:nth-child(5) { grid-column: auto; }
  .message-block { grid-template-columns: 110px .8fr 1fr; gap: 3vw; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .section-pad { padding-left: 24px; padding-right: 24px; }
  .site-header { min-height: 68px; padding: 5px 18px; }
  .brand { gap: 10px; }
  .brand-lockup { gap: 8px; }
  .brand .obeer-logo { width: 33px; height: 43px; }
  .brand .maisha-logo { width: 58px; }
  .brand-lockup b { font-size: 13px; }
  .brand-project { display: none; }
  .hero { height: auto; min-height: 0; flex-direction: column; align-items: stretch; padding-top: 68px; }
  .hero-copy { order: 1; width: 100%; min-height: 175px; padding: 32px 24px 28px; text-align: center; }
  .hero-product { position: relative; order: 2; top: auto; right: auto; bottom: auto; width: 100%; height: 320px; border-top: 1px solid rgba(33,23,20,.15); border-left: 0; }
  .hero h1 { font-size: 42px; letter-spacing: .11em; }
  .hero-en { font-size: 19px; }
  .hero-sub { margin-top: 18px; }
  .hero-edition { left: 18px; bottom: 14px; color: var(--ink); }
  .opening { grid-template-columns: 1fr; gap: 54px; padding-top: 105px; padding-bottom: 105px; }
  .opening-index { font-size: 20vw; }
  .opening-copy { padding-left: 0; border-left: 0; }
  .chapter-heading h2, .opening h2, .study-title h2, .message-opening h2, .closing h2 { font-size: clamp(30px, 8.4vw, 44px); }
  .study-title h2 { font-size: clamp(30px, 8vw, 42px); }
  .cassava-section, .life-section { background-size: auto, 340px auto; }
  .cassava-section, .life-section, .kyoto-section, .study-section, .brewing-section, .message-section { padding-top: 105px; }
  .chapter-no { top: 24px; right: 24px; }
  .fact-box { grid-template-columns: 1fr; padding: 22px; }
  .life-section { min-height: 1220px; }
  .line-art { top: 43%; right: -25%; width: 110vw; }
  .kyoto-intro { margin-bottom: 70px; }
  .field-photo img { height: auto; min-height: 0; }
  .field-photo figcaption { right: 12px; bottom: 12px; }
  .harvest-row { grid-template-columns: 1fr; gap: 50px; margin-top: 70px; }
  .encounter { grid-template-columns: 1fr; gap: 24px; margin-bottom: 80px; padding-top: 45px; padding-bottom: 45px; }
  .encounter .kicker { grid-column: auto; margin-bottom: 0; }
  .encounter h3 { font-size: clamp(27px, 7.4vw, 38px); }
  .brewing-heading h2 { font-size: clamp(32px, 8.5vw, 46px); }
  .studies { grid-template-columns: 1fr; gap: 80px; }
  .study-arrow { padding: 0; }
  .study-arrow i { transform: rotate(90deg); }
  .study-card-copy { padding-left: 48px; }
  .brew-steps { grid-template-columns: 1fr; margin-top: 70px; }
  .brew-steps li, .brew-steps li:nth-child(4), .brew-steps li:nth-child(5) { grid-column: auto; }
  .kivunde { grid-template-columns: 1fr; gap: 55px; }
  .kivunde-word span { font-size: 21vw; }
  .message-flow { margin-top: 80px; }
  .message-block { grid-template-columns: 1fr; gap: 18px; padding: 65px 0; }
  .message-index { margin: 0; }
  .big-quote { margin: 30px 0 50px; font-size: clamp(27px, 7.2vw, 32px); line-height: 1.7; letter-spacing: .045em; }
  .closing { min-height: 700px; }
  .closing-art { background-position: 64% center; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@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 { opacity: 1; transform: none; }
}
