/* =========================================================================
   THE BOAB TREE
   Restaurant · Natural wine · Art studio · Gallery — Estepona Old Town

   The visual system is taken from the place itself:
   · the logo is a brushstroke, so the brushstroke is the signature device
   · the street-wall canvases are black grounds, white line, one stroke of red
   · the dining room is warm wood, ochre velvet and lamplight
   Hence: ink and plaster, a wine red, an ochre, hairlines and wall labels.
   ========================================================================= */

/* ------------------------------------------------------------- 1. tokens */
:root {
  /* sampled from the logo: the brushstroke, the type, the paper */
  --taupe:      #736763;   /* the brushstroke */
  --taupe-dark: #4e4642;
  --taupe-mid:  #a2948f;   /* the brushstroke, lifted for dark grounds */
  --taupe-lite: #cfc6c1;
  --taupe-tint: #f3f0ee;

  --ink:        #121111;   /* the wordmark */
  --ink-2:      #1c1a19;
  --ink-3:      #2a2725;
  --paper:      #ffffff;
  --paper-2:    var(--taupe-tint);
  --paper-3:    #e6e1de;

  --on-ink:      #f4f2f1;
  --on-ink-mute: rgba(244,242,241,.60);
  --on-ink-line: rgba(244,242,241,.16);
  --on-paper:      #121111;
  --on-paper-mute: rgba(18,17,17,.60);
  --on-paper-line: rgba(18,17,17,.14);

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --fs-display: clamp(3.1rem, min(9.4vw, 13.5vh), 8.4rem);
  --fs-h1:      clamp(2.5rem, 6.4vw, 5.6rem);
  --fs-h2:      clamp(2rem, 4.3vw, 3.9rem);
  --fs-h3:      clamp(1.45rem, 2.1vw, 2.05rem);
  --fs-h4:      clamp(1.12rem, 1.2vw, 1.35rem);
  --fs-lead:    clamp(1.08rem, .55vw + .95rem, 1.45rem);
  --fs-body:    clamp(1rem, .28vw + .93rem, 1.08rem);
  --fs-small:   .875rem;
  --fs-label:   .705rem;

  --gut:   clamp(18px, 2.2vw, 34px);
  --pad:   clamp(20px, 5.2vw, 88px);
  --sec:   clamp(4.6rem, 10vw, 10.5rem);
  --max:   1620px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr: 74px;
}

@media (max-width: 860px) { :root { --hdr: 62px; } }

/* -------------------------------------------------------------- 2. reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
hr { border: 0; height: 1px; background: var(--on-paper-line); margin: 0; }

::selection { background: var(--taupe); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--taupe-mid);
  outline-offset: 3px;
  outline-offset: 3px;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- 3. typography */
.display, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: .89; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.04; }
.h4 {
  font-family: var(--sans); font-size: var(--fs-h4);
  font-weight: 600; line-height: 1.3; letter-spacing: -.006em;
}
em, .it { font-style: italic; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.004em;
  text-wrap: pretty;
}
.body p + p { margin-top: 1.1em; }
.body { max-width: 62ch; text-wrap: pretty; }
.mute { color: var(--on-paper-mute); }
.on-ink .mute, .sec--ink .mute { color: var(--on-ink-mute); }

/* the gallery wall label — the recurring small-type voice of the site */
.label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: .8em;
}
.label::before {
  content: attr(data-n);
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}
.sec--ink .label::before, .on-ink .label::before { color: var(--taupe-mid); }
.label--plain::before { content: none; }

.caption {
  font-size: var(--fs-label);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--on-paper-mute);
  padding-top: .85em;
  margin-top: .95em;
  border-top: 1px solid var(--on-paper-line);
  line-height: 1.4;
}
.sec--ink .caption, .on-ink .caption {
  color: var(--on-ink-mute); border-top-color: var(--on-ink-line);
}

/* ------------------------------------------------------------- 4. layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 1120px; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(6, 1fr); } }

.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(3rem, 6vw, 6rem); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
.sec--paper2 { background: var(--paper-2); }
.sec--ink hr { background: var(--on-ink-line); }

.stack > * + * { margin-top: var(--gap, 1.6rem); }
.stack--s { --gap: .9rem; }
.stack--l { --gap: 2.4rem; }

/* ------------------------------------------------------------ 5. buttons */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 1.15em 1.9em; line-height: 1;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--taupe); border-color: var(--taupe); color: var(--paper); }

