@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Medium.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  --cream: #ffe5c7;
  --green: #006233;
  --green-dark: #004523;
  --paper: #fffaf4;
  --cream-soft: #fff2e2;
  --ink: #103c27;
  --line: rgba(0, 98, 51, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font-family: "Tajawal", Tahoma, Arial, sans-serif; font-weight: 500; font-synthesis: none; text-rendering: optimizeLegibility; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:not(:disabled):active, a:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; box-shadow: 0 0 0 6px var(--green); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; padding: 8rem 1.2rem 6.5rem; isolation: isolate; overflow: hidden; background: var(--green-dark); }
.hero-video, .hero-overlay, .grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { z-index: -4; object-fit: cover; }
.hero-overlay { z-index: -3; background: linear-gradient(180deg, rgba(0,35,19,.1), rgba(0,35,19,.72)), radial-gradient(circle at 50% 42%, transparent 0, rgba(0,44,24,.12) 48%, rgba(0,38,21,.44) 100%); }
.grain { z-index: -2; opacity: .12; background-image: radial-gradient(rgba(255,255,255,.65) .55px, transparent .55px); background-size: 5px 5px; }
.hero-logo { position: absolute; top: 1.2rem; right: 1.5rem; width: clamp(90px, 11vw, 140px); aspect-ratio: 1; padding: .5rem; object-fit: contain; border: 1px solid rgba(255,229,199,.7); border-radius: 50%; background: rgba(255,229,199,.94); box-shadow: 0 18px 45px rgba(0,0,0,.22), 0 0 0 7px rgba(255,229,199,.08); }

.sound-toggle { position: absolute; top: 1.45rem; left: 1.5rem; z-index: 2; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: var(--green); border: 1px solid rgba(255,229,199,.78); border-radius: 50%; background: rgba(255,229,199,.94); box-shadow: 0 9px 22px rgba(0,0,0,.18); backdrop-filter: blur(12px); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.sound-toggle:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.sound-toggle[aria-pressed="true"] { color: var(--cream); background: rgba(0,98,51,.92); }
.audio-icon { position: relative; width: 18px; height: 16px; display: block; }
.audio-icon::before { content: ""; position: absolute; top: 1px; left: 0; width: 11px; height: 14px; background: currentColor; clip-path: polygon(0 36%, 35% 36%, 100% 0, 100% 100%, 35% 64%, 0 64%); }
.audio-icon::after { content: ""; position: absolute; top: 2px; right: 0; width: 6px; height: 12px; border-right: 2px solid currentColor; border-radius: 0 100% 100% 0; }
.sound-toggle.is-muted .audio-icon::after { top: -1px; right: 6px; width: 2px; height: 18px; border: 0; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }
.video-fallback .hero-video { display: none; }

.sound-gate[hidden] { display: none; }
.sound-gate { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; padding: 1.5rem; color: var(--cream); text-align: center; background: rgba(0,62,34,.9); backdrop-filter: blur(18px); animation: gateEnter .45s ease both; }
.sound-gate.is-closing { animation: gateLeave .42s ease both; }
.sound-gate > img { width: 128px; height: 128px; padding: .5rem; object-fit: contain; border-radius: 50%; background: var(--cream); box-shadow: 0 22px 60px rgba(0,0,0,.28), 0 0 0 10px rgba(255,229,199,.08); }
.sound-gate p { margin: 1.35rem 0 .8rem; font-size: 1.08rem; font-weight: 700; }
.sound-gate-actions { display: grid; justify-items: center; gap: .65rem; }
.sound-gate button { min-width: 128px; min-height: 50px; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--green); font-weight: 800; border: 0; border-radius: 999px; background: var(--cream); box-shadow: 0 14px 36px rgba(0,0,0,.22); cursor: pointer; }
.sound-gate .sound-gate-skip { min-height: 44px; color: var(--cream); font-size: .82rem; border: 1px solid rgba(255,229,199,.7); background: transparent; box-shadow: none; }
@keyframes gateEnter { from { opacity: 0; transform: scale(1.03); } }
@keyframes gateLeave { to { opacity: 0; transform: scale(.98); } }

