/* ==========================================================================
   Imprint Construction
   Brand palette: media/color palette codes.txt
   Layout: full-screen photographic "chapters", left-aligned serif display
   type, small tracked labels and a facts row anchored to the bottom.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #0D0D0D;
  --paper: #F2F2F2;
  --blue: #05AFF2;
  --sky: #05C7F2;
  --aqua: #05F2DB;

  /* Derived */
  --blue-deep: #046E9C;            /* blue text on paper, 5.0:1 */
  --white: #FFFFFF;
  --dim: rgba(242, 242, 242, 0.78);
  --faint: rgba(242, 242, 242, 0.62);
  --hair: rgba(242, 242, 242, 0.22);
  --hair-ink: rgba(13, 13, 13, 0.16);
  --error: #FF9C8F;

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --label: 0.75rem;                 /* tracked uppercase labels, 12px */
  --display-xl: clamp(3.25rem, 1.6rem + 6.4vw, 7.5rem);
  --display-md: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem);

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.area :focus-visible { outline-color: var(--blue-deep); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: 4px;
  background: var(--blue); color: var(--ink); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.display {
  font-family: var(--serif);
  font-size: var(--display-xl);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
}
.display--md { font-size: var(--display-md); }
.display .line { display: block; }
.display em { font-style: italic; color: var(--blue); }

.chapter {
  position: absolute;
  top: calc(var(--header-h) + clamp(1.5rem, 4vh, 3rem));
  left: var(--gutter);
  display: grid;
  gap: 0.375rem;
}
.chapter--static { position: static; margin-bottom: 2rem; }
.chapter-num {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  line-height: 0.9;
  color: var(--white);
}
.chapter-name {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.cta--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta--light:hover { background: var(--white); }
.cta--ghost { background: transparent; color: var(--white); border-color: rgba(242, 242, 242, 0.5); }
.cta--ghost:hover { border-color: var(--white); background: rgba(242, 242, 242, 0.08); }
.cta[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  pointer-events: none;
}
.header-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(13, 13, 13, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(242, 242, 242, 0.12);
  transition: background-color 0.4s;
}
.site-header.is-scrolled .header-bar { background: rgba(13, 13, 13, 0.88); }
.site-header:has(.primary-nav.is-open) .header-bar { background: rgba(13, 13, 13, 0.96); }

.brand { flex: none; }
.brand img { width: 7.5rem; height: auto; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; gap: 0.25rem; }
.primary-nav a {
  display: block;
  padding: 0.75rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--dim);
  transition: color 0.2s;
}
.primary-nav a:hover, .primary-nav a[aria-current="true"] { color: var(--white); }

.header-actions { display: flex; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.25rem 1.125rem 0.25rem 0.3rem;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s;
}
.pill:hover { border-color: var(--white); background: rgba(242, 242, 242, 0.08); }
.pill-icon {
  display: grid; place-items: center;
  width: 2.125rem; height: 2.125rem;
  border-radius: 50%;
  background: rgba(242, 242, 242, 0.14);
}
.pill-icon svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }
.pill:last-child .pill-icon { background: var(--blue); color: var(--ink); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 1.375rem; height: 1.5px; margin-inline: auto;
  background: var(--white);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Shared full-screen chapter ---------- */
.hero, .cine, .contact {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}
.cine-media, .hero-media, .split-media, .shade {
  position: absolute; inset: 0; z-index: -1;
}
.cine-media img, .hero-poster, .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.shade {
  background:
    linear-gradient(90deg, rgba(13,13,13,0.74) 0%, rgba(13,13,13,0.42) 40%, rgba(13,13,13,0.06) 72%),
    linear-gradient(0deg, rgba(13,13,13,0.82) 0%, rgba(13,13,13,0) 42%),
    linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0) 24%);
}
.shade--right {
  background:
    linear-gradient(270deg, rgba(13,13,13,0.78) 0%, rgba(13,13,13,0.45) 42%, rgba(13,13,13,0.1) 75%),
    linear-gradient(0deg, rgba(13,13,13,0.7) 0%, rgba(13,13,13,0) 40%),
    linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0) 24%);
}
.shade--even {
  background:
    linear-gradient(0deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0) 45%),
    rgba(13, 13, 13, 0.55);
}
.shade--contact {
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(13,13,13,0.84), rgba(13,13,13,0.62) 75%),
    linear-gradient(0deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0) 35%);
}

