/* ============================================================
   CHEZ HUGON — Bouchon Lyonnais
   Design system v2: "La nappe et le cuivre"
   Bordeaux wine red × aged cream paper × bottle green × brass
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorantgaramond-600.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorantgaramond-500-italic.woff2') format('woff2');
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* couleur */
  --bordeaux:        #571e22;
  --bordeaux-deep:   #3f1417;
  --bordeaux-ink:    #2c0e11;
  --cream:           #f4ecdd;
  --cream-warm:      #efe4cf;
  --paper:           #f8f2e6;
  --bottle:          #24402e;
  --bottle-deep:     #182b1f;
  --brass:           #b9893c;
  --brass-light:     #d3ad6a;
  --brass-ink:       #7d5c26;   /* brass for small text on light bg — AA contrast */
  --vichy-red:       #a3352f;
  --ink:             #241a15;
  --ink-soft:        #5c4d42;
  --ardoise:         #26251f;

  /* type */
  --serif: 'Cormorant Garamond', 'Didot', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Hiragino Sans', sans-serif;
  --serif-cjk: 'Cormorant Garamond', 'Nanum Myeongjo', 'Noto Serif KR', 'Hiragino Mincho ProN', 'Apple SD Gothic Neo', serif;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.5vw, 4.6rem);
  --step-5:  clamp(3.2rem, 2.2rem + 5vw, 6.4rem);

  --space-s:  clamp(1rem, 2vw, 1.5rem);
  --space-m:  clamp(1.75rem, 3.5vw, 2.75rem);
  --space-l:  clamp(3rem, 6vw, 5.5rem);
  --space-xl: clamp(4.5rem, 9vw, 8.5rem);

  --w-content: 68rem;
  --w-narrow:  44rem;

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-expo: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
/* aged-paper grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--bordeaux); color: var(--cream); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3, html:lang(ko) .display,
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .display { font-family: var(--serif-cjk); }
/* CJK: no italics, no letter-spacing tricks, generous line-height, clean breaks */
html:lang(ko) .hero-sub, html:lang(ko) .lede, html:lang(ko) .sub, html:lang(ko) .art-caption,
html:lang(ko) .dish-desc, html:lang(ko) .pot-what, html:lang(ko) .press-card p, html:lang(ko) .note,
html:lang(ja) .hero-sub, html:lang(ja) .lede, html:lang(ja) .sub, html:lang(ja) .art-caption,
html:lang(ja) .dish-desc, html:lang(ja) .pot-what, html:lang(ja) .press-card p, html:lang(ja) .note {
  font-style: normal;
}
html:lang(ko) body, html:lang(ko) p { word-break: keep-all; line-break: strict; }
html:lang(ja) p { line-break: strict; }

.container { width: min(100% - 3rem, var(--w-content)); margin-inline: auto; }

/* skip link */
.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 300;
  background: var(--bordeaux); color: var(--cream);
  padding: 0.6rem 1.1rem; font-size: 0.85rem; font-weight: 600;
  border-radius: 3px; text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Ornaments ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em; /* optical centering compensation */
  text-transform: uppercase;
  color: var(--brass-ink);
  display: flex; align-items: center; gap: 1rem;
}
.eyebrow::before { content: ''; width: 2.6rem; height: 1px; background: var(--brass); flex: none; }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after { content: ''; width: 2.6rem; height: 1px; background: var(--brass); flex: none; }
.on-dark .eyebrow, .vins .eyebrow { color: var(--brass-light); }

/* diamond — drawn, not glyph-dependent */
.diamond {
  display: inline-block; width: 6px; height: 6px; flex: none;
  background: var(--brass); transform: rotate(45deg);
}

