/* Hallmark · macrostructure: Photographic · tone: editorial luxury · anchor hue: brand gold (~90°)
 * theme: custom (vibe: "manicured lawns, charcoal, brass, quiet confidence")
 * paper oklch(96.6% 0.008 95) · accent oklch(55% 0.075 88) gold · Bodoni Moda + Hanken Grotesk
 * axes: light / high-contrast-serif / warm · nav: N5 floating pill · footer: Ft1 mast-headed
 * pre-emit critique: P4 H4 E4 S5 R4 V4
 */
:root {
  --color-paper: #f6f4ee;
  --color-paper-2: #edeae1;
  --color-ink: #1a1c20;
  --color-ink-2: #2a2c31;
  --color-muted: #5d5f63;
  --color-muted-dark: #b9b6ae;
  --color-gold: #86723d;
  --color-gold-text: #6b5a2c;
  --color-gold-light: #c9b47a;
  --color-on-gold: #ffffff;
  --color-rule: #d8d4c8;
  --color-rule-dark: #3a3c41;
  --color-focus: #1d5fd1;
  --color-owner: #0f7b5f;
  --color-owner-ink: #ffffff;
  --color-scrim: rgba(18, 19, 22, 0.62);

  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs: 0.78rem; --text-sm: 0.9rem; --text-md: 1.0625rem; --text-lg: 1.25rem;
  --text-xl: 1.6rem; --text-2xl: clamp(1.9rem, 3.2vw, 2.6rem);
  --text-display: clamp(2.4rem, 6vw, 4.6rem);

  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 40px; --space-2xl: 64px; --space-3xl: 104px;

  --radius-sm: 4px; --radius-pill: 999px;
  --ease-out: cubic-bezier(.2,.7,.2,1); --ease-in: cubic-bezier(.5,0,.75,0); --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: 140ms; --dur-med: 260ms;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body);
  font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
.cols .item > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; font-style: normal; line-height: 1.08;
  letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; min-width: 0; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-md); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-lg); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- N5 floating pill nav ---------- */
.nav { position: fixed; top: var(--space-md); left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1120px, calc(100% - 2 * var(--space-md))); display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); border-radius: var(--radius-pill);
  background: rgba(26, 28, 32, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--color-paper); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.nav .brand { display: flex; align-items: center; gap: var(--space-xs); text-decoration: none; flex: 0 0 auto; min-height: 44px; }
.nav .brand img { height: 30px; width: auto; }
.nav .links { display: flex; gap: var(--space-lg); margin: 0 auto; }
.nav .links a { text-decoration: none; font-size: var(--text-sm); letter-spacing: .02em; white-space: nowrap; padding: var(--space-xs) 0;
  border-bottom: 1px solid transparent; transition: border-color var(--dur-fast) var(--ease-out); }
.nav .links a:hover, .nav .links a[aria-current="page"] { border-color: var(--color-gold-light); }
.nav .actions { display: flex; gap: var(--space-xs); flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-lg);
  border-radius: var(--radius-pill); font: 600 var(--text-sm)/1 var(--font-body); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--color-gold); color: var(--color-on-gold); }
.btn-gold:hover { background: var(--color-gold-text); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.on-paper .btn-line:hover { background: var(--color-paper-2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-rule-dark); background: transparent; color: inherit; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; }
.drawer { display: none; }
@media (max-width: 960px) {
  .nav .links, .nav .actions .btn-line { display: none; }
  .nav .actions { margin-left: auto; }
  .burger { display: block; }
  .drawer { position: fixed; inset: 0; z-index: 49; background: var(--color-ink); color: var(--color-paper); padding: 110px var(--space-lg) var(--space-xl);
    flex-direction: column; gap: var(--space-xs); }
  .drawer.open { display: flex; }
  .drawer a { font-family: var(--font-display); font-size: 1.45rem; white-space: nowrap; text-decoration: none; padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-rule-dark); }
  .drawer .btn { font-family: var(--font-body); font-size: var(--text-md); border-bottom: 0; margin-top: var(--space-md); }
}
.nav .sm { display: none; }
@media (max-width: 560px) { .nav .lg { display: none; } .nav .sm { display: inline; } .nav { padding-left: var(--space-md); gap: var(--space-xs); }
  .nav .actions .btn-gold { padding: 0 var(--space-md); } .nav .brand img { height: 26px; } }

