/* ==========================================================================
   10 Keeney Pond Road — The James Hill Project
   Boston Automations · landscape lighting + outdoor audio
   ========================================================================== */

:root {
  --ink: #1A1A2E;
  --ink-deep: #0F0F1C;
  --ink-mid: #141422;
  --red: #E63946;
  --white: #FFFFFF;
  --off: #F5F5F5;
  --line: #E6E6EA;
  --line-soft: #EDEDF0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --body: #333333;
  /* --muted is tuned for dark sections. On light backgrounds it lands around
     2.4:1, so anything on white/#F5F5F5 uses --muted-ink (~4.9:1) instead. */
  --muted: #A1A1A1;
  --muted-ink: #6E6E78;
  --muted-light: #E8E8EC;
  --display: 'Montserrat', 'Arial Black', Helvetica, sans-serif;
  --text: 'Barlow', Arial, Helvetica, sans-serif;
  --pad-x: 48px;
  --shell: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--red); color: #fff; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; }

.shell { max-width: var(--shell); margin: 0 auto; }
.shell-wide { max-width: 1320px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 14px;
}

.rule { width: 44px; height: 3px; background: var(--red); }

.tabular { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- header  */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad-x);
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .logo { width: 196px; height: 29px; object-fit: contain; object-position: left center; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav a { color: var(--white); transition: color 0.15s; }
.site-nav a:hover { color: var(--red); }

.nav-cta {
  padding: 11px 22px;
  background: var(--red);
  color: var(--white) !important;
  border-radius: 2px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--white); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  color: var(--white);
  padding: 9px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 84px var(--pad-x) 92px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 420px at 12% 40%, rgba(230, 57, 70, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 620px 400px at 88% 70%, rgba(230, 57, 70, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-kicker span {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero h1 {
  font-weight: 800;
  font-size: 66px;
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted-light);
  margin: 0 0 36px;
  max-width: 520px;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--ink); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ------------------------------------------------------- hero video card */

.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  display: block;
  color: inherit;
  font: inherit;
}

.video-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s;
}

.video-card:hover .video-card__media { transform: scale(1.03); }

.video-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 28, 0.15) 0%, rgba(15, 15, 28, 0.72) 100%);
  pointer-events: none;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  pointer-events: none;
}

.video-card:hover .video-card__play,
.video-card:focus-visible .video-card__play {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.07);
}

.video-card__play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 24px solid var(--white);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 7px;
  transition: border-left-color 0.18s;
}

.video-card:hover .video-card__play::after,
.video-card:focus-visible .video-card__play::after { border-left-color: var(--ink); }

.video-card__label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  text-align: left;
}

.video-card__label strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0;
}

.video-card__label strong { text-transform: none; }