/* vichy tablecloth divider — folded cloth */
.vichy {
  height: 40px;
  background:
    repeating-linear-gradient(90deg, var(--vichy-red) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(0deg, var(--vichy-red) 0 7px, transparent 7px 14px),
    var(--cream);
  background-blend-mode: multiply;
  opacity: 0.8;
  box-shadow:
    inset 0 10px 12px -8px rgba(44, 14, 17, 0.4),
    inset 0 -10px 12px -8px rgba(44, 14, 17, 0.28);
}

/* awning scallop divider (CSS-only fringe) */
.awning-edge {
  height: 16px;
  background:
    radial-gradient(circle 11px at 15px -3px, var(--edge, var(--bottle-deep)) 11px, transparent 12px) repeat-x;
  background-size: 30px 16px;
  margin-top: -1px;
}

/* ---------- Reveal system v2 (JS-gated: page fully visible without JS) ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js .reveal[data-reveal="fade"] { transform: none; }
html.js .reveal[data-reveal="scale"] { transform: scale(0.97); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.36s; }

/* staggered children (JS sets --i per child) */
html.js [data-stagger] > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.65s var(--ease-out) calc(var(--i, 0) * 60ms + 0.25s),
              transform 0.65s var(--ease-out) calc(var(--i, 0) * 60ms + 0.25s);
}
html.js [data-stagger].is-visible > * { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 0.7rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  letter-spacing: 0.06em; text-decoration: none; color: var(--cream);
  transition: color 0.4s ease;
}
.nav.is-scrolled .nav-brand { color: var(--bordeaux); }
.nav-brand .depuis { display: block; font-family: var(--sans); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass-light); }
.nav.is-scrolled .nav-brand .depuis { color: var(--brass-ink); }
.nav-links { display: flex; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: color-mix(in srgb, var(--cream) 88%, transparent);
  padding-bottom: 0.3rem;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0% 1px;
  transition: color 0.3s ease, background-size 0.35s var(--ease-out);
}
.nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--brass); background-size: 100% 1px; }
.nav.is-scrolled .nav-links a:hover, .nav.is-scrolled .nav-links a.active { color: var(--brass-ink); }

.lang-switch { display: flex; gap: 0.15rem; border: 1px solid color-mix(in srgb, var(--brass) 60%, transparent); border-radius: 2rem; padding: 0.2rem; }
.lang-switch button {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  background: none; border: 0; color: color-mix(in srgb, var(--cream) 75%, transparent);
  padding: 0.32rem 0.62rem; border-radius: 2rem; cursor: pointer; transition: all 0.3s ease;
}
.nav.is-scrolled .lang-switch button { color: var(--ink-soft); }
.lang-switch button.active { background: var(--brass); color: var(--bordeaux-ink) !important; }

/* mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--brass-light);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
.nav.is-scrolled .nav-toggle span { background: var(--bordeaux); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { background: var(--cream) !important; }

/* mobile overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: linear-gradient(175deg, var(--bordeaux), var(--bordeaux-ink));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-expo), visibility 0s linear 0.6s;
}
.nav-overlay.open { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.nav-overlay ul { list-style: none; text-align: center; display: grid; gap: 1.4rem; }
.nav-overlay a {
  font-family: var(--serif); font-size: var(--step-3); font-weight: 600;
  color: var(--cream); text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out) calc(0.25s + var(--i, 0) * 70ms),
              transform 0.5s var(--ease-out) calc(0.25s + var(--i, 0) * 70ms),
              color 0.3s ease;
  display: inline-block;
}
.nav-overlay.open a { opacity: 1; transform: none; }
.nav-overlay a:hover { color: var(--brass-light); }
body.nav-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, color-mix(in srgb, var(--vichy-red) 30%, transparent), transparent 60%),
    radial-gradient(ellipse 100% 70% at 50% 115%, rgba(0,0,0,0.55), transparent 55%),
    linear-gradient(175deg, var(--bordeaux) 0%, var(--bordeaux-deep) 55%, var(--bordeaux-ink) 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
}
.hero-etching {
  position: absolute; inset: 0; margin: auto; width: min(88vw, 62rem);
  opacity: 0.22; pointer-events: none;
  color: var(--cream);
  -webkit-mask-image: radial-gradient(ellipse 65% 58% at 50% 52%, transparent 26%, black 72%);
  mask-image: radial-gradient(ellipse 65% 58% at 50% 52%, transparent 26%, black 72%);
  will-change: transform;
}
/* the façade draws itself */
html.js .hero-etching :is(path, rect, line, ellipse, circle):not(.glow) {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: etch 2s var(--ease-inout) forwards;
}
@keyframes etch { to { stroke-dashoffset: 0; } }
html.js .hero-etching .e1 :is(path,rect,line,ellipse,circle), html.js .hero-etching :is(path,rect,line,ellipse,circle).e1 { animation-delay: 0.1s; }
html.js .hero-etching .e2 :is(path,rect,line,ellipse,circle), html.js .hero-etching :is(path,rect,line,ellipse,circle).e2 { animation-delay: 0.5s; }
html.js .hero-etching .e3 :is(path,rect,line,ellipse,circle), html.js .hero-etching :is(path,rect,line,ellipse,circle).e3 { animation-delay: 0.9s; }
html.js .hero-etching .e4 :is(path,rect,line,ellipse,circle), html.js .hero-etching :is(path,rect,line,ellipse,circle).e4 { animation-delay: 1.25s; }
html.js .hero-etching .e5 :is(path,rect,line,ellipse,circle), html.js .hero-etching :is(path,rect,line,ellipse,circle).e5 { animation-delay: 1.55s; }
html.js .hero-etching .e6 :is(path,rect,line,ellipse,circle), html.js .hero-etching :is(path,rect,line,ellipse,circle).e6 { animation-delay: 1.8s; }
html.js .hero-etching text { opacity: 0; animation: etchText 0.9s ease-out forwards; }
html.js .hero-etching .t1 { animation-delay: 0.6s; }
html.js .hero-etching .t2 { animation-delay: 1s; }
html.js .hero-etching .t3 { animation-delay: 1.45s; }
@keyframes etchText { to { opacity: 1; } }
/* warm light behind the windows */
.hero-etching .glow { opacity: 0; }
html.js .hero-etching .glow {
  animation: warm 1.6s ease-out 2.2s forwards, flicker 5.5s ease-in-out 4s infinite alternate;
}
@keyframes warm { to { opacity: 0.1; } }
@keyframes flicker { from { opacity: 0.08; } to { opacity: 0.11; } }

.hero-content { position: relative; z-index: 2; width: 100%; max-width: 54rem; }
/* arrival choreography */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
html.js .hero-content > * { animation: rise 0.95s var(--ease-out) both; }
html.js .hero-content .hero-label { animation-delay: 0.25s; }
html.js .hero-content h1 { animation-delay: 0.4s; }
html.js .hero-content .hero-sub { animation-delay: 0.55s; }
html.js .hero-content .hero-rule { animation-delay: 0.7s; }
html.js .hero-content .hero-cta { animation-delay: 0.85s; }