/* ---------- Photographic folds ---------- */
.fold { position: relative; min-height: 88vh; overflow: hidden; color: var(--color-paper); display: flex; align-items: flex-end; background: var(--color-ink); }
.fold.short { min-height: 64vh; }
.fold > video, .fold > img.bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fold::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,19,22,.35) 0%, rgba(18,19,22,.12) 22%, rgba(18,19,22,.25) 45%, var(--color-scrim) 100%),
              linear-gradient(90deg, rgba(18,19,22,.7) 0%, rgba(18,19,22,0) 65%); }
@media (max-width: 760px) { .fold::after { background: linear-gradient(180deg, rgba(18,19,22,.4) 0%, rgba(18,19,22,.35) 30%, rgba(18,19,22,.78) 100%); } }
.fold .caption h1, .fold .caption h2, .fold .caption p, .fold .caption .plate, .fold .trust { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.caption { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: var(--space-xl) var(--space-lg); display: grid; gap: var(--space-sm); }
.caption .plate { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-gold-light); }
.caption h1 { font-size: var(--text-display); max-width: 17ch; }
.caption h2 { max-width: 20ch; }
.caption p { max-width: 52ch; margin: 0; color: var(--color-paper); }
.caption .row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.textlink { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid currentColor; align-self: start; }
.textlink:hover { color: var(--color-gold-light); }
.on-paper .textlink:hover { color: var(--color-gold-text); }
.hero { min-height: 100vh; min-height: 100svh; }
.hero .caption { padding-bottom: var(--space-2xl); }
.trust { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-paper); }
.trust span { white-space: nowrap; }

/* ---------- Text bands ---------- */
.band { padding: var(--space-3xl) 0; }
.dark, .band.dark { background: var(--color-ink); color: var(--color-paper); }
.band.tint { background: var(--color-paper-2); }
.band-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); max-width: 760px; }
.lede { font-size: var(--text-lg); line-height: 1.55; }
.eyebrow { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-gold-text); font-weight: 600; }
.dark .eyebrow { color: var(--color-gold-light); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols .item { border-top: 1px solid var(--color-rule); padding-top: var(--space-lg); }
.dark .cols .item { border-color: var(--color-rule-dark); }
.cols .item h3 { margin-bottom: var(--space-sm); }
.muted { color: var(--color-muted); }
.dark .muted { color: var(--color-muted-dark); }
@media (max-width: 860px) { .cols, .cols.two { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } .band { padding: var(--space-2xl) 0; } }

/* Split: media + text, alternating */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 70vh; }
.split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split.flip .media { order: 2; }
.split .media { position: relative; min-height: 360px; background: var(--color-ink); }
.split .media video, .split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .copy { padding: var(--space-2xl) var(--space-xl); display: flex; flex-direction: column; justify-content: center; gap: var(--space-md); }
.split .copy ul { margin: 0; padding-left: 1.1em; }
.split .copy li { margin-bottom: var(--space-xs); }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split.flip .media { order: 0; } .split .media { min-height: 0; width: 100%; aspect-ratio: 4 / 3; } .split .copy { padding: var(--space-xl) var(--space-lg); } }

/* Strip of loops / photos */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--color-ink); }
.strip figure { margin: 0; position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.strip figure video, .strip figure img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; left: var(--space-md); bottom: var(--space-md); color: var(--color-paper); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(18,19,22,.55); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--color-rule-dark); padding-top: var(--space-lg); }
.steps li::before { content: counter(s); display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--color-gold-light); line-height: 1; margin-bottom: var(--space-sm); }
.steps h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .steps, .steps.two { grid-template-columns: minmax(0, 1fr); } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.review { margin: 0; background: var(--color-paper); border: 1px solid var(--color-rule); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.review .stars { color: var(--color-gold-text); letter-spacing: .1em; font-size: var(--text-sm); }
.review blockquote { margin: 0; font-size: var(--text-md); }
.review cite { margin-top: auto; font-style: normal; font-size: var(--text-sm); color: var(--color-muted); }
.ratings { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.ratings div { border-left: 2px solid var(--color-gold); padding-left: var(--space-md); }
.ratings strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
@media (max-width: 960px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* Areas + map */
.areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.area-list { columns: 3; column-gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.area-list li { break-inside: avoid; padding: var(--space-2xs) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); }
.map { width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--color-rule); background: var(--color-paper-2); }
@media (max-width: 860px) { .areas { grid-template-columns: minmax(0, 1fr); } .area-list { columns: 2; } }

/* Badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xl); }
.badges img { height: 64px; width: auto; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.filters button { min-height: 44px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); background: transparent; color: var(--color-ink);
  font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.filters button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.grid figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-paper-2); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
.grid figure:hover img { transform: scale(1.03); }
.grid figure[hidden] { display: none; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid figure:not([hidden]):last-of-type:nth-of-type(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-2xl); }
.form { display: grid; gap: var(--space-md); }
.form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; min-height: 48px; padding: var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-sm); background: #fff; color: var(--color-ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.field .err { color: #a3261b; font-size: var(--text-sm); display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #a3261b; }
.info dl { margin: 0; display: grid; gap: var(--space-md); }
.info dt { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold-text); font-weight: 600; }
.info dd { margin: 0; }
@media (max-width: 860px) { .contact-grid, .form .two { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* ---------- Ft1 footer ---------- */
.foot { background: var(--color-ink); color: var(--color-paper); padding: var(--space-2xl) 0 var(--space-xl); }
.foot .mast { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xl); padding-bottom: var(--space-xl); border-bottom: 1px solid var(--color-rule-dark); }
.foot .mast img { height: 40px; width: auto; margin-bottom: var(--space-md); }
.foot .mast p { color: var(--color-muted-dark); max-width: 40ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); align-content: flex-start; }
.foot nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.foot nav a:hover { color: var(--color-gold-light); }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted-dark); }
.foot .legal a { color: var(--color-gold-light); }

