/* ==========================================================================
   Stoneridge Surveying — site styles
   Palette drawn from the Southern Highlands photography:
   dusk blue ridgelines, warm amber light, sandstone cliffs, soft ivory.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --dusk-950: #111b2d;
  --dusk-900: #16233a;
  --dusk-800: #1e2f4a;
  --dusk-700: #2a4163;
  --ridge-400: #8fa6c2;
  --ridge-300: #b9c8da;

  --amber-400: #eab066;
  --amber-500: #e09a3e;
  --amber-600: #c47f25;
  --amber-800: #8a4f0e; /* amber for text on light backgrounds */

  --sand-200: #efe3cf;
  --sand-300: #e4d3b6;
  --sand-500: #c4a676;
  --sand-700: #7d6440;

  --ivory: #f8f4ec;
  --ivory-2: #f2ebdd;
  --white: #fffdf9;

  --ink: #1a2332;
  --ink-soft: #4a5466;
  --line: #ddd0b9;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(17, 27, 45, 0.06), 0 8px 28px rgba(17, 27, 45, 0.08);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 74rem;
  --header-h: 4.5rem;
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --focus: 3px solid var(--amber-600);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--dusk-900);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
}
h2 {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3rem);
}
h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--dusk-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--amber-800);
}

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

.on-dark :focus-visible,
.page-banner :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--amber-400);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--dusk-900);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--sand {
  background: var(--ivory-2);
}

/* Section label with a survey-mark crosshair */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-800);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  -webkit-mask: url("../img/survey-mark.svg") center / contain no-repeat;
  mask: url("../img/survey-mark.svg") center / contain no-repeat;
}
.on-dark .eyebrow,
.hero .eyebrow,
.page-banner .eyebrow {
  color: var(--amber-400);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head p {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--amber-500);
  color: var(--dusk-950);
}
.btn--primary:hover {
  background: var(--amber-400);
  color: var(--dusk-950);
}

.btn--ghost {
  border-color: rgba(255, 253, 249, 0.6);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255, 253, 249, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn--outline {
  border-color: var(--dusk-800);
  color: var(--dusk-900);
}
.btn--outline:hover {
  background: var(--dusk-900);
  color: var(--white);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--dusk-800);
  text-decoration: underline;
  text-decoration-color: var(--sand-500);
  text-decoration-thickness: 2px;
}
.text-link:hover {
  color: var(--amber-800);
  text-decoration-color: currentColor;
}
.text-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.18s ease;
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(248, 244, 236, 0.88);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--dusk-900);
  min-height: 2.75rem;
  flex-shrink: 1;
  min-width: 0;
}
.brand:hover {
  color: var(--dusk-900);
}
.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-800);
  margin-top: 0.2rem;
}
/* When the supplied logo image is used, it keeps its natural proportions */
.brand-logo {
  height: 3.25rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--ink);
  text-decoration: none;
}
.primary-nav a:hover {
  background: var(--sand-200);
  color: var(--dusk-900);
}
.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--amber-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.primary-nav .nav-cta {
  margin-left: 0.5rem;
}
.primary-nav .nav-cta a {
  background: var(--amber-500);
  color: var(--dusk-950);
  padding-inline: 1.2rem;
}
.primary-nav .nav-cta a:hover {
  background: var(--amber-400);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--dusk-800);
  background: transparent;
  color: var(--dusk-900);
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}
.icon-btn:hover {
  background: var(--dusk-900);
  color: var(--white);
}
.icon-btn--call {
  border-color: var(--amber-500);
  background: var(--amber-500);
  color: var(--dusk-950);
}
.icon-btn--call:hover {
  background: var(--amber-400);
  color: var(--dusk-950);
}

.menu-icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block;
}

@media (max-width: 60rem) {
  .header-actions {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17, 27, 45, 0.12);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .js .primary-nav {
    display: none;
  }
  .js .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--line);
  }
  .primary-nav li.nav-cta {
    border-bottom: 0;
    margin: 1rem 0 0;
  }
  .primary-nav a {
    display: flex;
    min-height: 3.25rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0;
    font-size: 1.0625rem;
  }
  .primary-nav a:hover {
    background: transparent;
    color: var(--amber-800);
  }
  .primary-nav .nav-cta a {
    justify-content: center;
    border-radius: 999px;
  }
}