.hero-label {
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase; color: var(--brass-light);
  margin-bottom: 1.6rem;
}
.hero h1 { font-size: var(--step-5); font-weight: 600; color: var(--cream); }
.hero-sub {
  font-family: var(--serif); font-style: italic; font-size: var(--step-1);
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  margin-top: 1.4rem;
}
.hero-rule { width: 5.5rem; height: 1px; background: var(--brass); margin: 2.2rem auto; position: relative; }
html.js .hero-rule { transform-origin: center; }
.hero-rule::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px; background: var(--brass);
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2.1rem; border-radius: 2px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--brass); color: var(--bordeaux-ink); }
.btn-primary:hover { background: var(--brass-light); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.btn-ghost { border: 1px solid color-mix(in srgb, var(--cream) 45%, transparent); color: var(--cream); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); transform: translateY(-2px); }
.btn-dark { background: var(--bordeaux); color: var(--cream); }
.btn-dark:hover { background: var(--bordeaux-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(63,20,23,0.3); }
.btn-outline { border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); color: var(--bordeaux); }
.btn-outline:hover { border-color: var(--bordeaux); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  color: color-mix(in srgb, var(--cream) 62%, transparent);
  font-size: 0.68rem; letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  text-decoration: none; z-index: 2;
}
html.js .hero-scroll { opacity: 0; animation: etchText 1s ease 1.7s forwards; }
.hero-scroll::after { content: ''; width: 1px; height: 3rem; background: linear-gradient(var(--brass), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* marquee ribbon */
.ribbon {
  background: var(--bottle-deep); color: color-mix(in srgb, var(--cream) 85%, transparent);
  overflow: hidden; white-space: nowrap; padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
}
.ribbon-track { display: inline-flex; align-items: center; gap: 3.2rem; padding-right: 3.2rem; will-change: transform; }
html.js .ribbon-track { animation: marquee 44s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0.06em; }
.ribbon .diamond { background: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--space-xl) 0; position: relative; }
.section-head { text-align: center; margin-bottom: var(--space-l); }
.section-head h2 { font-size: var(--step-4); color: var(--bordeaux); margin-top: 1.1rem; }
.section-head .sub { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--ink-soft); margin-top: 0.7rem; }
.section-h2 { font-size: var(--step-3); color: var(--bordeaux); margin: 1rem 0 1.4rem; }
.vins .section-h2 { color: var(--cream); }

/* ---------- Histoire ---------- */
.histoire { background: var(--paper); }
.histoire-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-l); align-items: center; }
.histoire-text p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.histoire-text .lede {
  font-family: var(--serif); font-size: var(--step-1); font-style: italic;
  color: var(--bordeaux); line-height: 1.5; margin-bottom: 1.6rem;
}
.dropcap::first-letter {
  font-family: var(--serif); font-weight: 700; font-size: 3.4em;
  float: left; line-height: 0.8; padding: 0.08em 0.12em 0 0; color: var(--bordeaux);
}
html:lang(ko) .dropcap::first-letter, html:lang(ja) .dropcap::first-letter {
  font-size: 2.6em; padding: 0.1em 0.16em 0 0;
}

/* framed art / photos */
.frame, .photo-frame {
  border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
  padding: 1rem; background: var(--cream);
  box-shadow: 14px 14px 0 color-mix(in srgb, var(--bordeaux) 10%, transparent);
}
.photo-frame img { width: 100%; }
.visite-art .frame { box-shadow: -14px 14px 0 color-mix(in srgb, var(--bottle) 12%, transparent); background: var(--paper); }
.art-caption {
  text-align: center; font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.9rem;
}

