/* ==========================================================================
   Mr. Roofer — site stylesheet
   Direction: "engineered trust". Corporate, precise, institutional.
   Navy carries the page, red appears only on commitments (CTAs), a thin
   brass hairline supplies the premium note. No decoration without a reason.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  --navy: #0f2a4a;
  --navy-deep: #0a1c33;
  --navy-mid: #17395f;
  --navy-soft: #eaeff6;
  --red: #c41e2a;
  --red-dark: #a4141f;
  --brass: #c9a24a;

  --white: #ffffff;
  --paper: #f7f8fa;
  --ink: #1a1a1a;
  --slate: #5b6472;
  --rule: #e1e6ee;
  --rule-strong: #cfd7e3;

  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4.5rem, 9vw, 7.5rem);

  /* Header height and logo height travel together: the sticky bar, the mobile
     drawer offset and the anchor scroll padding all read --header-h. Both are
     stepped down at the header breakpoints in section 6. */
  --header-h: 5.9rem;
  --logo-h: 4.25rem;

  --shadow-card: 0 1px 2px rgba(15, 42, 74, 0.06), 0 18px 44px -18px rgba(15, 42, 74, 0.28);
  --shadow-lift: 0 2px 4px rgba(15, 42, 74, 0.07), 0 28px 60px -22px rgba(15, 42, 74, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: var(--navy);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- 3. Typography ------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.0625rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1.15rem;
  max-width: 68ch;
}

strong {
  font-weight: 600;
  color: var(--navy);
}

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
}

/* Mono eyebrow with a hairline lead-in — the recurring section signature. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: '';
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.6;
}

.on-navy .eyebrow {
  color: var(--brass);
}

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

.band {
  padding-block: var(--band);
}

.band--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.band--paper {
  background: var(--paper);
  border-block: 1px solid var(--rule);
}

.band--navy {
  background: var(--navy);
  color: #dbe3ee;
  position: relative;
  overflow: hidden;
}

.band--navy h2,
.band--navy h3,
.band--navy h4 {
  color: var(--white);
}

.band--navy strong {
  color: var(--white);
}

/* Shingle courses, drawn rather than photographed. */
.band--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 30px
    ),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.band--navy > * {
  position: relative;
  z-index: 1;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split--wide-right {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* --- 5. Buttons -------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(196, 30, 42, 0.75);
}

.btn:active {
  transform: translateY(0);
}

.btn--block {
  width: 100%;
}

/* Tighter measure for the header bar, where the CTA sits next to the nav. */
.btn--sm {
  padding: 0.72rem 1.15rem;
  font-size: 0.88rem;
}

.btn--navy {
  --btn-bg: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-mid);
  box-shadow: 0 10px 22px -12px rgba(15, 42, 74, 0.7);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  background: var(--navy-soft);
  border-color: var(--navy);
  box-shadow: none;
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--white);
  box-shadow: none;
}

