@font-face {
  font-family: "Shippori Mincho";
  src: url("assets/fonts/shippori-mincho-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("assets/fonts/zen-kaku-gothic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("assets/fonts/zen-kaku-gothic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fcfcfb;
  --paper-2: #f4f3f3;
  --ink: #1b1a1c;
  --ink-2: #56535a;
  --ink-3: #75727a;
  --line: #e4e1e3;
  --line-strong: #c9c5c9;
  --red: #c8102e;
  --red-deep: #a10c24;
  --blush: #fbeef0;

  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;

  --gutter: clamp(16px, 4.6vw, 72px);
  --maxw: 1160px;
  --header-h: 60px;
  --section-y: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.25rem + 2.7vw, 3.35rem);
  line-height: 1.14;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 0.98rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  transition: color 0.2s var(--ease);
}
.link:hover { color: var(--red); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }

.jp {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--red);
  writing-mode: vertical-rl;
  letter-spacing: 0.32em;
  line-height: 1;
}
.jp--label {
  flex: none;
  margin-top: 0.45em;
  font-size: 1.05rem;
}
.title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: box-shadow 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(252 252 251 / 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding-inline: var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter) + 160px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}
.brand__mark { width: 36px; height: 36px; }
.brand__name {
  display: flex;
  flex-direction: column;
  font: 600 1.12rem/1.05 var(--serif);
  letter-spacing: 0.005em;
}
.brand__sub {
  font: 700 0.64rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  font: 700 0.9rem/1 var(--sans);
  cursor: pointer;
}
.nav-toggle__icon { display: grid; gap: 6px; width: 22px; }
.nav-toggle__icon span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.site-header__cta { display: none; }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 29;
  display: flex;
  flex-direction: column;
  padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--paper);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.js .site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
html:not(.js) .site-nav { position: static; visibility: visible; opacity: 1; transform: none; }

.site-nav__list { display: grid; gap: 4px; }
.site-nav__list a {
  display: block;
  padding: 10px 0;
  font: 600 2.1rem/1.2 var(--serif);
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--red); }
.site-nav__foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}
.site-nav__foot a { color: var(--ink); font-weight: 700; }
.site-nav__branch {
  position: absolute;
  right: -12%;
  bottom: 8%;
  width: min(78vw, 420px);
  transform: scaleX(-1);
  pointer-events: none;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-header__cta { display: inline-flex; min-height: 44px; padding: 0 20px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.22rem; }

  .site-nav,
  .js .site-nav.is-open {
    position: static;
    inset: auto;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-right: 20px; }
  .site-nav__list a {
    padding: 8px 0;
    font: 700 0.95rem/1 var(--sans);
    letter-spacing: 0.01em;
    background: linear-gradient(var(--red), var(--red)) left bottom / 0 1.5px no-repeat;
    transition: background-size 0.3s var(--ease), color 0.2s;
  }
  .site-nav__list a:hover,
  .site-nav__list a.is-current { color: var(--ink); background-size: 100% 1.5px; }
  .site-nav__foot, .site-nav__branch { display: none; }
}

.branch {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.branch img {
  position: absolute;
  width: 100%;
  height: auto;
  max-width: none;
}
.branch--flip img { transform: scaleX(-1); }

.js .branch img { transition: clip-path 1.8s var(--ease); }
.js .branch[data-side="right"]:not(.is-painted) img { clip-path: inset(0 0 0 100%); }
.js .branch[data-side="left"]:not(.is-painted) img { clip-path: inset(0 100% 0 0); }
.js .branch--flip[data-side="left"]:not(.is-painted) img { clip-path: inset(0 0 0 100%); }

.hero {
  position: relative;
  padding-top: 44px;
}

.branch--hero {
  top: 0;
  right: 0;
  width: 74vw;
  height: 470px;
}
.branch--hero img { top: -6px; right: -16%; width: 116%; }

.drift {
  position: absolute;
  width: 11px;
  height: 13px;
  border-radius: 80% 0 80% 20%;
  background: radial-gradient(circle at 30% 70%, #e9a1ae, #fbe1e5 70%);
  opacity: 0;
}
.drift--1 { top: 36%; right: 26%; }
.drift--2 { top: 44%; right: 12%; width: 9px; height: 11px; }
.drift--3 { top: 30%; right: 40%; width: 8px; height: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .drift { animation: drift 16s linear infinite; }
  .drift--2 { animation-delay: -6s; animation-duration: 19s; }
  .drift--3 { animation-delay: -11s; animation-duration: 22s; }
}
@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  10%  { opacity: 0.9; }
  50%  { transform: translate(-26px, 120px) rotate(160deg); }
  85%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-6px, 260px) rotate(320deg); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  padding-inline: var(--gutter);
}