/* lineage — the line of women, drawn */
.lineage { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: var(--space-l); padding-top: 2.4rem; }
.lineage-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-inout) 0.2s;
}
.lineage-line::after {
  content: ''; position: absolute; right: -2px; top: 50%;
  width: 7px; height: 7px; background: var(--brass);
  transform: translateY(-50%) rotate(45deg);
}
html:not(.js) .lineage-line, .lineage.is-visible .lineage-line { transform: none; }
.lineage-item { position: relative; }
.lineage-item .node {
  position: absolute; top: -2.75rem; left: 0;
  width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg);
  opacity: 0; transition: opacity 0.5s ease calc(0.35s + var(--i, 0) * 0.4s);
}
html:not(.js) .lineage-item .node, .lineage.is-visible .lineage-item .node { opacity: 1; }
.lineage-item .year { font-family: var(--serif); font-weight: 700; font-size: var(--step-2); color: var(--bordeaux); }
.lineage-item .what { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ---------- Les classiques (dish gallery) ---------- */
.classiques { margin-bottom: var(--space-l); }
.classiques-h {
  text-align: center; font-size: var(--step-1); font-style: italic; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 1.6rem;
}
.classiques-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.classiques-grid figure { margin: 0; }
.classiques-grid .ph {
  border: 1px solid color-mix(in srgb, var(--brass) 50%, transparent);
  padding: 0.55rem; background: var(--paper);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}
.classiques-grid figure:hover .ph { transform: translateY(-5px); box-shadow: 0 18px 34px -18px rgba(44,14,17,0.45); }
.classiques-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.classiques-grid figcaption {
  text-align: center; font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--bordeaux); margin-top: 0.75rem;
}
.classiques-grid figcaption small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* ---------- La Carte ---------- */
.carte { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%); }
.carte-sheet {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  box-shadow: 0 30px 70px -30px rgba(44,14,17,0.35);
  padding: clamp(1.8rem, 5vw, 4.2rem);
  position: relative;
}
.carte-sheet::before {
  content: ''; position: absolute; inset: 0.55rem; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
}
.carte-title { text-align: center; margin-bottom: 2.6rem; }
.carte-title h3 { font-size: var(--step-3); color: var(--bordeaux); }
.carte-title .note { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: 0.4rem; font-size: var(--step-0); }
.carte-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem 3.4rem; }
.carte-cat + .carte-cat { margin-top: 2.4rem; }
.carte-cat h4 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase; color: var(--vichy-red);
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  padding-bottom: 0.6rem; margin-bottom: 1.2rem;
}
.dish { margin-bottom: 1.35rem; position: relative; }
.dish-line { display: flex; align-items: baseline; gap: 0.6rem; }
.dish-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ink); transition: color 0.3s ease; }
.dish:hover .dish-name { color: var(--bordeaux); }
.dish-dots { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-4px); }
.dish-price { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; color: var(--bordeaux); white-space: nowrap; }
.dish-desc { font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ink-soft); margin-top: 0.25rem; line-height: 1.5; }
/* dishes are served one by one */
html.js .carte-sheet .dish { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease-out) calc(var(--i, 0) * 50ms + 0.3s), transform 0.6s var(--ease-out) calc(var(--i, 0) * 50ms + 0.3s); }
html.js .carte-sheet.is-visible .dish { opacity: 1; transform: none; }

/* menus block as l'ardoise (chalkboard) */
.carte-cat--ardoise {
  background: var(--ardoise);
  border: 5px solid #6e5136; border-radius: 2px;
  box-shadow: inset 0 0 26px rgba(0,0,0,0.55);
  padding: 1.5rem 1.6rem;
}
.carte-cat--ardoise h4 { color: var(--brass-light); border-bottom-color: rgba(244,236,221,0.22); }
.carte-cat--ardoise .dish-name { color: var(--cream); font-style: italic; text-shadow: 0 0 1px rgba(244,236,221,0.35); }
.carte-cat--ardoise .dish-price { color: var(--brass-light); text-shadow: 0 0 1px rgba(244,236,221,0.3); }
.carte-cat--ardoise .dish-dots { border-color: rgba(244,236,221,0.3); }
.carte-cat--ardoise .dish-desc { color: rgba(244,236,221,0.65); }
.carte-footnote { text-align: center; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); margin-top: 2.4rem; }

/* ---------- Les Vins ---------- */
.vins {
  background:
    radial-gradient(circle 90px at 16% 26%, transparent 61px, rgba(185,137,60,0.05) 62px 65px, transparent 66px),
    radial-gradient(circle 70px at 84% 68%, transparent 46px, rgba(185,137,60,0.05) 47px 50px, transparent 51px),
    linear-gradient(178deg, var(--bottle-deep), var(--bottle) 70%, var(--bottle-deep));
  color: var(--cream);
}
.vins-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-l); align-items: center; }
.vins-text p { color: color-mix(in srgb, var(--cream) 78%, transparent); margin-bottom: 1.2rem; }
.vins-art {
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  padding: 1rem;
  background: color-mix(in srgb, var(--bottle-deep) 55%, transparent);
  box-shadow: 14px 14px 0 rgba(0,0,0,0.18);
}
.vins-art img { width: 100%; }
.vins-art + .art-caption { color: color-mix(in srgb, var(--cream) 60%, transparent); }
.pot-callout {
  border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
  padding: 1.4rem 1.6rem; margin-top: 1.8rem;
  display: flex; gap: 1.2rem; align-items: center; background: color-mix(in srgb, var(--bottle-deep) 60%, transparent);
}
.pot-callout .pot-num { font-family: var(--serif); font-weight: 700; font-size: var(--step-3); color: var(--brass-light); line-height: 1; }
.pot-callout .pot-what { font-size: 0.9rem; color: color-mix(in srgb, var(--cream) 80%, transparent); }

