/* =========================================================
   MyBeach — styles
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop)
   ========================================================= */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
/* Metric-matched fallbacks, so text doesn't jump when the web fonts arrive */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 94.8%;
  ascent-override: 77.5%;
  descent-override: 27.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Work Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Arimo");
  size-adjust: 113.1%;
  ascent-override: 82.2%;
  descent-override: 21.5%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5efe4;
  --paper-2: #ece3d2;
  --paper-3: #e2d6c0;
  --card: #fbf8f2;
  --line: #d6c8af;

  --ink: #1d2c2b;
  --ink-soft: #55625f;
  --sea: #1d3a38;        /* deep sea-green, used for dark sections */
  --sea-2: #27504c;
  --surf: #3f8b85;
  --clay: #b5532e;       /* terracotta roof-tile accent */
  --clay-dark: #a24c2a;

  --on-dark: #f3ece0;
  --on-dark-soft: #b9c3bc;

  --font-display: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Work Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);

  --gutter: 1.25rem;
  --container: 70rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7rem);
  --header-h: 4rem;

  --radius: 6px;
  --tap: 3rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ink-soft);
}
.hand-light { color: var(--on-dark); }
.nowrap { white-space: nowrap; }

.kicker {
  margin-bottom: 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clay);
}
.kicker-light { color: #e79b78; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 3.4rem; padding: 0.85rem 1.75rem; font-size: 1.05rem; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--clay); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.link-arrow:hover { color: var(--clay); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap);
  text-decoration: none;
  line-height: 1;
}
.logo-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0 0.25rem 0 0.75rem;
  margin-right: -0.25rem;
  background: none;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle-icon { position: relative; width: 1.5rem; height: 0.75rem; }
.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle-icon span:first-child { top: 0; }
.menu-toggle-icon span:last-child { top: calc(100% - 2px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { top: calc(50% - 1px); transform: rotate(-45deg); }

/* Mobile nav: panel below the header, links at thumb height */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.nav.is-open { opacity: 1; visibility: visible; }

.nav-link {
  display: flex;
  align-items: center;
  min-height: 3.6rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-link.is-active { color: var(--clay); }
.nav-cta { width: 100%; min-height: 3.4rem; }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3rem; overflow: hidden; }

.hero-inner { display: grid; gap: 3rem; }

.hero-title {
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h1-kicker {
  display: block;
  font-family: var(--font-body);
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.h1-main { display: block; max-width: 13ch; }
.scribble {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--clay);
}
.scribble svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.28em;
  fill: none;
  stroke: var(--clay);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.75;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

/* Polaroids */
.hero-photos {
  position: relative;
  min-height: 25rem;
  max-width: 26rem;
  width: 100%;
  margin-inline: auto;
}
.polaroid {
  position: absolute;
  padding: 0.6rem 0.6rem 0;
  background: #fffdf8;
  box-shadow: 0 1px 2px rgba(29, 44, 43, 0.12), 0 12px 28px -12px rgba(29, 44, 43, 0.35);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { padding: 0.5rem 0.25rem 0.6rem; text-align: center; }

.polaroid-back {
  top: 0;
  left: 0;
  width: 70%;
  aspect-ratio: 4 / 3.35;
  padding-bottom: 2.2rem;
  transform: rotate(-5deg);
}
.polaroid-front {
  right: 0;
  top: 4.5rem;
  width: 58%;
  transform: rotate(3.5deg);
}
.polaroid-front img { aspect-ratio: 4 / 5; }

/* Tape on the front photo */
.polaroid-front::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 5.5rem;
  height: 1.6rem;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(226, 214, 192, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.price-tag {
  position: absolute;
  left: 0.5rem;
  bottom: 0;
  display: grid;
  padding: 0.75rem 1.1rem;
  background: var(--clay);
  color: #fff;
  transform: rotate(-3deg);
  box-shadow: 0 10px 20px -10px rgba(162, 76, 42, 0.7);
}
.price-tag-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.price-tag-value { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }

/* Fact strip */
.fact-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
}
.fact-strip li {
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.fact-strip li:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.fact-strip li:nth-child(even) { padding-left: 1rem; }
.fact-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--paper-2); }
.section-ink { background: var(--sea); color: var(--on-dark); }
.section-ink .section-head p:not(.kicker) { color: var(--on-dark-soft); }

.section-title { font-size: var(--step-3); text-wrap: balance; margin-bottom: 1.25rem; }
.section-head { max-width: 38rem; margin-bottom: 2.5rem; }
.section-head p:not(.kicker) { color: var(--ink-soft); }

/* ---------- The land ---------- */
.land-grid { display: grid; gap: 2.5rem; }
.land-intro { max-width: 38rem; }
.land-intro p:not(.kicker) { color: var(--ink-soft); }

.plot-map-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 14px 30px -18px rgba(29, 44, 43, 0.6); }
.plot-map-frame img { width: 100%; }
.plot-map figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-soft); }

