/* ============================================================
   HAREM — Türkische Spezialitäten, Freiburg
   Design System v1.0
   Palette: Tinte / Papier / Elfenbein / Harem-Rot / Messing
   Type:    Tinos (Display) · Caladea (Editorial/Menü) · Inter (UI)
   ============================================================ */

:root {
  --ink: #181410;
  --ink-2: #241d16;
  --ink-3: #322a21;
  --paper: #faf6ee;
  --paper-2: #f1eadb;
  --ivory: #f4ede0;
  --crimson: #a6192e;
  --crimson-dark: #84142a;
  --brass: #b98b41;
  --brass-light: #d8bc83;
  --muted: #6f6557;
  --muted-dark: #a99c89;
  --line: rgba(24, 20, 16, 0.14);
  --line-soft: rgba(24, 20, 16, 0.08);
  --line-dark: rgba(244, 237, 224, 0.16);

  --font-display: "Tinos", "Times New Roman", Times, serif;
  --font-serif: "Caladea", Cambria, Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.6rem, 6vw, 4.9rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.1rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.7rem);

  --wrap: 1180px;
  --pad: clamp(1.5rem, 4.5vw, 2.5rem);

  /* 8-point star tessellation, barely-there */
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Cg fill='none' stroke='rgba(24,20,16,0.05)' stroke-width='1'%3E%3Crect x='50' y='50' width='32' height='32'/%3E%3Crect x='50' y='50' width='32' height='32' transform='rotate(45 66 66)'/%3E%3C/g%3E%3Cg fill='rgba(24,20,16,0.05)'%3E%3Cpath d='M0 0l4 4-4 4-4-4z'/%3E%3Cpath d='M132 0l4 4-4 4-4-4z'/%3E%3Cpath d='M0 132l4 4-4 4-4-4z'/%3E%3Cpath d='M132 132l4 4-4 4-4-4z'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Cg fill='none' stroke='rgba(244,237,224,0.07)' stroke-width='1'%3E%3Crect x='50' y='50' width='32' height='32'/%3E%3Crect x='50' y='50' width='32' height='32' transform='rotate(45 66 66)'/%3E%3C/g%3E%3Cg fill='rgba(244,237,224,0.07)'%3E%3Cpath d='M0 0l4 4-4 4-4-4z'/%3E%3Cpath d='M132 0l4 4-4 4-4-4z'/%3E%3Cpath d='M0 132l4 4-4 4-4-4z'/%3E%3Cpath d='M132 132l4 4-4 4-4-4z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--crimson); color: var(--ivory); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--brass); }
.on-dark .eyebrow { color: var(--brass-light); }

.lead { font-size: 1.18rem; line-height: 1.7; }
.muted { color: var(--muted); }

/* 8-point star ornament */
.star {
  display: inline-block; width: 14px; height: 14px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.divider {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  color: var(--brass); margin: 0 auto;
}
.divider::before, .divider::after { content: ""; height: 1px; width: min(72px, 18vw); background: currentColor; opacity: 0.55; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  padding: 1.05em 2.1em; border: 1px solid transparent; border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--crimson); color: var(--ivory); }
.btn-primary:hover { background: var(--crimson-dark); color: #fff; }
.btn-ghost { border-color: var(--brass); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--brass); color: var(--ink); }
.on-dark .btn-ghost, .btn-ghost.light { color: var(--ivory); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  color: var(--ivory);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--pad);
  height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-brand { display: flex; align-items: baseline; gap: 0.8rem; text-decoration: none; color: inherit; }
.nav-brand svg { height: 26px; width: auto; display: block; transform: translateY(2px); }
.nav-brand .wordmark { fill: currentColor; transition: fill 0.35s ease; }
.nav-brand small {
  font-family: var(--font-sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.75;
}
.nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  opacity: 0.85; transition: opacity 0.2s ease; position: relative; padding: 0.4em 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass); transition: width 0.25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-phone {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-decoration: none;
  border: 1px solid var(--brass); border-radius: 2px; padding: 0.7em 1.3em;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--brass); color: var(--ink); }