/* ---------- Presse ---------- */
.presse { background: var(--paper); }
.press-quote { text-align: center; max-width: 46rem; margin-inline: auto; padding: 0 1rem; position: relative; }
.press-quote::before {
  content: '«'; position: absolute; top: -0.42em; left: 8%;
  font-family: var(--serif); font-size: clamp(8rem, 16vw, 13rem); line-height: 1;
  color: color-mix(in srgb, var(--bordeaux) 6%, transparent); pointer-events: none;
}
.press-quote blockquote {
  position: relative;
  font-family: var(--serif); font-size: var(--step-5); font-weight: 700;
  letter-spacing: 0.04em; font-variant-numeric: lining-nums;
  line-height: 1.15; color: var(--bordeaux);
}
.press-quote .sub {
  font-family: var(--serif); font-style: italic; font-size: var(--step-1);
  color: var(--ink-soft); margin-top: 1rem;
}
.press-quote cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-ink); }
.press-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--brass) 35%, transparent); border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); margin-top: var(--space-l); }
.press-card { background: var(--cream); padding: 2rem 1.7rem; }
.press-card .src { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--vichy-red); margin-bottom: 0.8rem; }
.press-card p { font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.5; color: var(--ink); }

/* ---------- Scene band (rue Pizay at dusk) ---------- */
.scene-band { position: relative; margin: 0; }
.scene-band img { width: 100%; max-height: 62vh; object-fit: cover; display: block; }
.scene-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,14,17,0.25), transparent 30%, transparent 65%, rgba(44,14,17,0.55));
  pointer-events: none;
}
.scene-band figcaption {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: var(--step-1);
  color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  background: color-mix(in srgb, var(--bordeaux-ink) 52%, transparent);
  padding: 0.3rem 1.1rem; border-radius: 2px;
  width: max-content; max-width: 90vw; text-align: center;
}

/* ---------- Visite ---------- */
.visite { background: linear-gradient(180deg, var(--cream-warm), var(--cream)); }
.visite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); }
.info-list { display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); }
.info-row { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); }
.info-row dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--vichy-red); padding-top: 0.3rem; }
.info-row dd { color: var(--ink); }
.info-row dd .soft { color: var(--ink-soft); font-size: 0.88rem; display: block; margin-top: 0.2rem; }
.info-row dd a { color: var(--bordeaux); font-weight: 600; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.visite-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.phone-big {
  font-family: var(--serif); font-weight: 700; font-size: var(--step-2);
  font-variant-numeric: lining-nums;
  color: var(--bordeaux); text-decoration: none; letter-spacing: 0.03em;
}

/* ---------- Footer ---------- */
.footer { background: var(--bordeaux-ink); color: color-mix(in srgb, var(--cream) 72%, transparent); padding: var(--space-l) 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--cream); }
.footer-brand .depuis { display: block; font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass-light); margin-top: 0.3rem; }
.footer-blurb { margin-top: 1rem; }
.footer .footer-blurb { font-size: 0.88rem; line-height: 1.8; }
.footer h5 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 1rem; }
.footer a { color: color-mix(in srgb, var(--cream) 85%, transparent); text-decoration: none; }
.footer a:hover { color: var(--brass-light); }
.footer ul { list-style: none; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-bottom {
  margin-top: var(--space-m); padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 14%, transparent);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: color-mix(in srgb, var(--cream) 62%, transparent);
}