/* on ink grounds the solid button inverts */
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: var(--taupe-mid); border-color: var(--taupe-mid); color: var(--ink); }

.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.sec--ink .btn--ghost:hover, .hero .btn--ghost:hover, .phero .btn--ghost:hover,
.ftr .btn--ghost:hover, .mnav .btn--ghost:hover {
  background: var(--paper); border-color: var(--paper); color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sec--ink .btn--ghost:hover, .hero .btn--ghost:hover, .phero .btn--ghost:hover,
.ftr .btn--ghost:hover, .mnav .btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* the quiet link: label + rule that draws itself */
.link {
  display: inline-flex; align-items: center; gap: .8em;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: .55em; position: relative;
}
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: .32;
  transform-origin: left; transition: opacity .4s var(--ease), transform .55s var(--ease);
}
.link:hover::after { opacity: 1; }
.link .arw { transition: transform .45s var(--ease); }
.link:hover .arw { transform: translateX(.45em); }

.btns { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }

/* --------------------------------------------------------- 6. the mark */
.mark {
  display: block;
  -webkit-mask: url('/assets/brand/mark.png') center / contain no-repeat;
          mask: url('/assets/brand/mark.png') center / contain no-repeat;
  background: currentColor;
  aspect-ratio: 682 / 338;
}
.stroke-rule {
  -webkit-mask: url('/assets/brand/stroke.png') center / 100% 100% no-repeat;
          mask: url('/assets/brand/stroke.png') center / 100% 100% no-repeat;
  background: currentColor;
  aspect-ratio: 890 / 715;
}

/* a painted ground: the logo's own brushstroke, enlarged behind the type.
   The mark is a brushstroke, so the page is allowed to be one too. */
.stroked { position: relative; overflow: hidden; isolation: isolate; }
.stroked > * { position: relative; z-index: 1; }
.stroked::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; width: min(1240px, 104vw); aspect-ratio: 682 / 338;
  transform: translate(-50%, -50%) rotate(-2.5deg);
  -webkit-mask: url('/assets/brand/mark.png') center / contain no-repeat;
          mask: url('/assets/brand/mark.png') center / contain no-repeat;
  background: var(--taupe);
  opacity: .15;
}
.stroked--right::before { left: auto; right: -14%; transform: translateY(-50%) rotate(6deg); }
.sec:not(.sec--ink).stroked::before { opacity: .055; }
@media (max-width: 860px) { .stroked::before { opacity: .13; width: 150vw; } }