.video-card__label > span > span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.video-card__dur {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--white);
  background: rgba(15, 15, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ------------------------------------------------------------ video modal */

.vmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  /* visibility flips discretely, not interpolated: instantly on open (so the
     dialog can take focus straight away) and only after the fade on close. */
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.vmodal[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.vmodal__inner {
  position: relative;
  width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vmodal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Cap by height here rather than on the <video>: the fullscreen UA stylesheet
     resets max-height on the fullscreen element only, not on its descendants,
     so clamping the video itself letterboxes it in fullscreen. */
  max-width: calc((100vh - 190px) * 16 / 9);
  margin: 0 auto;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.vmodal__frame:fullscreen {
  aspect-ratio: auto;
  max-width: none;
  border: 0;
  display: grid;
  place-items: center;
}

.vmodal__frame:fullscreen video { max-height: 100vh; height: 100%; }

.vmodal video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.vmodal__error {
  margin: 0;
  padding: 28px 24px;
  text-align: center;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.vmodal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.vmodal__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.vmodal__actions { display: flex; gap: 10px; }

.vbtn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 10px 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vbtn:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.vmodal__close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.vmodal__close:hover { background: var(--red); border-color: var(--red); }

.tab:focus-visible,
.vbtn:focus-visible,
.nav-toggle:focus-visible,
.vmodal__close:focus-visible,
.video-card:focus-visible,
.site-nav a:focus-visible,
#yardPanel:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ stats band */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats > div { padding: 44px 40px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }

.stats .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 46px;
  color: var(--red);
  line-height: 1;
}

.stats .l {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
  margin-top: 10px;
  font-weight: 500;
}

/* -------------------------------------------------------------- sections */

.section { padding: 104px var(--pad-x); }
.section--dark { background: var(--ink); color: var(--white); }
.section--deep { background: var(--ink-deep); color: var(--white); padding: 96px var(--pad-x) 104px; }
.section--mid { background: var(--ink-mid); color: var(--white); padding: 96px var(--pad-x) 104px; }
.section--off { background: var(--off); }

.section h2 { font-weight: 800; font-size: 42px; margin: 0 0 16px; }
.section h3 { font-weight: 800; font-size: 30px; margin: 0 0 18px; }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

/* Even two-column pair. Uses a class rather than an inline
   grid-template-columns so the mobile breakpoints can actually override it. */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.pair--center { align-items: center; }
.pair--tight { gap: 40px; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  max-width: 640px;
  font-weight: 300;
}
.prose p { margin: 0; }

.section-lede {
  margin: 0 0 40px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-light);
  font-weight: 300;
}

.figure-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.section--off .credit,
.section:not([class*="--"]) .credit { color: var(--muted-ink); }

.credit {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ratio { position: relative; width: 100%; overflow: hidden; background: var(--ink-deep); }
.ratio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-16x7 { aspect-ratio: 16 / 7; }
.r-3x2 { aspect-ratio: 3 / 2; }

/* ----------------------------------------------------------- audio cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.card { background: var(--ink); min-width: 0; }
.card__body { padding: 30px 32px 34px; }

.card__qty { display: flex; align-items: baseline; gap: 12px; }
.card__qty b { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--red); line-height: 1; }
.card__qty span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card__name { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 14px 0 8px; }
.card__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); font-weight: 300; }

.feature-list { display: grid; gap: 14px; }
.feature-list > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  border-top: 1px solid var(--line-dark);
  padding-top: 14px;
}
.feature-list .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.feature-list p { margin: 0; font-size: 16px; color: var(--muted-light); font-weight: 300; }
.feature-list strong { font-weight: 600; color: var(--white); }

.label-sm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.label-sm--red { color: var(--red); }

.rack-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  align-items: baseline;
}
.rack-row .q { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--red); }
.rack-row .n { font-size: 16px; color: var(--muted-light); line-height: 1.4; font-weight: 300; }
.rack-row .x { font-size: 15px; color: var(--muted); }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  color: var(--muted-light);
  border-top: 1px solid var(--line-dark);
  padding-top: 12px;
}
.kv span:last-child { color: var(--muted); }

.zone { min-width: 0; border: 1px solid var(--line-dark); background: var(--ink-deep); }
.zone__body { padding: 28px 30px 32px; }
.zone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.zone__head b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.zone__head span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.zone p { margin: 12px 0 20px; font-size: 16px; line-height: 1.6; color: var(--muted); font-weight: 300; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: 72px;
}
.price-grid > div { background: var(--ink); padding: 30px 32px; }
.price-grid .amt { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--white); }
.price-grid .cap { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.price-grid .total { background: var(--red); }
.price-grid .total .cap { color: var(--white); }

/* -------------------------------------------------------------- lighting */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.tabs { display: flex; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; }

.tab {
  padding: 13px 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.tab[aria-selected='true'] { background: var(--ink); color: var(--white); }

.fixture-figs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}
.fixture-figs figure { margin: 0; min-width: 0; }
.fixture-figs figcaption { margin-top: 14px; }
.fixture-figs .t { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.fixture-figs .d { font-size: 15px; color: #555; line-height: 1.5; margin-top: 4px; }

.schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.sched-card { background: var(--white); padding: 8px 36px 36px; border-top: 3px solid var(--red); min-width: 0; }
.sched-group { padding: 26px 0 4px; }
.sched-group > .g {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.sched-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.sched-row .q { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--red); }
.sched-row .n { font-size: 16px; color: var(--body); line-height: 1.4; }
.sched-row .x { font-size: 15px; color: var(--muted-ink); }

.sched-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.sched-total .lab { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-ink); }
.sched-total .val { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--muted-ink); }

.sched-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; color: var(--body); }
.sched-line--top { border-top: 1px solid var(--line-soft); }

.note { font-size: 12px; color: var(--muted-ink); margin: 8px 0 0; }

.yard-aside { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.yard-aside .shot { position: relative; width: 100%; height: 340px; overflow: hidden; background: var(--ink); }
.yard-aside .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yard-aside .t { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.yard-aside .b { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); font-weight: 300; }

.finish-box { background: var(--ink); color: var(--white); padding: 28px 30px; }
.finish-box .k { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.finish-box .v { font-family: var(--display); font-weight: 700; font-size: 20px; }
.finish-box p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted-light); font-weight: 300; }

/* --------------------------------------------------------- before/after  */

.ba-stack { display: flex; flex-direction: column; gap: 56px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-pair figure { margin: 0; min-width: 0; }
.ba-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 1;
}
.ba-tag--before { background: rgba(15, 15, 28, 0.85); color: var(--muted); }
.ba-tag--after { background: var(--red); color: var(--white); }
.ba-cap { margin-top: 14px; font-size: 15px; color: var(--muted); }

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

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery figure.wide { grid-column: span 2; }
.gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- investment */

.invest { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }

.invest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.invest-row:first-child { border-top: 2px solid var(--ink); }
.invest-row .t { font-family: var(--display); font-weight: 700; font-size: 18px; }
.invest-row .d { font-size: 15px; color: var(--muted-ink); margin-top: 4px; }
.invest-row .v { font-family: var(--display); font-weight: 700; font-size: 22px; }

.invest-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
  margin-top: 8px;
  align-items: baseline;
}
.invest-total .t { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.invest-total .v { font-family: var(--display); font-weight: 800; font-size: 38px; color: var(--red); }

.sched-line--sum {
  /* This is the figure that carries into the investment summary, so it outranks
     the fixtures-only total above it. */
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  align-items: baseline;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 2px solid var(--ink);
}
.sched-line--sum span:first-child {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Scope carve-out: the landscape trenching we deliberately leave to others. */
.scope-note {
  margin-top: 28px;
  padding: 26px 28px;
  background: var(--off);
  border-left: 3px solid var(--red);
}

.scope-note__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.scope-note__head .t {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.scope-note__head .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

.scope-note p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  font-weight: 300;
}
.scope-note p:last-child { margin-bottom: 0; }
.scope-note strong { font-weight: 600; color: var(--ink); }

.ref-card { background: var(--off); padding: 36px 34px; border-top: 3px solid var(--red); }
.ref-card .list { display: flex; flex-direction: column; gap: 16px; font-size: 15px; color: var(--body); }
.ref-card .k { color: var(--muted-ink); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.ref-card .v { margin-top: 3px; }

.fineprint { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted-ink); max-width: 620px; }

/* ------------------------------------------------- responsibility matrix */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted-light);
}
.legend > span { display: flex; align-items: center; gap: 10px; }

.mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}
.mark--r { background: var(--red); }
.mark--s { border: 2px solid var(--red); background: rgba(230, 57, 70, 0.3); }
.mark--n {
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.matrix-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 44px 0 14px;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  -webkit-overflow-scrolling: touch;
  /* Capped so the mark columns stay near the scope text instead of drifting
     to the far edge of the 1180px shell. */
  max-width: 940px;
}

