/* ============================================================
   Lamb Lettuce Catering — stylesheet
   Ground: deep navy. Relief: sand cream. Gold as hairline only.
   ============================================================ */

:root {
  --ink:        #0E2A3B;
  --ink-deep:   #08202E;
  --ink-soft:   #1A3E52;
  --teal:       #1F6F78;
  --sea-glass:  #7FB6A8;
  --sage-deep:  #486659; /* sage, darkened for small text on cream — 5.75:1 */
  --cream:      #F7F4EC;
  --cream-warm: #EFEADD;
  --char:       #1C2321;
  --gold:       #C6A85C;
  --gold-deep:  #7D6224; /* gold, darkened for small text on cream — 5.24:1 */

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.44rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.85rem);
  --step-4:  clamp(2.3rem, 1.7rem + 3vw, 4.2rem);
  --step-5:  clamp(3.2rem, 2rem + 6vw, 7rem);

  --tide-h: clamp(26px, 4.2vw, 62px);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: clamp(5.25rem, 9vw, 6.5rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is load-bearing — without it the HTML height attribute wins over
   aspect-ratio and images render at full intrinsic height. */
img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: inherit; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cream); color: var(--ink);
  padding: 0.75rem 1.25rem; font-size: var(--step--1);
}
.skip:focus { left: 0; }

/* ---------- shared layout ---------- */

.wrap { width: min(100% - (var(--gutter) * 2), 1280px); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 900px); margin-inline: auto; }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

.light { background: var(--cream); color: var(--char); }
.light h1, .light h2, .light h3 { color: var(--ink); }
.warm { background: var(--cream-warm); color: var(--char); }
.warm h2, .warm h3 { color: var(--ink); }

/* film-grain tooth over the dark fields */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.light .eyebrow, .warm .eyebrow { color: var(--teal); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.btn--solid { background: var(--teal); color: var(--cream); }
.btn--solid:hover { background: var(--sea-glass); color: var(--ink); }

.btn--line {
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
  color: inherit;
}
.btn--line:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

.textlink {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  transition: border-color 180ms ease-out;
}
.textlink:hover { border-color: currentColor; }

/* ---------- masthead ---------- */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.35rem 0 6rem;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--ink-deep) 88%, transparent) 0%,
    color-mix(in srgb, var(--ink-deep) 62%, transparent) 26%,
    color-mix(in srgb, var(--ink-deep) 26%, transparent) 58%,
    color-mix(in srgb, var(--ink-deep) 8%, transparent) 80%,
    transparent 100%);
  pointer-events: none;
  /* A transparent 1px border here composites against the translucent gradient and
     leaves a visible hairline across the hero. box-shadow draws the stuck-state
     rule without adding a border box to paint through. */
  transition: background 260ms ease-out, padding 260ms ease-out, box-shadow 260ms ease-out;
}
.masthead.is-stuck {
  padding: 0.85rem 0;
  background: color-mix(in srgb, var(--ink-deep) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 28%, transparent);
}

.masthead__inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 3rem); }

.mark { position: relative; z-index: 2; flex: 0 0 auto; display: flex; align-items: center; gap: clamp(0.7rem, 1vw, 1rem); text-decoration: none; color: var(--cream); }
.mark__img {
  height: clamp(54px, 4.8vw, 70px);
  width: clamp(54px, 4.8vw, 70px);
  transition: height 260ms ease-out, width 260ms ease-out;
}
.is-stuck .mark__img { height: clamp(42px, 3.4vw, 50px); width: clamp(42px, 3.4vw, 50px); }
/* the footer badge is large enough to carry the name on its own */
.mark--badge .mark__img { height: clamp(88px, 11vw, 104px); width: clamp(88px, 11vw, 104px); }
.mark__type {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 1.5vw, 1.58rem);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: font-size 260ms ease-out;
}
.is-stuck .mark__type { font-size: clamp(1.24rem, 1.2vw, 1.36rem); }
.mark__type em { font-style: normal; display: block; font-size: clamp(0.74rem, 0.92vw, 0.82rem); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-top: 0.38em; }

.nav { flex: 0 1 auto; display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.8rem); }
.nav a {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-decoration: none;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  padding-block: 0.35rem;
  white-space: nowrap;
  transition: color 160ms ease-out;
}
.nav a:hover { color: var(--cream); }
.nav .btn { flex: 0 0 auto; padding: 0.7rem 1.35rem; color: var(--cream); white-space: nowrap; }

.nav__toggle {
  position: relative; z-index: 2;
  display: none;
  background: none; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  color: var(--cream); font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 1rem; cursor: pointer;
}