/* ------------------------------------------------------------- 7. header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--hdr);
  color: var(--on-ink);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(14,13,13,.62), rgba(14,13,13,0));
  transition: opacity .5s var(--ease);
}
.hdr.is-stuck { background: var(--ink); border-bottom-color: var(--on-ink-line); }
.hdr.is-stuck::before { opacity: 0; }

.hdr__in {
  height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 46px);
}
.hdr__brand { display: flex; align-items: center; gap: .85rem; flex: 0 0 auto; }
.hdr__brand .mark { width: 42px; color: var(--taupe-mid); }
.hdr__name {
  font-family: var(--serif); font-size: 1.32rem; line-height: 1;
  letter-spacing: -.01em; white-space: nowrap;
}
.hdr__name small {
  display: block; font-family: var(--sans); font-size: .5rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; opacity: .66; margin-top: .42em;
}

.nav { display: flex; gap: clamp(14px, 1.8vw, 30px); margin-left: auto; }
.nav a {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; padding: .5em 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--taupe-mid); }

.hdr__end { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); flex: 0 0 auto; }
.lang {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; padding: .5em .2em; opacity: .78;
  border-bottom: 1px solid transparent;
}
.lang:hover { opacity: 1; border-bottom-color: currentColor; }
.hdr .btn { padding: .95em 1.5em; }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { bottom: 17px; }
body.is-nav .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.is-nav .burger span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav, .hdr__end .btn, .hdr__end .lang { display: none; }
  .burger { display: block; margin-left: auto; }
  .hdr__name small { display: none; }
}

/* ------------------------------------------------- 8. mobile navigation */
.mnav {
  position: fixed; inset: 0; z-index: 88;
  background: var(--ink); color: var(--on-ink);
  display: flex; flex-direction: column;
  padding: calc(var(--hdr) + 6vh) var(--pad) calc(env(safe-area-inset-bottom) + 24px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
body.is-nav .mnav { opacity: 1; visibility: visible; }
.mnav__list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .1rem; }
.mnav__list a {
  font-family: var(--serif); font-size: clamp(2rem, 8.5vw, 3.2rem); line-height: 1.16;
  display: flex; align-items: baseline; gap: .7rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
body.is-nav .mnav__list a { opacity: 1; transform: none; }
.mnav__list a span {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; color: var(--taupe-mid);
}
.mnav__list a:active { color: var(--taupe-mid); }
.mnav__foot { display: grid; gap: 1.1rem; border-top: 1px solid var(--on-ink-line); padding-top: 1.4rem; }
.mnav__acts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mnav__acts .btn { justify-content: center; }
.mnav__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mnav__meta .label { color: var(--on-ink-mute); }

/* mobile action bar — reserve and WhatsApp are always one thumb away */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 1px; background: var(--on-ink-line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.bar.is-on { transform: none; }
.bar a, .bar button {
  flex: 1; text-align: center; background: var(--ink); color: var(--on-ink);
  padding: 1.15em .6em; font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.bar .bar__go { background: var(--paper); color: var(--ink); }
@media (max-width: 860px) {
  .bar { display: flex; }
  body { padding-bottom: 0; }
}
body.is-nav .bar { transform: translateY(110%); }

/* ---------------------------------------------------------------- 9. hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); color: var(--on-ink); overflow: hidden;
  padding-bottom: clamp(2.4rem, 5vw, 4.2rem);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      rgba(14,13,13,.97) 0%,
      rgba(14,13,13,.90) 22%,
      rgba(14,13,13,.68) 40%,
      rgba(14,13,13,.40) 58%,
      rgba(14,13,13,.30) 74%,
      rgba(14,13,13,.62) 100%),
    linear-gradient(to right, rgba(14,13,13,.55), rgba(14,13,13,0) 62%);
}
.hero__in { position: relative; z-index: 1; width: 100%; }
.hero__eyebrow { color: var(--taupe-lite); margin-bottom: clamp(1rem, 2vw, 1.7rem); }
.hero .display { max-width: 15ch; }
.hero .display .l2 { display: block; padding-left: clamp(0px, 7vw, 150px); font-style: italic; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: clamp(1.8rem, 4vw, 4rem); align-items: end;
  margin-top: clamp(1.3rem, 2.4vw, 2.2rem);
}
.hero__lead { max-width: 46ch; color: var(--on-ink); }
.hero__side { text-align: right; display: grid; gap: 1.1rem; justify-items: end; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__side { text-align: left; justify-items: start; }
  .hero { min-height: 92svh; padding-bottom: 6.5rem; }
}
.hero__btns { margin-top: clamp(1.3rem, 2.2vw, 2rem); }

/* the contents strip: makes the architecture legible immediately */
.index {
  background: var(--ink); color: var(--on-ink);
  border-top: 1px solid var(--on-ink-line);
}
.index__in { display: flex; flex-wrap: wrap; }
.index a {
  flex: 1 1 auto; min-width: 150px; padding: 1.5rem 0;
  display: flex; align-items: baseline; gap: .8rem;
  border-right: 1px solid var(--on-ink-line);
  padding-inline: clamp(12px, 1.6vw, 26px);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.index a:first-child { padding-left: 0; }
.index a:last-child { border-right: 0; }
.index a:hover { background: var(--ink-3); color: var(--taupe-mid); }
.index i { font-style: normal; font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; color: var(--taupe-mid); }
.index b { font-family: var(--serif); font-weight: 400; font-size: 1.28rem; letter-spacing: -.01em; }
@media (max-width: 720px) {
  .index a { min-width: 50%; border-bottom: 1px solid var(--on-ink-line); padding-inline: 0; border-right: 0; }
  .index a:nth-child(odd) { padding-right: 16px; }
  .index a:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--on-ink-line); }
}

/* inner-page hero: ink ground, type-led */
.phero {
  background: var(--ink); color: var(--on-ink);
  padding-top: calc(var(--hdr) + clamp(4.5rem, 10vw, 9rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
.phero__eyebrow { color: var(--taupe-mid); }
.phero .h1 { margin-top: clamp(1.1rem, 2vw, 1.8rem); }
.phero .lead { margin-top: clamp(1.4rem, 2.4vw, 2.2rem); max-width: 56ch; color: var(--on-ink); }
.phero__btns { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.phero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
  margin-top: clamp(1.4rem, 2.4vw, 2.2rem);
}
.phero__facts dl { display: grid; gap: .1rem; min-width: min(20rem, 100%); }
.phero__facts div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.6rem;
  padding: .85rem 0; border-top: 1px solid var(--on-ink-line);
}
.phero__facts div:last-child { border-bottom: 1px solid var(--on-ink-line); }
.phero__facts dt {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--taupe-mid); white-space: nowrap;
}
.phero__facts dd {
  margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.15; text-align: right;
}
@media (max-width: 1000px) {
  .phero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .phero__facts dl { min-width: 0; }
}

.bleed { background: var(--ink); }
.bleed img { width: 100%; height: clamp(320px, 62vh, 780px); object-fit: cover; }
.bleed--tall img { height: clamp(380px, 78vh, 900px); }

/* -------------------------------------------------------- 10. figures */
figure { position: relative; }
.fig img { width: 100%; }
.fig--cover img { height: 100%; object-fit: cover; }
.fig--frame { background: var(--paper-3); }

/* artwork presented as a hung object */
.plate { display: flex; flex-direction: column; }
.plate__img {
  display: flex; align-items: flex-end; justify-content: center;
  background: transparent;
}
.plate__img img {
  max-height: min(56vh, 480px); width: auto; max-width: 100%;
  box-shadow: 0 22px 44px -26px rgba(0,0,0,.66), 0 2px 5px -2px rgba(0,0,0,.4);
}

/* --------------------------------------------------------- 11. reveals */
/* The hidden starting state is scoped to .js: without scripting, or if the
   script never runs, every section and photograph is simply visible. */
[data-r] { --d: 0ms; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-r='t'] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease) var(--d), transform .9s var(--ease) var(--d); }
  .js [data-r='i'] { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--ease) var(--d); }
  .js [data-r='i'] img { transform: scale(1.09); transition: transform 1.5s var(--ease) var(--d); }
  .js [data-r='l'] { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) var(--d); }
  .js .is-in[data-r='t'] { opacity: 1; transform: none; }
  .js .is-in[data-r='i'] { clip-path: inset(0 0 0 0); }
  .js .is-in[data-r='i'] img { transform: none; }
  .js .is-in[data-r='l'] { transform: scaleX(1); }
}