.matrix {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.matrix thead th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  vertical-align: bottom;
}
.matrix thead th:not(:first-child) { width: 132px; text-align: center; }

.matrix tbody tr { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.matrix tbody th {
  font-weight: 400;
  color: var(--muted-light);
  padding: 14px 16px;
  line-height: 1.45;
}

.matrix tbody td { text-align: center; padding: 14px 16px; }

.matrix-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.fineprint--dark { color: var(--muted); max-width: 760px; margin-top: 32px; }

/* ----------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.steps .num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--red); letter-spacing: 0.12em; margin-bottom: 10px; }
.steps .t { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); font-weight: 300; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: var(--white); padding: 80px var(--pad-x) 44px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-top h2 { font-weight: 800; font-size: 36px; margin: 0 0 16px; }
.footer-top p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 520px; font-weight: 300; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.footer-contact a { color: var(--white); transition: color 0.15s; }
.footer-contact a:hover { color: var(--red); }
.footer-contact span { color: var(--muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
}
.footer-bottom img { width: 214px; height: 32px; object-fit: contain; object-position: left center; display: block; }
.footer-bottom .meta { font-size: 14px; color: var(--muted); }

/* ================================================================ responsive */

@media (max-width: 1180px) {
  .hero h1 { font-size: 54px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .fixture-figs { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* The nav needs ~1178px once "Responsibilities" is in the row, so it collapses
   to the toggle earlier than the rest of the layout breaks. */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .site-header.is-open { flex-wrap: wrap; }
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    order: 3;
    padding: 22px 0 10px;
    border-top: 1px solid var(--line-dark);
    margin-top: 14px;
  }
}

@media (max-width: 1024px) {
  :root { --pad-x: 32px; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 60px var(--pad-x) 68px; }

  .split, .schedule, .invest, .footer-top, .pair { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .section { padding: 76px var(--pad-x); }
  .section--deep, .section--mid { padding: 72px var(--pad-x) 80px; }
  .section h2 { font-size: 34px; }
  .gallery figure.wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  :root { --pad-x: 20px; }

  .hero h1 { font-size: 38px; }
  .hero p.lede { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }

  .site-header .logo { width: 132px; height: 20px; }

  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 22px; }
  .stats > div:last-child { border-bottom: 0; }
  .stats .n { font-size: 38px; }

  .section { padding: 60px var(--pad-x); }
  .section--deep, .section--mid { padding: 58px var(--pad-x) 64px; }
  .section h2 { font-size: 28px; }
  .section h3 { font-size: 24px; }
  .section-lede, .prose { font-size: 16px; }

  .card-grid, .price-grid, .fixture-figs, .gallery, .ba-pair, .steps { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: span 1; }
  .price-grid { margin-top: 48px; }

  .sched-card { padding: 8px 22px 28px; }
  .sched-row, .rack-row { grid-template-columns: 34px 1fr; gap: 12px; }
  .sched-row .x, .rack-row .x { grid-column: 2; margin-top: 2px; }

  .yard-aside .shot { height: 240px; }

  .invest-total .v { font-size: 30px; }
  .footer-top h2 { font-size: 27px; }

  /* The 4-column matrix cannot stay a table at phone widths — reflow each
     row into a card and label the marks from the header names. */
  .matrix-wrap { overflow-x: visible; border: 0; }
  .matrix { min-width: 0; display: block; }
  /* Overriding every table display below drops the row/cell roles, so the
     th/scope association does NOT survive this reflow — each mark carries the
     party in its own aria-label instead. The thead stays out of the flow. */
  .matrix thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
  }
  .matrix tbody, .matrix tbody tr { display: block; }

  .matrix tbody tr {
    border: 1px solid var(--line-dark);
    margin-bottom: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
  }

  .matrix tbody th {
    display: block;
    padding: 0 0 12px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
  }

  .matrix tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .matrix tbody td::before {
    content: attr(data-party);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .matrix-note { font-family: var(--text); font-weight: 300; font-size: 13px; }

  .legend { font-size: 14px; gap: 10px 22px; }

  .vmodal { padding: 16px; }
  .vmodal__close { top: -42px; }
  .vmodal video { max-height: calc(100vh - 200px); }
  .video-card__play { width: 62px; height: 62px; }
  .video-card__play::after { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
  .video-card__label { left: 14px; right: 14px; bottom: 14px; }
}

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