.hero__media {
  position: relative;
  width: 68vw;
  max-width: 420px;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.jp--hero {
  position: absolute;
  left: calc(100% + 12px);
  bottom: 2px;
  font-size: 1.15rem;
}

.hero__text { padding-top: 28px; }
.hero h1 {
  font-size: clamp(2.3rem, 1.15rem + 4.4vw, 3.1rem);
  line-height: 1.1;
}
.nw { white-space: nowrap; }
.hero__lede {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.6;
}
.hero .actions { margin-top: 26px; }

.facts {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 40px var(--gutter) 0;
  border-top: 1px solid var(--line);
}
.facts__item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.95rem;
}
.facts__item + .facts__item { border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--red); }
.facts dd { color: var(--ink); }

@media (min-width: 640px) {
  .branch--hero { width: 60vw; height: 560px; }
}

@media (min-width: 900px) {
  .hero { padding-top: clamp(56px, 7vw, 104px); }
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(40px, 4.5vw, 80px);
    padding-left: max(var(--gutter), (100% - var(--maxw)) / 2);
    padding-right: clamp(190px, 21vw, 440px);
  }
  .hero__media { order: 2; width: 100%; max-width: 480px; }
  .hero__text { order: 1; padding: 0 0 24px; }
  .hero h1 { font-size: clamp(2.6rem, 1rem + 3.3vw, 3.7rem); }
  .hero__lede { font-size: 1.18rem; margin-top: 22px; max-width: 40ch; }
  .hero .actions { margin-top: 34px; }
  .jp--hero { font-size: 1.3rem; left: auto; right: calc(100% + 20px); bottom: 4px; }

  .branch--hero {
    top: 0;
    width: clamp(460px, calc(21vw + 300px), 900px);
    height: 100%;
  }
  .branch--hero img { top: -2%; right: -2%; width: 102%; }

  .facts {
    grid-template-columns: repeat(3, 1fr);
    width: min(100% - 2 * var(--gutter), var(--maxw));
    margin: clamp(48px, 6vw, 88px) auto 0;
    border-top: 0;
  }
  .facts__item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 18px 24px 0 0;
    border-top: 1px solid var(--line);
  }
  .facts__item + .facts__item { border-top: 1px solid var(--line); padding-left: 24px; border-left: 1px solid var(--line); }
  .facts dt { font-size: 0.82rem; letter-spacing: 0.04em; }
}

.specials { padding-top: var(--section-y); }

.specials__head { display: grid; gap: 14px; }
.specials__head h2 { max-width: 16ch; }
.specials__head p { max-width: 46ch; color: var(--ink-2); }

.rail { margin-top: clamp(32px, 4vw, 56px); }
.rail__track {
  --inset: max(var(--gutter), (100% - var(--maxw)) / 2);
  display: flex;
  gap: 14px;
  padding: 4px var(--inset) 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline-offset: -2px; }

.rail__item {
  flex: 0 0 min(72vw, 340px);
  scroll-snap-align: start;
}
.rail__item:nth-child(even) { margin-top: 28px; }
.rail__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}
.rail__item figcaption {
  margin-top: 12px;
  font: 600 1.06rem/1.35 var(--serif);
}

.rail__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.rail__buttons { display: none; gap: 10px; }
.js .rail__buttons { display: flex; }
@media (max-width: 699px) {
  .js .rail__buttons { display: none; }
}

@media (min-width: 900px) {
  .specials__head { grid-template-columns: minmax(0, 1fr); }
  .rail__track { gap: 28px; }
  .rail__item { flex-basis: clamp(260px, 25vw, 360px); }
  .rail__item:nth-child(even) { margin-top: 56px; }
}

.menu {
  position: relative;
  padding-block: var(--section-y);
}
.branch--menu { display: none; }

.menu__grid {
  position: relative;
  z-index: 1;
  display: grid;
}
.menu__aside { display: contents; }
.menu__aside > .title-row,
.menu__intro { order: 1; }
.menu__intro { margin-top: 12px; max-width: 42ch; color: var(--ink-2); }
.menu__photo { order: 2; margin-top: 28px; }
.menu__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tabs { order: 3; }
.menu__panels { order: 4; }

.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 28px calc(-1 * var(--gutter)) 0;
  padding: 10px var(--gutter);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
html:not(.js) .tabs { display: none; }

.tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s;
}
.tab:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

.panel { padding-top: 28px; }
.panel:focus-visible { outline-offset: 8px; }
.js .panel[hidden] { display: none; }
html:not(.js) .panel + .panel { margin-top: 32px; }