@media (max-width: 900px) {
  .js .nav__toggle { display: block; }
  .nav {
    pointer-events: auto;
    flex-direction: column; align-items: flex-start;
    gap: 0.25rem;
  }
  .js .nav {
    position: fixed; inset: 0 0 auto 0;
    max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--ink-deep);
    padding: 6rem var(--gutter) 2.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 320ms cubic-bezier(.22,.61,.36,1), visibility 320ms;
  }
  .js .nav.is-open { transform: translateY(0); visibility: visible; }
  /* no JS: the masthead stops being fixed so the stacked list cannot cover the page */
  html:not(.js) .masthead { position: static; padding-bottom: 1.35rem; background: var(--ink-deep); }
  html:not(.js) .masthead__inner { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  html:not(.js) .nav { flex-direction: row; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
  html:not(.js) .nav a { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.08em; }
  .nav a { font-family: var(--serif); font-size: var(--step-2); letter-spacing: 0; }
  .nav .btn { margin-top: 1rem; font-family: var(--sans); font-size: var(--step--1); }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.hero__card {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(7rem, 12vh, 10rem) clamp(1.5rem, 5vw, 5.5rem) clamp(3rem, 7vh, 5rem) var(--gutter);
}

.hero__figure { position: relative; overflow: hidden; }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 55%; }
.hero__figure::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 45%, transparent) 0%, transparent 14%),
    linear-gradient(100deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 55%, transparent) 20%, color-mix(in srgb, var(--ink) 15%, transparent) 48%, transparent 72%);
}

/* the menu-card lockup */
.lockup { max-width: 15ch; }
.lockup__over {
  font-size: var(--step--1); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sea-glass); margin: 0 0 1.5rem; max-width: 46ch; line-height: 1.8;
}
.lockup__name {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: var(--step-5);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--cream);
}
.lockup__name span { display: block; }
.lockup__name span:nth-child(2) { padding-left: 0.08em; }
.lockup__foot {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0 0; max-width: none;
  font-size: var(--step--1); letter-spacing: 0.42em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 400;
  color: var(--gold); white-space: nowrap;
}
.lockup__foot::before, .lockup__foot::after {
  content: ""; flex: 1;
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.hero__lede {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  max-width: 34ch;
  margin: 2.4rem 0 2.6rem;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }

.hero__socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; padding: 0; margin: 2.4rem 0 0; }
.hero__socials a {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px;
  font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 82%, transparent); text-decoration: none;
  transition: color 160ms ease-out;
}
.hero__socials a:hover { color: var(--gold); }
.hero__socials svg { width: 28px; height: 28px; fill: currentColor; flex: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__figure { order: -1; height: 58vh; height: 58svh; min-height: 340px; }
  .hero__figure::after {
    background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 35%, var(--ink) 99%);
  }
  .hero__card { padding-top: 1rem; padding-bottom: 4rem; }
  .lockup { max-width: none; }
}

/* load reveal — one orchestrated moment, nothing else animates in */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-load > * { opacity: 0; transform: translateY(14px); animation: rise 900ms cubic-bezier(.22,.61,.36,1) forwards; }
  .js .reveal-load > *:nth-child(1) { animation-delay: 120ms; }
  .js .reveal-load > *:nth-child(2) { animation-delay: 240ms; }
  .js .reveal-load > *:nth-child(3) { animation-delay: 380ms; }
  .js .reveal-load > *:nth-child(4) { animation-delay: 500ms; }
  .js .reveal-load > *:nth-child(5) { animation-delay: 620ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .js .onscroll { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease-out, transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
  .js .onscroll.is-in { opacity: 1; transform: none; }
}

/* ---------- proof band ---------- */

.proof { position: relative; background: var(--ink-deep); padding-bottom: var(--tide-h); }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
}
.proof__item { padding: 2.4rem 1rem; }
.proof__item + .proof__item { border-left: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.proof__figure {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-variation-settings: "opsz" 144;
  color: var(--cream);
  line-height: 1;
}
.proof__label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sea-glass) 90%, transparent);
  margin-top: 0.75rem;
}
@media (max-width: 720px) {
  .proof__grid { grid-template-columns: 1fr; }
  .proof__item + .proof__item { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
  .proof__item { padding-block: 1.6rem; }
}

/* ---------- story ---------- */

.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.story__figure { position: relative; }
.story__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__caption {
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--char) 65%, transparent);
  margin: 0.9rem 0 0;
  max-width: 34ch;
}
.story h2 { font-size: var(--step-3); margin-bottom: 1.6rem; }
.story p { font-family: var(--serif); font-size: var(--step-1); font-weight: 300; line-height: 1.62; font-variation-settings: "opsz" 24; }
.story p.plain { font-family: var(--sans); font-size: var(--step-0); line-height: 1.7; }

