/* Nash & Vance: site-level overrides on top of the Classical design system.
   Baked from the original page <helmet> style blocks; consistent across all
   four pages so it lives in one shared file instead of four copies. */

html { scroll-behavior: smooth; }

/* overflow-x lives here (the true root scroller), not on the per-page
   [data-screen-label] wrapper div. Setting a non-visible overflow on that
   inner wrapper made it, not the document, the nearest scroll-container
   ancestor for CSS — which silently breaks position: sticky on descendants
   like the subpage [data-submenu] bar (the wrapper's height auto-fits its
   content, so it never scrolls itself; the browser still treats it as the
   sticky containing scrollport, so nothing ever visibly sticks). Root
   cause of finding 1 (submenu occlusion) alongside the top-offset fix
   below. */
body { margin: 0; text-wrap: pretty; background: #f3f2f2; overflow-x: hidden; }

:root {
  --color-accent: #c8402b;
  --color-accent-2: #dd5540;
  --color-accent-100: #fdece8;
  --color-accent-200: #fbd0c8;
  --color-accent-300: #f4a89b;
  --color-accent-400: #ec7f6d;
  --color-accent-500: #dd5540;
  --color-accent-600: #c8402b;
  --color-accent-700: #a5301f;
  --color-accent-800: #7c2417;
  --color-accent-900: #521810;
  --color-accent-2-100: #fdece8;
  --color-accent-2-700: #a5301f;
  --color-accent-2-800: #7c2417;

  /* Fixed header's rendered height. JS (site.js initHeader) overwrites this
     with the real measurement on load and on resize/orientationchange; the
     value here is just a same-ballpark fallback for first paint. Consumed
     by [data-submenu] below so the sticky subpage bar docks under the
     header instead of guessing a pixel value that can drift out of sync. */
  --header-h: 88px;
}

a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }

/* Fixed header: transparent/light-on-dark over the hero, then a solid,
   blurred bar with a hairline once the page scrolls past it (site.js
   toggles .is-scrolled via IntersectionObserver on the hero section, and
   .is-open while the mobile panel is open). Every header color lives here
   as class-scoped CSS, never as inline styles JS writes at runtime, so
   there is one source of truth and background/text always transition
   together (no desync). Header elements are also kept out of the generic
   [data-hover] engine in site.js for the same reason: a stashed inline
   hover value could otherwise clobber whichever state's color just won. */
#nv-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}
#nv-header.is-scrolled {
  background: rgba(243, 242, 242, 0.92);
  border-bottom-color: var(--color-divider);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* Menu open beats scrolled: the compound selector below outranks
   #nv-header.is-scrolled on specificity (id + 2 classes > id + 1 class), so
   the frosted-bar visuals are suppressed whenever the panel is open, even
   if the page was already scrolled. Text stays dark either way (below). */
#nv-header.is-scrolled.is-open {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#nv-brand, #nv-contact { transition: color 0.25s ease, text-shadow 0.25s ease; }
.nv-bar { transition: background-color 0.25s ease; }
#nv-brand .nv-amp { transition: color 0.25s ease; }

#nv-brand { color: #f8f4f4; text-shadow: 0 1px 12px rgba(20,18,16,0.45); }
#nv-brand .nv-amp { color: var(--color-accent-400); }
#nv-contact { color: #f8f4f4; }
#nv-contact:hover, #nv-contact:focus-visible { color: var(--color-accent); }
.nv-bar { background: #f8f4f4; }

#nv-header.is-scrolled #nv-brand,
#nv-header.is-open #nv-brand {
  color: var(--color-text);
  text-shadow: none;
}
/* var(--color-accent-700) resolves to #a5301f, ~6.2:1 against the scrolled
   bar's rgba(243,242,242,0.92) background: comfortably above the 4.5:1
   WCAG AA minimum (the hero's --color-accent-400 sits near 2:1 there). */
#nv-header.is-scrolled #nv-brand .nv-amp,
#nv-header.is-open #nv-brand .nv-amp {
  color: var(--color-accent-700);
}
#nv-header.is-scrolled #nv-contact,
#nv-header.is-open #nv-contact {
  color: var(--color-text);
}
#nv-header.is-scrolled #nv-contact:hover,
#nv-header.is-scrolled #nv-contact:focus-visible,
#nv-header.is-open #nv-contact:hover,
#nv-header.is-open #nv-contact:focus-visible {
  color: var(--color-accent-700);
}
#nv-header.is-scrolled .nv-bar,
#nv-header.is-open .nv-bar {
  background: var(--color-text);
}

/* Photograph treatment used on every <figure class="plate"> image. */
.plate { filter: sepia(0.1) saturate(1) contrast(1.05); }

/* Full-bleed hero photographs sit behind a sepia/contrast filter. Scoped to
   <img> rather than the wrapper itself so it never lands on a <video> child
   (the home hero): that grade is baked into videos/hero.mp4 at encode time
   instead, so playback doesn't pay a per-frame CSS filter cost. */
