/* =========================================================================
   TRUFFLE — Draft 1
   A design system for a boutique wine bar & delicatessen in Lymm.
   Bespoke; Bootstrap 5 is used for grid/reboot only.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Le Jour Serif";
  src: url("../fonts/LeJourSerif.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Le Jour Script";
  src: url("../fonts/LeJourScript.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette — natural, warm, understated */
  --ink:   #0B0A08;          /* near-black, warm base */
  --char:  #1A1815;          /* warm charcoal, secondary dark */
  --paper: #F3EEE4;          /* warm off-white, "linen" */
  --bone:  #E4DCCC;          /* softer paper for section shifts */
  --stone: #8E867A;          /* muted mid-grey, quiet UI */
  --dust:  #B7AE9E;          /* one shade above stone */
  --wine:  #5A1B23;          /* deep bordeaux — used rarely */
  --amber: #B78A48;          /* aged gold — signature line only */

  /* Semantics */
  --bg:    var(--ink);
  --fg:    var(--paper);
  --muted: var(--dust);
  --rule:  rgba(243, 238, 228, 0.14);

  /* Typography */
  --serif:  "Le Jour Serif", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Le Jour Script", "Le Jour Serif", cursive;
  --sans:   "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Fluid scale */
  --t-mega:    clamp(64px, 15.5vw, 236px);
  --t-display: clamp(48px, 9vw,   128px);
  --t-h1:      clamp(38px, 5.2vw,  84px);
  --t-h2:      clamp(30px, 3.6vw,  56px);
  --t-h3:      clamp(22px, 2.2vw,  32px);
  --t-lead:    clamp(17px, 1.4vw,  21px);
  --t-body:    16.5px;
  --t-small:   13.5px;
  --t-eyebrow: 11.5px;

  /* Spacing (fluid, editorial rhythm) */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  clamp(32px, 4vw, 48px);
  --s-5:  clamp(48px, 6vw, 72px);
  --s-6:  clamp(72px, 9vw, 112px);
  --s-7:  clamp(112px, 12vw, 176px);
  --s-8:  clamp(160px, 18vw, 240px);

  /* Layout */
  --container:     1440px;
  --measure:       640px;    /* readable prose width */
  --measure-wide:  760px;
  --gutter:        clamp(20px, 4vw, 56px);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.15, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 220ms;
  --dur:      520ms;
  --dur-slow: 900ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--paper); color: var(--ink); }

/* Focus — visible, refined */
:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 4px;
  border-radius: 1px;
}

/* ---------- Container / grid helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-tight { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-flush { max-width: none; padding-inline: 0; }
.measure { max-width: var(--measure); }
.measure-wide { max-width: var(--measure-wide); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow--rule::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
  opacity: 0.7;
}

.display, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
  margin: 0;
}
.display { font-size: var(--t-display); line-height: 0.94; letter-spacing: 0.008em; }
.h1 { font-size: var(--t-h1); line-height: 1.02; }
.h2 { font-size: var(--t-h2); line-height: 1.05; }
.h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: 0.01em; }

.mega {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-mega);
  line-height: 0.88;
  letter-spacing: 0.005em;
  margin: 0;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

.lead {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--fg);
  text-wrap: pretty;
}

.prose p { font-size: 17px; line-height: 1.75; margin: 0 0 1.1em; color: var(--fg); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose p + p { margin-top: 0.25em; }
.prose em { font-style: italic; color: var(--fg); }

.pull {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25;
  color: var(--fg);
  border-left: 1px solid var(--rule);
  padding-left: var(--s-4);
  margin: var(--s-5) 0;
  max-width: 720px;
  font-style: italic;
}

.small { font-size: var(--t-small); letter-spacing: 0.02em; color: var(--muted); }

/* ---------- Rules / dividers ---------- */
.rule { display: block; height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--hair { height: 1px; opacity: 0.5; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-7); }
.section-sm { padding-block: var(--s-5); }
.section-lg { padding-block: var(--s-8); }

.section--paper { background: var(--paper); color: var(--ink); }
.section--bone  { background: var(--bone);  color: var(--ink); }
.section--ink   { background: var(--ink);   color: var(--paper); }
.section--char  { background: var(--char);  color: var(--paper); }