.creds { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; margin-top: 2.2rem; padding: 0; list-style: none; }
.creds li {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
  color: var(--teal);
  padding: 0.5rem 0.95rem;
}

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

/* ---------- what we cook ---------- */

.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 3.5rem; }
.offer__col h3 { font-size: var(--step-2); margin-bottom: 0.9rem; }
.offer__col p { font-size: var(--step-0); color: color-mix(in srgb, var(--char) 80%, transparent); }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; } }

.occasions {
  display: flex; flex-wrap: wrap; gap: 0;
  list-style: none; padding: 0; margin: 3.5rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.occasions li {
  flex: 1 1 auto;
  padding: 1.15rem 1.4rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-variation-settings: "opsz" 24;
  color: var(--ink);
  text-align: center;
}
.occasions li + li { border-left: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
@media (max-width: 720px) {
  .occasions li { flex-basis: 50%; }
  .occasions li:nth-child(odd) { border-left: 0; }
  .occasions li:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
}

/* the menu card — the one loud thing on the page */
.favourites { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.card {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  padding: clamp(3.4rem, 5.5vw, 5rem) clamp(1.5rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.6rem);
  text-align: center;
}

/* The house seal pressed onto the top edge of the menu, cutting the gold rule
   the way a real stamp would. Its cream sits a shade above the page's cream,
   so it reads as embossed rather than pasted on. */
.card__seal {
  position: absolute;
  top: 0; left: 50%;
  width: clamp(68px, 9vw, 94px);
  height: auto;
  transform: translate(-50%, -50%);
}
.card__title { font-size: var(--step-2); margin-bottom: 0.4rem; }
.card__sub { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin: 0 auto 2.4rem; }

.dish { text-align: left; }
.dish + .dish { margin-top: 1.9rem; padding-top: 1.9rem; border-top: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
.dish__line { display: flex; align-items: baseline; gap: 0.6rem; }
.dish__name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--step-1); font-variation-settings: "opsz" 24;
  color: var(--ink); white-space: nowrap;
}
.dish__dots { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--char) 40%, transparent); transform: translateY(-0.3em); }
.dish__tag { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); white-space: nowrap; }
.dish p { margin: 0.5rem 0 0; font-size: var(--step-0); color: color-mix(in srgb, var(--char) 78%, transparent); }

.favourites__stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.favourites__stack img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 860px) { .favourites { grid-template-columns: 1fr; } }

/* ---------- how it works (a real sequence) ---------- */

.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { padding: 0 clamp(1rem, 2.5vw, 2.4rem); border-left: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.step__no {
  display: block; font-family: var(--serif); font-size: var(--step-2);
  font-variation-settings: "opsz" 144; color: var(--gold); line-height: 1; margin-bottom: 1rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.steps p { font-size: var(--step-0); color: color-mix(in srgb, var(--cream) 78%, transparent); margin: 0; }
.dark-steps h3 { color: var(--cream); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps li { padding: 0 0 0 1.6rem; border-left: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); }
  .steps li:first-child { padding-left: 1.6rem; border-left: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); }
}

/* ---------- team ---------- */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: 3.5rem; }
.person__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink-soft);
  display: grid; place-items: center;
  overflow: hidden;
}
.person__portrait img { width: 100%; height: 100%; object-fit: cover; }
/* PORTRAIT SLOT — swap the .person__initial block for <img src="assets/img/team-<name>.jpg" alt="..."> */
.person__initial {
  font-family: var(--serif); font-size: clamp(4rem, 9vw, 7rem); font-weight: 300;
  font-variation-settings: "opsz" 144;
  color: color-mix(in srgb, var(--gold) 70%, transparent);
  line-height: 1;
}
.person__portrait::after {
  content: ""; position: absolute; inset: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  pointer-events: none;
}
.person h3 { font-size: var(--step-2); margin: 1.5rem 0 0.3rem; color: var(--cream); }
.person__role { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea-glass); margin: 0 0 1.1rem; }
.person p { font-size: var(--step-0); color: color-mix(in srgb, var(--cream) 76%, transparent); }
.person blockquote {
  margin: 1.4rem 0 0; padding-left: 1.2rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: var(--step-1);
  font-variation-settings: "opsz" 24;
  color: color-mix(in srgb, var(--cream) 92%, transparent);
  line-height: 1.5;
}
@media (max-width: 860px) { .team { grid-template-columns: 1fr; max-width: 32rem; } }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 0.6rem; margin-top: 3rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery figure:nth-child(1), .gallery figure:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(1) img, .gallery figure:nth-child(8) img { aspect-ratio: 1 / 1; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(8) { grid-column: span 2; grid-row: span 1; }
}