/* ---------------------------------------------- 12. home: the concept */
.concept__grid { align-items: start; }
.concept__type { grid-column: 1 / span 6; }
.concept__type .h2 { max-width: 15ch; }
.concept__fig  { grid-column: 8 / span 5; }
@media (max-width: 1000px) {
  .concept__type { grid-column: 1 / -1; }
  .concept__fig { grid-column: 1 / -1; margin-top: 2.5rem; max-width: 460px; }
}
.beats { margin-top: clamp(2.4rem, 4vw, 3.6rem); border-top: 1px solid var(--on-ink-line); }
.beats li {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1;
  padding: clamp(.85rem, 1.6vw, 1.25rem) 0; border-bottom: 1px solid var(--on-ink-line);
  display: flex; align-items: baseline; gap: 1rem;
}
.beats li i { font-style: normal; font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .2em; color: var(--taupe-mid); }
.beats li { color: var(--on-ink-mute); }
.beats li:last-child { color: var(--on-ink); }

/* ------------------------------------------------ 13. home: an evening */
.evening { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); margin-top: clamp(2.6rem, 5vw, 4.5rem); }
.ev {
  display: grid; grid-template-columns: 5.5rem minmax(0,1fr) minmax(0, 38%);
  gap: clamp(1.2rem, 3vw, 3rem); align-items: start;
  padding-top: 1.6rem; border-top: 1px solid var(--on-paper-line);
}
.ev__t {
  grid-column: 1; font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  color: var(--taupe); font-variant-numeric: tabular-nums;
}
.ev__t, .ev__txt, .ev__fig { grid-row: 1; }   /* keep all three on one row */
.ev__txt { grid-column: 2; }
.ev__fig { grid-column: 3; }
.ev__b { max-width: 42ch; margin-top: .55rem; }
.ev__fig img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* every other frame puts the photograph on the left of the type */
.ev:nth-child(even) { grid-template-columns: 5.5rem minmax(0, 38%) minmax(0,1fr); }
.ev:nth-child(even) .ev__fig { grid-column: 2; }
.ev:nth-child(even) .ev__txt { grid-column: 3; }