.plot-note {
  position: absolute;
  font-size: clamp(1.1rem, 0.8rem + 1.5vw, 1.7rem);
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.plot-note-sea { left: 4%; top: 70%; transform: rotate(-8deg); }
.plot-note-plot { left: 5%; top: 5%; transform: rotate(-4deg); }

.spec {
  padding: 1.5rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.spec-title {
  font-size: var(--step-1);
  font-style: italic;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}
.spec-title:not(:first-child) { margin-top: 2rem; }
.spec-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
}
.spec-list dt { color: var(--ink-soft); }
.spec-list dd { font-weight: 600; text-align: right; }
.spec-total dt { color: var(--ink); font-weight: 600; }
.spec-total dd { color: var(--clay); font-size: 1.1em; }
.spec-foot { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Ideas ---------- */
.ideas-grid { display: grid; gap: 2.5rem; align-items: center; }
.ideas-list { counter-reset: idea; display: grid; gap: 1.5rem; margin-top: 0.5rem; }
.ideas-list li {
  counter-increment: idea;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.ideas-list li::before {
  content: counter(idea, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--clay);
  line-height: 1.3;
}
.ideas-list h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.ideas-list p { color: var(--ink-soft); }

.idea-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.idea-figure figcaption { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-soft); }
.tag {
  flex: none;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ink-soft);
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Videos ---------- */
.video-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.video-row::-webkit-scrollbar { display: none; }
.video-card { flex: 0 0 78%; max-width: 20rem; scroll-snap-align: center; }
.video-frame {
  overflow: hidden;
  border-radius: 1.1rem;
  border: 6px solid #0f2120;
  background: #0f2120;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 608 / 1080; object-fit: cover; background: #0f2120; }
.video-card figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.75rem; padding-inline: 0.25rem; }
.video-meta { font-size: 0.85rem; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }

/* ---------- Photos ---------- */
.photo-wall { columns: 2; column-gap: 1rem; }
.photo-wall li { break-inside: avoid; margin-bottom: 1.5rem; }

.photo {
  display: block;
  width: 100%;
  padding: 0.5rem 0.5rem 0;
  border: 0;
  background: #fffdf8;
  box-shadow: 0 1px 2px rgba(29, 44, 43, 0.12), 0 10px 24px -12px rgba(29, 44, 43, 0.35);
  cursor: zoom-in;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.photo img {
  width: 100%;
  /* gentle warm grade so phone photos sit together */
  filter: saturate(1.05) contrast(1.03) sepia(0.06);
}
.photo .hand { display: block; padding: 0.45rem 0 0.55rem; font-size: 1.25rem; }

.photo-wall li:nth-child(4n + 1) .photo { transform: rotate(-1.2deg); }
.photo-wall li:nth-child(4n + 2) .photo { transform: rotate(1.5deg); }
.photo-wall li:nth-child(4n + 3) .photo { transform: rotate(-0.6deg); }
.photo-wall li:nth-child(4n + 4) .photo { transform: rotate(1deg); }
.photo-wall li .photo:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 2px 4px rgba(29, 44, 43, 0.12), 0 18px 34px -14px rgba(29, 44, 43, 0.45); }

/* ---------- Location ---------- */
.location-grid { display: grid; gap: 2.5rem; }
.location-text > p:not(.kicker):not(.hand):not(.coords) { color: var(--ink-soft); }

.distance-list { margin: 1.75rem 0; border-top: 1px solid var(--ink); }
.distance-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
}
.distance-list li span:last-child { font-family: var(--font-display); font-style: italic; color: var(--clay); }

.aside { font-size: 1.5rem; color: var(--sea-2); transform: rotate(-1.5deg); margin: 0 0 1.25rem; max-width: 22rem; }
.coords { font-size: 0.85rem; color: var(--ink-soft); }

.map-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  border: 6px solid #fffdf8;
  box-shadow: 0 14px 30px -18px rgba(29, 44, 43, 0.6);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--sea); color: var(--on-dark); }

