/* ==========================================================================
   BASE — reset, typography, layout primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Clears the shrunk sticky header (top bar 38 + nav 68 = ~108px) so anchor
     targets never land underneath it. */
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient texture: faint laser grid + drifting brass glow behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      0deg,
      rgba(224, 195, 119, 0.055) 0 1px,
      transparent 1px 68px
    ),
    repeating-linear-gradient(90deg, rgba(224, 195, 119, 0.055) 0 1px, transparent 1px 68px);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* <picture> is only a wrapper — let it collapse so the object-fit rules written
   against `img` keep working inside fixed-aspect containers. */
picture {
  display: contents;
}
@supports not (display: contents) {
  .hero__card picture,
  .split__media-main picture,
  .split__media-float picture,
  .svc-card__media picture {
    display: block;
    width: 100%;
    height: 100%;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 700;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  font-weight: 700;
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0 0 var(--sp-4);
  max-width: 68ch;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brass-300);
  text-decoration: none;
  transition: color var(--t-micro) var(--ease-standard);
}
a:hover {
  color: var(--brass-200);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

strong {
  font-weight: 650;
  color: var(--brass-200);
}
.section--light strong {
  color: var(--navy-700);
}

::selection {
  background: var(--crimson-500);
  color: var(--bone-50);
}

/* --------------------------------------------------------------------------
   Focus — visible for keyboard users, suppressed for mouse
   -------------------------------------------------------------------------- */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--brass-300);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 999;
  transform: translateY(-160%);
  padding: var(--sp-3) var(--sp-5);
  background: var(--crimson-500);
  color: var(--bone-50);
  border-radius: var(--r-md);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-micro) var(--ease-standard);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}

main {
  position: relative;
  z-index: var(--z-base);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: clip;
}
.section > .container {
  position: relative;
  z-index: 2;
}

/* Perf: skip rendering work for offscreen sections. */
.section--defer {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.grid {
  display: grid;
  gap: clamp(1.15rem, 2.4vw, 2rem);
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack > * + * {
  margin-top: var(--sp-4);
}

/* --------------------------------------------------------------------------
   Section headers — eyebrow / title / lead
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brass-400);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--light .eyebrow {
  color: var(--crimson-500);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.75rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow {
  justify-content: center;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: var(--sp-4);
}

/* Gradient "beam" text used for the key noun in headlines. */
.beam-text {
  background: var(--beam-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for engines without background-clip:text */
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .beam-text {
    color: var(--brass-300);
    -webkit-text-fill-color: currentColor;
  }
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}