@media (max-width: 860px) {
  .ev, .ev:nth-child(even) { grid-template-columns: 3.6rem minmax(0,1fr); }
  .ev__t { grid-column: 1; font-size: 1.15rem; }
  .ev__txt, .ev:nth-child(even) .ev__txt { grid-column: 2; }
  .ev__fig, .ev:nth-child(even) .ev__fig { grid-column: 1 / -1; grid-row: 2; margin-top: .9rem; }
}

/* ------------------------------------------------- 14. editorial blocks */
/* a big image and a column of type, alternating sides */
.duo { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); align-items: center; }
.duo__fig { grid-column: 1 / span 7; }
.duo__txt { grid-column: 9 / span 4; }
.duo--flip .duo__fig { grid-column: 6 / span 7; grid-row: 1; }
.duo--flip .duo__txt { grid-column: 1 / span 4; grid-row: 1; }
/* a smaller photograph, so a snapshot is never blown up past its means */
.duo--even .duo__fig { grid-column: 8 / span 5; grid-row: 1; }
.duo--even .duo__txt { grid-column: 1 / span 6; grid-row: 1; }
@media (max-width: 1000px) {
  .duo__fig, .duo--flip .duo__fig, .duo--even .duo__fig { grid-column: 1 / -1; grid-row: auto; }
  .duo__txt, .duo--flip .duo__txt, .duo--even .duo__txt { grid-column: 1 / -1; grid-row: auto; }
  .duo { gap: 2rem; }
}
.duo__fig img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.duo--even .duo__fig img { aspect-ratio: 4/3; }
.duo__fig--tall img { aspect-ratio: 3/4; }

/* a pair of images, offset, like two canvases hung at different heights */
.pair { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); align-items: end; }
.pair__a { grid-column: 1 / span 7; }
.pair__b { grid-column: 9 / span 4; padding-bottom: clamp(2rem, 6vw, 6rem); }
.pair img { width: 100%; }
.pair__a img { aspect-ratio: 5/4; object-fit: cover; }
.pair__b img { aspect-ratio: 3/4; object-fit: cover; }
@media (max-width: 860px) {
  .pair__a { grid-column: 1 / -1; }
  .pair__b { grid-column: 2 / -1; padding-bottom: 0; margin-top: -1rem; }
}

/* the founders' own photographs — shown at snapshot scale, hung at slightly
   different heights, the way photos actually end up on a wall */
.snaps { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); align-items: start; }
.snaps figure:nth-child(1) { grid-column: 1 / span 4; }
.snaps figure:nth-child(2) { grid-column: 6 / span 3; margin-top: clamp(2.5rem, 6vw, 6rem); }
.snaps figure:nth-child(3) { grid-column: 9 / span 4; margin-top: clamp(1rem, 2.5vw, 2.6rem); }
.snaps img { width: 100%; }
@media (max-width: 860px) {
  .snaps { grid-template-columns: repeat(6, 1fr); gap: clamp(1.6rem, 5vw, 2.6rem) var(--gut); }
  .snaps figure:nth-child(1) { grid-column: 1 / span 5; }
  .snaps figure:nth-child(2) { grid-column: 3 / span 4; margin-top: 0; }
  .snaps figure:nth-child(3) { grid-column: 1 / span 6; margin-top: 0; }
}

/* the big centred statement */
.statement { text-align: center; max-width: 22ch; margin-inline: auto; }
.statement--wide { max-width: 32ch; }

/* pull quote */
.quote { max-width: min(34rem, 100%); }
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.1vw, 2.8rem);
  line-height: 1.12; font-style: italic; letter-spacing: -.015em;
}
.quote figcaption {
  margin-top: 1.4rem; font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--on-paper-mute);
}
.sec--ink .quote figcaption { color: var(--taupe-mid); }
.quote--wide { max-width: min(46rem, 100%); }

/* -------------------------------------------------------- 15. the menu */
.menunav {
  position: sticky; top: var(--hdr); z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--on-paper-line);
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.menunav ul { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; padding: 1.05rem 0; scrollbar-width: none; }
.menunav ul::-webkit-scrollbar { display: none; }
.menunav a {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; white-space: nowrap; color: var(--on-paper-mute);
  padding-bottom: .3em; border-bottom: 1px solid transparent;
}
.menunav a:hover { color: var(--on-paper); border-bottom-color: var(--taupe); }