.letter {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  padding: 2rem 1.25rem;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.letter-lead { max-width: 36rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }

.contact-options { display: grid; gap: 1.75rem; margin-top: 2.25rem; }
.contact-option { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.contact-label { font-size: var(--step--1); font-weight: 600; color: var(--clay); }
.contact-label span { font-weight: 400; color: var(--ink-soft); }
.contact-big {
  display: inline-block;
  margin: 0.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  line-height: 1.2;
  text-decoration: none;
  word-break: break-word;
}
.contact-big:hover { color: var(--clay); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-actions .btn { flex: 1 1 9rem; }

.copy-btn.is-copied { background: var(--surf); border-color: var(--surf); color: #fff; }

.ask-for { margin-top: 2.25rem; padding: 1.25rem; background: var(--paper-2); border-radius: var(--radius); }
.ask-for ul { margin-top: 0.5rem; display: grid; gap: 0.35rem; }
.ask-for li { position: relative; padding-left: 1.5rem; }
.ask-for li::before { content: "✓"; position: absolute; left: 0; color: var(--surf); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 1rem; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: var(--step-1); font-weight: 500; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--clay);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover h3 { color: var(--clay); }
.faq-item p { padding: 0 2.5rem 1.25rem 0; color: var(--ink-soft); max-width: 44rem; }
.section-head a { color: var(--clay); text-underline-offset: 0.2em; }

address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  background: #142a29;
  color: var(--on-dark-soft);
  font-size: 0.9rem;
}
.footer-inner { display: grid; gap: 0.4rem; justify-items: center; text-align: center; }
.footer-inner .logo-word { color: var(--on-dark); margin-bottom: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.25rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.6rem; text-decoration: none; color: var(--on-dark); }
.footer-nav a:hover { color: #e79b78; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 4.5rem 0.75rem 5rem;
  background: rgba(20, 30, 29, 0.95);
  color: var(--on-dark);
  touch-action: pan-y;
  animation: fade-in 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }

.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: min(100%, 70rem); }
.lightbox-img {
  max-height: 74vh;
  width: auto;
  border: 6px solid #fffdf8;
  transition: opacity 0.2s, transform 0.25s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-caption { font-family: var(--font-hand); font-size: 1.6rem; text-align: center; }
.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: calc(1.6rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--on-dark-soft);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close svg, .lightbox-nav svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: calc(0.75rem + env(safe-area-inset-top)); right: 0.75rem; }
.lightbox-nav { bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(1rem); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Tablet ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }

  .hero { padding: 3.5rem 0 4rem; }
  .hero-photos { min-height: 31rem; max-width: 32rem; }

  .fact-strip { grid-template-columns: repeat(4, 1fr); }
  .fact-strip li,
  .fact-strip li:nth-child(odd),
  .fact-strip li:nth-child(even) { padding: 1.1rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 0; }
  .fact-strip li:first-child { padding-left: 0; }
  .fact-strip li:last-child { border-right: 0; }

  .spec { padding: 2rem; }

  .video-row { overflow: visible; margin: 0; padding: 0; justify-content: flex-start; gap: 2rem; }
  .video-card { flex: 0 1 18rem; }
  .video-card:nth-child(2) { margin-top: 3rem; }

  .photo-wall { columns: 3; column-gap: 1.75rem; }
  .photo-wall li { margin-bottom: 2rem; }

  .map-frame { aspect-ratio: 16 / 11; }

  .letter { padding: 3rem; }
  .contact-options { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-actions .btn { flex: 0 1 auto; }

  .lightbox { padding: 4.5rem 5rem; }
  .lightbox-nav { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox-prev { left: 1.25rem; }
  .lightbox-next { right: 1.25rem; }
  .lightbox-close { right: 1.25rem; top: 1.25rem; }
}

/* =========================================================
   Desktop ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 4.75rem; }

  .menu-toggle { display: none; }
  .nav {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.75rem;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-link {
    min-height: var(--tap);
    padding: 0 0.85rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45em;
    transition: text-decoration-color 0.2s;
  }
  .nav-link:hover,
  .nav-link.is-active { color: inherit; text-decoration-color: var(--clay); }
  .nav-cta { width: auto; min-height: var(--tap); }

  .hero { padding: 4.5rem 0 4rem; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4rem; }
  .hero-photos { min-height: 31rem; max-width: 34rem; justify-self: end; }

  .land-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem 4rem; align-items: start; }
  .land-intro { grid-column: 1; }
  .plot-map { grid-column: 1; }
  .spec { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 1.5rem); }

  .ideas-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; }

  .section-ink .section-head { margin-bottom: 0; }
  #videos .container { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
  .video-row { justify-content: flex-end; }
  .video-card { flex: 0 0 14.5rem; }

  .photo-wall { column-gap: 2.5rem; }
  .photo-wall li { margin-bottom: 2.5rem; }

  .location-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
  .map-frame { aspect-ratio: 5 / 4; }

  .letter { padding: 3.5rem 4rem; }

  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
  .footer-inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; gap: 2rem; align-items: center; }
  .footer-nav { justify-self: center; }
  .footer-copy { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