.section--paper .eyebrow, .section--bone .eyebrow { color: #6E6659; }
.section--paper .lead,    .section--bone .lead    { color: var(--ink); }
.section--paper .prose p, .section--bone .prose p { color: #24211D; }
.section--paper .rule,    .section--bone .rule    { background: rgba(11,10,8,0.14); }
.section--paper .btn--ghost, .section--bone .btn--ghost { color: var(--ink); border-color: rgba(11,10,8,0.32); }
.section--paper .btn--ghost:hover, .section--bone .btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--paper .btn--underline, .section--bone .btn--underline { color: var(--ink); }
.section--paper .btn--underline::after, .section--bone .btn--underline::after { background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 18px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn--ghost {
  color: var(--paper);
  border-color: rgba(243, 238, 228, 0.4);
  background: transparent;
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--solid {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.btn--solid:hover { background: transparent; color: var(--paper); }

.btn--wine {
  color: var(--paper);
  background: var(--wine);
  border-color: var(--wine);
}
.btn--wine:hover { background: transparent; color: var(--wine); }

.btn--underline {
  position: relative;
  padding: 6px 0;
  border-radius: 0;
  border: 0;
  color: var(--paper);
  letter-spacing: 0.24em;
}
.btn--underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--paper);
  transform-origin: left center;
  transition: transform 400ms var(--ease-out);
}
.btn--underline:hover::after { transform: scaleX(0.4); transform-origin: right center; }

.btn__arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding-block: 22px;
  color: var(--paper);
  transition: background var(--dur) var(--ease-out),
              padding var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
  mix-blend-mode: normal;
}
.site-header.is-scrolled {
  padding-block: 14px;
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(243,238,228,0.08);
}
.site-header.is-inverse:not(.is-scrolled) { color: var(--ink); }
.site-header.is-inverse:not(.is-scrolled) .brand__mark { color: var(--ink); }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.brand small {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 500;
}
.site-header.is-inverse:not(.is-scrolled) .brand small { color: #4A4740; }

.nav {
  justify-self: center;
  display: flex; gap: 34px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a { position: relative; padding: 6px 0; opacity: 0.86; transition: opacity var(--dur-fast) var(--ease-out); }
.nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 18px; height: 1px; background: currentColor;
  transition: transform 320ms var(--ease-out);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: translateX(-50%) scaleX(1); }

.header-cta {
  justify-self: end;
  display: flex; align-items: center; gap: 20px;
}
.header-cta .btn { padding: 12px 22px; font-size: 11.5px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.menu-btn__lines { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-btn__lines span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out); }

@media (max-width: 960px) {
  .nav, .header-cta .btn { display: none; }
  .header-cta { justify-self: end; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity 600ms var(--ease-out);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px var(--gutter) var(--gutter);
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-overlay__top {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
}
.menu-overlay__nav {
  align-self: center;
  display: grid; gap: clamp(6px, 2vh, 18px);
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 96px);
  line-height: 1;
  max-width: 1200px; margin-inline: auto; width: 100%;
}
.menu-overlay__nav a {
  display: inline-block;
  position: relative;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.menu-overlay.is-open .menu-overlay__nav a { transform: none; opacity: 1; }
.menu-overlay__nav a:hover { color: var(--dust); }
.menu-overlay__foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4);
  padding-top: var(--s-4); border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 13.5px; color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--paper);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  background-color: #0d0c0a;
  background-position: center;
  background-size: cover;
  will-change: transform;
}
.hero__media::after {
  /* subtle film grain */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}
.hero__scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,8,0.58) 0%, rgba(11,10,8,0.20) 34%, rgba(11,10,8,0.55) 78%, rgba(11,10,8,0.88) 100%),
    radial-gradient(80% 60% at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
}
.hero__body {
  align-self: end;
  padding: 0 var(--gutter) var(--s-6);
  max-width: var(--container);
  width: 100%; margin-inline: auto;
  display: grid; gap: var(--s-4);
}
.hero__eyebrow { color: var(--paper); opacity: 0.86; }
.hero__title {
  font-family: var(--serif);
  font-size: var(--t-mega);
  line-height: 0.88;
  letter-spacing: 0.008em;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 22px 44px; align-items: center;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta strong { color: var(--paper); font-weight: 500; }

.hero__scroll {
  position: absolute;
  bottom: 24px; right: var(--gutter);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll::before {
  content: ""; width: 1px; height: 40px; background: currentColor; opacity: 0.6;
  animation: scrollpulse 2.6s var(--ease-in-out) infinite;
}
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 72svh;
  padding-top: 140px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,10,8,0.55) 0%, rgba(11,10,8,0.20) 45%, rgba(11,10,8,0.82) 100%);
}
.page-hero__inner {
  max-width: var(--container); width: 100%;
  margin-inline: auto;
  padding: 0 var(--gutter) var(--s-6);
  display: grid; gap: var(--s-3);
}
.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1.0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.008em;
  max-width: 22ch;
  text-wrap: balance;
}
.page-hero__title br { display: block; content: ""; margin-top: 0.05em; }
.page-hero__sub {
  max-width: 620px;
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--paper);
  opacity: 0.9;
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #14120f;
}
.split__media img, .split__media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1200ms var(--ease-out);
}
.split__media:hover img { transform: scale(1.06); }
.split__body { display: grid; gap: var(--s-3); max-width: 520px; }
.split__body .eyebrow { color: var(--muted); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: var(--s-4); }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3; }
}