.btn svg {
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Click-to-call, styled as data rather than as a button. */
.tel-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.tel-inline:hover {
  color: var(--red);
  border-color: var(--red);
}

/* The hero is a navy panel in its own right, so it takes the light treatment
   too — without this the number is navy ink on navy and only its rule shows. */
.on-navy .tel-inline,
.band--navy .tel-inline,
.hero .tel-inline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.on-navy .tel-inline:hover,
.band--navy .tel-inline:hover,
.hero .tel-inline:hover {
  color: var(--brass);
  border-color: var(--brass);
}

/* --- 6. Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.25s var(--ease);
}

.site-header[data-scrolled='true'] {
  box-shadow: 0 12px 30px -22px rgba(15, 42, 74, 0.45);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  min-height: var(--header-h);
}

.brand {
  flex: none;
  display: block;
  line-height: 0;
}

/* Raster mark: drive it from height so the bar height stays predictable. */
.brand img {
  height: var(--logo-h);
  width: auto;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding-block: 0.35rem;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-list a:hover::after,
.nav-list a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav-list a[aria-current='page'] {
  color: var(--navy);
  font-weight: 600;
}

/* The panel's CTA and phone link exist for the mobile drawer only — on the
   desktop bar those jobs belong to .header-actions. */
.nav > .btn,
.nav-tel {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.15rem);
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.6rem 0.85rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 15px;
}

.nav-toggle-bars span {
  height: 1.6px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(4.6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-4.6px) rotate(-45deg);
}

/* Between the drawer breakpoint and ~1120px the six links plus the phone
   number already fill the bar, so the header CTA stands down there and the
   drawer carries it. */
@media (max-width: 69.99rem) {
  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 61.99rem) {
  :root {
    --header-h: 4.75rem;
    --logo-h: 3.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-card);
    padding: 1rem var(--gutter) 1.75rem;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav[data-open='true'] {
    display: block;
    animation: drop 0.24s var(--ease) both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li {
    border-top: 1px solid var(--rule);
  }

  .nav-list a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.05rem;
  }

  .nav-list a::after {
    display: none;
  }

  .nav > .btn {
    display: flex;
    margin-top: 1.25rem;
    width: 100%;
  }

  .nav-tel {
    display: inline-flex;
    margin-top: 1.5rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 34rem) {
  :root {
    --header-h: 4.35rem;
    --logo-h: 2.9rem;
  }

  /* The number moves into the drawer rather than crowding the bar. */
  .header-actions {
    display: none;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* --- 7. Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(158deg, #123156 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: #d9e2ee;
  overflow: hidden;
  padding-block: clamp(3.25rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.055) 0 1px,
    transparent 1px 34px
  );
  pointer-events: none;
}

/* Decorative elevation drawing, bled off the right edge. */
.hero-art {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: min(58rem, 74%);
  opacity: 0.16;
  pointer-events: none;
  mask-image: linear-gradient(to left, #000 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(3rem, 5vw, 5rem);
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.hero .lede {
  color: #bccadb;
  max-width: 34ch;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-badge {
  width: clamp(76px, 11vw, 96px);
  flex: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.hero-proof-copy {
  font-size: 0.95rem;
  color: #b3c2d5;
  margin: 0;
  max-width: 30ch;
}

.hero-proof-copy b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2rem;
}

/* On a phone the CTA takes the full measure and the number sits under it. */
@media (max-width: 34rem) {
  .hero-cta-row {
    gap: 1.35rem;
  }

  .hero-cta-row .btn {
    width: 100%;
  }
}

/* --- 8. Forms ---------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow-lift);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border-top: 3px solid var(--red);
  color: var(--ink);
}

.form-card h2,
.form-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin-bottom: 0.35rem;
}

.form-card .form-note {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--slate);
  margin: 0 0 1.35rem;
}

.field {
  display: block;
  margin-bottom: 0.9rem;
}

/* Only the leading span is a label — later spans are hints and error text. */
.field > span:first-child,
.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.field-req {
  color: var(--red);
  margin-left: 0.15rem;
}

input[type='text'],
input[type='tel'],
input[type='email'],
input[type='file'],
select,
textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-size: 1rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6472' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 11px;
  padding-right: 2.4rem;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--slate);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.13);
}

input[type='file'] {
  padding: 0.55rem;
  font-size: 0.9rem;
  color: var(--slate);
  cursor: pointer;
}

input[type='file']::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.85rem;
  background: var(--navy-soft);
  color: var(--navy);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Native validation feedback, shown only after an attempted submit. */
form[data-validated='true'] :invalid {
  border-color: var(--red);
}

form[data-validated='true'] :invalid:focus {
  box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.16);
}

.field-error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
  color: var(--red-dark);
}

form[data-validated='true'] :invalid ~ .field-error {
  display: block;
}

.field-pair {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 30rem) {
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }

  .field-pair--3 {
    grid-template-columns: 1.6fr 1fr 0.9fr;
  }
}

.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-fine {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--slate);
}

.form-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--slate);
  flex-wrap: wrap;
}

/* --- 9. Cards & lists -------------------------------------------------- */
/* Deliberately uneven service grid — a lead panel plus a stacked column. */
.service-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 52rem) {
  .service-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service:nth-child(1) {
    grid-column: span 3;
    grid-row: span 2;
  }

  .service:nth-child(2),
  .service:nth-child(3) {
    grid-column: span 3;
  }

  .service:nth-child(4),
  .service:nth-child(5) {
    grid-column: span 3;
  }
}

.service {
  position: relative;
  background: var(--white);
  padding: clamp(1.5rem, 2.6vw, 2.15rem);
  transition: background-color 0.2s var(--ease);
}

.service:hover {
  background: var(--paper);
}

.service:nth-child(1) {
  background: var(--paper);
}

.service:nth-child(1):hover {
  background: var(--navy-soft);
}