.hero-photo-wrap img { filter: sepia(0.1) saturate(1) contrast(1.05); }

img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes nvDraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes nvFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes nvSlideUp { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes nvRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nvCue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(7px); opacity: 1; } }
@keyframes nvScrimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nvPanelIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes nvItemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Hero video pause/play toggle (WCAG 2.2.2: a way to stop moving content).
   Small circular button, bottom-right of the hero, above the scroll cue.
   Icons are pure CSS (bars / triangle) so no extra asset is needed; site.js
   toggles .is-playing and the aria-label together on play/pause events. */
.nv-video-toggle {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  bottom: clamp(20px, 4vh, 40px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(248, 244, 244, 0.35);
  background: rgba(20, 18, 16, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #f8f4f4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nv-video-toggle:hover { background: rgba(20, 18, 16, 0.6); border-color: rgba(248, 244, 244, 0.6); }
.nv-video-toggle:focus-visible { outline: 2px solid var(--color-accent-300); outline-offset: 2px; }
.nv-video-toggle-icon { display: block; }
.nv-video-toggle:not(.is-playing) .nv-video-toggle-pause,
.nv-video-toggle.is-playing .nv-video-toggle-play {
  display: none;
}
.nv-video-toggle-pause { width: 10px; height: 12px; position: relative; }
.nv-video-toggle-pause::before, .nv-video-toggle-pause::after {
  content: ''; position: absolute; top: 0; width: 3px; height: 100%; background: currentColor;
}
.nv-video-toggle-pause::before { left: 0; }
.nv-video-toggle-pause::after { right: 0; }
.nv-video-toggle-play {
  width: 0; height: 0; margin-left: 2px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

/* Reveal-on-scroll: JS (site.js) flips opacity/transform once each
   [data-reveal] node has been observed crossing into view. No CSS needed
   beyond the transition, which the script sets inline to match the source. */

/* Light touches: quiet image zoom on cards; motion off for reduced-motion users */
article figure { overflow: hidden; }
article figure img { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
article:hover figure img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* --- sourcing form --- */

/* Outer page rhythm: matches the max-width/padding cadence every other
   section on the site uses (see e.g. what-we-do.html #journey/#categories),
   just expressed as a class instead of inline styles, per the sourcing-form
   styling rule (class-based CSS here, not a designer-export inline block). */
.nv-sf-section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px) clamp(84px, 11vw, 130px);
}

.nv-sf-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.nv-sf-fieldset {
  border: 0;
  margin: 0;
  padding: var(--space-6) 0 0;
  border-top: 1px solid var(--color-divider);
}
.nv-sf-fieldset:first-of-type { padding-top: 0; border-top: 0; }

.nv-sf-legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 22px;
  line-height: 1.2;
}
.nv-sf-legend-note {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.nv-sf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5) var(--space-6);
}
@media (min-width: 640px) {
  .nv-sf-grid { grid-template-columns: 1fr 1fr; }
}
.nv-sf-field--full { grid-column: 1 / -1; }

.nv-sf-field { display: flex; flex-direction: column; gap: 7px; }

.nv-sf-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.nv-sf-required {
  color: var(--color-accent);
  margin-left: 2px;
}
.nv-sf-hint {
  font-size: 12px;
  line-height: 1.4;
  margin: 2px 0 0;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.nv-sf-input,
.nv-sf-select,
.nv-sf-textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.nv-sf-select { appearance: auto; }
.nv-sf-textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}
.nv-sf-input:hover,
.nv-sf-select:hover,
.nv-sf-textarea:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.nv-sf-input:focus-visible,
.nv-sf-select:focus-visible,
.nv-sf-textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.nv-sf-radio-group,
.nv-sf-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 2px;
}
.nv-sf-radio,
.nv-sf-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.nv-sf-radio input,
.nv-sf-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-accent);
  flex: none;
}
.nv-sf-radio input:focus-visible,
.nv-sf-check input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nv-sf-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
}
.nv-sf-inline-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-accent);
  flex: none;
}
.nv-sf-inline-check input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Honeypot: present in the DOM and in the tab order of no one, ever. */
.nv-sf-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nv-sf-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.nv-sf-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #faf7f4;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nv-sf-submit:hover { background: var(--color-accent-700); border-color: var(--color-accent-700); }
.nv-sf-submit:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.nv-sf-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.nv-sf-note {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.nv-sf-error {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-accent-700);
  min-height: 1em;
}
.nv-sf-error:empty { display: none; }

.nv-sf-confirm {
  padding: var(--space-8) 0;
}
.nv-sf-confirm-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 30px;
  margin: 0 0 var(--space-3);
}
.nv-sf-confirm p {
  font-size: 15px;
  line-height: 27px;
  max-width: 60ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: 0 0 var(--space-3);
}
.nv-sf-confirm a { color: var(--color-accent); }