.nav.solid, .nav.always-solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.solid .nav-brand .wordmark, .nav.always-solid .nav-brand .wordmark { fill: var(--crimson); }

.nav-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; padding: 0; margin-right: -0.5rem;
  align-items: center; justify-content: center;
}
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .nav-brand small { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  color: var(--ivory); display: grid; place-content: center; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  background-image: var(--pattern-dark);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; text-decoration: none; color: var(--ivory);
}
.mobile-menu a:hover { color: var(--brass-light); }
.mobile-menu .tel { font-family: var(--font-sans); font-size: 0.9rem; letter-spacing: 0.15em; color: var(--brass-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory); overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero-media .hero-fallback { background: url("../assets/img/poster.webp") center 42% / cover no-repeat; display: none; }
.hero.no-video .hero-media video { display: none; }
.hero.no-video .hero-media .hero-fallback { display: block; }
.hero-scrim { position: absolute; inset: 0; }
.hero-scrim::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(24, 20, 16, 0.42) 0%, rgba(24, 20, 16, 0.18) 38%, rgba(24, 20, 16, 0.62) 78%, rgba(24, 20, 16, 0.86) 100%);
}
.hero-scrim::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 20%, transparent 55%, rgba(24, 20, 16, 0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 9rem var(--pad) 0;
  max-width: 56rem; margin: 0 auto clamp(3rem, 9vh, 6rem);
}
.hero .eyebrow { color: var(--brass-light); }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 1.2rem; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero-sub { font-size: 1.15rem; max-width: 38rem; margin: 0 auto 2.2rem; opacity: 0.92; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-foot {
  position: relative; z-index: 2;
  margin-top: 4.5rem;
  border-top: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.hero-foot-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em;
}
.hero-foot-inner .star { width: 9px; height: 9px; color: var(--brass); }
.hero-foot-inner > div { display: flex; align-items: center; gap: 0.7em; opacity: 0.9; }
@media (max-width: 720px) { .hero-foot-inner { justify-content: center; } .hero-foot-inner .hf-extra { display: none; } }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
  bottom: 86px; width: 1px; height: 56px; overflow: hidden;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: var(--brass-light); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -50%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ============================================================
   PRESS BAR
   ============================================================ */
.press { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.press-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 2.4rem var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.press-label {
  font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 1rem;
}
.press-label::before, .press-label::after { content: ""; width: 30px; height: 1px; background: var(--line); }
.press-logos { display: flex; align-items: center; gap: clamp(1.6rem, 3.5vw, 3.2rem); flex-wrap: nowrap; justify-content: center; }
.press-logos a { display: block; opacity: 0.62; filter: grayscale(1); transition: opacity 0.25s ease, filter 0.25s ease; flex: none; }
.press-logos a:hover { opacity: 1; filter: none; }
.press-logos img { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
@media (max-width: 700px) { .press-logos { flex-wrap: wrap; gap: 1.8rem 2rem; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 44rem; }
.section-head.center { margin: 0 auto; text-align: center; }
.section h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; margin-bottom: 1.4rem; text-wrap: balance; }
.section h2 em { font-style: italic; color: var(--crimson); }
.on-dark .section h2 em, .section.on-dark h2 em { color: var(--brass-light); }

.bg-paper2 { background: var(--paper-2); }
.bg-pattern-light { background-image: var(--pattern-light); }
.on-dark { background: var(--ink); color: var(--ivory); }
.on-dark.bg-pattern-dark { background-image: var(--pattern-dark); }
.on-dark .muted { color: var(--muted-dark); }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-figure { position: relative; justify-self: center; }
.arch {
  border-radius: 999px 999px 4px 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(24, 20, 16, 0.45);
}
.about-figure .arch { width: min(360px, 78vw); }
.about-figure .arch img { aspect-ratio: 9 / 15; object-fit: cover; }
.about-figure::before {
  content: ""; position: absolute; inset: -16px 0 16px -16px;
  border: 1px solid var(--brass); border-radius: 999px 999px 4px 4px;
  z-index: -1; opacity: 0.6;
}
.about-figure figcaption {
  margin-top: 1.1rem; text-align: center;
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; margin-top: 2.2rem; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 0.8em; font-family: var(--font-sans); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; }
.facts .star { width: 10px; height: 10px; color: var(--crimson); }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
}

/* Specialty cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 3.2rem; }
.card { text-decoration: none; color: inherit; display: block; group: card; }
.card-img { position: relative; overflow: hidden; border-radius: 3px; }
.card-img::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(244, 237, 224, 0.25); border-radius: 3px; pointer-events: none; }
.card-img img { aspect-ratio: 4 / 4.7; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.card:hover .card-img img { transform: scale(1.045); }
.card-kicker { font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); margin: 1.4rem 0 0.45rem; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.99rem; margin-bottom: 0.8rem; }
.card-more { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); }
.card-more::after { content: " →"; transition: margin 0.2s ease; }
.card:hover .card-more::after { margin-left: 4px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; max-width: 26rem; margin-left: auto; margin-right: auto; } }

/* Tagesessen banner */
.banner { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.banner-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 2.6rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.banner h3 { font-size: 1.6rem; }

.banner p { margin: 0.3rem 0 0; color: var(--muted); }

/* Signature / dark menu preview */
.sig-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.menu-list { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.menu-row { display: grid; grid-template-columns: 1fr; gap: 0.4rem; align-items: baseline; }
.menu-row .name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: 0.015em; }
.menu-row .dots { grid-column: 1; grid-row: 1; align-self: baseline; }
.menu-row .desc { grid-column: 1 / -1; color: var(--muted-dark); font-size: 0.95rem; font-style: italic; }

.menu-row .name { position: relative; }
.menu-row .name .vbadge { margin-left: 0.6em; }
.sig-figure { position: relative; }
.sig-figure .arch img { aspect-ratio: 4 / 4.4; object-fit: cover; }
.sig-figure::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--brass); border-radius: 999px 999px 4px 4px; opacity: 0.45; z-index: 0;
}
.sig-figure .arch { position: relative; z-index: 1; }
@media (max-width: 880px) { .sig-grid { grid-template-columns: 1fr; } .sig-figure { max-width: 24rem; margin: 0 auto; } }

/* Veg badge */
.vbadge {
  display: inline-block; vertical-align: 0.18em;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 2px; padding: 0.22em 0.55em;
  color: #4a7c50; white-space: nowrap;
}
.on-dark .vbadge { color: #9dc9a3; }

/* Location */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
/* Prevent grid items from overflowing their track (min-width:auto default) on mobile */
.about-grid > *, .sig-grid > *, .visit-grid > * { min-width: 0; }
.visit-figure .arch img { aspect-ratio: 4 / 5; object-fit: cover; }
.visit-info h2 { margin-bottom: 1rem; }
.info-rows { margin: 2rem 0 0; display: grid; gap: 1.6rem; }
.info-row { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.info-row dt {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass);
  padding-top: 0.25em;
}
.info-row dd { margin: 0; }
.info-row dd strong { font-family: var(--font-display); font-size: 1.12rem; }
.hours { display: grid; gap: 0.35rem; }
.hours div { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 30rem; }
.hours span:first-child { white-space: nowrap; }
.hours span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.hours .closed { color: var(--crimson); }
.visit-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
@media (max-width: 880px) { .visit-grid { grid-template-columns: 1fr; } .info-row { grid-template-columns: 1fr; gap: 0.3rem; } }
@media (max-width: 560px) {
  .hours div { flex-direction: column; align-items: flex-start; gap: 0.1rem; max-width: none; }
  .hours span:last-child { text-align: left; }
  .facts { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--ivory); background-image: var(--pattern-dark); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 3rem; align-items: start; }
.footer-logo img { width: min(160px, 44vw); height: auto; }
.footer h4 {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass-light);
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { display: inline-block; padding: 0.3rem 0; color: var(--ivory); text-decoration: none; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.footer a:hover { opacity: 1; color: var(--brass-light); }
.footer .ig-link { display: inline-flex; align-items: center; gap: 0.45em; }
.footer .ig-link svg { width: 1.05em; height: 1.05em; flex: none; }
.footer-meta {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.06em; opacity: 0.7;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: auto minmax(0, 1fr); gap: 1.9rem 2rem; align-items: start; }
  .footer-grid > div:nth-child(3) { grid-column: 1 / -1; }
}

/* ============================================================
   MENU PAGE
   ============================================================ */
.page-hero {
  background: var(--ink); color: var(--ivory);
  background-image: var(--pattern-dark);
  padding: 10rem 0 4.2rem; text-align: center;
}
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
.page-hero .divider { margin-top: 1.8rem; }
.page-hero p { max-width: 36rem; margin: 1.2rem auto 0; color: var(--muted-dark); }

.menunav {
  position: sticky; top: 76px; z-index: 50;
  background: rgba(250, 246, 238, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.menunav ul {
  list-style: none; margin: 0 auto; padding: 0 var(--pad);
  max-width: var(--wrap);
  display: flex; gap: clamp(1.2rem, 4vw, 3rem); justify-content: safe center;
  overflow-x: auto; scrollbar-width: none;
}
.menunav ul::-webkit-scrollbar { display: none; }
.menunav a {
  display: block; padding: 1.05rem 0.2rem;
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.menunav a:hover { color: var(--ink); }
.menunav a.active { color: var(--crimson); border-bottom-color: var(--crimson); }

.menu-section { padding: clamp(3.6rem, 7vw, 5.5rem) 0; scroll-margin-top: 140px; }
.menu-section + .menu-section { border-top: 1px solid var(--line-soft); }
.menu-section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.menu-section-head .tr-name {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 0.9rem;
}
.menu-section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.menu-section-head .note { color: var(--muted); font-style: italic; margin: 1rem 0 0; }
.menu-items { max-width: 780px; margin: 0 auto; display: grid; gap: 1.85rem; }
.mi { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 1rem; align-items: baseline; }
.mi-num {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  color: var(--brass); letter-spacing: 0.05em; min-width: 2.2em;
  font-variant-numeric: tabular-nums; text-align: right; transform: translateY(-1px);
}
.mi-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: 0.01em; }
.mi-name .vbadge { margin-left: 0.7em; }
.mi-desc { grid-column: 2; color: var(--muted); font-size: 0.98rem; }
.mi.simple .mi-name { font-weight: 400; font-family: var(--font-serif); font-size: 1.05rem; }
.menu-callout {
  max-width: 780px; margin: 3.6rem auto 0; padding: 2rem 2.2rem;
  background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 3px;
  display: flex; gap: 1.4rem; align-items: flex-start;
}
.menu-callout .star { color: var(--crimson); margin-top: 0.4em; }
.menu-callout strong { font-family: var(--font-display); font-size: 1.15rem; }
.menu-callout p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.97rem; }
.menu-disclaimer {
  text-align: center; color: var(--muted); font-style: italic; font-size: 0.92rem;
  max-width: 40rem; margin: 0 auto; padding: 0 var(--pad) 4rem;
}
@media (max-width: 640px) {
  .mi-desc { grid-column: 2; }
  .menunav { top: 64px; }
}

/* ============================================================
   BRAND PAGE
   ============================================================ */
.brand-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.brand-section + .brand-section { border-top: 1px solid var(--line-soft); }
.brand-no {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--brass);
  letter-spacing: 0.2em; margin-bottom: 0.6rem; display: block;
}
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; margin-top: 2.6rem; }
.logo-tile {
  border: 1px solid var(--line-soft); border-radius: 3px; padding: 2.6rem 2rem;
  display: grid; place-items: center; min-height: 230px; background: #fff;
}
.logo-tile.dark { background: var(--ink); background-image: var(--pattern-dark); }
.logo-tile.paper { background: var(--paper-2); }
.logo-tile img { max-width: min(250px, 100%); max-height: 170px; }
.logo-tile figcaption, .tile-caption {
  margin-top: 1.4rem; font-family: var(--font-sans); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: center;
}
.logo-tile.dark figcaption { color: var(--muted-dark); }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.swatch { border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden; background: #fff; }
.swatch-chip { height: 130px; }
.swatch-meta { padding: 1.1rem 1.2rem 1.2rem; }
.swatch-meta strong { font-family: var(--font-display); font-size: 1.08rem; display: block; }
.swatch-meta span { display: block; font-family: var(--font-sans); font-size: 0.74rem; color: var(--muted); margin-top: 0.3rem; letter-spacing: 0.04em; }

.type-specimen { border: 1px solid var(--line-soft); border-radius: 3px; background: #fff; padding: 2.2rem 2.4rem; margin-top: 1.6rem; }
.type-specimen .label { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem; }
.type-specimen .sample-display { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.1; }
.type-specimen .sample-serif { font-size: 1.25rem; }
.type-specimen .sample-sans { font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.type-specimen .meta { margin-top: 1.2rem; font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); }

.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.4rem; }
.dodont > div { border: 1px solid var(--line-soft); border-radius: 3px; background: #fff; padding: 1.8rem 2rem; }
.dodont h4 { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1rem; }
.dodont .do h4 { color: #3c7a45; }
.dodont .dont h4 { color: var(--crimson); }
.dodont ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; font-size: 0.97rem; }
@media (max-width: 760px) { .dodont { grid-template-columns: 1fr; } }

.pattern-demo { height: 150px; border: 1px solid var(--line-soft); border-radius: 3px; background: var(--paper-2); background-image: var(--pattern-light); margin-top: 1.6rem; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 9rem var(--pad) 5rem; }
.legal h1 { font-size: 2.4rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal .todo { background: #fdf3d9; border: 1px dashed var(--brass); padding: 0.15em 0.45em; border-radius: 2px; font-family: var(--font-sans); font-size: 0.92em; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink); background-image: var(--pattern-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.85s ease;
}
#page-loader.loaded { opacity: 0; pointer-events: none; }
html.skip-loader #page-loader { display: none !important; }
.loader-inner {
  text-align: center; color: var(--ivory);
  display: flex; flex-direction: column; align-items: center; gap: 1.8rem;
}
.loader-logo {
  width: clamp(160px, 42vw, 210px); height: auto;
  animation: l-in 0.9s ease both;
}
.loader-divider-row {
  display: flex; align-items: center; gap: 0.9rem;
  animation: l-in 0.9s 0.15s ease both;
}
.loader-divider-line {
  display: block; width: clamp(28px, 7vw, 50px); height: 1px;
  background: var(--brass); opacity: 0.45;
}
.loader-divider-star {
  display: block; width: 10px; height: 10px;
  background: var(--brass);
  clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
}
.loader-tagline {
  font-family: var(--font-serif); font-size: 0.97rem;
  color: var(--muted-dark); margin: 0;
  animation: l-in 0.9s 0.25s ease both;
}
.loader-tagline em { font-style: italic; color: var(--brass-light); }
.loader-bar-wrap {
  display: flex; align-items: center; gap: 0.85rem;
  animation: l-in 0.9s 0.38s ease both;
}
.loader-bar-star {
  display: block; width: 7px; height: 7px; flex: none;
  background: var(--brass); opacity: 0.55;
  clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
}
.loader-bar {
  width: clamp(140px, 36vw, 220px); height: 2px;
  background: rgba(185,139,65,0.15); overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: var(--brass);
  position: relative; overflow: hidden;
  animation: loader-progress 2.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.loader-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.38) 50%,transparent 100%);
  animation: loader-shimmer 1.8s linear infinite;
}
@keyframes l-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes loader-progress {
  0%   { width: 0%; }
  25%  { width: 32%; }
  60%  { width: 64%; }
  100% { width: 90%; }
}
@keyframes loader-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(350%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { display: none; }
  .card-img img, .btn { transition: none; }
  #page-loader { transition: none; }
  .loader-logo, .loader-divider-row, .loader-tagline, .loader-bar-wrap { animation: none; opacity: 1; transform: none; }
  .loader-bar-fill, .loader-bar-fill::after { animation: none; }
}
