/* ==========================================================================
   Congusto — Ristorante & Pizzeria Dortmund
   Visual system: Italian green / red accents, burgundy, warm gold, cream.
   ========================================================================== */

:root {
  --green: #009246;
  --red: #ce2b37;
  --burgundy: #520d19;
  --burgundy-deep: #320911;
  --gold: #d4af37;
  --gold-soft: #e7cd85;
  --gold-ink: #7d5f18;
  --cream: #f7f5ec;
  --cream-deep: #efeadd;
  --walnut: #33251d;
  --ink: #241b18;
  --muted: #6a6058;
  --line: rgba(51, 37, 29, 0.14);
  --line-light: rgba(247, 245, 236, 0.18);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 6vw, 64px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; }

::selection { background: var(--gold); color: var(--burgundy-deep); }

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

[hidden] { display: none !important; }

/* ---------- Layout helpers ---------- */

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

.section { padding-block: clamp(84px, 11vw, 148px); }

.kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  gap: 14px;
}

.kicker::after {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.01em;
  color: var(--burgundy);
  margin-top: 16px;
  text-wrap: balance;
}

.h2--light { color: var(--cream); }

.lead {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  color: #4a3e38;
  max-width: 46ch;
}

.section-lead {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  color: var(--muted);
  max-width: 48ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head .h2 { max-width: 18ch; }
.section-head .section-lead { padding-bottom: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 160ms var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn--gold { background: var(--gold); color: #2d2014; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 245, 236, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
  .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
}

.btn__icon { width: 15px; height: 15px; }

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 12px 18px;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 0.8rem;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Welcome / language screen ---------- */

.welcome {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(150deg, #2b0a11 0%, var(--burgundy) 52%, #241b18 100%);
}

.lang-chosen .welcome { display: none; }

.welcome :focus-visible { outline-color: var(--cream); }

.welcome__inner {
  width: min(100%, 560px);
  text-align: center;
  color: var(--cream);
}

.welcome__eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  font-weight: 600;
}

.welcome__brand {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 18px 0 20px;
}

.welcome__tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 236, 0.86);
}

.welcome__prompt {
  margin-top: 34px;
  font-size: 0.82rem;
  color: rgba(247, 245, 236, 0.55);
}

.welcome__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.welcome__note {
  margin-top: 40px;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: rgba(247, 245, 236, 0.4);
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 245, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(36, 27, 24, 0.08); }

.header__inner {
  height: 100%;
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--burgundy);
}

.brand__sub {
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--burgundy); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.lang-switch {
  min-width: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out),
              transform 160ms var(--ease-out);
}

.lang-switch:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: transform 160ms var(--ease-out);
}

.nav-toggle:active { transform: scale(0.94); }

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--burgundy);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21.5px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: clamp(520px, calc(100svh - var(--header-h)), 940px);
  min-height: 520px;
  overflow: hidden;
  background: var(--burgundy-deep);
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 45%, rgba(36, 27, 24, 0) 35%, rgba(36, 27, 24, 0.42) 100%),
    linear-gradient(180deg, rgba(36, 27, 24, 0.5) 0%, rgba(82, 13, 25, 0.28) 42%, rgba(36, 27, 24, 0.66) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px var(--gutter) 64px;
  color: var(--cream);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(0.6rem, 0.85vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-soft);
  animation: heroIn 1s var(--ease) 0.15s both;
}

.hero__badge::before,
.hero__badge::after {
  content: "";
  width: clamp(24px, 5vw, 56px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 12.5vw, 9.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: clamp(0.06em, 1.2vw, 0.16em);
  margin: clamp(14px, 2vw, 26px) 0 clamp(16px, 2vw, 28px);
  padding-left: clamp(0.06em, 1.2vw, 0.16em);
  text-shadow: 0 8px 40px rgba(20, 10, 8, 0.35);
  animation: heroIn 1.1s var(--ease) 0.3s both;
}

.hero__tagline {
  font-size: clamp(0.74rem, 1.15vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 245, 236, 0.9);
  animation: heroIn 1.1s var(--ease) 0.45s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero__play {
  position: absolute;
  right: clamp(16px, 4vw, 36px);
  bottom: clamp(16px, 4vw, 36px);
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 245, 236, 0.5);
  border-radius: 50%;
  background: rgba(36, 27, 24, 0.45);
  color: var(--cream);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
              transform 160ms var(--ease-out);
}

.hero__play:active { transform: scale(0.94); }

.hero__play svg { width: 24px; height: 24px; }

@media (hover: hover) and (pointer: fine) {
  .hero__play:hover { border-color: var(--gold); background: rgba(82, 13, 25, 0.6); }
}

/* ---------- Story ---------- */

.story { background: var(--cream); }

.story__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.story__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
}

.story__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.story__aside .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--burgundy);
}

.story__media {
  margin-top: clamp(48px, 6vw, 76px);
}

.story__media img {
  width: 100%;
  height: clamp(220px, 32vw, 440px);
  object-fit: cover;
  object-position: center 55%;
  border-radius: 2px;
}