.panel__title { font: 600 1.5rem/1.3 var(--serif); margin-bottom: 18px; }
.js .panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel__note {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--red-deep);
  font-size: 0.9rem;
  font-weight: 700;
}
.panel__sub {
  margin: 40px 0 18px;
  font: 600 1.25rem/1.3 var(--serif);
}
.panel__photo { margin-top: 36px; width: min(64%, 320px); }
.panel__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.dishes { display: grid; gap: 24px; }
.dishes--compact { gap: 14px; }

.dish {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(16px, 1fr) auto;
  align-items: baseline;
  align-content: start;
}
.dish::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0 8px 0.5em;
  border-bottom: 2px dotted var(--line-strong);
}
.dish__name {
  grid-column: 1;
  grid-row: 1;
  font: 600 1.14rem/1.35 var(--serif);
}
.dish__price {
  grid-column: 3;
  grid-row: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dish__desc,
.dish__extra {
  grid-column: 1 / -1;
  margin-top: 4px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.dish__extra span { color: var(--red-deep); font-weight: 700; white-space: nowrap; }
.dish--special .dish__name,
.dish--special .dish__price { color: var(--red); }

@media (min-width: 900px) {
  .branch--menu {
    display: block;
    left: 0;
    bottom: 0;
    width: clamp(220px, calc((100vw - var(--maxw)) / 2 + 150px), 520px);
    height: 92%;
  }
  .branch--menu img { bottom: 0; left: -8%; width: 108%; }

  .menu__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(48px, 6vw, 110px);
    align-items: start;
  }
  .menu__aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
  .menu__photo { margin-top: 36px; }

  .tabs {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 36px 0 0;
    padding: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .tab {
    min-height: 44px;
    padding: 0 0 0 20px;
    border-radius: 0;
    box-shadow: inset 2px 0 0 var(--line);
    font: 600 1.28rem/1.2 var(--serif);
    text-align: left;
  }
  .tab:hover { box-shadow: inset 2px 0 0 var(--ink); background: none; }
  .tab[aria-selected="true"] { background: none; color: var(--red); box-shadow: inset 2px 0 0 var(--red); }

  .panel { padding-top: 6px; }
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
  .dishes--compact { gap: 16px 48px; }
  .panel__photo { width: min(48%, 340px); margin-left: auto; }
}

.story {
  position: relative;
  padding-block: calc(var(--section-y) + 60px) var(--section-y);
  background: linear-gradient(var(--paper-2), var(--paper-2)) 0 0 / 100% 0 no-repeat;
}

.branch--story {
  top: 0;
  right: 0;
  width: 88vw;
  height: 300px;
}
.branch--story img { top: -10px; right: -6%; width: 106%; }

.story__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.story__photos { position: relative; }
.story__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__inset {
  position: relative;
  width: 54%;
  margin: -22% 0 0 auto;
}
.story__inset img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  outline: 8px solid var(--paper);
}
.story figcaption,
.visit figcaption {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.86rem;
  line-height: 1.5;
}
.story__main figcaption { max-width: 42%; }

.story__text > p { max-width: 54ch; color: var(--ink-2); }
.story__text > p + p { margin-top: 1em; }
.story__text h2 { margin-bottom: 22px; }

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding-left: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em; bottom: 0.5em;
  width: 1px;
  background: var(--line-strong);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  line-height: 1.55;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -25.5px; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--red);
}
.timeline__year { font: 600 1.1rem/1.4 var(--serif); color: var(--red); }

.motto {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 44px;
}
.motto__jp {
  writing-mode: vertical-rl;
  font: 600 1.45rem/1.2 var(--serif);
  letter-spacing: 0.18em;
  color: var(--red);
}
.motto figcaption { display: grid; gap: 6px; padding-top: 4px; }
.motto__de { font: 600 1.35rem/1.4 var(--serif); max-width: 18ch; }
.motto__src { color: var(--ink-3); font-size: 0.88rem; }

.press {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 36px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.press .link { color: var(--ink); }

@media (min-width: 640px) and (max-width: 899px) {
  .story__photos { width: 80%; }
  .branch--story { width: 58vw; height: 560px; }
}

@media (min-width: 900px) {
  .story { padding-top: var(--section-y); }
  .branch--story {
    width: clamp(300px, 36vw, 640px);
    height: 78%;
  }
  .branch--story img { top: 0; right: -2%; width: 102%; }

  .story__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 6vw, 110px);
    align-items: start;
  }
  .story__text { order: 1; padding-top: 12px; }
  .story__photos { order: 2; padding-top: clamp(60px, 8vw, 140px); }
  .story__main figcaption { max-width: none; margin-left: 44%; }
  .story__inset { width: 48%; margin: -26% 0 0 -8%; }
}

.heimat { position: relative; }