/* ---------- gallery lightbox ---------- */

.gallery .shot { display: block; cursor: zoom-in; }
.gallery .shot img { transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery .shot:hover img,
.gallery .shot:focus-visible img { transform: scale(1.04); }

/* <dialog> rather than a hand-rolled overlay: the backdrop, Escape-to-close,
   focus trapping and focus restore are all native. */
.lightbox {
  /* Centred in the viewport, not in the document: `position: relative` here put the
     dialog in normal flow at the end of the body, so opening it scrolled the page
     to the top to reach the newly focused element. */
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  border: 0; padding: 0; background: transparent;
  max-width: min(92vw, 1080px);
  max-height: 92dvh;
  overflow: visible;
}
.lightbox::backdrop {
  background: color-mix(in srgb, var(--ink-deep) 93%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox__img {
  max-height: 76dvh;
  width: auto;
  margin: 0 auto;
}
.lightbox__name {
  margin: 1.15rem auto 0;
  max-width: 28ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  font-variation-settings: "opsz" 36;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: var(--cream);
}
.lightbox__close {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  font-size: 1.45rem; line-height: 1;
  color: var(--cream);
  background: color-mix(in srgb, var(--ink-deep) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 32%, transparent);
  border-radius: 50%;
  cursor: pointer;
  transition: background 180ms ease;
}
.lightbox__close:hover { background: var(--ink-deep); }

/* Fade the whole thing in. Browsers without allow-discrete just cut to opacity 1. */
.lightbox, .lightbox::backdrop {
  opacity: 0;
  transition: opacity 240ms ease, overlay 240ms allow-discrete, display 240ms allow-discrete;
}
.lightbox[open], .lightbox[open]::backdrop { opacity: 1; }
@starting-style {
  .lightbox[open], .lightbox[open]::backdrop { opacity: 0; }
}

/* ---------- reviews ---------- */

.reviews { columns: 2; column-gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.25rem; }
.review { break-inside: avoid; margin: 0 0 clamp(1.5rem, 3vw, 2.75rem); padding-bottom: clamp(1.5rem, 3vw, 2.75rem); border-bottom: 1px solid color-mix(in srgb, var(--gold) 26%, transparent); }
.review blockquote { margin: 0; font-family: var(--serif); font-size: var(--step-1); font-weight: 300; font-variation-settings: "opsz" 24; line-height: 1.5; color: var(--cream); }
.review figcaption { margin-top: 1rem; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea-glass); }
.review .stars { color: var(--gold); letter-spacing: 0.22em; font-size: var(--step--1); display: block; margin-bottom: 0.9rem; }
@media (max-width: 800px) { .reviews { columns: 1; } }

/* ---------- enquiry ---------- */

.enquire h2 { margin-bottom: 1.3rem; }
.enquire { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.5rem; margin-top: 2.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--char) 70%, transparent); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: var(--step-0); color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  padding: 0.65rem 0.1rem;
  border-radius: 0;
  transition: border-color 160ms ease-out;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--teal); border-bottom-width: 2px; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: var(--step--1); color: color-mix(in srgb, var(--char) 72%, transparent); margin: 0; }