@media (max-width: 26rem) {
  .brand-logo {
    height: 2.6rem;
  }
  .brand-mark {
    width: 2rem;
    height: 2rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-tag {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
  .icon-btn--call .icon-label {
    display: none;
  }
  .icon-btn {
    padding: 0;
  }
  .menu-toggle .icon-label {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dusk-900);
  color: var(--white);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 45%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 27, 45, 0) 22%, rgba(17, 27, 45, 0.55) 46%, rgba(17, 27, 45, 0.9) 72%),
    linear-gradient(0deg, rgba(17, 27, 45, 0.55) 0%, rgba(17, 27, 45, 0) 30%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: clamp(36rem, 86vh, 50rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-content {
  grid-column: 2;
  max-width: 38rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 0.45em;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-400);
}
.hero .lead {
  color: #eef1f6;
  max-width: 34rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.6rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(234, 176, 102, 0.65);
  border-radius: 999px;
  background: rgba(17, 27, 45, 0.55);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--amber-400);
}
.hero .eyebrow {
  display: flex;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 249, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-caption svg {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 61.99rem) {
  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 2 / 1;
  }
  .hero-media img {
    object-position: 25% 50%;
  }
  .hero-content {
    max-width: 40rem;
  }
  .hero::before {
    display: none;
  }
  .hero-inner {
    display: block;
    min-height: 0;
    padding-block: 2.25rem 3rem;
  }
  .hero-caption {
    display: none;
  }
  .hero-actions .btn {
    flex: 1 1 14rem;
  }
}

@media (max-width: 47.99rem) {
  .hero-media {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 62rem) and (max-width: 75rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

/* Chainage-style ruler under the hero */
.ruler {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--sand-500) 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--sand-700) 0 2px, transparent 2px 120px) bottom / 100% 14px no-repeat,
    var(--ivory);
  border-bottom: 1px solid var(--line);
}

/* ---------- Assurance strip ---------- */
.assurance {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.assurance ul {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}
.assurance li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.assurance svg {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--amber-600);
}
.assurance strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dusk-900);
  line-height: 1.25;
}
.assurance span {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
@media (max-width: 52rem) {
  .assurance ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- Project enquiry cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 44rem) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover {
  border-color: var(--sand-500);
  box-shadow: var(--shadow);
}
.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.project-icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.65rem;
  border-radius: 14px;
  background: var(--dusk-900);
  color: var(--amber-400);
}
.project-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--sand-700);
  letter-spacing: 0.06em;
}
.project-card h3 {
  margin-bottom: 0.5rem;
}
.project-card p {
  color: var(--ink-soft);
  flex: 1;
}
.project-card .text-link {
  align-self: flex-start;
}

.project-more {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--sand-500);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.project-more p {
  margin: 0;
}

/* ---------- About teaser ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 52rem) {
  .split {
    grid-template-columns: 1fr;
  }
}
.photo-frame {
  position: relative;
  margin: 0;
}
.photo-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.photo-frame::after {
  /* sandstone offset frame */
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 2px solid var(--sand-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.photo-frame {
  isolation: isolate;
  margin-right: 1.1rem;
}
@media (max-width: 52rem) {
  .photo-frame img {
    aspect-ratio: 4 / 3;
  }
  .photo-frame {
    max-width: 34rem;
  }
}

.fact-list {
  list-style: none;
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt,
.fact-list .fact-key {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber-800);
  font-size: 1.15rem;
}
.fact-list .fact-val {
  color: var(--ink);
}
@media (max-width: 26rem) {
  .fact-list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* ---------- Landscape band ---------- */
.band {
  position: relative;
  min-height: clamp(16rem, 34vw, 26rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.band picture,
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 27, 45, 0.75) 0%, rgba(17, 27, 45, 0.1) 55%);
}
.band-text {
  padding-block: 2rem;
}
.band-text p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.band-text span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-300);
}