/* ---------- Owner overlay (tracking demo) ---------- */
.owner-toggle { position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: 60; min-height: 44px; padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  border: 0; background: var(--color-owner); color: var(--color-owner-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); white-space: nowrap; }
.owner-toggle[aria-pressed="true"] { background: var(--color-ink); outline: 2px solid var(--color-owner); }
body.owner [data-src] { outline: 2px dashed var(--color-owner); outline-offset: 3px; position: relative; }
.tagchip { display: none; position: absolute; top: -14px; left: 8px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; z-index: 5; font: 600 11px/1 var(--font-mono); background: var(--color-owner); color: var(--color-owner-ink);
  padding: 4px 6px; border-radius: var(--radius-sm); white-space: nowrap; pointer-events: none; text-transform: none; letter-spacing: 0; }
body.owner .tagchip { display: block; }
[data-call] > .tagchip { top: auto; bottom: -14px; }
.panel { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: 61; width: min(400px, calc(100% - 2 * var(--space-md))); max-height: min(78vh, 640px); overflow: auto;
  background: #fff; color: var(--color-ink); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: var(--space-lg); font-size: var(--text-sm); display: none; }
body.owner .panel { display: block; }
.panel h2 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 700; margin-bottom: var(--space-xs); }
.panel p { margin-bottom: var(--space-sm); color: var(--color-muted); }
.panel fieldset { border: 1px solid var(--color-rule); border-radius: 8px; padding: var(--space-sm); margin: 0 0 var(--space-md); }
.panel legend { font-weight: 700; padding: 0 var(--space-2xs); }
.panel label { display: flex; align-items: center; gap: var(--space-xs); min-height: 32px; cursor: pointer; }
.panel .now { font-family: var(--font-mono); background: var(--color-paper-2); padding: var(--space-xs); border-radius: var(--radius-sm); word-break: break-all; margin-bottom: var(--space-md); }
.panel ol { margin: 0; padding-left: 1.2em; }
.panel ol li { margin-bottom: var(--space-xs); }
.panel code { font-family: var(--font-mono); font-size: 12px; background: var(--color-paper-2); padding: 1px 4px; border-radius: 3px; word-break: break-all; }
.panel .x { float: right; min-height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.owner-toggle .sm { display: none; }
@media (max-width: 560px) { .panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 40vh; border-radius: 12px 12px 0 0; padding: var(--space-md); }
  body.owner .owner-toggle { bottom: calc(40vh + 8px); }
  .owner-toggle .lg { display: none; } .owner-toggle .sm { display: inline; }
  body.menu-open .owner-toggle { display: none; } }

/* Demo intercept sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(18,19,22,.6); display: none; align-items: center; justify-content: center; padding: var(--space-md); }
.sheet-wrap.open { display: flex; }
.sheet { background: #fff; color: var(--color-ink); max-width: 520px; width: 100%; border-radius: 12px; padding: var(--space-xl) var(--space-lg); display: grid; gap: var(--space-sm); }
.sheet h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); }
.sheet .src { font-family: var(--font-mono); font-size: var(--text-md); color: var(--color-owner); font-weight: 700; word-break: break-all; }
.sheet .url { font-family: var(--font-mono); font-size: 12px; background: var(--color-paper-2); padding: var(--space-xs); border-radius: var(--radius-sm); word-break: break-all; }
.sheet .row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
.sheet .btn-line { color: var(--color-ink); }
.sheet .warn { font-size: var(--text-sm); color: #8a3b12; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