.cine-inner {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 0;
}
.cine-copy {
  align-self: end;
  max-width: 44rem;
  padding-bottom: clamp(1.75rem, 4vh, 3rem);
}
.cine-copy .eyebrow { margin-bottom: 1.25rem; }
.cine-text {
  margin-top: 1.5rem;
  max-width: 29rem;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  color: rgba(242, 242, 242, 0.88);
  text-wrap: pretty;
}

/* Facts row: anchored to the bottom like a caption strip */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  padding: 1.25rem 0 1.75rem;
}
.facts > div { padding-right: 1.5rem; }
.facts dt {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  line-height: 1;
  color: var(--white);
}
.facts dd {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-rows: 1fr auto; }
.hero-video { opacity: 0; transition: opacity 1.4s ease; }
.hero-video.is-playing { opacity: 1; }

.hero-grid {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
  align-items: end;
  gap: 3rem;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 2.25rem;
}
.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero-lede {
  margin-top: 1.75rem;
  max-width: 26rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  line-height: 1.45;
  color: var(--white);
}
.facts--hero { margin: 0 var(--gutter); }

.quick-card {
  padding: 1.75rem;
  border: 1px solid rgba(242, 242, 242, 0.14);
  border-radius: 4px;
  background: rgba(20, 22, 22, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.quick-card > .eyebrow { text-align: center; }
.quick-note { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--dim); text-align: center; text-wrap: balance; }
.quick-card .line-form { margin-top: 1.25rem; gap: 0.75rem; }
.quick-card .lf-field { margin-bottom: 0.5rem; }
.quick-card .cta { width: 100%; }

.video-toggle {
  position: absolute;
  top: calc(var(--header-h) + 1.25rem);
  left: var(--gutter);
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.video-toggle:hover { border-color: var(--white); }

/* ---------- Split chapter (two photos, copy on the right) ---------- */
.split-media { display: grid; grid-template-columns: 1fr 1fr; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.cine--right .cine-copy { justify-self: end; text-align: right; }
.cine--right .cine-text { margin-left: auto; }
.tags {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 0.5rem 1.75rem;
  margin-top: 2rem;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Centered chapter (process) ---------- */
.cine--center .cine-inner { grid-template-rows: 1fr auto; }
.cine--center .cine-copy {
  align-self: center;
  justify-self: center;
  text-align: center;
  padding-top: 4rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  padding-bottom: 2.25rem;
}
.steps li { padding: 1.5rem 1.5rem 0 0; }
.steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--hair); }
.step-num {
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--blue);
}
.steps h3 {
  margin-top: 1rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.steps p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--dim); }