.course + .course { margin-top: clamp(3rem, 6vw, 5rem); }
.course__h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--on-paper); margin-bottom: .4rem;
}
.course__h h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; }
.course__h span { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--on-paper-mute); text-align: right; }

.dish {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: .5rem 1.8rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--on-paper-line);
}
.dish__n { font-weight: 500; letter-spacing: -.004em; }
.dish__e { color: var(--on-paper-mute); font-size: var(--fs-small); display: block; margin-top: .18em; }
.dish__p {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-small);
  letter-spacing: .04em; white-space: nowrap;
}
.dish__p::after { content: ' €'; font-weight: 400; color: var(--on-paper-mute); }

/* the wine list */
.wine .dish { grid-template-columns: minmax(0,1fr) auto auto; gap: .4rem 1.6rem; }
.wine__meta { color: var(--on-paper-mute); font-size: var(--fs-small); display: block; margin-top: .18em; }
.wine__g, .wine__b { font-variant-numeric: tabular-nums; font-size: var(--fs-small); font-weight: 600; min-width: 3.1em; text-align: right; }
.wine__g { color: var(--on-paper-mute); font-weight: 500; }
.wine__head {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 1.6rem;
  font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-paper-mute); padding-bottom: .7rem;
}
.wine__head span:not(:first-child) { min-width: 3.1em; text-align: right; }
.tag {
  display: inline-block; font-size: .58rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: .32em .6em; margin-left: .6em;
  border: 1px solid currentColor; vertical-align: .14em; line-height: 1;
}
.tag--eco { color: var(--taupe); }
.tag--nat { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.allergens { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.allergens li { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--on-paper-mute); }
.allergens li::before { content: '—'; margin-right: .6em; color: var(--taupe); }

/* ------------------------------------------------------ 16. list blocks */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--on-ink-line); }
.sec--paper2 .cards, .sec:not(.sec--ink) .cards { background: var(--on-paper-line); }
.cards li { background: var(--ink); padding: clamp(1.6rem, 2.6vw, 2.4rem); }
.sec:not(.sec--ink) .cards li { background: var(--paper); }
.sec--paper2 .cards li { background: var(--paper-2); }
.cards h3 { margin-bottom: .6rem; }
.cards p { color: var(--on-ink-mute); font-size: var(--fs-small); }
.sec:not(.sec--ink) .cards p { color: var(--on-paper-mute); }

.terms { border-top: 1px solid var(--on-paper-line); }
.terms li {
  display: grid; grid-template-columns: minmax(0, 18rem) minmax(0,1fr); gap: .4rem 2.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--on-paper-line);
}
.sec--ink .terms, .sec--ink .terms li { border-color: var(--on-ink-line); }
.terms h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1; }
.terms p { max-width: 54ch; }
@media (max-width: 720px) { .terms li { grid-template-columns: 1fr; } }

/* ----------------------------------------------------- 17. the gallery */
/* a salon hang: varied widths, baseline-aligned, generous air */
.salon {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(2.4rem, 4.4vw, 5rem) var(--gut);
  align-items: end;
}
.salon .plate { grid-column: span 4; }
.salon .plate:nth-child(7n+1) { grid-column: span 5; }
.salon .plate:nth-child(7n+3) { grid-column: span 3; }
.salon .plate:nth-child(7n+4) { grid-column: span 4; }
.salon .plate:nth-child(7n+5) { grid-column: span 3; }
.salon .plate:nth-child(7n+6) { grid-column: span 5; }
@media (max-width: 860px) {
  .salon { grid-template-columns: repeat(6, 1fr); }
  .salon .plate, .salon .plate:nth-child(7n+1), .salon .plate:nth-child(7n+3),
  .salon .plate:nth-child(7n+4), .salon .plate:nth-child(7n+5), .salon .plate:nth-child(7n+6) { grid-column: span 3; }
}
.salon .plate__img img { max-height: min(42vh, 380px); }
.salon .caption { font-size: .62rem; letter-spacing: .1em; }