.form__status { grid-column: 1 / -1; margin: 0; font-size: var(--step-0); color: var(--teal); }
.form__status:empty { display: none; }
.form__status[data-state="error"] { color: #9B2C2C; }

/* honeypot: off-screen for people, still filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aside { position: sticky; top: 7rem; background: var(--ink); color: var(--cream); padding: clamp(2rem, 4vw, 3rem); }
.aside h3 { font-size: var(--step-2); color: var(--cream); margin-bottom: 1rem; }
.aside p { font-size: var(--step-0); color: color-mix(in srgb, var(--cream) 80%, transparent); }
.aside .btn { margin-top: 0.6rem; }
.aside dl { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.aside dt { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.aside dd { margin: 0.3rem 0 0; font-size: var(--step-0); color: color-mix(in srgb, var(--cream) 88%, transparent); }

@media (max-width: 900px) {
  .enquire { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .aside { position: static; }
}

/* ---------- socials + footer ---------- */

.socials { display: flex; gap: 1.5rem; align-items: center; list-style: none; padding: 0; margin: 2rem 0 0; }
.socials li { display: flex; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -11px; color: color-mix(in srgb, currentColor 75%, transparent); transition: color 160ms ease-out; }
.socials a:hover { color: var(--gold); }
.socials svg { width: 21px; height: 21px; fill: currentColor; }

.footer { position: relative; background: var(--ink-deep); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__nav a { display: inline-block; padding-block: 0.15rem; font-size: var(--step-0); text-decoration: none; color: color-mix(in srgb, var(--cream) 75%, transparent); }
.footer__nav a:hover { color: var(--cream); }
.footer h3 { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 1.25rem; }
.footer__legal {
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  padding-top: 1.6rem; margin-top: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  font-size: var(--step--1); color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.footer__legal p { margin: 0; max-width: none; }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---------- closing band ---------- */

.closing { text-align: center; }
.closing h2 { font-size: var(--step-4); margin-bottom: 1.6rem; }
.closing p { margin-inline: auto; max-width: 46ch; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.closing .btn { margin-top: 1.6rem; }

/* set by main.js while the mobile nav panel is open */
body.nav-open { overflow: hidden; }

/* ============================================================
   TIDE LINES
   Every change of ground colour is a shallow swell rather than a
   straight edge. Two layers — a translucent back swell and the
   incoming section's own colour in front — drift in opposite
   directions, and the drift is driven by the reader's scroll, so
   the water only moves while they move.
   ============================================================ */

:root {
  /* one full sine period across the tile; cubic handles at 1.333 x amplitude
     approximate a sine closely enough at this scale */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,8 c16.667,-8 33.333,-8 50,0 c16.667,8 33.333,8 50,0 L100,20 L0,20 Z' fill='%23000'/%3E%3C/svg%3E");
}

.tide {
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  /* taller than the wave itself so the back swell has headroom to rise into,
     and clipped so the 200%-wide layers below cannot widen the document.
     `clip` rather than `hidden`: hidden would make this a scroll container and
     the view() timelines inside would resolve against it and never advance. */
  height: calc(var(--tide-h) * 1.8);
  overflow: clip;
  pointer-events: none;
  z-index: 1;
}

.tide::before,
.tide::after {
  content: "";
  position: absolute;
  bottom: 0; height: var(--tide-h);
  left: -50%; width: 200%;
  -webkit-mask: var(--wave) repeat-x bottom / 25% 100%;
  mask: var(--wave) repeat-x bottom / 25% 100%;
  transform-origin: 50% 100%;
}

.tide::before { background: var(--tide-back); transform: translate3d(-25%, -13%, 0); opacity: 0.8; }
.tide::after  { background: var(--tide); }

/* On a phone two periods read as chop; one long period reads as swell. */
@media (max-width: 700px) {
  .tide::before, .tide::after {
    -webkit-mask-size: 55% 100%;
    mask-size: 55% 100%;
  }
}

[data-tide="cream"]      { --tide: var(--cream);      --tide-back: color-mix(in srgb, var(--sea-glass) 40%, transparent); }
[data-tide="cream-warm"] { --tide: var(--cream-warm); --tide-back: color-mix(in srgb, var(--sea-glass) 30%, transparent); }
[data-tide="ink"]        { --tide: var(--ink);        --tide-back: color-mix(in srgb, var(--teal) 55%, transparent); }
[data-tide="ink-deep"]   { --tide: var(--ink-deep);   --tide-back: color-mix(in srgb, var(--teal) 45%, transparent); }

/* Scroll-driven, so the swell answers the reader rather than running on a
   clock. Browsers without scroll timelines keep the tide lines, just still. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tide::before,
    .tide::after {
      animation: linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .tide::after  { animation-name: tide-front; }
    .tide::before { animation-name: tide-back; }

    /* the hero plate sinks a little slower than the page it sits on */
    .hero__figure img {
      animation: hero-sink linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
}

/* Each swell builds as it crosses the middle of the viewport and settles again,
   so a wave passes under the reader rather than sliding past them. Scaling from
   the bottom edge keeps the body of the wave flush with the section it belongs to. */
@keyframes tide-front {
  from { transform: translate3d(7%, 0, 0) scaleY(0.80); }
  50%  { transform: translate3d(-6%, 0, 0) scaleY(1.14); }
  to   { transform: translate3d(-19%, 0, 0) scaleY(0.86); }
}
@keyframes tide-back {
  from { transform: translate3d(-26%, -11%, 0) scaleY(0.86); opacity: 0.55; }
  50%  { transform: translate3d(-12%, -18%, 0) scaleY(1.18); opacity: 1; }
  to   { transform: translate3d(4%, -8%, 0) scaleY(0.92); opacity: 0.6; }
}
@keyframes hero-sink {
  from { transform: scale(1.07) translate3d(0, -2.2%, 0); }
  to   { transform: scale(1.07) translate3d(0, 3.4%, 0); }
}