/* ---------- Our work ---------- */
.work { padding: clamp(5rem, 4rem + 5vw, 9rem) var(--gutter); background: var(--ink); }
.work-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: var(--white); color: var(--white); }
.filter[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.5rem;
}
.tile { aspect-ratio: 4 / 3; }
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile[hidden] { display: none; }
.tile button {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: 2px;
  overflow: hidden; background: #1A1A1A; cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.4s; }
@media (hover: hover) {
  .tile button:hover img { transform: scale(1.04); }
}

/* ---------- Service area (light map chapter) ---------- */
.area {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(5rem, 4rem + 5vw, 9rem) var(--gutter);
}
.area .chapter-num, .area .display { color: var(--ink); }
.area .chapter-name, .area .eyebrow { color: #4A4A4A; }
.area .display em { color: var(--blue-deep); }
.area .eyebrow { margin-bottom: 1.25rem; }
.area .display--md { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem); }
.area-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: center;
  max-width: 96rem;
  margin-inline: auto;
}
.area-text { margin-top: 1.75rem; max-width: 30rem; font-size: 1.0625rem; color: #3A3A3A; }
.counties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair-ink);
}
.counties h3 {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-deep);
}
.counties p { margin-top: 0.5rem; font-size: 0.9375rem; color: #3A3A3A; }
@media (max-width: 1200px) {
  .area-inner { grid-template-columns: 1fr; }
}

.area-map svg { width: 100%; height: auto; overflow: visible; }
.area-map figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: #5A5A5A; text-align: right; }
.map-rings circle { fill: none; stroke: var(--blue-deep); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: 0.55; }
.map-rings text {
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.16em; fill: var(--blue-deep);
}
.map-mountains { color: rgba(13, 13, 13, 0.28); }
.map-mountains text {
  font-family: var(--serif); font-style: italic; font-size: 24px; fill: #4A4A4A;
}
.map-towns circle { fill: var(--ink); }
.map-towns text {
  font-family: var(--sans); font-size: 19px; font-weight: 400; fill: #2A2A2A;
}
.map-home circle:not(.pulse) { fill: var(--blue); stroke: var(--ink); stroke-width: 2; }
.map-home .pulse { fill: rgba(5, 175, 242, 0.22); transform-origin: 659px 416px; }
.map-home text { font-family: var(--serif); font-size: 46px; fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .map-home .pulse { animation: pulse 2.8s var(--ease) infinite; }
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Contact (stepper form) ---------- */
.contact { display: grid; grid-template-rows: 1fr auto; }
.contact-inner {
  align-self: center;
  justify-self: center;
  width: min(100% - 2 * var(--gutter), 25rem);
  padding: calc(var(--header-h) + 3rem) 0 3rem;
}
.contact-inner .eyebrow { margin-bottom: 1.5rem; }

.progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 2.5rem 0 1.75rem;
}
.progress::before {
  content: "";
  position: absolute;
  top: 5px; left: 16.66%; right: 16.66%;
  height: 1px;
  background: rgba(242, 242, 242, 0.3);
}
.progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.625rem;
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
}
.progress li::before {
  content: "";
  width: 11px; height: 11px;
  border: 1px solid rgba(242, 242, 242, 0.6);
  border-radius: 50%;
  background: var(--ink);
  transition: background-color 0.3s, border-color 0.3s;
}
.progress li.is-active { color: var(--white); }
.progress li.is-active::before { background: var(--blue); border-color: var(--blue); }
.progress li.is-done::before { background: var(--paper); border-color: var(--paper); }

/* Line-style fields with floating labels */
.line-form { display: grid; gap: 0.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-field { position: relative; padding-top: 1.25rem; }
.lf-field input,
.lf-field select,
.lf-field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0 0.5625rem;
  border: 0;
  border-bottom: 1px solid rgba(242, 242, 242, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  outline: none;
}
.lf-field textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
.lf-field select { appearance: none; cursor: pointer; }
.lf-field select option { color: var(--ink); background: var(--paper); }
.lf-field--select::after {
  content: "";
  position: absolute;
  right: 0.25rem; bottom: 1.25rem;
  width: 0.45rem; height: 0.45rem;
  border-right: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  transform: rotate(45deg);
  pointer-events: none;
}
.lf-field label {
  position: absolute;
  left: 0; top: 1.875rem;
  font-size: 1rem;
  color: var(--faint);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s, letter-spacing 0.3s;
}
/* Float the label when focused, filled, or on selects */
.lf-field input:focus + label,
.lf-field input:not(:placeholder-shown) + label,
.lf-field textarea:focus + label,
.lf-field textarea:not(:placeholder-shown) + label,
.lf-field select + label {
  transform: translateY(-1.5rem) scale(0.75);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.lf-field input:focus + label,
.lf-field textarea:focus + label,
.lf-field select:focus + label { color: var(--blue); }
.lf-line {
  position: absolute;
  left: 0; right: 0;
  top: calc(1.25rem + 2.75rem - 1px);
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.lf-field textarea ~ .lf-line { top: auto; bottom: 0; }
.lf-field:focus-within .lf-line { transform: scaleX(1); }
.lf-field [aria-invalid="true"] { border-bottom-color: var(--error); }
.lf-error { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--error); }
.lf-error:empty { display: none; }
.lf-status { font-size: 0.875rem; color: var(--dim); text-align: center; }
.lf-status:empty { display: none; }
.lf-status.is-error { color: var(--error); }

.step { display: grid; gap: 0.5rem; }
.js .step:not(.is-active) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .step.is-active { animation: step-in 0.5s var(--ease); }
}
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step-nav { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.step-nav .cta { flex: 1; }
.no-js .progress, .no-js [data-next], .no-js [data-prev] { display: none; }

.success { margin-top: 2.5rem; outline: none; }
.success-title { font-family: var(--serif); font-size: 2.25rem; line-height: 1.1; font-style: italic; color: var(--white); }
.success-text { margin-top: 0.75rem; color: var(--dim); }

/* Personal contact card under the form */
.talk-now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.125rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair);
}
.talk-avatar {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(242, 242, 242, 0.35), 0 0 0 4px rgba(13, 13, 13, 0.6), 0 0 0 5px var(--blue);
}
.talk-label {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
}
.talk-name {
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.1;
  color: var(--white);
}
.talk-title { font-style: italic; color: var(--dim); white-space: nowrap; }
.talk-links { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: 0.125rem; }
.talk-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  color: var(--white);
  text-decoration: none;
  text-underline-offset: 4px;
}
.talk-links a:first-child { color: var(--blue); font-weight: 500; }
.talk-links a:hover { text-decoration: underline; }