/* ---------- Etchings (map) ---------- */
.visite-art svg { color: var(--bordeaux); width: 100%; height: auto; }
.visite-art svg text { stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .histoire-grid, .vins-grid, .visite-grid { grid-template-columns: 1fr; }
  .carte-cols { grid-template-columns: 1fr; gap: 2.2rem; }
  .carte-cols > div { display: contents; }
  .carte-cat + .carte-cat { margin-top: 0; }
  .cat-entrees { order: 1; } .cat-plats { order: 2; } .cat-desserts { order: 3; } .cat-ardoise { order: 4; }
  .press-band, .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .press-band { gap: 1px; }
  .classiques-grid { grid-template-columns: repeat(2, 1fr); }
  .histoire-art { order: -1; }
  .lineage { grid-template-columns: 1fr; padding-top: 0; padding-left: 1.6rem; gap: 2rem; }
  .lineage-line { top: 0; bottom: 0; left: 0.25rem; right: auto; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  html:not(.js) .lineage-line, .lineage.is-visible .lineage-line { transform: none; }
  .lineage-item .node { top: 0.5rem; left: -1.6rem; }
  .lineage-line::after { right: auto; top: auto; bottom: -2px; left: 50%; transform: translateX(-50%) rotate(45deg); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .nav-brand { font-size: 1.05rem; }
  .nav-brand .depuis { display: none; }
  .lang-switch button { padding: 0.55rem 0.5rem; font-size: 0.6rem; }
  .press-quote::before { display: none; }
  .hero { padding: 6rem 1.1rem 4.5rem; }
  .hero-label { letter-spacing: 0.2em; text-indent: 0.2em; font-size: 0.7rem; }
  .hero-cta .btn { padding: 0.85rem 1.3rem; font-size: 0.72rem; letter-spacing: 0.12em; }
  .carte-sheet { padding: 1.7rem 1.2rem; }
  .info-row { grid-template-columns: 1fr; gap: 0.3rem; padding: 0.95rem 0; }
  .info-row dt { padding-top: 0; }
  .press-quote blockquote { font-size: var(--step-4); }
  .classiques-grid { gap: 0.9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-etching :is(path, rect, line, ellipse, circle):not(.glow),
  html.js .hero-etching text,
  html.js .hero-content > *,
  html.js .hero-scroll { animation: none; opacity: 1; stroke-dasharray: none; stroke-dashoffset: 0; }
  html.js .hero-etching .glow { animation: none; opacity: 0.09; }
  .ribbon-track { animation: none; transform: none; }
  .hero-scroll::after { animation: none; }
  html.js .reveal, html.js [data-stagger] > *, html.js .carte-sheet .dish { opacity: 1; transform: none; transition: none; }
  .lineage-line, .lineage-item .node { transition: none; transform: none; opacity: 1; }
  *, *::before, *::after { transition-duration: 0.001s !important; transition-delay: 0s !important; }
}

/* ---------- Print: the carte as a printed menu ---------- */
@media print {
  body::before, .nav, .nav-overlay, .hero, .ribbon, .vichy, .awning-edge,
  .vins, .presse, .scene-band, .footer, .hero-scroll, .visite-cta, .classiques, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding: 1.2cm 0; }
  .carte { background: #fff; }
  .carte-sheet { box-shadow: none; border-color: #999; }
  .carte-sheet::before { border-color: #bbb; }
  .carte-cat--ardoise { background: #fff; border: 1px solid #999; box-shadow: none; }
  .carte-cat--ardoise .dish-name, .carte-cat--ardoise .dish-price, .carte-cat--ardoise .dish-desc { color: #000; text-shadow: none; }
  .carte-cat--ardoise h4 { color: #000; }
  .histoire-art, .visite-art { display: none; }
  .histoire-grid, .visite-grid { grid-template-columns: 1fr; }
  html.js .reveal, html.js [data-stagger] > *, html.js .carte-sheet .dish { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; color: #000; }
}
