/* Look: an engraved badge at dusk. Cinzel capitals and brass hairlines come
   from the company badge; the dusk-blue darks and sunrise orange come from
   the Sandia skyline photo. Flat surfaces and rules, no floating cards. */
:root {
  --bg: #0d121a;
  --bg-2: #111824;
  --line: #263142;
  --text: #f4efe7;
  --soft: #d6d2cb;
  --muted: #a3adbb;
  --sun: #f2a35c;
  --sun-hi: #f8bd82;
  --peach: #f4c7a6;
  --sky: #9cc0dc;
  --brass: #c9a35a;
  --brass-line: rgba(201, 163, 90, 0.35);
  --ink: #1b1209;

  --ombre: linear-gradient(180deg, #fff7ee 0%, #ffe2c6 48%, #f4ad73 100%);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --radius: 3px;

  /* Rendered height of the hero skyline photo (see .hero). */
  --photo-h: min(calc(100vw * 900 / 2880), max(calc(100vh - 340px), 300px));
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* Fine film grain so the flat darks have some tooth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { flex: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
h2 { font-size: clamp(34px, 4.6vw, 58px); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a:focus-visible {
  outline: 2px solid var(--sun-hi);
  outline-offset: 3px;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--radius);
  font: 600 17px/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-hi); }
.btn-line { border: 1px solid var(--brass-line); color: var(--text); }
.btn-line:hover { border-color: var(--brass); color: var(--peach); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  padding: 0 6px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 6px;
}
.text-link svg { width: 16px; height: 16px; color: var(--brass); }
.text-link:hover { color: var(--peach); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(13, 18, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 163, 90, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 44px; }
.brand-name {
  display: flex;
  flex-direction: column;
  font: 700 19px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-name span {
  font: 600 11px/1 var(--body);
  letter-spacing: 0.22em;
  color: var(--brass);
  margin-top: 5px;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
}
.nav a:hover { color: var(--peach); }

/* Hero
   City-visibility rules: in both crops the downtown buildings sit between
   74% and 84% of the photo's height, with trees below. So the photo height
   (--photo-h) is capped to fit the viewport, the crop is anchored on the
   city, and the bottom fade only covers the photo's bottom 12%. */
/* The hero is as tall as its text plus a slice of photo: the text block
   ends just above the city line (see --text-lift). */
.hero {
  --text-lift: 0.2;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, #0d121a 0%, #16233a 22%, #2c4468 45%, #6f8fb3 72%, #b3cdd9 92%, #c4dfe7 100%)
    top / 100% calc(100% - var(--photo-h) * 0.7) no-repeat,
    #c4dfe7;
}
.hero-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}
.hero-photo img {
  width: 100%;
  height: var(--photo-h);
  object-fit: cover;
  object-position: 66% 80%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 18, 26, 0.78) 0%, rgba(13, 18, 26, 0.5) 32%, rgba(13, 18, 26, 0) 58%),
    radial-gradient(50% 30% at 80% 62%, rgba(244, 199, 166, 0.35), transparent 70%);
}
.hero-shade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--photo-h) * 0.12);
  background: linear-gradient(180deg, rgba(13, 18, 26, 0), var(--bg));
}
.hero-inner {
  width: 100%;
  padding-top: 132px;
  padding-bottom: calc(var(--photo-h) * var(--text-lift));
}
.kicker {
  margin: 0 0 20px;
  font: 600 13px/1 var(--display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  max-width: 13ch;
  background: var(--ombre);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(13, 18, 26, 0.55));
}
.hero h1 span { display: block; }
.lede {
  margin: 24px 0 0;
  max-width: 36ch;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 36px;
}

/* Band under the hero */
.band {
  background: var(--bg-2);
  border-top: 1px solid var(--brass-line);
  border-bottom: 1px solid var(--brass-line);
}
.band-inner {
  list-style: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  padding-top: 20px;
  padding-bottom: 20px;
  font: 600 14px/1.3 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  text-align: center;
}
.band-inner svg { display: block; width: 12px; height: 12px; color: var(--brass); }
.band-inner a { text-decoration: none; color: var(--peach); }
.band-inner a:hover { color: var(--sun-hi); }

/* Services */
.services { padding: var(--section) 0; }
.services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 40px;
}
.services-head p { margin: 0; max-width: 34ch; color: var(--muted); }
.services-head a { white-space: nowrap; color: var(--peach); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.services-head a:hover { color: var(--sun-hi); }

.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--brass-line);
}
.roster li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-content: start;
  gap: 6px 20px;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--brass-line);
}
.numeral {
  grid-row: span 2;
  padding-top: 6px;
  font: 700 18px/1 var(--display);
  color: var(--brass);
  letter-spacing: 0.06em;
}
.roster h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  transition: color .2s;
}
.roster li:hover h3 { color: var(--peach); }
.roster p { margin: 0; color: var(--muted); max-width: 46ch; }