.zoom { cursor: zoom-in; display: block; }
.zoom img { transition: transform .8s var(--ease), filter .6s var(--ease); }
.zoom:hover img { transform: translateY(-6px); }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.mosaic figure:nth-child(1) { grid-column: 1 / span 7; }
.mosaic figure:nth-child(2) { grid-column: 8 / span 5; align-self: end; }
.mosaic figure:nth-child(3) { grid-column: 1 / span 4; }
.mosaic figure:nth-child(4) { grid-column: 5 / span 8; }
.mosaic img { width: 100%; object-fit: cover; }
.mosaic figure:nth-child(1) img { aspect-ratio: 4/3; }
.mosaic figure:nth-child(2) img { aspect-ratio: 3/4; }
.mosaic figure:nth-child(3) img { aspect-ratio: 3/4; }
.mosaic figure:nth-child(4) img { aspect-ratio: 16/9; }
@media (max-width: 860px) {
  .mosaic figure { grid-column: 1 / -1 !important; }
  .mosaic img { aspect-ratio: 4/3 !important; }
}

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 120; background: rgba(12,11,11,.96);
  display: grid; grid-template-rows: 1fr auto; padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lb.is-on { opacity: 1; visibility: visible; }
.lb__img { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb__img img {
  max-height: 100%; max-width: 100%;
  height: 72vh; width: auto; object-fit: contain;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.lb__cap { color: var(--on-ink-mute); text-align: center; padding-top: 1.6rem; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; }
.lb__x { position: absolute; top: clamp(12px,2vw,26px); right: clamp(12px,2vw,26px); color: var(--on-ink); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--on-ink); font-size: 2rem; padding: 1rem; opacity: .6; }
.lb__nav:hover { opacity: 1; }
.lb__nav--p { left: 0; }
.lb__nav--n { right: 0; }

/* -------------------------------------------------------- 18. the shop */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(2.2rem, 3.6vw, 3.6rem) var(--gut); }
.prod { display: flex; flex-direction: column; }
.prod__img {
  background: var(--paper-2); aspect-ratio: 3/4; display: flex;
  align-items: center; justify-content: center; padding: clamp(14px, 2vw, 26px);
  overflow: hidden;
}
.sec--ink .prod__img { background: var(--ink-3); }
.prod__img img {
  max-height: 100%; width: auto; max-width: 100%;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.7);
  transition: transform .9s var(--ease);
}
.prod:hover .prod__img img { transform: scale(1.05); }
.prod__meta { display: flex; justify-content: space-between; gap: 1.2rem; align-items: baseline; padding-top: .95rem; margin-top: 1rem; border-top: 1px solid var(--on-paper-line); }
.sec--ink .prod__meta { border-top-color: var(--on-ink-line); }
.prod__n { font-family: var(--serif); font-size: 1.32rem; line-height: 1.06; }
.prod__p { font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod__k { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-paper-mute); margin-top: .5rem; }
.sec--ink .prod__k { color: var(--on-ink-mute); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--gut); }
.steps li { border-top: 1px solid var(--on-paper-line); padding-top: 1.2rem; }
.sec--ink .steps li { border-top-color: var(--on-ink-line); }
.steps li::before {
  counter-increment: s; content: '0' counter(s);
  display: block; font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em;
  color: var(--taupe); margin-bottom: .8rem;
}
.sec--ink .steps li::before { color: var(--taupe-mid); }

/* --------------------------------------------------- 19. the chalkboard */
.board {
  background: var(--ink-2); color: var(--on-ink);
  padding: clamp(2.6rem, 6vw, 6rem) clamp(1.6rem, 5vw, 5rem);
  border: 1px solid var(--on-ink-line);
  text-align: center; position: relative; overflow: hidden;
}
.board::before {
  content: ''; position: absolute; inset: -20%;
  background: radial-gradient(ellipse at 50% 20%, rgba(242,238,230,.07), transparent 62%);
}
.board__prompt {
  position: relative;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2rem, 6.4vw, 4.6rem); line-height: 1.06;
}
.board__prompt span { color: var(--taupe-mid); }
.board::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url('/assets/brand/mark.png') center / 88% auto no-repeat;
          mask: url('/assets/brand/mark.png') center / 88% auto no-repeat;
  background: var(--taupe); opacity: .18;
}
.board > * { position: relative; z-index: 1; }
.board .caption { border: 0; display: inline-block; margin-top: 1.6rem; }

/* ----------------------------------------------------- 20. the contact */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(2rem, 3vw, 3rem) var(--gut); }
.facts h3 { margin-bottom: 1rem; }
.facts .label { color: var(--taupe); display: block; margin-bottom: 1.1rem; }
.facts address { font-style: normal; line-height: 1.75; }
.facts li + li { margin-top: .5rem; }
.facts a:hover { color: var(--taupe-mid); }

