/* Palette follows the hero illustration: stone greys with one bronze accent. */
:root {
  --page: #f5f4f1;
  --band: #eae8e3;
  --card: #ffffff;
  --ink: #1b1d20;
  --muted: #595e64;
  --line: #d6d3cc;
  --dark: #131517;
  --dark-2: #1d2023;
  --dark-line: #2f3338;
  --on-dark: #eeece7;
  --on-dark-muted: #adb1b5;
  --bronze: #8f6123;
  --bronze-light: #d4a75c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); color: var(--ink); padding: 0.5rem 1rem; z-index: 10; }

:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 3px; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--dark) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-line);
  color: var(--on-dark);
  padding-block: 0.85rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--on-dark); }
.brand svg { width: 1.6rem; height: 1.6rem; fill: var(--bronze-light); flex: none; }
.brand em { font-style: normal; font-weight: 400; color: var(--on-dark-muted); }

nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.95rem; }
nav a { text-decoration: none; color: var(--on-dark-muted); }
nav a:not(.button):hover { color: var(--on-dark); }

/* Buttons and links */
.button {
  display: inline-block; background: var(--bronze-light); color: var(--dark);
  padding: 0.85rem 1.5rem; border-radius: 0.25rem; text-decoration: none; font-weight: 650;
  overflow-wrap: anywhere; transition: background 0.15s;
}
.button:hover { background: #e2b973; }
nav .button.small { padding: 0.45rem 0.95rem; color: var(--dark); }
.link { text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.2rem; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 650; color: var(--bronze); margin-bottom: 1rem; }

/* Hero: the illustration sits behind the copy, shifted right so the figure
   stays clear of the text. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--dark); color: var(--on-dark);
  min-height: min(46rem, 88vh);
  display: flex; align-items: center;
  padding-block: 5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0 -42% 0 0; z-index: -2;
  background: url("img/samson-pillars.jpg") center 55% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(19 21 23 / 0.96) 0%, rgb(19 21 23 / 0.86) 34%, rgb(19 21 23 / 0.25) 62%, rgb(19 21 23 / 0.45) 100%),
    linear-gradient(0deg, rgb(19 21 23 / 0.85) 0%, transparent 30%);
}
.hero-copy { max-width: 40rem; }
.hero-copy .lede { max-width: 33rem; }
.hero .eyebrow, .dark .eyebrow { color: var(--bronze-light); }
.lede { font-size: 1.2rem; color: var(--on-dark-muted); margin-top: 1.5rem; }

/* Fact strip under the hero */
.facts { background: var(--dark-2); color: var(--on-dark); border-block: 1px solid var(--dark-line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 1.5rem 1.5rem 1.5rem 0; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--dark-line); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.facts span { color: var(--on-dark-muted); font-size: 0.9rem; }

/* Sections */
section { padding-block: clamp(4rem, 9vw, 7rem); }
.band { background: var(--band); border-block: 1px solid var(--line); }
.dark { background: var(--dark); color: var(--on-dark); }
.on-dark-muted { color: var(--on-dark-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose p { color: var(--muted); font-size: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.cards article { background: var(--card); border: 1px solid var(--line); border-radius: 0.4rem; padding: 1.75rem 1.5rem; }
.cards p, .steps p, .principles p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.icon { width: 2rem; height: 2rem; margin-bottom: 1.1rem; fill: none; stroke: var(--bronze); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.roadmap { margin: 2rem 0 0; padding: 1rem 1.25rem; border: 1px dashed #b9b5ab; border-radius: 0.4rem; color: var(--muted); font-size: 0.98rem; }
.roadmap strong { color: var(--ink); }

/* Incident timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--dark-line); }
.timeline li { position: relative; padding: 0 0 1.75rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--dark); border: 2px solid var(--on-dark-muted); }
.timeline li:has(.human)::before { border-color: var(--bronze-light); background: var(--bronze-light); }
.timeline h3 { margin: 0.35rem 0 0.2rem; }
.timeline p { margin: 0; color: var(--on-dark-muted); font-size: 0.98rem; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.15rem 0.55rem; border-radius: 1rem; border: 1px solid var(--dark-line); color: var(--on-dark-muted); }
.tag.human { border-color: var(--bronze-light); color: var(--bronze-light); }

/* Pricing */
#pricing h2 { max-width: 40rem; margin-bottom: 2.5rem; }
.price-note { border-left: 3px solid var(--bronze); padding-left: 1rem; color: var(--ink) !important; font-weight: 500; }
.checks { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0.4rem; }
.checks li { position: relative; padding: 1.1rem 1.4rem 1.1rem 3.2rem; color: var(--muted); }
.checks li + li { border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 1.35rem; top: 1.45rem; width: 0.95rem; height: 0.5rem; border-left: 2px solid var(--bronze); border-bottom: 2px solid var(--bronze); transform: rotate(-45deg); }
.checks strong { color: var(--ink); }

/* Steps */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--bronze); margin-bottom: 0.8rem; }

/* About */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.principles li { border-left: 2px solid var(--line); padding-left: 1.25rem; }
.prose .fine { font-size: 0.82rem; margin-top: 1.5rem; }

/* Questions */
details { border-top: 1px solid #c9c5bb; padding-block: 1.1rem; }
details:last-of-type { border-bottom: 1px solid #c9c5bb; }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--bronze); font-family: var(--sans); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0.8rem 0 0; }

/* Contact and footer */
.contact { text-align: center; border-bottom: 1px solid var(--dark-line); }
.contact p { font-size: 1.1rem; margin-bottom: 2rem; }
.contact p:last-child { margin-bottom: 0; }

.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: 0.92rem; padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-grid p { margin: 1rem 0 0; max-width: 20rem; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark); margin-bottom: 0.9rem; }
.footer-grid div > a:not(.brand), .footer-grid div > span { display: block; text-decoration: none; padding-block: 0.2rem; }
.footer-grid div > a:not(.brand):hover { color: var(--on-dark); }
.legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--dark-line); font-size: 0.85rem; }

@media (max-width: 62rem) {
  nav a:not(.button) { display: none; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
}

@media (max-width: 46rem) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  /* Stack the hero: illustration on top, copy beneath. */
  .hero { display: block; min-height: 0; padding-block: 58vw 3.5rem; }
  .hero::before { inset: 0 0 auto 0; height: 62vw; background-position: center; }
  .hero::after { background: linear-gradient(0deg, var(--dark) 0%, var(--dark) calc(100% - 62vw), rgb(19 21 23 / 0.15) calc(100% - 28vw), rgb(19 21 23 / 0.3) 100%); }
}

@media (max-width: 30rem) {
  .cards, .steps, .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 1.1rem 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--dark-line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