.welcome-card { position: relative; width: min(520px, 100%); padding: clamp(1.8rem, 4.5vw, 3rem); color: #fff; text-align: center; border: 1px solid rgba(255,255,255,.4); border-radius: 32px; background: linear-gradient(145deg, rgba(0,85,47,.7), rgba(0,55,31,.58)); box-shadow: 0 34px 90px rgba(0,25,14,.42), inset 0 1px 0 rgba(255,255,255,.2); backdrop-filter: blur(22px) saturate(130%); animation: cardEnter .55s cubic-bezier(.22,1,.36,1) both; }
.welcome-card::before { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(255,229,199,.13); border-radius: 24px; }
@keyframes cardEnter { from { opacity: 0; transform: translateY(34px) scale(.96); } }
.card-topline { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; color: rgba(255,229,199,.7); }
.card-topline span { height: 1px; flex: 1; background: currentColor; }
.card-topline p { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.kicker { margin: 0 0 .35rem; color: var(--cream); font-size: 1.02rem; font-weight: 700; }
.welcome-card h1 { margin: 0; color: var(--cream); font-family: "Tajawal", Tahoma, Arial, sans-serif; font-size: clamp(2.25rem, 8vw, 3.8rem); font-weight: 800; line-height: 1.25; letter-spacing: 0; text-shadow: 0 5px 24px rgba(0,35,19,.2); }
.welcome-text { margin: 1rem auto 1.8rem; max-width: 39ch; color: rgba(255,255,255,.9); font-size: 1.02rem; line-height: 1.85; }
.welcome-card label { display: block; margin-bottom: .55rem; color: var(--cream); font-size: .9rem; font-weight: 800; }
.select-box { position: relative; }
.select-box::after { content: "⌄"; position: absolute; top: 50%; left: 1.1rem; color: var(--green); font-size: 1.25rem; transform: translateY(-60%); pointer-events: none; }
.welcome-card select { width: 100%; min-height: 58px; padding: 1rem 1.2rem; appearance: none; color: var(--green-dark); text-align: center; text-align-last: center; font-size: 1rem; font-weight: 800; border: 1px solid rgba(255,255,255,.75); border-radius: 17px; background: rgba(255,249,241,.97); box-shadow: 0 12px 30px rgba(0,35,19,.16); outline: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.welcome-card select:hover { transform: translateY(-1px); box-shadow: 0 15px 34px rgba(0,35,19,.22); }
.welcome-card select:focus { box-shadow: 0 0 0 4px rgba(255,229,199,.25); }
.select-hint { margin: .8rem .2rem 0; display: flex; align-items: center; justify-content: center; gap: .45rem; color: rgba(255,255,255,.68); font-size: .75rem; }
.select-hint span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(255,229,199,.1); }
.branch-list { margin-top: 1.35rem; padding-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .75rem; color: rgba(255,229,199,.72); font-size: .72rem; font-weight: 700; border-top: 1px solid rgba(255,229,199,.13); }
.branch-list i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.scroll-cue { position: absolute; bottom: 1.15rem; left: 50%; display: grid; justify-items: center; gap: .45rem; color: rgba(255,255,255,.82); font-size: .72rem; font-weight: 800; text-decoration: none; transform: translateX(-50%); }
.scroll-cue:active { transform: translateX(-50%) translateY(1px); }
.scroll-cue i { width: 24px; height: 36px; display: block; border: 1px solid rgba(255,229,199,.68); border-radius: 999px; }
.scroll-cue i::after { content: ""; width: 4px; height: 4px; margin: 7px auto 0; display: block; border-radius: 50%; background: var(--cream); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(14px); } }

.home-story { position: relative; overflow: hidden; background: var(--paper); }
.home-story::before { content: ""; position: absolute; top: 18rem; right: -18rem; width: 38rem; height: 38rem; border: 1px solid rgba(0,98,51,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(0,98,51,.025), 0 0 0 140px rgba(0,98,51,.018); pointer-events: none; }
.section-shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.section-kicker { margin: 0 0 .7rem; color: var(--green); font-size: .78rem; font-weight: 800; }
.section-kicker::before { content: ""; width: 24px; height: 2px; margin-left: .55rem; display: inline-block; vertical-align: middle; background: var(--green); }

.story-intro { min-height: 760px; padding-block: clamp(5rem,10vw,9rem); display: grid; grid-template-columns: minmax(0,.82fr) minmax(420px,1.18fr); align-items: center; gap: clamp(2rem,7vw,7rem); }
.story-intro-copy { position: relative; z-index: 1; }
.story-intro-copy h2, .chapter-copy h2, .gallery-heading h2 { margin: 0; color: var(--green); font-size: clamp(1.9rem,3.1vw,3.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.story-intro-copy > p:not(.section-kicker) { margin: 1.35rem 0 0; color: rgba(16,60,39,.76); font-size: clamp(1.03rem,1.6vw,1.22rem); line-height: 2; }
.story-link { width: max-content; margin-top: 1.8rem; padding: .78rem 1.15rem; display: inline-flex; align-items: center; gap: .65rem; color: var(--cream); font-size: .84rem; font-weight: 800; text-decoration: none; border-radius: 999px; background: var(--green); box-shadow: 0 12px 28px rgba(0,98,51,.18); transition: transform .25s ease, background .25s ease; }
.story-link:hover { transform: translateY(-3px); background: var(--green-dark); }
.story-intro-image { position: relative; min-height: 610px; margin: 0; overflow: hidden; border-radius: 160px 28px 28px 28px; background: var(--cream); box-shadow: 0 28px 80px rgba(0,70,37,.15); }
.story-intro-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 62%,rgba(0,45,24,.55)); pointer-events: none; }
.story-intro-image img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.story-intro-image:hover img { transform: scale(1.035); }
.story-intro-image figcaption { position: absolute; right: 1.6rem; bottom: 1.5rem; z-index: 1; color: #fff; font-size: .82rem; font-weight: 800; }

.story-chapters { position: relative; padding-bottom: clamp(5rem,10vw,10rem); }
.story-chapter { min-height: 640px; padding-block: clamp(3rem,7vw,7rem); display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr); align-items: center; gap: clamp(2rem,8vw,8rem); border-top: 1px solid var(--line); }
.story-chapter-reverse .chapter-image-wrap { order: 2; }
.story-chapter-reverse .chapter-copy { order: 1; }
.chapter-image-wrap { height: clamp(430px,50vw,610px); position: relative; overflow: hidden; border-radius: 30px; background: var(--cream-soft); box-shadow: 0 25px 70px rgba(0,70,37,.13); }
.chapter-image-wrap::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; pointer-events: none; }
.chapter-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.story-chapter:hover .chapter-image-wrap img { transform: scale(1.04); }
.chapter-number { position: absolute; right: 1.1rem; bottom: .9rem; color: rgba(255,255,255,.94); font-size: clamp(3rem,8vw,6.5rem); font-weight: 800; line-height: 1; text-shadow: 0 8px 26px rgba(0,35,19,.3); }
.chapter-copy h2 { max-width: 12ch; font-size: clamp(1.85rem,2.8vw,2.7rem); }
.chapter-copy > p:not(.section-kicker) { max-width: 43ch; margin: 1.2rem 0 0; color: rgba(16,60,39,.72); font-size: 1.04rem; line-height: 2; }

.gallery-section { padding: clamp(4.5rem,9vw,8rem) 0 clamp(5rem,10vw,9rem); color: var(--cream); background: var(--green); }
.gallery-heading { margin-bottom: clamp(2rem,5vw,3.5rem); display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.gallery-heading .section-kicker, .gallery-heading h2 { color: var(--cream); }
.gallery-heading .section-kicker::before { background: var(--cream); }
.gallery-heading h2 { max-width: 15ch; font-size: clamp(1.95rem,3.2vw,3.15rem); }
.carousel-controls { display: flex; gap: .65rem; direction: ltr; }
.carousel-button { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; color: var(--green); font-size: 1.3rem; border: 1px solid rgba(255,229,199,.7); border-radius: 50%; background: var(--cream); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.carousel-button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,35,19,.25); }
.carousel { position: relative; }
.carousel-viewport { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; overflow: hidden; direction: ltr; border-radius: 28px; touch-action: pan-y; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; transform: translate3d(0,0,0); transition: transform .68s cubic-bezier(.22,1,.36,1); will-change: transform; }
.carousel-track.is-dragging { transition: none; }
.carousel-slide { height: clamp(430px,58vw,680px); position: relative; flex: 0 0 100%; margin: 0; overflow: hidden; background: var(--green-dark); }
.carousel-slide img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .9s cubic-bezier(.22,1,.36,1), filter .5s ease; }
.carousel-slide:hover img { transform: scale(1.045); }
.carousel-status { width: min(1180px, calc(100% - 2rem)); margin: 1.5rem auto 0; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; direction: ltr; color: rgba(255,229,199,.72); font-size: .76rem; font-weight: 800; }
.carousel-status i { width: 70px; height: 1px; background: rgba(255,229,199,.35); }
.carousel-current { color: var(--cream); font-size: 1.05rem; }

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .85s ease, transform .85s cubic-bezier(.22,1,.36,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.menu-page { background: radial-gradient(circle at 12% 8%, rgba(255,229,199,.7), transparent 25rem), #fffaf4; }
.menu-nav { position: sticky; top: 0; z-index: 20; min-height: 82px; padding: .65rem clamp(.8rem,4vw,3rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,229,199,.3); background: rgba(0,98,51,.97); box-shadow: 0 9px 34px rgba(0,69,35,.2); backdrop-filter: blur(18px); }
.menu-nav > img { width: 64px; height: 64px; padding: .25rem; object-fit: contain; border-radius: 50%; background: var(--cream); }
.back-link { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; color: var(--cream); font-weight: 800; text-decoration: none; }
.back-link span { font-size: 1.2rem; transition: transform .2s ease; }
.back-link:hover span { transform: translateX(-4px); }
.nav-select { justify-self: end; color: var(--cream); font-size: .72rem; font-weight: 800; }
.nav-select select { display: block; min-width: 150px; margin-top: .2rem; padding: .55rem .7rem; color: var(--green-dark); border: 1px solid var(--green); border-radius: 11px; background: var(--paper); cursor: pointer; }

.menu-main { padding: clamp(.75rem,2vw,1.5rem) clamp(.55rem,4vw,3rem) 3rem; }
.toolbar-kicker { margin: 0 0 .35rem; color: rgba(0,98,51,.58); font-size: .7rem; font-weight: 800; letter-spacing: 0; }
.menu-tabs { width: min(1180px,100%); margin: 0 auto 1rem; display: flex; gap: .5rem; }
.menu-tabs button { padding: .72rem 1.1rem; color: var(--green); font-weight: 800; border: 1px solid var(--green); border-radius: 999px; background: var(--paper); cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.menu-tabs button:hover { transform: translateY(-2px); }
.menu-tabs button.active { color: var(--cream); border-color: var(--green); background: var(--green); }

.book-shell { width: min(1180px,100%); margin: 0 auto; overflow: hidden; border: 2px solid var(--green); border-radius: 28px; background: var(--cream); box-shadow: 0 26px 70px rgba(0,70,37,.16); }
.book-toolbar { padding: .75rem 1rem; display: flex; align-items: center; justify-content: center; gap: 1rem; border-bottom: 1px solid rgba(0,98,51,.22); background: var(--cream); }
.book-toolbar h2 { margin: 0; color: var(--green); font-family: "Tajawal", Tahoma, Arial, sans-serif; font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; }
.zoom-tools { display: flex; align-items: center; gap: .35rem; direction: ltr; }
.zoom-tools button, .zoom-tools output { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.zoom-tools button { color: var(--cream); font-weight: 900; border: 1px solid var(--green); background: var(--green); cursor: pointer; }
.zoom-tools button:disabled, .book-navigation button:disabled { opacity: .35; cursor: not-allowed; }
.zoom-tools output { color: var(--green); font-size: .74rem; font-weight: 800; }
.zoom-tools .zoom-reset { min-width: auto; padding: 0 .7rem; font-size: .72rem; }
.book-stage { min-height: 430px; max-height: min(74vh,850px); padding: clamp(.6rem,2vw,1.5rem); overflow: auto; direction: ltr; overscroll-behavior: contain; background: linear-gradient(90deg,rgba(0,98,51,.055) 1px,transparent 1px), linear-gradient(rgba(0,98,51,.055) 1px,transparent 1px), var(--cream); background-size: 24px 24px; }
.book-spread { min-width: 100%; margin: 0 auto; display: grid; justify-content: center; align-items: start; direction: ltr; transition: width .22s ease; animation: turnPage .4s cubic-bezier(.22,1,.36,1); }
.book-spread.initial-render { animation: none; }
.book-spread.single { grid-template-columns: minmax(0,.52fr); }
.book-spread.double { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; }
@keyframes turnPage { from { opacity: .25; transform: perspective(1000px) rotateY(-8deg) translateX(-12px); } }
.book-page { position: relative; min-height: 280px; margin: 0; overflow: hidden; border-radius: 6px; background: var(--paper); box-shadow: 0 16px 44px rgba(52,36,18,.22); }
.book-spread.double .book-page:first-child { border-radius: 9px 2px 2px 9px; box-shadow: -10px 18px 36px rgba(52,36,18,.2); }
.book-spread.double .book-page:last-child { border-radius: 2px 9px 9px 2px; box-shadow: 10px 18px 36px rgba(52,36,18,.2); }
.book-page img { width: 100%; height: auto; display: block; user-select: none; }
.image-loader { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(0,98,51,.58); font-size: .8rem; }
.book-page.loaded .image-loader { display: none; }
.book-page.image-error .image-loader { color: #8a2d2d; }
.book-page figcaption { position: absolute; bottom: .5rem; left: 50%; min-width: 24px; padding: .18rem .4rem; color: #fff; text-align: center; font-size: .64rem; border-radius: 999px; background: rgba(0,62,34,.68); transform: translateX(-50%); backdrop-filter: blur(4px); }
.book-navigation { padding: .9rem 1.1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; direction: ltr; border-top: 1px solid rgba(0,98,51,.22); background: var(--cream); }
.book-navigation button { width: max-content; min-height: 44px; padding: .72rem 1rem; display: flex; align-items: center; gap: .5rem; color: var(--cream); font-weight: 800; border: 0; border-radius: 12px; background: var(--green); cursor: pointer; transition: transform .18s ease; }
.book-navigation button:hover:not(:disabled) { transform: translateY(-2px); }
.book-navigation button:last-child { justify-self: end; }
.nav-label { line-height: 1; }
.nav-arrow { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; }
.arrow-right { transform: rotate(-45deg); }
.arrow-left { transform: rotate(135deg); }
.book-navigation p { margin: 0; color: var(--green-dark); font-size: .76rem; font-weight: 700; direction: rtl; }
.book-help { margin: -.2rem 0 .75rem; color: rgba(0,62,34,.5); text-align: center; font-size: .68rem; }

.site-footer { padding: 2rem clamp(1rem,5vw,4rem); color: var(--green); background: var(--cream); border-top: 4px solid var(--green); }
.footer-inner { width: min(1180px,100%); margin: 0 auto; text-align: right; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .7rem 1.5rem; }
.footer-links a { position: relative; color: var(--green); font-size: 1rem; font-weight: 800; text-decoration: none; }
.footer-links a::after { content: ""; position: absolute; right: 0; bottom: -.35rem; width: 0; height: 2px; background: var(--green); transition: width .2s ease; }
.footer-links a:hover::after, .footer-links a.active::after { width: 100%; }
.footer-social { margin-top: 1.35rem; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .65rem; direction: ltr; }
.footer-social a { min-height: 42px; padding: .55rem .85rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--cream); font-size: .82rem; font-weight: 800; text-decoration: none; border-radius: 999px; background: var(--green); transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: var(--green-dark); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 3px solid rgba(0,98,51,.28); outline-offset: 3px; }
.footer-inner > p { margin: 1.25rem 0 0; color: rgba(0,98,51,.65); font-size: .78rem; }

.menu-page, .info-page { min-height: 100vh; display: flex; flex-direction: column; }
.menu-main, .info-main { flex: 1; }
.info-page { background: var(--cream); }
.info-nav { min-height: 84px; padding: .7rem clamp(1rem,5vw,4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,229,199,.3); background: var(--green); }
.info-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--cream); font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.info-brand img { width: 60px; height: 60px; padding: .25rem; object-fit: contain; border-radius: 50%; background: var(--cream-soft); }
.info-back { padding: .65rem 1rem; color: var(--green); font-size: .85rem; font-weight: 800; text-decoration: none; border-radius: 999px; background: var(--cream); }
.info-main { width: min(1180px,100%); margin: 0 auto; padding: clamp(2.5rem,7vw,6rem) clamp(1rem,5vw,3rem); }
.info-hero { max-width: 780px; margin-left: auto; text-align: right; }
.info-hero.compact { max-width: 680px; }
.info-kicker { margin: 0 0 .6rem; color: var(--green); font-size: .85rem; font-weight: 800; }
.info-hero h1 { margin: 0; color: var(--green); font-size: clamp(2.5rem,7vw,5rem); font-weight: 800; line-height: 1.2; }
.info-hero > p:last-child { margin: 1.15rem 0 0; color: rgba(16,60,39,.78); font-size: clamp(1rem,2vw,1.2rem); line-height: 2; }
.story-grid, .contact-grid { margin-top: clamp(2rem,5vw,4rem); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.story-grid article, .contact-grid article { padding: clamp(1.4rem,3vw,2rem); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 16px 42px rgba(0,70,37,.08); }
.story-grid span, .contact-grid span { color: rgba(0,98,51,.5); font-size: .75rem; font-weight: 800; }
.story-grid h2, .contact-grid h2 { margin: .65rem 0 .5rem; color: var(--green); font-size: 1.35rem; }
.story-grid p { margin: 0; color: rgba(16,60,39,.7); line-height: 1.8; }
.contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.phone-link { width: max-content; margin-top: .8rem; padding: .7rem 1rem; display: block; color: var(--cream); font-size: 1.1rem; font-weight: 800; text-decoration: none; border-radius: 12px; background: var(--green); }
.phone-link:hover { background: var(--green-dark); }
.branch-menu-link { width: max-content; margin-top: .8rem; display: block; color: var(--green); font-size: .82rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.branch-map { width: 100%; height: 220px; margin-top: 1rem; display: block; border: 1px solid var(--line); border-radius: 15px; background: var(--cream-soft); }
.map-actions { margin-top: .85rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.map-actions .branch-menu-link { margin-top: 0; }
.map-link { padding: .65rem .9rem; color: var(--cream); font-size: .82rem; font-weight: 800; text-decoration: none; border-radius: 10px; background: var(--green); }
.map-link:hover { background: var(--green-dark); }

@media (max-width:760px) {
  .hero { padding: 7.8rem .85rem 6.4rem; }
  .hero-logo { top: .9rem; right: 50%; width: 96px; transform: translateX(50%); }
  .sound-toggle { top: 1rem; left: .75rem; }
  .welcome-card { border-radius: 24px; }
  .welcome-card h1 { font-size: clamp(2.1rem,12vw,3.2rem); }
  .welcome-text { max-width: 31ch; }
  .scroll-cue { bottom: 1rem; }
  .section-shell { width: min(100% - 1.25rem, 620px); }
  .section-kicker::before { display: none; }
  .story-intro { min-height: 0; padding-block: 4.5rem 5.5rem; grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
  .story-intro-copy { display: flex; align-items: center; flex-direction: column; }
  .story-intro-copy h2 { font-size: clamp(1.9rem,8.4vw,2.45rem); }
  .story-intro-copy > p:not(.section-kicker) { max-width: 34ch; margin-inline: auto; }
  .story-intro-image { width: 100%; min-height: 490px; border-radius: 110px 22px 22px 22px; }
  .story-intro-image figcaption { right: 50%; width: max-content; max-width: calc(100% - 2rem); transform: translateX(50%); }
  .story-chapters { padding-bottom: 5rem; }
  .story-chapter { min-height: 0; padding-block: 4rem; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .story-chapter-reverse .chapter-image-wrap, .story-chapter-reverse .chapter-copy { order: initial; }
  .chapter-image-wrap { height: min(122vw,540px); border-radius: 23px; }
  .chapter-copy { display: flex; align-items: center; flex-direction: column; }
  .chapter-copy h2 { max-width: 14ch; font-size: clamp(1.75rem,7.8vw,2.25rem); }
  .chapter-copy > p:not(.section-kicker) { max-width: 34ch; margin-inline: auto; }
  .chapter-number { right: 50%; transform: translateX(50%); }
  .gallery-section { padding-block: 4.8rem 5.2rem; text-align: center; }
  .gallery-heading { align-items: center; flex-direction: column; }
  .gallery-heading h2 { max-width: 15ch; font-size: clamp(1.9rem,8.5vw,2.45rem); }
  .carousel-controls { order: 2; }
  .carousel-viewport { width: calc(100% - 1.25rem); }
  .carousel-viewport { border-radius: 22px; }
  .carousel-slide { height: min(112vw,520px); }
  .carousel-status { width: calc(100% - 1.25rem); justify-content: center; }
  .menu-nav { grid-template-columns: 1fr auto; }
  .menu-nav > img { width: 56px; height: 56px; }
  .nav-select { grid-column: 1/-1; width: 100%; }
  .nav-select select { width: 100%; }
  .menu-main { padding-inline: .5rem; }
  .book-shell { border-radius: 19px; }
  .book-toolbar { align-items: flex-start; flex-direction: column; }
  .zoom-tools { width: 100%; justify-content: center; }
  .book-stage { height: clamp(340px,calc(100svh - 270px),650px); min-height: 0; max-height: none; padding: .55rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .book-spread { height: 100%; align-items: stretch; transition: none; }
  .book-spread.single { height: 100%; grid-template-columns: minmax(0,1fr); }
  .book-page { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
  .book-page img { width: 100%; height: 100%; object-fit: contain; }
  .book-stage { touch-action: pan-y pinch-zoom; }
  .book-stage.is-zoomed { display: block; overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
  .book-stage.is-zoomed .book-spread { height: auto; min-height: 0; align-items: start; }
  .book-stage.is-zoomed .book-page { height: auto; min-height: 0; }
  .book-stage.is-zoomed .book-page img { height: auto; max-height: none; object-fit: initial; }
  .book-navigation { padding-inline: .65rem; gap: .45rem; }
  .book-navigation button { min-width: 92px; justify-content: center; padding: .65rem .7rem; font-size: .78rem; }
  .book-navigation p { font-size: .67rem; }
  .book-help { display: none; }
  .site-footer { padding-block: 1.6rem; }
  .footer-inner { text-align: center; }
  .footer-links { flex-direction: column; align-items: center; gap: .8rem; }
  .footer-social { justify-content: center; }
  .info-nav { align-items: flex-start; flex-direction: column; }
  .info-back { align-self: stretch; text-align: center; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