/* Footer sits over the contact photo */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem var(--gutter) 2rem;
  border-top: 1px solid var(--hair);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--faint);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-logo img { width: 7rem; height: auto; }
.footer-left { display: flex; align-items: center; gap: 2rem; }
.footer-right { text-align: right; }
.social { display: flex; justify-content: center; gap: 0.75rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.social a:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.social svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.social--header { gap: 0.375rem; }
.social--header svg { width: 1rem; height: 1rem; }
.primary-nav .social--menu { display: none; }
.primary-nav .social a {
  display: grid;
  padding: 0;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 50%;
  color: var(--white);
}

/* ---------- Lightbox ---------- */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(13, 13, 13, 0.96); color: var(--paper);
}
.lightbox::backdrop { background: rgba(13, 13, 13, 0.6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; gap: 0.75rem; justify-items: center; padding: 4.5rem 5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; }
.lightbox figcaption { font-size: 0.875rem; color: var(--dim); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: lb-in 0.4s var(--ease); }
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(242, 242, 242, 0.3); border-radius: 50%;
  background: rgba(13, 13, 13, 0.5); cursor: pointer;
}
.lb-btn:hover { border-color: var(--white); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Motion: one reveal per chapter + slow photo drift ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .facts--hero > div, .js .quick-card {
    opacity: 0; transform: translateY(18px); filter: blur(6px);
    animation: rise 1.1s var(--ease) forwards;
  }
  .js .hero-copy > :nth-child(1) { animation-delay: 0.15s; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.3s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.5s; }
  .js .quick-card { animation-delay: 0.65s; }
  .js .facts--hero > div:nth-child(1) { animation-delay: 0.75s; }
  .js .facts--hero > div:nth-child(2) { animation-delay: 0.85s; }
  .js .facts--hero > div:nth-child(3) { animation-delay: 0.95s; }

  .js [data-reveal] > *, .js [data-reveal] .display .line {
    opacity: 0; transform: translateY(22px); filter: blur(6px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  }
  .js [data-reveal] .display { opacity: 1; transform: none; filter: none; }
  .js [data-reveal].is-in > *, .js [data-reveal].is-in .display .line {
    opacity: 1; transform: none; filter: none;
  }
  .js [data-reveal].is-in > :nth-child(2) { transition-delay: 0.08s; }
  .js [data-reveal].is-in .display .line:nth-child(1) { transition-delay: 0.12s; }
  .js [data-reveal].is-in .display .line:nth-child(2) { transition-delay: 0.26s; }
  .js [data-reveal].is-in .display .line:nth-child(3) { transition-delay: 0.4s; }
  .js [data-reveal].is-in > :nth-child(3) { transition-delay: 0.42s; }
  .js [data-reveal].is-in > :nth-child(4) { transition-delay: 0.52s; }
  .js [data-reveal].is-in > div:nth-child(n), .js [data-reveal].is-in > li { transition-delay: 0.2s; }

  .cine-media img, .hero-poster { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12); } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .primary-nav a { padding-inline: 0.5rem; letter-spacing: 0.14em; }
  .pill:first-child .pill-text { display: none; }
  .pill:first-child { padding-right: 0.3rem; }
}