/* ---------- Getting started (traverse stations) ---------- */
.traverse {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: station;
  position: relative;
}
.traverse::before {
  /* the traverse line joining the stations */
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 1.5rem;
  right: 1.5rem;
  border-top: 2px dashed var(--sand-500);
}
.traverse li {
  position: relative;
  counter-increment: station;
}
.station {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--dusk-900);
  color: var(--amber-400);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--ivory-2);
}
.traverse h3 {
  margin-bottom: 0.45rem;
}
.traverse p {
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 60rem) {
  .traverse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }
  .traverse::before {
    display: none;
  }
}
@media (max-width: 36rem) {
  .traverse {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .traverse::before {
    display: block;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 1.45rem;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--sand-500);
  }
  .traverse li {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 1.1rem;
    padding-bottom: 2rem;
  }
  .traverse li:last-child {
    padding-bottom: 0;
  }
  .station {
    grid-row: span 2;
    margin: 0;
  }
}
.started-cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.started-cta p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- FAQs ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 56rem) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  color: var(--dusk-900);
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--sand-500);
  background:
    linear-gradient(var(--dusk-800), var(--dusk-800)) center / 0.75rem 2px no-repeat,
    linear-gradient(var(--dusk-800), var(--dusk-800)) center / 2px 0.75rem no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  background: linear-gradient(var(--dusk-800), var(--dusk-800)) center / 0.75rem 2px no-repeat;
  border-color: var(--amber-600);
}
.faq-list summary:hover {
  color: var(--amber-800);
}
.faq-answer {
  padding: 0 0 1.4rem;
  max-width: 40rem;
  color: var(--ink-soft);
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact + quote ---------- */
.on-dark {
  background-color: var(--dusk-900);
  background-image: url("../img/contours.svg");
  background-size: 900px auto;
  background-position: right -120px top -80px;
  background-repeat: no-repeat;
  color: #e9edf3;
}
.on-dark h2,
.on-dark h3 {
  color: var(--white);
}
.on-dark a {
  color: var(--white);
}
.on-dark a:hover {
  color: var(--amber-400);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 60rem) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
.contact-intro p {
  color: #d5dce7;
}
.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(185, 200, 218, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  min-width: 0;
}
a.contact-item:hover {
  border-color: var(--amber-400);
  background: rgba(255, 255, 255, 0.06);
}
.contact-item svg {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: rgba(234, 176, 102, 0.14);
  color: var(--amber-400);
}
.contact-item small {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ridge-300);
}
.contact-item strong {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  overflow-wrap: anywhere;
}
.contact-item > span {
  min-width: 0;
}

/* Form card */
.form-card {
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.75rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.form-card h3 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 600;
  color: var(--dusk-900);
  margin-bottom: 0.35rem;
}
.form-card .form-note {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
.form-card a {
  color: var(--dusk-700);
}
.form-card a:hover {
  color: var(--amber-800);
}
.form-card :focus-visible {
  outline-color: var(--amber-600);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
.field--full {
  grid-column: 1 / -1;
}
@media (max-width: 36rem) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dusk-900);
}
.field .req {
  color: var(--amber-800);
}
.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.field-hint {
  display: block;
  margin: -0.15rem 0 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #857659;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); /* 16px+ prevents iOS zoom */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2f4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.2rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--sand-700);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dusk-700);
  box-shadow: 0 0 0 3px rgba(196, 127, 37, 0.45);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a8321e;
  box-shadow: 0 0 0 1px #a8321e;
}
.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9b2c18;
}
.field-error[hidden] {
  display: none;
}

.form-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid #a8321e;
  background: #fbeae4;
  border-radius: var(--radius-sm);
  color: #6f1f10;
}
.form-summary h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.form-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}
.form-summary a {
  color: #6f1f10;
  font-weight: 600;
}

.form-actions {
  margin-top: 1.75rem;
}
.form-actions .btn {
  min-height: 3.4rem;
  font-size: 1.05rem;
}
.form-fineprint {
  margin: 0.9rem 0 0;
  font-size: 0.925rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Result panel after preparing the email (never claims it was sent) */
.form-result {
  margin-top: 1.5rem;
  padding: 1.25rem 1.3rem;
  border: 1.5px solid var(--sand-500);
  border-radius: var(--radius);
  background: var(--white);
}
.form-result[hidden] {
  display: none;
}
.form-result h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--dusk-900);
}
.form-result p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}
.form-result .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.form-result .btn {
  min-height: 2.9rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.975rem;
}
.form-result textarea {
  width: 100%;
  min-height: 10rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  font: 400 1rem/1.45 var(--font-body);
  color: var(--ink);
  resize: vertical;
}
.form-result details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dusk-800);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.copy-status {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2f6b3c;
  align-self: center;
}