.service-icon {
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service h3 {
  margin-bottom: 0.4rem;
}

.service p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--slate);
}

.service::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.24s var(--ease);
}

.service:hover::after {
  transform: scaleY(1);
}

/* Promise list — hairline-ruled rows, no bullets. */
.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.band--navy .promise-list,
.band--navy .promise-list li {
  border-color: rgba(255, 255, 255, 0.15);
}

.promise-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.promise-list .tick {
  flex: none;
  margin-top: 0.32rem;
  color: var(--red);
}

.band--navy .promise-list .tick {
  color: var(--brass);
}

.promise-list p {
  margin: 0;
  font-size: 0.99rem;
}

.promise-list b {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}

.band--navy .promise-list b {
  color: var(--white);
}

/* Stat strip */
.stat-strip {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 52rem) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  border-top: 2px solid var(--brass);
  padding-top: 1rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}

.stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #a9b8cc;
}

/* Process ladder — offset rows, not equal cards. */
.ladder {
  counter-reset: step;
  border-top: 1px solid var(--rule);
}

.step {
  display: grid;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 3.5vw, 2.9rem) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 56rem) {
  .step {
    grid-template-columns: 7rem 1fr 1fr;
    align-items: start;
  }

  .step:nth-child(even) {
    background: linear-gradient(90deg, transparent 0 3.5rem, var(--paper) 3.5rem 100%);
  }
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--red);
  padding-top: 0.5rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
}

.step p {
  margin: 0 0 0.8rem;
  color: var(--slate);
}

.step p:last-child {
  margin-bottom: 0;
}

/* Area chips */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--slate);
  background: var(--white);
}

.band--navy .area-list li {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #c6d2e1;
}

/* Mid-page CTA band */
.cta-band {
  background: var(--navy);
  color: #d3dceb;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 30px
  );
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

@media (min-width: 56rem) {
  .cta-band-inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
}

.cta-band p {
  margin: 0;
  color: #b6c4d6;
}

/* Prose (About, Process, Blog posts) */
.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

.prose h3 {
  margin-top: 2rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.55rem;
}

.prose li::marker {
  color: var(--red);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--brass);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--navy);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 3px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout h4 {
  margin-bottom: 0.5rem;
}

/* Page masthead for interior pages */
.masthead {
  background: var(--navy);
  color: #c9d5e5;
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 32px
  );
}

.masthead .shell {
  position: relative;
  z-index: 1;
}

.masthead h1 {
  color: var(--white);
  max-width: 40rem;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
}

.masthead .lede {
  color: #b3c2d5;
  max-width: 46rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa2ba;
}

.breadcrumb a {
  color: #b8c7da;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}

/* Blog */
.post-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.post-row {
  display: grid;
  gap: 0.35rem 2rem;
  padding: clamp(1.6rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.2s var(--ease);
}

@media (min-width: 52rem) {
  .post-row {
    grid-template-columns: 11rem 1fr;
  }
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 0.4rem;
}

.post-row h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.post-row h3 a {
  text-decoration: none;
  color: var(--navy);
}

.post-row:hover h3 a {
  color: var(--red);
}

.post-row p {
  margin: 0;
  color: var(--slate);
  font-size: 0.99rem;
}

.post-header {
  max-width: 44rem;
}

.post-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.94rem;
}

/* --- 10. Footer -------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #a9b8cc;
  font-size: 0.94rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr auto;
  }
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: #c3d0e0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--brass);
}

/* Raster mark: drive it from height, as the header does, so the footer mark
   stays in proportion with the brand lockup instead of the column width. */
.footer-brand img {
  height: clamp(5rem, 9vw, 6rem);
  width: auto;
  margin-bottom: 1.15rem;
}

.footer-brand p {
  max-width: 30ch;
  margin-bottom: 1.25rem;
  color: #93a5bc;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.6rem;
}

.footer-contact a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.footer-badge {
  width: 92px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  color: #c3d0e0;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.83rem;
  color: #7f90a7;
}

.footer-base p {
  margin: 0;
}

/* --- 11. Motion -------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-grid > * {
  animation: rise 0.75s var(--ease) both;
}

.hero-grid > *:nth-child(2) {
  animation-delay: 0.12s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --- 12. Utilities ----------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stack-sm > * + * {
  margin-top: 0.75rem;
}

.mt-lg {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.no-mb {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}