.hoursTable { width: 100%; border-collapse: collapse; }
.hoursTable td { padding: .55rem 0; border-bottom: 1px solid var(--on-ink-line); font-size: var(--fs-small); }
.hoursTable td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.map { border: 1px solid var(--on-paper-line); background: var(--paper-2); }
.map iframe { width: 100%; height: clamp(320px, 52vh, 580px); border: 0; filter: grayscale(1) contrast(1.06); }

.bigcontact { display: grid; gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.bigcontact a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--on-ink-line);
  transition: color .35s var(--ease), padding-left .45s var(--ease);
}
.bigcontact a:hover { color: var(--taupe-mid); padding-left: .5rem; }
.bigcontact a span { font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-mute); }

/* ------------------------------------------------- 21. reserve drawer */
.res {
  position: fixed; inset: 0; z-index: 130;
  display: grid; grid-template-columns: 1fr min(620px, 100%);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.res.is-on { opacity: 1; visibility: visible; }
.res__scrim { background: rgba(12,11,11,.72); }
.res__panel {
  background: var(--paper); color: var(--on-paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .55s var(--ease);
  max-height: 100svh;
}
.res.is-on .res__panel { transform: none; }
.res__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) 1.2rem;
  border-bottom: 1px solid var(--on-paper-line);
}
.res__top p { font-size: var(--fs-small); color: var(--on-paper-mute); margin-top: .7rem; max-width: 44ch; }
.res__x { font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .4em; }
.res__body { flex: 1; min-height: 0; }
.res__body iframe { width: 100%; height: 100%; min-height: 460px; border: 0; background: var(--paper); }
.res__foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--on-paper-line);
  border-top: 1px solid var(--on-paper-line);
}
.res__foot a {
  background: var(--paper); padding: 1.15em 1rem; text-align: center;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.res__foot a:hover { background: var(--paper-2); }
@media (max-width: 660px) { .res { grid-template-columns: 0 1fr; } }

/* ------------------------------------------------------------ 22. footer */
.ftr { background: var(--ink); color: var(--on-ink); padding-block: clamp(3.4rem, 6vw, 6rem) clamp(2rem, 3vw, 3rem); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0,1fr)); gap: clamp(2.2rem, 3vw, 3rem) var(--gut); }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr .mark { width: 128px; color: var(--taupe-mid); margin-bottom: 1.4rem; }
.ftr__name { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.ftr__tag { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-mute); margin-top: .8rem; }
.ftr h3 { font-size: var(--fs-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-mid); margin-bottom: 1.2rem; }
.ftr li + li { margin-top: .55rem; }
.ftr a { font-size: var(--fs-small); color: var(--on-ink-mute); }
.ftr a:hover { color: var(--on-ink); }
.ftr address { font-style: normal; font-size: var(--fs-small); color: var(--on-ink-mute); line-height: 1.8; }
.ftr__bot {
  margin-top: clamp(2.6rem, 5vw, 4.5rem); padding-top: 1.6rem; border-top: 1px solid var(--on-ink-line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-mute);
}
@media (max-width: 860px) { .ftr { padding-bottom: 6.5rem; } }

/* -------------------------------------------------------- 23. utilities */
.u-ochre { color: var(--taupe-mid); }
.u-wine { color: var(--taupe); }
.u-max { max-width: 62ch; }
.u-max-s { max-width: 48ch; }
.u-mt { margin-top: clamp(1.8rem, 3vw, 2.8rem); }
.u-mt-l { margin-top: clamp(2.8rem, 5vw, 4.6rem); }
.u-center { text-align: center; }
.u-rule { height: 1px; background: currentColor; opacity: .18; }
/* set only the END so an explicit start line can be combined with a span */
.col-4 { grid-column-end: span 4; }
.col-5 { grid-column-end: span 5; }
.col-6 { grid-column-end: span 6; }
.col-7 { grid-column-end: span 7; }
.col-8 { grid-column-end: span 8; }
.col-12 { grid-column: 1 / -1; }
.start-2 { grid-column-start: 2; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }
@media (max-width: 860px) {
  /* one rule, so the start reset cannot re-narrow the span */
  .col-4, .col-5, .col-6, .col-7, .col-8,
  .start-2, .start-7, .start-8 { grid-column: 1 / -1; }
}