/* ---------- Page banner (About page) ---------- */
.page-banner {
  position: relative;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  background: var(--dusk-900);
}
.page-banner picture,
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 27, 45, 0.88) 0%, rgba(17, 27, 45, 0.55) 55%, rgba(17, 27, 45, 0.25) 100%);
}
.page-banner .container {
  padding-block: clamp(4rem, 10vw, 8rem);
}
.page-banner h1 {
  color: var(--white);
  max-width: 18ch;
}
.page-banner .lead {
  max-width: 36rem;
  color: #e7ecf3;
  margin: 0;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 56rem) {
  .story {
    grid-template-columns: 1fr;
  }
}
.story-body p {
  font-size: 1.125rem;
}
.story-body p:first-of-type {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  color: var(--dusk-900);
  line-height: 1.55;
}
.pull {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--amber-500);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.35;
  color: var(--dusk-900);
}

.glance {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.glance h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.glance dl {
  margin: 0;
}
.glance div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.glance dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-800);
}
.glance dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--dusk-900);
  line-height: 1.35;
}
.glance .btn {
  margin-top: 1.25rem;
}
@media (max-width: 56rem) {
  .glance {
    position: static;
  }
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 56rem) {
  .values {
    grid-template-columns: 1fr;
  }
}
.values li {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.values svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--amber-600);
  margin-bottom: 1rem;
}
.values p {
  color: var(--ink-soft);
  margin: 0;
}

.note-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.note-panel img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 52rem) {
  .note-panel {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  text-align: left;
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.cta-band h2 {
  margin: 0 0 0.3rem;
}
.cta-band p {
  margin: 0;
  color: #d5dce7;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dusk-950);
  color: #c9d2de;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.975rem;
}
.site-footer a {
  color: var(--white);
}
.site-footer a:hover {
  color: var(--amber-400);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
@media (max-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer-brand .brand {
  color: var(--white);
}
.footer-brand .brand-tag {
  color: var(--amber-400);
}
.footer-brand p {
  margin: 1rem 0 0;
  max-width: 24rem;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}
.site-footer li a:hover {
  text-decoration: underline;
}
.site-footer address {
  font-style: normal;
  line-height: 1.7;
}
.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(185, 200, 218, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.9rem;
  color: #aab6c6;
}
.footer-base p {
  margin: 0;
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
  display: grid;
  align-items: center;
}
/* Original Stoneridge logo, preserving its proportions on every page. */
.company-logo{display:block;width:238px;height:94px;object-fit:cover;object-position:center;max-width:100%;mix-blend-mode:multiply}
.site-header .brand{flex-shrink:0;line-height:1;padding-block:0}
.site-header .header-inner{min-height:110px}
.footer-brand .brand{display:inline-flex;background:#fff;border-radius:6px;padding:4px 16px}
.footer-brand .company-logo{width:246px;height:106px;mix-blend-mode:normal}
@media(max-width:61.99rem){.site-header .company-logo{width:216px;height:86px}.site-header .header-inner{min-height:100px}}
@media(max-width:35.99rem){.site-header .company-logo{width:180px;height:74px}.site-header .header-inner{min-height:88px}}
@media(max-width:22rem){.site-header .company-logo{width:154px;height:68px}.site-header .brand{max-width:55%}}
.sean-portrait{margin:0 0 2rem;overflow:hidden;border-radius:12px;background:var(--sand-100,#f8f4ec);border:1px solid var(--line)}
.sean-portrait img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:center 42%}
.sean-portrait figcaption{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.2rem}
.sean-portrait figcaption strong{font-family:var(--font-display);font-size:1.3rem;color:var(--dusk-900)}
.sean-portrait figcaption span{font-size:.9rem;color:var(--amber-800)}
.bio-sidebar{min-width:0}.bio-sidebar .glance{position:static}
@media(max-width:56rem){.sean-portrait{max-width:440px;margin-inline:auto}}