/* About */
/* About: field-map treatment. Generated contour lines (assets/topo-contours.svg)
   on near-black, with a faint map grid. */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--section) 0;
  background: #07090c;
  border-top: 1px solid var(--brass-line);
  border-bottom: 1px solid var(--brass-line);
}
.about::before,
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.about::before {
  background: url("assets/topo-contours.svg") center / cover no-repeat;
  opacity: 0.28;
}
.about::after {
  background:
    repeating-linear-gradient(90deg, rgba(244, 239, 231, 0.07) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(244, 239, 231, 0.07) 0 1px, transparent 1px 120px),
    radial-gradient(70% 90% at 30% 60%, rgba(7, 9, 12, 0.75), transparent 75%);
}.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
}
.about-copy h2 { margin-bottom: 24px; }
.about-copy p {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.5;
  color: var(--soft);
}
.ledger {
  margin: 0;
  border-top: 1px solid var(--brass-line);
}
.ledger div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--brass-line);
}
.ledger dt {
  font: 600 12px/1.9 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.ledger dd { margin: 0; font-size: 18px; }

/* Contact: full-width photo; the city lights fill the lower half. */
/* On laptop and desktop the section height (46vw) frames the photo from just
   above the sun (about 16% down the image) to just below the badge on the
   SUV door (64-78% down), cropping the legs. The text is vertically centered
   so spare height splits above and below it. */
.contact {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 46vw;
  padding: clamp(56px, 6vw, 96px) 0;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13, 18, 26, 0) 5%),
    linear-gradient(90deg, rgba(13, 18, 26, 0.85) 0%, rgba(13, 18, 26, 0.5) 35%, rgba(13, 18, 26, 0) 55%),
    url("assets/rps-team-sunset.jpg") center 34% / cover no-repeat;
}
.contact-inner { width: 100%; }
.contact-phone {
  display: inline-block;
  margin-top: 18px;
  font: 700 clamp(40px, 7vw, 92px)/1.1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  background: var(--ombre);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(13, 18, 26, 0.5));
}
.contact-phone:hover { filter: brightness(1.1) drop-shadow(0 4px 20px rgba(13, 18, 26, 0.5)); }
.contact-lines {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  max-width: 620px;
  border-top: 1px solid rgba(244, 239, 231, 0.2);
}
.contact-lines li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 239, 231, 0.2);
}
.contact-lines .label {
  font: 600 12px/1.9 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.contact-lines a {
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(13, 18, 26, 0.8);
}
.contact-lines a:hover { color: var(--peach); }
.contact-lines a, .footer-email { overflow-wrap: anywhere; }
.footer-email { color: var(--soft); text-underline-offset: 3px; }
.footer-email:hover { color: var(--peach); }
.contact-lines svg { display: inline; width: 14px; height: 14px; vertical-align: -1px; color: var(--brass); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--brass-line);
  padding: 32px 0;
  background: var(--bg);
}
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.footer-inner img { width: 40px; }
.footer-inner p { margin: 0; font-size: 15px; color: var(--muted); }
.footer-inner .credit { margin-left: auto; font-size: 13px; }
.credit a { color: var(--soft); }

/* Mobile call bar */
.mobile-call { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }

  :root { --photo-h: min(calc(100vw * 1000 / 1400), max(70vh, 260px)); }
  .hero { --text-lift: 0.27; }
  .hero-inner { padding-top: 112px; }
  .hero-photo img { object-position: 50% 80%; }
  /* The text now sits over the photo's sky, so darken the sky down to just
     above the city line and leave the buildings untouched. */
  .hero-shade {
    background: linear-gradient(0deg,
      rgba(13, 18, 26, 0) 0,
      rgba(13, 18, 26, 0) calc(var(--photo-h) * 0.24),
      rgba(13, 18, 26, 0.55) calc(var(--photo-h) * 0.42),
      rgba(13, 18, 26, 0.5) 100%);
  }

  .about-inner { grid-template-columns: 1fr; }
  .roster { grid-template-columns: 1fr; }

  /* The hero already shows the city and the call button, so the band
     keeps only the licensing line, framed by the two stars. */
  .band-extra { display: none; }
  .band-inner { flex-wrap: nowrap; gap: 16px; font-size: 13px; }

  .contact-bg {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(13, 18, 26, 0.8) 18%, rgba(13, 18, 26, 0.6) 50%, rgba(13, 18, 26, 0) 75%),
      url("assets/rps-team-sunset.jpg") 82% 70% / cover no-repeat;
  }
  .contact { display: block; min-height: 0; padding: var(--section) 0 220px; }
}

@media (max-width: 700px) {
  .roster li { grid-template-columns: 44px 1fr; padding: 24px 0 26px; }
  .contact { padding-bottom: 220px; }
  .contact-phone { font-size: clamp(28px, 8.6vw, 44px); white-space: nowrap; }
  .contact-lines li, .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .contact-lines a[href^="mailto"] { font-size: clamp(14px, 4.6vw, 18px); }
  .footer-inner .credit { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  body { padding-bottom: 76px; }
  /* Phones: too narrow for the logo and the team together, so center on the team. */
  .contact-bg { background-position: 0 0, 50% 70%; }
  .header-inner .btn-sm { display: none; }
  .brand-name { font-size: 17px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* On phones the link lands on the pale sky, so give it a dark button face. */
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--brass-line);
    border-radius: var(--radius);
    background: rgba(13, 18, 26, 0.78);
    text-decoration: none;
  }
  .mobile-call {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    border-radius: var(--radius);
    background: var(--sun);
    color: var(--ink);
    font: 600 18px/1 var(--body);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(calc(100% + 24px));
    transition: transform .25s ease;
  }
  .show-call .mobile-call { transform: none; }
  .mobile-call svg { width: 20px; height: 20px; }
}

/* Short phones (e.g. 320x568): tighten the hero so the city still shows on
   the first screen. */
@media (max-width: 560px) and (max-height: 680px) {
  .hero-inner { padding-top: 96px; }
  .kicker { margin-bottom: 14px; font-size: 12px; }
  .hero h1 { font-size: 34px; }
  .lede { margin-top: 16px; font-size: 16px; line-height: 1.5; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn, .hero-actions .text-link { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mobile-call, .roster h3 { transition: none; }
}