.heimat__body { display: flow-root; }
/* no heading here, so the body is the primary text and takes full ink */
.heimat__text > p { max-width: 62ch; color: var(--ink); }
.heimat__text > p + p { margin-top: 1em; }
.heimat__text > .heimat__close {
  margin-top: 24px;
  max-width: 24ch;
  color: var(--ink);
  font: 600 1.35rem/1.45 var(--serif);
}

.heimat__media {
  float: right;
  width: 42%;
  margin: 6px 0 16px 18px;
}
.heimat__photo img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; }

@media (min-width: 900px) {
  .heimat__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: clamp(48px, 6vw, 110px);
    align-items: center;
  }
  .heimat__media {
    float: none;
    grid-area: 1 / 2;
    width: auto;
    margin: 0;
  }
  .heimat__text { grid-area: 1 / 1; }
}

.visit {
  position: relative;
  padding-block: var(--section-y) 230px;
}

.branch--visit {
  left: 0;
  bottom: 0;
  width: 78vw;
  height: 240px;
}
.branch--visit img { bottom: -12%; left: -4%; width: 104%; }

.visit__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.visit__lede { margin-top: 14px; max-width: 44ch; color: var(--ink-2); }
.visit__info h2 { max-width: 14ch; }

.visit__blocks {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
.visit__block h3 {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact { display: grid; }
.contact a,
.site-footer__links a { display: inline-block; padding: 9px 0; }

.visit .actions { margin-top: 36px; }

.visit__photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
}
.visit__front { width: 74%; }
.visit__front img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.visit__inside { width: 48%; justify-self: start; margin-top: -34%; }
.visit__inside img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  outline: 8px solid var(--paper);
}

@media (min-width: 600px) {
  .visit__blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit__blocks .visit__block:nth-child(2) { grid-row: span 2; }
}

@media (min-width: 900px) {
  .visit { padding-bottom: var(--section-y); }
  .branch--visit {
    bottom: 0;
    width: clamp(320px, calc((100% - var(--maxw)) / 2 + 300px), 660px);
    height: 78%;
  }
  .branch--visit img { bottom: -4%; left: -3%; width: 103%; }

  .visit__info { order: 2; }
  .visit__photos { order: 1; }
  .visit__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 110px);
    align-items: center;
  }
  .visit__photos {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    gap: 20px;
  }
  .visit__front, .visit__inside { width: auto; margin: 0; }
  .visit__inside { justify-self: stretch; margin-bottom: 18%; outline: 0; }
  .visit__inside img { outline: 0; }
}

.site-footer {
  padding: 64px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
  text-align: center;
}
.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 40px;
}
.site-footer__brand { order: -1; }
.site-footer__col--contact { order: 1; }
.site-footer__legal { order: 2; }
.site-footer__logo { width: 124px; height: auto; }
.site-footer__col { display: grid; justify-items: center; }
.site-footer__label {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-footer__name {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font: 600 1.15rem/1.4 var(--serif);
}
.site-footer__links { display: grid; justify-items: center; }
.site-footer__route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 10px 0 18px;
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
}
.site-footer__route svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.site-footer__route:hover { color: var(--red-deep); }
.site-footer__legal {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: -16px;
  color: var(--ink-3);
  font-size: 0.84rem;
}
.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 4px;
  color: var(--ink-3);
  text-decoration: none;
}
.site-footer__credit img { width: auto; height: 28px; flex: none; }
.site-footer__credit span {
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.site-footer__credit:hover span { color: #2036d6; }

@media (min-width: 760px) {
  .site-footer { padding-top: 80px; }
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(32px, 6vw, 96px);
    row-gap: 48px;
  }
  .site-footer__brand,
  .site-footer__col--contact,
  .site-footer__legal { order: 0; }
  .site-footer__logo { width: 136px; }
  .site-footer__col--contact { justify-self: start; min-width: 200px; }
  .site-footer__col--visit { justify-self: end; min-width: 200px; }
  .site-footer__legal { grid-column: 1 / -1; }
}

.action-bar { display: none; }

@media (max-width: 899px) {
  .js .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgb(252 252 251 / 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .js .action-bar.is-visible { transform: none; }

  .action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
  }
  .action-bar svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
  .action-bar__main { background: var(--red); color: #fff; }
  .action-bar__main:active { background: var(--red-deep); }
  .action-bar__item {
    flex-direction: column;
    gap: 2px !important;
    font-size: 0.78rem !important;
  }
  .action-bar__item:active { background: var(--paper-2); }

  .js .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .branch img { clip-path: none !important; }
  .site-header, .action-bar, .rail__buttons { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .js .branch img { transition: none; clip-path: none !important; }
  .drift { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
