:root {
  color-scheme: light;
  --cream: #faf5eb;
  --paper: #fffaf1;
  --ink: #362319;
  --muted: #674e3e;
  --brown: #452b20;
  --brown-deep: #301d16;
  --gold: #f3d179;
  --gold-light: #f8e6b5;
  --line: #d6c4ae;
  --gutter: clamp(20px, 4.3vw, 76px);
  --serif: "Yagi Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --latin: Georgia, "Times New Roman", serif;
}
@font-face {
  font-family: "Yagi Mincho";
  src: url("./yagi-mincho.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 85px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.85 var(--sans); -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
img { display: block; width: 100%; height: auto; }
svg { display: inline-block; width: 1.14em; height: 1.14em; flex: none; }
:focus-visible { outline: 2px solid #97522c; outline-offset: 5px; }
main:focus { outline: none; }
.shell { width: min(100% - 2 * var(--gutter), 1330px); margin-inline: auto; }
.section-pad { padding-block: clamp(69px, 8.5vw, 139px); }
.skip { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 8px 16px; background: var(--gold); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.eyebrow { color: var(--muted); font: 700 11px/1.55 var(--sans); letter-spacing: .21em; }
.section-title { font: 600 clamp(34px, 4.1vw, 63px)/1.29 var(--serif); letter-spacing: -.032em; }
.button, .text-link { min-height: 44px; display: inline-flex; align-items: center; width: fit-content; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.text-link { text-decoration: underline; text-decoration-color: #aa886b; }
.text-link:hover { text-decoration-color: currentColor; }
.button { text-decoration: none; padding: 12px 19px; min-height: 53px; border: 1px solid transparent; justify-content: space-between; }
.button-primary { background: var(--brown); color: #fffaf0; }
.button-primary:hover { background: #62412d; }
.text-link svg, .button svg { transition: transform .2s ease; }
@media (hover: hover) { .text-link:hover svg, .button:hover svg { transform: translateX(3px); } }

.demo-bar { background: #f6e5b9; color: #533626; }
.demo-row { min-height: 29px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.demo-row a { padding-block: 6px; text-decoration: none; line-height: 1.5; }
.demo-row a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto 44px; gap: clamp(16px, 3vw, 52px); align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; color: var(--ink); text-decoration: none; font: 700 clamp(23px, 2.4vw, 33px)/1 var(--latin); letter-spacing: -.062em; white-space: nowrap; }
.logo-mark { display: inline-grid; place-items: center; width: 33px; aspect-ratio: 1; background: var(--gold); border-radius: 50%; color: var(--ink); }
.logo-mark svg { width: 20px; height: 20px; }
.logo-dot { color: #a6642c; padding-inline: .04em; }
.site-nav { display: flex; gap: clamp(15px, 3.15vw, 50px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.site-nav a:hover, .site-nav [aria-current] { text-decoration: underline; }
.nav-small { display: none; }
.nav-social { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.nav-social:hover { background: var(--gold-light); }
.nav-social svg { width: 19px; height: 19px; }

.hero { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); align-items: center; column-gap: clamp(16px, 2.4vw, 44px); padding-top: clamp(25px, 3.3vw, 50px); }
.hero-copy { padding: clamp(12px, 3vw, 56px) 0 clamp(14px, 3vw, 45px) clamp(0px, 1.4vw, 24px); }
.hero-category { margin-top: 18px; font-size: clamp(13px, 1.45vw, 17px); font-weight: 700; letter-spacing: .065em; }
.hero h1, .menu-intro h1 { font: 600 clamp(45px, 6.15vw, 88px)/1.14 var(--serif); letter-spacing: -.067em; margin: 16px 0 23px -.045em; }
.hero-desc { color: var(--muted); line-height: 1.86; }
.hero-break { display: none; }
.hero-actions { margin-top: 26px; display: flex; align-items: flex-start; flex-wrap: wrap; column-gap: 18px; row-gap: 3px; }
.hero-actions > .text-link { min-height: 53px; }
.photo { position: relative; min-width: 0; }
.photo-viewport { position: relative; overflow: hidden; background: #dfc5a0; isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; z-index: 1; right: 11px; bottom: 10px; padding: 3px 8px; background: #fffaf1; color: #4a3426; font-size: 10px; letter-spacing: .06em; line-height: 1.5; }
.hero-photo .photo-viewport { aspect-ratio: 1.29; border-radius: 43% 1px 1px 1px / 43% 1px 1px 1px; }
.hero-photo img { object-position: 62% 53%; }

.quick { margin-top: clamp(22px, 2.7vw, 42px); display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); background: var(--paper); border-block: 1px solid var(--line); }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.times > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-width: 0; }
.times dt { display: flex; align-items: center; gap: 9px; line-height: 1.3; }
.times dt svg { width: 22px; height: 22px; }
.times dt b { display: block; color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.times dt span span { font-size: 12px; }
.times dd { font: 400 clamp(22px, 2.15vw, 32px)/1 var(--latin); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.quick-times > div { border-right: 1px solid var(--line); padding: 17px clamp(13px, 1.75vw, 29px); }
.quick-note { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px clamp(13px, 1.75vw, 29px); font-size: 13px; font-weight: 700; text-decoration: none; }
.quick-note:hover { background: var(--gold-light); }
.chapter { display: flex; align-items: center; gap: clamp(9px, 1.5vw, 22px); min-height: 65px; padding-block: 3px; }
.chapter-link, .motion-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--muted); font: 700 clamp(11px, 1.05vw, 13px)/1.35 var(--sans);
  white-space: nowrap;
}
.chapter-link { text-decoration: none; }
.chapter-link:hover, .motion-toggle:hover { color: var(--ink); text-decoration: underline; }
.chapter-link svg { color: #905e35; }
.chapter-rule { position: relative; height: 1px; flex: 1; background: var(--line); }
.chapter-rule::after { content: ""; position: absolute; inset: 0; background: #925a32; transform: scaleX(0); transform-origin: left; }
.motion-toggle { padding: 0; border: 0; background: none; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-toggle span {
  min-width: 3.2em; text-align: center; border-radius: 2em; padding: 3px 4px;
  border: 1px solid var(--line); font: 700 9px/1 var(--sans); letter-spacing: .045em;
}
.motion-toggle[aria-pressed="true"] span { color: var(--ink); background: var(--gold-light); border-color: #dfbc7d; }

.signature { background: var(--brown); color: var(--cream); border-radius: clamp(40px, 8vw, 130px) 0 0 0 / clamp(40px, 7vw, 108px) 0 0 0; }
.signature-inner { padding-block: clamp(62px, 8vw, 122px) clamp(45px, 6.5vw, 102px); }
.signature .eyebrow { color: var(--gold); }
.signature-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 28px; align-items: end; max-width: 1040px; margin-inline: auto; }
.signature-head .eyebrow { grid-column: 1 / -1; }
.signature-head > p:last-child { max-width: 32ch; padding-bottom: 4px; color: #f1dfca; }
.signature-stage { position: relative; padding-top: clamp(33px, 5vw, 81px); margin-top: 12px; }
.signature-orbit {
  position: absolute; inset: 8% 0 0; width: 100%; height: 92%;
  stroke: #dba866; stroke-width: 1; opacity: .68; pointer-events: none;
}
.signature-orbit path { vector-effect: non-scaling-stroke; }
.signature-type { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; text-align: center; white-space: nowrap; font: italic 400 clamp(37px, 9vw, 144px)/1 var(--latin); letter-spacing: -.062em; color: #efd099; pointer-events: none; text-shadow: 0 1px 13px #452b2040; }
.signature-photo { width: min(84%, 935px); margin-inline: auto; }
.signature-photo .photo-viewport { aspect-ratio: 2.06; border-radius: 46% 46% 4px 4px / 25% 25% 4px 4px; }
.signature-photo img { object-position: 50% 49%; }
.signature-index { position: absolute; right: 1%; bottom: 0; font: 400 12px/1.5 var(--latin); color: var(--gold); letter-spacing: .1em; }
.ingredient-rule { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 935px; margin: clamp(24px, 4vw, 53px) auto 0; border-top: 1px solid #9d7b64; }
.ingredient-rule > div { display: grid; align-content: start; grid-template-columns: 27px 1fr; gap: 4px 10px; padding: 17px 12px 0 0; }
.ingredient-rule > div + div { border-left: 1px solid #9d7b64; padding-left: clamp(12px, 3vw, 43px); }
.ingredient-rule span { font: italic 400 14px/1.7 var(--latin); color: var(--gold); }
.ingredient-rule h3 { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55; }
.ingredient-rule p { grid-column: 2; color: #ead9c4; font-size: 14px; line-height: 1.65; }

.options-head { margin-bottom: clamp(25px, 4.4vw, 58px); }
.options-head .section-title, .visit .section-title, .about .section-title, .reserve .section-title { margin-block: 12px 15px; }
.options-head p:last-child { color: var(--muted); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3.2vw, 48px); }
.option { border-bottom: 1px solid var(--line); display: grid; align-content: start; }
.option-photo .photo-viewport, .option-art { aspect-ratio: 1.88; }
.option-photo img { object-position: 48% 54%; }
.option-art { background: #f1e1bc; position: relative; overflow: hidden; color: #835533; display: grid; place-items: center; }
.cake-art { display: block; width: 80%; height: 96%; }
.option-copy { padding: 19px 0 15px; }
.option-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.option-label svg { width: 24px; height: 24px; }
.option h3 { font: 600 clamp(29px, 3vw, 44px)/1.4 var(--serif); margin-block: 3px 7px; }
.option-copy > p { color: var(--muted); }
.option .text-link { margin-top: 4px; }
.about { background: #f1e5d4; border-block: 1px solid #e6d6c1; padding-block: clamp(52px, 7vw, 102px); }
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 22px clamp(26px, 7vw, 123px); align-items: center; }
.about-copy { max-width: 38em; color: var(--muted); }
.about-copy p + p { margin-top: 17px; }

.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(26px, 5.6vw, 85px); }
.visit-place { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.visit-place svg { color: #88522d; }
.visit-times { background: var(--gold-light); }
.visit-times > div { padding: 12px 14px; }
.visit-times > div + div { border-left: 1px solid #d7bd87; }
.visit-facts { margin-top: 12px; font-size: 15px; }
.visit-facts > div { display: grid; grid-template-columns: 5em 1fr; gap: 10px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.visit-facts dt { font-weight: 700; }
.visit-facts dd a { font-variant-numeric: tabular-nums; }
.visit-note { margin-top: 15px; font-size: 14px; color: var(--muted); }
.visit-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin-top: 16px; }
.map { background: #efe4ce; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; min-height: 320px; aspect-ratio: 1.22; border: 0; }
.map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px; padding: 10px 13px; font-size: 11px; color: var(--muted); letter-spacing: .065em; }

.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; padding-block: 10px; }
.breadcrumbs a { padding-block: 10px; }
.menu-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px clamp(24px, 5.5vw, 79px); align-items: center; padding-block: 13px clamp(36px, 4.2vw, 65px); }
.menu-intro h1 { font-size: clamp(43px, 5.8vw, 83px); }
.menu-intro-copy > p:not(.eyebrow) { color: var(--muted); }
.menu-cover .photo-viewport { aspect-ratio: 1.52; border-radius: 1px 40% 1px 1px / 1px 47% 1px 1px; }
.menu-jump { display: flex; flex-wrap: wrap; gap: 0 19px; margin-top: 17px; }
.menu-board { background: #f2e7d7; border-block: 1px solid #e4d4bf; padding-block: clamp(32px, 3.7vw, 56px) clamp(48px, 6vw, 94px); }
.menu-board-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.6vw, 52px); }
.price-notice { grid-column: 1 / -1; border-left: 3px solid #aa7741; padding: 4px 0 4px 13px; color: var(--muted); font-size: 14px; }
.menu-column-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 12px; margin-bottom: 17px; }
.menu-column-head .eyebrow { grid-column: 1 / -1; }
.menu-column-head .section-title { font-size: clamp(29px, 3.25vw, 48px); }
.menu-column-head > p:last-child { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; line-height: 1.35; padding-bottom: 5px; }
.menu-column-head strong { font: 400 clamp(17px, 2.1vw, 25px)/1 var(--latin); }
.menu-list { border-top: 1px solid #af8e74; }
.menu-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding-block: 14px; border-bottom: 1px solid #cfb8a2; min-height: 81px; }
.menu-row dt { font-size: clamp(14px, 1.55vw, 19px); font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.menu-row dt span { display: block; margin-top: 5px; font-size: 13px; font-weight: 400; color: var(--muted); }
.price { font: 400 clamp(24px, 3.2vw, 39px)/1 var(--latin); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.price span { margin-left: 3px; font: 500 13px/1 var(--sans); }
.check-price { color: var(--muted); font-size: 13px; white-space: nowrap; }
.menu-reserve-link { margin-top: 8px; }

.reserve-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(28px, 6vw, 88px); }
.reserve-photo .photo-viewport { aspect-ratio: 1.18; border-radius: 49% 49% 0 0 / 29% 29% 0 0; }
.reserve-photo img { object-position: 60% 50%; }
.reserve .section-title { font-size: clamp(31px, 3.65vw, 54px); }
.reserve-copy > p:not(.eyebrow) { color: var(--muted); }
.phone-button { margin-block: 20px 8px; justify-content: start; min-height: 70px; padding-inline: 17px 25px; gap: 14px; }
.phone-button svg { width: 23px; height: 23px; }
.phone-button small { display: block; font-size: 12px; }
.phone-button strong { display: block; margin-top: 3px; font: 400 clamp(25px, 3.2vw, 34px)/1 var(--latin); font-variant-numeric: lining-nums tabular-nums; }
.reserve-hours { font-size: 14px; }
.reserve-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 0 16px; }
.error-page p:not(.eyebrow) { margin-block: 18px; }

.site-footer { background: var(--brown-deep); color: #fff4e4; padding-block: clamp(40px, 5vw, 69px) 14px; }
.site-footer :focus-visible, .signature :focus-visible { outline-color: var(--gold); }
.footer-top, .footer-demo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 38px; padding-bottom: 22px; align-items: start; }
.footer-brand { color: #fff4e4; font-size: clamp(32px, 4vw, 49px); }
.footer-brand .logo-dot { color: var(--gold); }
.footer-locale { margin-top: 5px; font-size: 14px; color: #e9d6bd; }
.footer-links { justify-self: end; display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-demo { border-block: 1px solid #8d6f60; padding-block: 20px; }
.footer-demo h2 { font-size: 16px; margin-bottom: 4px; }
.footer-demo p { color: #e9d6bd; font-size: 13px; max-width: 62ch; }
.footer-sources { margin-top: 9px; }
.footer-demo > a { justify-self: end; }
.footer-end { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; font-size: 11px; color: #e9d6bd; letter-spacing: .05em; }
.footer-end .text-link { font-size: 12px; }

@media (max-width: 970px) {
  .hero-break { display: initial; }
  .hero-actions { column-gap: 12px; }
  .quick { grid-template-columns: 1fr auto; }
  .quick-times > div { justify-content: flex-start; }
  .visit-times > div { align-content: start; }
}
@media (max-width: 740px) {
  :root { --gutter: clamp(17px, 5vw, 34px); }
  html { scroll-padding-top: 68px; }
  body { font-size: 16px; line-height: 1.82; }
  .section-pad { padding-block: 63px; }
  .header-inner { min-height: 57px; gap: 9px; grid-template-columns: 1fr auto 40px; }
  .brand { gap: 6px; font-size: 23px; }
  .logo-mark { width: 27px; }
  .logo-mark svg { width: 17px; height: 17px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .nav-wide { display: none; }
  .nav-small { display: inline; }
  .nav-social { border: 0; width: 40px; height: 44px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 23px; }
  .hero-copy { display: contents; }
  .hero-copy > *, .hero-photo { grid-column: 1; }
  .hero-copy .eyebrow { grid-row: 1; }
  .hero-category { grid-row: 2; margin-top: 7px; font-size: 13px; }
  .hero h1 { grid-row: 3; font-size: clamp(41px, 9.8vw, 68px); margin: 8px 0 17px -.045em; }
  .hero h1 br { display: none; }
  .hero-photo { grid-row: 4; }
  .hero-photo .photo-viewport { aspect-ratio: 1.35; border-top-left-radius: 36% 44%; }
  .hero-desc { grid-row: 5; margin-top: 15px; }
  .hero-break { display: none; }
  .hero-actions { grid-row: 6; margin-top: 13px; column-gap: 11px; }
  .hero-actions .button { padding-inline: 11px; }
  .hero-actions > .text-link, .hero-actions > .button { min-height: 46px; font-size: 13px; gap: 5px; }
  .quick { grid-template-columns: 1fr; margin-top: 20px; }
  .quick-times > div { display: grid; padding: 10px 11px 11px; gap: 4px; }
  .quick-times > div:last-child { border-right: none; }
  .quick-note { min-height: 42px; border-top: 1px solid var(--line); padding: 6px 11px; font-size: 12px; }
  .times dd { font-size: clamp(23px, 4.3vw, 29px); }
  .chapter { min-height: 52px; }
  .signature-head { grid-template-columns: 1fr; gap: 10px; }
  .signature-head > p:last-child { margin-top: 3px; }
  .signature-stage { margin-top: 20px; padding-top: clamp(23px, 7vw, 45px); }
  .signature-type { font-size: clamp(36px, 10vw, 71px); }
  .signature-photo { width: 96%; }
  .signature-photo .photo-viewport { aspect-ratio: 1.57; }
  .signature-index { display: none; }
  .ingredient-rule > div { grid-template-columns: 19px 1fr; gap: 4px 5px; }
  .ingredient-rule > div + div { padding-left: 9px; }
  .ingredient-rule p { font-size: 13px; }
  .option-grid, .about-grid, .visit-grid, .menu-intro, .menu-board-inner, .reserve-grid { grid-template-columns: 1fr; }
  .option-grid { gap: 28px; }
  .options-head { margin-bottom: 22px; }
  .option-copy { padding-top: 13px; }
  .about-grid { gap: 5px; }
  .about-copy p + p { margin-top: 12px; }
  .visit-times > div { justify-content: flex-start; }
  .visit-facts > div { grid-template-columns: 3.8em 1fr; gap: 7px; }
  .map iframe { min-height: 260px; }
  .menu-intro { padding-top: 6px; gap: 18px; }
  .menu-intro h1 { font-size: clamp(44px, 9vw, 65px); margin: 8px 0 14px -.04em; }
  .menu-intro h1 br { display: none; }
  .menu-cover .photo-viewport { aspect-ratio: 1.55; }
  .menu-jump { gap: 0 10px; margin-top: 10px; }
  .menu-jump a { font-size: 13px; gap: 3px; }
  .menu-board-inner { gap: 28px; }
  .menu-column-head { margin-bottom: 12px; }
  .menu-row { min-height: 74px; }
  .reserve-photo { order: 1; }
  .reserve-photo .photo-viewport { aspect-ratio: 1.47; }
  .footer-top, .footer-demo { grid-template-columns: 1fr; gap: 8px; }
  .footer-brand { font-size: 35px; }
  .footer-links, .footer-demo > a { justify-self: start; }
  .footer-locale { margin-top: 2px; }
}
@media (max-width: 490px) {
  .hero h1 br, .menu-intro h1 br { display: initial; }
}
@media (max-width: 355px) {
  .header-inner, .site-nav { gap: 7px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-social { display: none; }
  .hero-actions > .button, .hero-actions > .text-link { font-size: 12px; }
  .hero-actions { column-gap: 8px; }
  .hero-actions .button { padding-inline: 9px; }
  .menu-jump a { font-size: 12px; }
  .menu-jump { gap: 0 7px; }
}

/* Scroll styles are opt-in via JS; the base composition stays readable without it. */
.has-scroll-effects .hero-photo {
  --hero-pan: clamp(37px, 6vw, 88px);
  --hero-arc: calc(43% - var(--hero-progress) * 28%);
}
.has-scroll-effects .hero-photo .photo-viewport { border-top-left-radius: var(--hero-arc) var(--hero-arc); }
.has-scroll-effects .hero-photo img {
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% + var(--hero-pan));
  transform: translate3d(0, calc(var(--hero-pan) * (.80 * (var(--hero-progress) - 1))), 0);
}
@media (min-width: 741px) {
  .has-scroll-effects .hero h1 { transform: translate3d(0, calc(-26px * var(--hero-progress)), 0); }
}

.has-scroll-effects .chapter-rule::after {
  transform: scaleX(var(--chapter-progress));
}
.has-scroll-effects .signature {
  border-top-left-radius: calc(clamp(52px, 12vw, 192px) - var(--section-progress) * clamp(18px, 4vw, 62px))
    calc(clamp(42px, 9vw, 145px) - var(--section-progress) * clamp(12px, 3vw, 42px));
}
.has-scroll-effects .signature-stage {
  --cake-pan: clamp(34px, 5vw, 66px);
  --mask-edge: calc(1 - var(--mask-progress));
  --type-x: clamp(7px, 2.4vw, 34px);
  --type-y: clamp(48px, 5.7vw, 82px);
}
.has-scroll-effects .signature-photo .photo-viewport {
  clip-path: inset(calc(13% * var(--mask-edge)) calc(22% * var(--mask-edge)) calc(9% * var(--mask-edge))
    calc(22% * var(--mask-edge)) round calc(49% * var(--mask-edge)) calc(49% * var(--mask-edge)) 0 0
    / calc(32% * var(--mask-edge)) calc(32% * var(--mask-edge)) 0 0);
}
.has-scroll-effects .signature-photo img {
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% + var(--cake-pan));
  transform: translate3d(0, calc(var(--cake-pan) * (.90 * (var(--cake-progress) - 1))), 0);
}
.has-scroll-effects .signature-photo figcaption {
  right: calc(11px + 22% * var(--mask-edge));
  bottom: calc(10px + 9% * var(--mask-edge));
}
.has-scroll-effects .signature-type {
  transform: translate3d(calc(var(--type-x) * (var(--type-progress) - .5)),
    calc(var(--type-y) * (.57 - var(--type-progress))), 0);
}
.has-scroll-effects .signature-orbit path:first-child {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--mask-progress));
}
.has-scroll-effects .option-photo img {
  --cafe-pan: clamp(27px, 4vw, 56px);
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% + var(--cafe-pan));
  transform: translate3d(0, calc(var(--cafe-pan) * (.85 * (var(--cafe-progress) - 1))), 0);
}
.has-scroll-effects .cake-art-slice {
  transform: translate(calc(19px * var(--art-progress)), calc(-9px * var(--art-progress)));
}
@media (max-width: 740px) {
  .has-scroll-effects .hero-photo {
    --hero-pan: clamp(31px, 8.5vw, 55px);
    --hero-arc: calc(36% - var(--hero-progress) * 24%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* A small welcome, followed by the actual cake. */
.opening {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}
.opening[hidden] { display: none; }
.opening-scene { width: min(100%, 360px); text-align: center; transform: translateY(-12px); }
.opening-art { display: block; width: clamp(195px, 24vw, 260px); height: auto; margin: 0 auto 3px; }
.opening-halo { transform-origin: 130px 105px; }
.opening-slice { transform-origin: 132px 153px; }
.opening-shadow, .opening-plate { transform-origin: 132px 164px; }
.opening-sparkles { transform-origin: 130px 105px; }
.opening-wordmark { font: 700 clamp(34px, 5.5vw, 43px)/1.2 var(--latin); letter-spacing: -.055em; }
.opening-wordmark span { color: #a6642c; }
.opening-skip {
  position: absolute;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  color: var(--muted);
  font: 500 12px/1.5 var(--sans);
  cursor: pointer;
}
.opening-skip:hover { background: var(--gold-light); }
.opening-replay {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .24em;
  cursor: pointer;
}
.opening-replay[hidden] { display: none; }
.footer-end { flex-wrap: wrap; column-gap: 14px; }

.opening.is-playing { animation: opening-curtain 1.65s cubic-bezier(.65, 0, .35, 1) both; }
.is-playing .opening-halo { animation: opening-bloom .8s cubic-bezier(.2, .7, .3, 1) both; }
.is-playing .opening-slice { animation: opening-hop .68s .06s cubic-bezier(.22, .7, .28, 1) both; }
.is-playing .opening-plate { animation: opening-arrive .4s both; }
.is-playing .opening-shadow { animation: opening-shadow .68s .06s both; }
.is-playing .opening-sparkles { animation: opening-twinkle .5s .32s both; }
.is-playing .opening-wordmark { animation: opening-arrive .42s .18s both; }
.opening.is-dismissed { animation: opening-dismiss .16s ease-out both; }

@keyframes opening-curtain {
  0%, 72% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0 round 0 0 38% 38%); }
}
@keyframes opening-bloom {
  from { transform: scale(.65); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes opening-hop {
  0% { opacity: 0; transform: translateY(-24px) rotate(-9deg) scale(.9); }
  55% { opacity: 1; transform: translateY(3px) rotate(3deg) scale(1.035, .97); }
  78% { transform: translateY(-3px) rotate(-1deg) scale(.99, 1.015); }
  100% { opacity: 1; transform: none; }
}
@keyframes opening-shadow {
  0% { opacity: 0; transform: scaleX(.65); }
  55% { opacity: .2; transform: scaleX(1.05); }
  100% { opacity: .16; transform: scaleX(1); }
}
@keyframes opening-twinkle {
  0% { opacity: 0; transform: scale(.6) rotate(-8deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes opening-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes opening-dismiss { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .opening.is-playing { animation: opening-dismiss .18s ease-out both; }
  .opening-scene * { animation: none !important; }
}