/* ---------- Pillars (four columns editorial) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: var(--s-4) var(--s-3);
  border-right: 1px solid var(--rule);
  display: grid; gap: 12px; align-content: start;
}
.pillar:last-child { border-right: 0; }
.pillar__num {
  font-family: var(--sans);
  font-size: 11.5px; letter-spacing: 0.3em; color: var(--muted);
  font-weight: 500;
}
.pillar__title { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); margin: 0; line-height: 1.1; }
.pillar__body { color: var(--muted); font-size: 15px; line-height: 1.55; }
.section--paper .pillar__body, .section--bone .pillar__body { color: #4A4740; }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--rule); padding: var(--s-3); }
  .pillar:nth-child(odd) { border-right: 1px solid var(--rule); }
  .pillar:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0 !important; }
  .pillar:last-child { border-bottom: 0; }
}

/* ---------- Feature image ---------- */
.feature-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}
.feature-img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  transition: transform 1500ms var(--ease-out);
}
[data-reveal].is-hiding .feature-img img { transform: scale(1.04); }
.feature-img--tall { aspect-ratio: 3 / 4; }
.feature-img--square { aspect-ratio: 1 / 1; }

.feature-caption {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding-top: 14px;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Card grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 32px);
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card { display: grid; gap: 16px; }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__title { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin: 0; }
.card__body { color: var(--muted); font-size: 15px; line-height: 1.6; }
.section--paper .card__body, .section--bone .card__body { color: #4A4740; }

/* ---------- Journal card ---------- */
.j-card { display: grid; gap: 14px; }
.j-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #14120f; }
.j-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.j-card:hover .j-card__media img { transform: scale(1.05); }
.j-card__meta { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.j-card__title { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 0; }
.j-card__excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Marquee / signature strip ---------- */
.marquee {
  overflow: hidden;
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.marquee__track {
  display: inline-flex; gap: 3vw; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(48px, 7vw, 96px);
  line-height: 1; letter-spacing: 0.02em; text-transform: uppercase;
  animation: marquee 42s linear infinite;
}
.marquee__track span::after {
  content: "·"; margin-left: 3vw; opacity: 0.5;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Visit strip ---------- */
.visit {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.visit__title { font-family: var(--serif); font-size: var(--t-h1); line-height: 0.98; margin: 0; }
.visit__details { display: grid; gap: 18px; font-family: var(--sans); font-size: 15px; }
.visit__row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.visit__row:last-child { border-bottom: 1px solid var(--rule); }
.visit__label { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.visit__value { color: inherit; line-height: 1.6; }
.section--paper .visit__label, .section--bone .visit__label { color: #6E6659; }

@media (max-width: 820px) {
  .visit { grid-template-columns: 1fr; }
}

/* ---------- Newsletter ---------- */
.subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  max-width: 560px;
}
.subscribe input {
  background: transparent; border: 0;
  color: inherit;
  font: inherit; font-size: 15px;
  padding: 16px 4px;
  outline: none;
  border-radius: 0;
}
.subscribe input::placeholder { color: var(--muted); }
.subscribe button {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 16px 0 16px 20px;
  color: inherit;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.subscribe button:hover { opacity: 0.6; }

/* ---------- Form (contact) ---------- */
.form { display: grid; gap: var(--s-3); max-width: 640px; }
.form label { display: grid; gap: 8px; font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 16px; letter-spacing: 0.01em; text-transform: none;
  color: var(--fg);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule);
  padding: 12px 2px;
  border-radius: 0;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--paper); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 620px) { .form .row-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--muted); }

.section--paper .form input, .section--paper .form textarea, .section--paper .form select,
.section--bone .form input, .section--bone .form textarea, .section--bone .form select { color: var(--ink); border-bottom-color: rgba(11,10,8,0.24); }
.section--paper .form input:focus, .section--bone .form input:focus { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-6) 0 var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.footer-col h4 {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; margin: 0 0 var(--s-2);
  color: var(--muted); font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14.5px; }
.footer-col a:hover { color: var(--dust); }
.footer-brand { font-family: var(--serif); font-size: clamp(64px, 8vw, 120px); line-height: 0.9; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 14px; }
.footer-brand small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.28em; margin-top: 12px; color: var(--muted); font-weight: 500; }
.footer-legal {
  padding-top: var(--s-3);
  display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
  font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.02em;
}
.footer-legal a:hover { color: var(--paper); }
.social-row { display: flex; gap: 14px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.social-row a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.social-row svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations ----------
   Progressive enhancement: default state is VISIBLE.
   JS opts individual elements into the animation by adding .is-hiding on init;
   the IntersectionObserver removes .is-hiding when the element scrolls into view.
   If JS or IO never fires, content stays visible. */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-hiding {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal="fade"].is-hiding      { transform: none; }
[data-reveal="rise"].is-hiding      { transform: translateY(28px); }
[data-reveal="mask"] {
  transition: opacity 1000ms var(--ease-out);
}
[data-reveal="mask"].is-hiding      { opacity: 0; transform: none; }

/* Split-word title reveal.
   inline-block so words flow inline (and wrap naturally); overflow hidden clips the child's off-screen start.
   Padding-top + matching negative margin-top add clip-safe room for Le Jour Serif's cap-height without shifting layout. */
.word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
  padding-top: 0.18em;
  margin-top: -0.18em;
}
.word-reveal > span {
  display: inline-block;
  transform: translateY(0);
  transition: transform 1000ms var(--ease-out);
  transition-delay: var(--wr-delay, 0ms);
}
.word-reveal.is-hiding > span { transform: translateY(110%); }

/* ---------- Grid utilities ---------- */
.stack-2 { display: grid; gap: var(--s-2); }
.stack-3 { display: grid; gap: var(--s-3); }
.stack-4 { display: grid; gap: var(--s-4); }
.stack-5 { display: grid; gap: var(--s-5); }
.stack-6 { display: grid; gap: var(--s-6); }

.hstack { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.hstack-lg { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; }

/* Editorial two-column heading + intro */
.editorial-intro {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.editorial-intro .lead { max-width: 560px; }
@media (max-width: 820px) { .editorial-intro { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ---------- Mobile tuning ---------- */
@media (max-width: 720px) {
  /* Tighten vertical rhythm on phones */
  .section     { padding-block: clamp(56px, 12vw, 88px); }
  .section-sm  { padding-block: clamp(40px, 9vw, 64px); }
  .section-lg  { padding-block: clamp(72px, 14vw, 112px); }

  /* Scroll indicator overlaps content on short viewports */
  .hero__scroll { display: none; }

  /* Nudge inner-page hero title down a touch on very narrow screens */
  .page-hero__title { font-size: clamp(34px, 8vw, 60px); max-width: 18ch; }

  /* Editorial two-col heading + intro stack tighter on mobile */
  .editorial-intro { gap: var(--s-3); }

  /* Prevent .hero__title (the mega mark) from getting silly at very small widths */
  .hero__title { font-size: clamp(56px, 20vw, 128px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal], [data-reveal].is-hiding { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .word-reveal > span, .word-reveal.is-hiding > span { transform: none !important; }
}
