/* InputRP — the page moves from golden hour, to daylight, to night, to sirens, and back to sunset. */

:root {
  --ink: #120d1f;
  --plum: #231436;
  --sun: #ff7a1a;
  --ember: #e5392e;
  --siren: #3b6cff;
  --haze: #f6e7d6;
  --haze-ink: #2b1a14;
  --text: #f3e9df;
  --muted: #b9aebf;
  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #1a0c00; padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Type */
h1, h2, h3 { font-stretch: 118%; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.6rem; font-stretch: 112%; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-stretch: 108%; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: #1a0c00; }
.btn-sun:hover { background: #ff923f; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-night { background: var(--ink); color: #fff; }
.btn-night:hover { background: #000; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  padding: 12px var(--gutter);
  transition: background-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled { background: rgba(18,13,31,.86); backdrop-filter: blur(12px); }
.nav ul { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: .98rem; opacity: .9; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.nav-cta { padding: 10px 20px; justify-self: end; }
.brand { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-stretch: 118%; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; text-align: center; overflow: hidden; padding: 140px 0 clamp(48px, 9vh, 96px); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(18,13,31,.82) 0%, rgba(18,13,31,.5) 60%, rgba(18,13,31,.25) 100%),
    linear-gradient(0deg, rgba(18,13,31,1) 0%, rgba(18,13,31,0) 38%),
    linear-gradient(180deg, rgba(255,122,26,.28) 0%, rgba(229,57,46,.1) 40%, rgba(255,122,26,0) 70%);
}
.hero-grid { display: flex; justify-content: center; }
.hero-copy { max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin-top: 22px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin-top: 24px; color: #f1e4d6; max-width: 54ch; }
.hero .cta-row { justify-content: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .98rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px 8px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5be37d; box-shadow: 0 0 0 4px rgba(91,227,125,.22); }
.hero-badge {
  width: 128px; height: 128px; margin-bottom: 28px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 8px rgba(255,122,26,.25);
}

/* Sections */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.day { background: var(--haze); color: var(--haze-ink); }
.night { background: var(--ink); }
.section-head { margin: 0 auto clamp(40px, 6vw, 72px); max-width: 780px; text-align: center; }
.section-head p { margin: 18px auto 0; color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.day .section-head p { color: #4a3128; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip { grid-template-columns: 1.1fr 1fr; }

.frame { margin: 0; position: relative; }
.frame img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.frame figcaption { margin-top: 14px; font-size: .95rem; opacity: .75; text-align: center; }
.tilt img { transform: rotate(1.4deg); }

.jobs-block { margin-top: clamp(48px, 7vw, 80px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.big-num { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; }
.big-num strong { font-stretch: 125%; font-weight: 900; font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; letter-spacing: -0.04em; color: var(--ember); }
.big-num span { font-weight: 600; font-size: 1.1rem; color: var(--haze-ink); }

.jobs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; max-width: 820px; }
.jobs li { padding: 7px 16px; border-radius: 999px; background: rgba(43,26,20,.08); border: 1px solid rgba(43,26,20,.2); font-weight: 600; font-size: .95rem; }

.ticks { display: grid; gap: 14px; font-size: 1.1rem; }
.ticks.ticks-day li { color: var(--haze-ink); }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 3px; background: var(--sun); transform: rotate(45deg) scale(.8); }

/* Emergency services: the one moment of motion — a light bar that alternates */
.lights { position: relative; background: linear-gradient(180deg, #170f2a 0%, var(--ink) 40%); }
.lights::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--siren) 0 50%, var(--ember) 50% 100%);
  background-size: 200% 100%;
  animation: bar 1.6s steps(1, end) infinite;
  box-shadow: 0 0 40px 6px rgba(59,108,255,.45);
}
@keyframes bar {
  0%   { background-position: 0 0;    box-shadow: 0 0 60px 8px rgba(59,108,255,.5); }
  50%  { background-position: 100% 0; box-shadow: 0 0 60px 8px rgba(229,57,46,.5); }
}

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { border-radius: var(--radius); overflow: hidden; background: var(--plum); display: flex; flex-direction: column; border-top: 5px solid var(--c); }
.svc-leo  { --c: var(--siren); }
.svc-fire { --c: var(--ember); }
.svc-ems  { --c: #25c2a0; background: linear-gradient(160deg, #123a38, var(--plum) 70%); }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-body { padding: 24px 24px 28px; flex: 1; }
.svc-art { aspect-ratio: 16 / 10; display: grid; place-items: center; color: #25c2a0; background: radial-gradient(circle at 50% 40%, rgba(37,194,160,.28), transparent 65%); }
.svc-body h3 { color: #fff; }
.svc-body p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 15vw, 190px); gap: 14px; }
.gallery li { overflow: hidden; border-radius: var(--radius); background: var(--plum); }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery button:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.04); }
.g-a { grid-column: span 4; grid-row: span 2; }
.g-b { grid-column: span 2; }
.g-c { grid-column: span 2; }
.g-d, .g-e, .g-f { grid-column: span 2; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8,5,16,.9); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lb-close { position: absolute; top: -48px; right: 0; background: #fff; color: #111; border: 0; border-radius: 999px; padding: 8px 18px; font: 700 .95rem "Archivo", sans-serif; cursor: pointer; }

/* Join */
.sunset { background: linear-gradient(180deg, var(--ink) 0%, #3a1636 22%, #b3321f 62%, var(--sun) 100%); padding-bottom: clamp(96px, 14vw, 180px); }
.join { text-align: center; display: flex; flex-direction: column; align-items: center; }
.join h2 { max-width: 18ch; font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.join p { margin: 24px auto 0; font-size: 1.2rem; color: #fbe9dc; max-width: 54ch; }

/* Footer */
.foot { background: #0a0713; padding: 40px 0; }
.foot-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.fine { font-size: .85rem; color: var(--muted); max-width: 62ch; margin: 0 auto; }

/* Responsive */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
  .hero-badge { width: 96px; height: 96px; margin-bottom: 20px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .frame { order: 2; }
  .services { grid-template-columns: 1fr; }
  .svc-art { aspect-ratio: 16 / 7; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-a { grid-column: span 2; grid-row: span 2; }
  .g-b, .g-c, .g-d, .g-e, .g-f { grid-column: span 1; }
  .tilt img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lights::before { animation: none; background-position: 0 0; }
  .btn, .gallery img { transition: none; }
}