@media (max-width: 1200px) {
  :root { --header-h: 4.25rem; }
  .header-bar { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 0.75rem; row-gap: 0.75rem; }
  .menu-toggle { display: grid; place-items: center; }
  .brand img { width: 6.75rem; }
  .header-actions { order: 3; width: 100%; }
  .pill, .pill:first-child { flex: 1; justify-content: center; padding: 0.25rem 1rem 0.25rem 0.3rem; }
  .pill:first-child .pill-text { display: inline; }
  .pill-icon { margin-right: auto; }
  .pill-text { margin-right: auto; }
  .primary-nav { order: 4; width: 100%; flex: none; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: 1rem 0; border-top: 1px solid var(--hair); font-size: 0.8125rem; color: var(--white); }
  .social--header { display: none; }
  .primary-nav .social--menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--hair);
  }
  .primary-nav .social--menu a { padding: 0; border: 1px solid rgba(242, 242, 242, 0.35); }

  .hero-grid { grid-template-columns: 1fr; padding-top: 11rem; }
  .quick-card { display: none; }
  .cine-inner { padding-top: 11rem; }
  .chapter { top: 9.75rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--hair); margin-top: 1.5rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { padding-top: 11rem; }
}

@media (max-width: 640px) {
  .pill { font-size: 0.625rem; letter-spacing: 0.1em; gap: 0.4rem; padding-right: 0.75rem; }
  .pill-icon { width: 1.875rem; height: 1.875rem; }
  .pill:first-child { flex: none; }
  .pill:first-child .pill-text { display: none; }
  .pill:first-child::after { content: "Call"; margin-right: auto; }

  .shade:not(.shade--contact):not(.shade--even) {
    background:
      linear-gradient(180deg, rgba(13,13,13,0.7) 0%, rgba(13,13,13,0.2) 30%, rgba(13,13,13,0.35) 50%, rgba(13,13,13,0.9) 78%);
  }
  .display { font-size: clamp(3rem, 12vw, 4rem); }
  .display--md { font-size: clamp(2.5rem, 10.5vw, 3.5rem); }
  .chapter { position: static; margin-bottom: 1.5rem; align-self: start; }
  .cine-inner { grid-template-rows: auto 1fr auto; }
  .cine--right .cine-copy { text-align: left; justify-self: start; }
  .cine--right .cine-text { margin-left: 0; }
  .tags { justify-content: flex-start; }
  .split-media { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }

  .facts { grid-template-columns: 1fr; padding-top: 0.5rem; }
  .facts > div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    padding: 0.75rem 0;
  }
  .facts > div + div { border-top: 1px solid var(--hair); }
  .facts dt { font-size: 1.5rem; }
  .facts dd { margin: 0; text-align: right; font-size: 0.625rem; }

  .steps { grid-template-columns: 1fr; padding-bottom: 1.5rem; }
  .steps li, .steps li + li { padding: 1rem 0 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--hair); margin-top: 1rem; }
  .cine--center .cine-copy { padding-top: 0; }

  .gallery { gap: 0.375rem; }
  .counties { grid-template-columns: 1fr; gap: 1.25rem; }
  .map-towns .minor text { display: none; }
  .map-towns text { font-size: 36px; }
  .map-towns circle { r: 8px; }
  .map-rings text { font-size: 28px; }
  .map-mountains text { font-size: 38px; }
  .map-home text { font-size: 64px; }
  .site-footer a { display: inline-block; padding-block: 0.25rem; }
  .video-toggle { top: auto; bottom: 1rem; }

  .site-footer { grid-template-columns: 1fr; gap: 1.25rem; justify-items: center; text-align: center; }
  .footer-left { flex-direction: column; gap: 0.75rem; }
  .footer-right { text-align: center; }
  .site-footer .social a { display: grid; padding: 0; }
  .lightbox figure { padding: 4.5rem 0.75rem 6rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: calc(50% - 3.5rem); }
  .lb-next { right: calc(50% - 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