.story__media figcaption {
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------- Menu ---------- */

.menu {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(160deg, var(--burgundy-deep) 0%, var(--burgundy) 60%, #3a0b13 100%);
  color: var(--cream);
}

.menu .section-lead { color: rgba(247, 245, 236, 0.74); }

.menu .kicker { color: var(--gold); }

.menu .section-head { margin-bottom: clamp(30px, 4vw, 48px); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.menu-card {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line-light);
  background: rgba(247, 245, 236, 0.035);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .menu-card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(247, 245, 236, 0.06);
    transform: translateY(-4px);
  }
}

.menu-card__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.menu-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin: 22px 0 12px;
  color: var(--cream);
}

.menu-card p {
  font-size: 0.92rem;
  color: rgba(247, 245, 236, 0.68);
  max-width: 34ch;
}

.menu-note {
  margin-top: clamp(26px, 3vw, 38px);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 236, 0.5);
}

/* ---------- Gallery ---------- */

.gallery { background: var(--cream-deep); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #ddd6c8;
  cursor: zoom-in;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

.h-sm { height: clamp(170px, 17vw, 250px); }
.h-md { height: clamp(210px, 23vw, 330px); }
.h-lg { height: clamp(250px, 27vw, 390px); }
.h-xl { height: clamp(290px, 31vw, 450px); }

.gallery-item picture { display: block; width: 100%; height: 100%; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease), filter 0.4s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(36, 27, 24, 0.35));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.045); }
  .gallery-item:hover::after { opacity: 1; }
}

.gallery-item:focus-visible { outline-offset: 4px; }

.disclaimer {
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq__head .section-lead { margin-top: 16px; }

.faq__list { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: clamp(18px, 2.2vw, 24px) 48px clamp(18px, 2.2vw, 24px) 0;
  font-weight: 600;
  color: var(--burgundy);
  transition: color 0.2s var(--ease-out);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 13px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--gold-ink);
  transition: transform 220ms var(--ease-out);
}

.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }

.faq__item summary:hover { color: var(--ink); }

.faq__item p {
  padding: 0 48px clamp(20px, 2.4vw, 26px) 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Visit ---------- */

.visit {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
    linear-gradient(150deg, #2b0a11, var(--burgundy) 70%, #241b18);
  color: var(--cream);
  text-align: center;
}

.visit__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visit .kicker { justify-content: center; color: var(--gold); }
.visit .kicker::after { display: none; }

.visit .h2 { color: var(--cream); }

.visit .section-lead {
  color: rgba(247, 245, 236, 0.72);
  margin: 18px auto 34px;
  text-align: center;
}

.visit__domain {
  margin-top: 34px;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 245, 236, 0.45);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1d1512;
  color: rgba(247, 245, 236, 0.62);
  padding-block: clamp(44px, 6vw, 64px);
  font-size: 0.76rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.footer__desc {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
  transition: color 0.2s ease;
}

.footer__nav a:hover { color: var(--gold); }

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  font-size: 0.72rem;
}

.footer__meta a:hover { color: var(--gold); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(20, 14, 12, 0.95);
  backdrop-filter: blur(8px);
}

.lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2.5vw, 24px) clamp(16px, 4vw, 40px);
}

.lightbox__counter {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(247, 245, 236, 0.6);
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(247, 245, 236, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__btn svg { width: 20px; height: 20px; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  max-width: min(1200px, 100%);
}

.lightbox__image {
  max-width: 100%;
  max-height: 74svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s ease;
}

.lightbox__caption {
  max-width: 76ch;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  color: rgba(247, 245, 236, 0.68);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: clamp(42px, 5vw, 54px);
  height: clamp(42px, 5vw, 54px);
  padding: 0;
  border: 1px solid rgba(247, 245, 236, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.lightbox__nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(82, 13, 25, 0.5); }
.lightbox__nav svg { width: 22px; height: 22px; }

.lightbox__prev { left: clamp(8px, 2vw, 28px); }
.lightbox__next { right: clamp(8px, 2vw, 28px); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  :root { --header-h: 76px; }

  .story__head,
  .story__body { grid-template-columns: 1fr; gap: 22px; }
  .story__body .signature { grid-column: 1; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item[class*="span-"] { grid-column: auto; }
  .gallery-item[class*="h-"] { height: clamp(170px, 27vw, 300px); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__meta { text-align: left; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px var(--gutter) 30px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(36, 27, 24, 0.09);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a { font-size: 0.78rem; }

  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: baseline; }
  .menu-card__num { grid-row: span 2; }
  .menu-card h3 { margin: 0 0 8px; }

  .faq__inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .hero { min-height: 460px; }
  .hero__content { padding-bottom: 48px; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item[class*="h-"] { height: clamp(190px, 54vw, 300px); }

  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__meta { text-align: left; }

  .lightbox { padding: 56px 12px 24px; }
  .lightbox__image { max-height: 64svh; }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox__caption { display: none; }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.55rem, 12.8vw, 3.2rem);
    letter-spacing: 0.05em;
    padding-left: 0.05em;
  }

  .hero__tagline { font-size: 0.68rem; letter-spacing: 0.18em; }
  .hero__badge { font-size: 0.56rem; letter-spacing: 0.24em; gap: 12px; }
  .brand__name { font-size: 1.35rem; }
  .brand__sub { font-size: 0.48rem; }
}

/* ---------- Motion & contrast preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .gallery-item:hover img { transform: none; }
}

@media print {
  .site-header, .welcome, .lightbox, .hero__play, .hero__video { display: none !important; }
  .hero { height: auto; min-height: 0; background: none; color: var(--ink); }
  .hero__content { color: var(--ink); }
  body { background: #fff; }
}
