/* ─── Carbon Neutral Approach — Subpage Stylesheet ────────────────────────── */
/* Loaded via $page_css on interior pages. Inherits the tokens, typography and
   components defined in style.css; this file only adds interior-page layout. */

/* ── Scroll reveal (fade + rise) ────────────────────────────────────────── */
/* Hidden state applies only once JS marks the body, so content is never
   permanently hidden if scripts fail to load. */
.reveal-init .js-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.3s var(--ease);
}

.reveal-init .js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Page Hero ──────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68vh;
  max-height: 760px;
  overflow: hidden;
  background: var(--dark);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroSettle 6s var(--ease) forwards;
}

@keyframes heroSettle { to { transform: scale(1); } }

.page-hero__overlay {
  position: absolute;
  inset: 0;
  /* Centred radial lifts contrast behind the (centred) hero text; linear keeps depth */
  background:
    radial-gradient(ellipse 78% 62% at 50% 50%, rgba(10, 14, 10, 0.45) 0%, rgba(10, 14, 10, 0) 72%),
    linear-gradient(
      180deg,
      rgba(10, 14, 10, 0.34) 0%,
      rgba(10, 14, 10, 0.5) 52%,
      rgba(10, 14, 10, 0.84) 100%
    );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
  text-align: center;
}

.page-hero .kicker {
  margin-bottom: 1rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.page-hero h1 {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.32);
}

.page-hero h1 {
  color: var(--white);
  font-weight: 200;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  margin: 0 auto 1.1rem;
  max-width: none;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Generic Page Section ───────────────────────────────────────────────── */
.page-section {
  padding: 88px 0;
}

.page-section--intro {
  background: var(--cream);
  padding-bottom: 0;
}

.intro-lockup {
  max-width: 820px;
}

.intro-lockup h2 {
  margin-bottom: 1.2rem;
}

/* Centred intro lockups (services, project support, technical equipment) */
.page-services .intro-lockup,
.page-project-support .intro-lockup,
.page-technical-equipment .intro-lockup {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Technical Equipment intro: restore a normal bottom gap before the next band
   so the spacing matches the other sections on the page (was flush at 0). */
.page-technical-equipment .page-section--intro { padding-bottom: 88px; }

/* ── Services — Service Blocks ──────────────────────────────────────────── */
.services-list-section {
  background: var(--cream);
}

/* Connected panel of cells, echoing the home-page pillar grid */
.services-list-section .section-wrap {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.svc-block {
  padding: 54px 44px;
  background: var(--cream);
  transition: background 0.3s var(--ease);
}

.svc-block:hover {
  background: var(--white);
}

.svc-block__head {
  max-width: 660px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.svc-block__head h3 {
  position: relative;
  padding-top: 24px;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Subtle brass accent centred above each title, widening on hover */
.svc-block__head h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}

.svc-block:hover .svc-block__head h3::before {
  width: 54px;
}

.svc-block__head p {
  font-size: var(--text-body);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.svc-more {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.svc-more:hover { color: var(--ink); }

.svc-block__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 52px;
  border-top: 1px solid var(--border);
}

.svc-block__list li {
  position: relative;
  padding: 12px 12px 12px 26px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-body);
  color: var(--ink-mid);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

/* Per-bullet hover within the block, echoing the home-page "Why it matters" list */
.svc-block__list li:hover {
  background: rgba(155, 122, 59, 0.09);
  color: var(--ink);
  padding-left: 32px;
}

.svc-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 14px;
  height: 1px;
  background: var(--brass);
}

/* ── Project Support — Packages ─────────────────────────────────────────── */
.packages-section { background: var(--cream); }

.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.package-card {
  background: var(--cream);
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s var(--ease);
}
.package-card:hover { background: var(--white); }

.package-tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.8rem;
}

.package-card h3 {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 0.9rem;
}

.package-for {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

/* Tap-to-reveal deliverables — replaces the old bullet list */
.package-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.package-toggle:hover { color: var(--ink); }

.package-toggle__icon {
  position: relative;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.package-toggle__icon::before,
.package-toggle__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.package-toggle__icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.package-toggle__icon::after { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.package-card.is-open .package-toggle__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

/* Smooth slide-out — JS animates max-height for cross-browser reliability */
.package-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}

.package-deliverables {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}
.package-deliverables li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.package-deliverables li:last-child { border-bottom: 0; padding-bottom: 2px; }

/* ── Project Support — Typical Process ──────────────────────────────────── */
.process-section {
  background: var(--dark-green);
  color: var(--white);
}
.process-section .section-header h2 { color: var(--white); }

/* Horizontal timeline — deliberately different from the boxed package grid */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process-step {
  position: relative;
  padding-top: 34px;
}

/* connector line running to the next node */
.process-step::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 15px;
  width: calc(100% + 25px);
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.process-step:last-child::after { display: none; }

/* node marker on the line — lights up on its own, one after another */
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--brass-light);
  background: var(--dark-green);
  z-index: 1;
  animation: processGlow 16s var(--ease) infinite;
}
/* 4 steps × 4s each = a 16s loop; stagger each node by 4s */
.process-step:nth-child(2)::before { animation-delay: 4s; }
.process-step:nth-child(3)::before { animation-delay: 8s; }
.process-step:nth-child(4)::before { animation-delay: 12s; }

@keyframes processGlow {
  0%,
  100% { background: var(--dark-green); transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 165, 90, 0); }
  5%,
  20%  { background: var(--brass-light); transform: scale(1.25); box-shadow: 0 0 15px 2px rgba(201, 165, 90, 0.55); }
  25%  { background: var(--dark-green); transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 165, 90, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .process-step::before { animation: none; }
}

.process-step__text h3 {
  color: var(--brass-light);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.process-step__text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Automation — Control Philosophy ────────────────────────────────────── */
.philosophy-band { background: var(--cream-mid); }

/* Title top-centred, description below */
.philosophy-inner {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-lead { margin-bottom: 1.5rem; }
.philosophy-lead h2 { margin: 0; }

.philosophy-body p {
  font-size: var(--text-body);
  color: var(--ink-soft);
  line-height: 1.78;
  margin-bottom: 0;
}

.philosophy-body .philosophy-priority {
  margin: 1.8rem auto 0;
  max-width: 620px;
  padding: 22px 28px;
  background: var(--dark-green);
  border-radius: 2px;
  color: var(--white);
  font-size: var(--text-body);
  line-height: 1.6;
}

.philosophy-priority span {
  display: block;
  color: var(--brass-light);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Automation — Typical Systems ───────────────────────────────────────── */
.systems-section { background: var(--cream); }

/* Continuous marquee — a calmer, flowing alternative to boxed chips */
.systems-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.systems-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: systemsScroll 40s linear infinite;
}
.systems-marquee:hover .systems-track { animation-play-state: paused; }

.system-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--ink-mid);
  padding: 0 26px;
}
.system-item::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 26px;
  background: var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes systemsScroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .systems-marquee { -webkit-mask-image: none; mask-image: none; }
  .systems-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .system-item[aria-hidden] { display: none; }
}

/* ── Automation — Support Cards ─────────────────────────────────────────── */
.support-section { background: var(--cream-mid); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.support-card {
  background: var(--cream);
  padding: 34px 30px;
  transition: background 0.25s var(--ease);
}
.support-card:hover { background: var(--white); }

.support-card h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.support-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ── Technical Equipment — Exclusion Callout ────────────────────────────── */
.exclusion-section { background: var(--cream); }

.exclusion-callout {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid #b0472f;
  border-radius: 2px;
  padding: 36px 40px;
}

.exclusion-mark {
  font-size: 2.4rem;
  line-height: 1;
  color: #b0472f;
  flex-shrink: 0;
  margin-top: 2px;
}

.exclusion-text h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0.2rem 0 0.8rem;
}

.exclusion-text p {
  font-size: var(--text-body);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* ── Technical Equipment — Included Categories ──────────────────────────── */
.included-section { background: var(--cream-mid); }

.included-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  border-top: 1px solid var(--border);
}

.included-item {
  position: relative;
  padding: 16px 8px 16px 28px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-body);
  color: var(--ink-mid);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.included-item:hover {
  background: rgba(155, 122, 59, 0.09);
  color: var(--ink);
  padding-left: 34px;
}

.included-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.4em;
  width: 14px;
  height: 1px;
  background: var(--brass);
}

/* ── Technical Equipment — Support Can Include ──────────────────────────── */
.support-list-section { background: var(--cream); }

.support-check-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.support-check {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px 20px 16px 46px;
  font-size: 0.92rem;
  color: var(--ink-mid);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.support-check:hover {
  border-color: var(--brass);
  color: var(--ink);
}

.support-check::before {
  content: '\2713';
  position: absolute;
  left: 18px;
  top: 15px;
  color: var(--brass);
  font-size: 0.95rem;
}

/* ── About — Biography ──────────────────────────────────────────────────── */
.bio-section { background: var(--cream); }

.bio-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.bio-monogram {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  line-height: 1;
  margin: 0.6rem 0 1.4rem;
  display: inline-block;
}

/* Slow one-time intro: pure fade in place when the section arrives, then stays */
.reveal-init .bio-monogram {
  opacity: 0;
  transition: opacity 4.5s var(--ease);
  transition-delay: 0.4s;
}
.reveal-init .bio-inner.is-visible .bio-monogram {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init .bio-monogram { transition: none; opacity: 1; }
}

.bio-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0;
}

.bio-role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.bio-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 1.4rem;
}
.bio-body p:first-child {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--ink);
}
.bio-body p:last-child { margin-bottom: 0; }

/* ── About — CV / profile panel (mirrors the two-column CV layout) ───────── */
.about-cv-section { background: var(--cream); }

.cv-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

/* Sidebar — dark, echoes the CV's side rail */
.cv-sidebar {
  background: var(--dark-green);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 32px;
}

.cv-photo {
  display: block;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 auto 1.4rem;
}

.cv-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--white);
  text-align: center;
  margin: 0 0 0.35rem;
}
.cv-role {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--brass-light);
  text-align: center;
  margin: 0;
}

.cv-block { margin-top: 1.9rem; }

.cv-heading {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cv-skills,
.cv-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-skills li {
  position: relative;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  padding: 7px 0 7px 18px;
}
.cv-skills li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--brass-light);
}
.cv-plain li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  padding: 9px 0;
}
.cv-plain li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* Main column */
.cv-main {
  padding: 44px 46px 46px;
  background: var(--white);
}
.cv-main .section-label { margin-bottom: 0.6rem; }
.cv-main h2 { margin-bottom: 1.3rem; }

.cv-summary p {
  font-size: var(--text-body);
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.cv-summary p:last-child { margin-bottom: 0; }

.cv-heading--main {
  color: var(--brass);
  border-bottom-color: var(--border);
  margin-top: 2.6rem;
  margin-bottom: 1.5rem;
}

.cv-role-item { padding-bottom: 1.7rem; }
.cv-role-item + .cv-role-item {
  border-top: 1px solid var(--border);
  padding-top: 1.7rem;
}
.cv-role-item h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.2rem;
}
.cv-role-item__title {
  font-size: 0.9rem;
  color: var(--brass);
  margin: 0 0 0.3rem;
}
.cv-role-item__meta {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.cv-role-item__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-role-item__list li {
  position: relative;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-mid);
  padding: 5px 0 5px 20px;
}
.cv-role-item__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--brass);
}

/* ── About — Selected Project Experience cards ──────────────────────────── */
.experience-section { background: var(--cream-mid); }

.experience-section .section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.experience-section .section-intro {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 3rem;
}

.exp-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -26px rgba(20, 30, 22, 0.55);
}

.exp-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.exp-card__body { padding: 26px 28px 30px; }
.exp-card__body h3 {
  font-size: 1.16rem;
  font-weight: 400;
  color: var(--dark-green);
  margin: 0 0 0.7rem;
}
.exp-card__body p {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .exp-grid { grid-template-columns: 1fr; }
}

/* ── About — Working Principles ─────────────────────────────────────────── */
/* Technical example figure — always shown whole, never cropped */
.about-figure-section { background: var(--cream); }

.about-figure { margin: 0; }

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.about-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.working-principles-section {
  background: var(--dark-green);
  color: var(--white);
}
.working-principles-section .section-header h2 { color: var(--white); }

.wp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-item {
  background: var(--dark-green);
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 24px 28px;
  transition: background 0.2s var(--ease);
}
.wp-item:hover { background: var(--dark-mid); }

.wp-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--brass-light);
  flex-shrink: 0;
}

.wp-text {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.82);
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-section { background: var(--cream); }

.contact-layout { display: block; }

/* Centred intro */
.contact-intro {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.contact-intro h2 { margin-bottom: 1rem; }

.contact-blurb {
  font-size: var(--text-body);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* Coverage — gold-rimmed box, page background until hover */
.contact-coverage {
  max-width: 560px;
  margin: 2rem auto 0;
  padding: 22px 28px;
  border: 1px solid var(--brass);
  border-radius: 3px;
  background: var(--cream);
  text-align: center;
  transition: background 0.3s var(--ease);
}
.contact-coverage:hover { background: var(--dark-green); }

.contact-coverage__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease);
}
.contact-coverage:hover .contact-coverage__label { color: var(--brass-light); }

.contact-coverage__text {
  font-size: var(--text-body);
  color: var(--ink-mid);
  line-height: 1.6;
  transition: color 0.3s var(--ease);
}
.contact-coverage:hover .contact-coverage__text { color: rgba(255, 255, 255, 0.88); }

/* Email + Location — side by side, each with a stripe below */
.contact-lines {
  max-width: 560px;
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.contact-line {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.contact-line dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}
.contact-line dd {
  margin: 0;
  font-size: var(--text-body);
  color: var(--ink-mid);
  word-break: break-word;
}
.contact-line dd a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  transition: color 0.2s var(--ease);
}
.contact-line dd a:hover { color: var(--brass); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 40px 40px 44px;
  max-width: 900px;
  margin: 0 auto;
}

/* Centred submit button + the notices beneath it */
.intake-form .btn--large {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.intake-form .form-status,
.intake-form .captcha-notice { text-align: center; }

/* Push the reCAPTCHA notice to the bottom, well clear of the button */
.intake-form .captcha-notice {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  margin-bottom: 28px;
}

.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.req { color: var(--brass); }
.opt {
  color: var(--ink-soft);
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

/* Let form/grid items shrink below intrinsic width so nothing overflows narrow screens */
.field,
.form-grid,
.contact-form-wrap { min-width: 0; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--white);
}

.field textarea { resize: vertical; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239b7a3b' stroke-width='1.4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: #b0472f;
  background: #fbf3f1;
}

.field--consent { margin-top: 2px; }

.consent-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin: 0;
  cursor: pointer;
}
.consent-label input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--brass);
  width: 16px;
  height: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Banners */
.form-banner {
  padding: 18px 22px;
  border-radius: 3px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-banner strong { font-weight: 500; font-size: 0.98rem; }
.form-banner span { font-size: 0.88rem; }

.form-banner--success {
  background: #eef4ec;
  border: 1px solid #cadbc0;
  color: #2c4230;
}
.form-banner--success strong { color: var(--dark-green); }

.form-banner--error {
  background: #fbf3f1;
  border: 1px solid #e8ccc4;
  color: #7d3826;
}
.form-banner--error a { color: #7d3826; }

/* ── Legal Pages (Privacy / Terms) ──────────────────────────────────────── */
.legal-page {
  background: var(--cream);
  padding: 80px 0 96px;
}

.legal-wrap {
  max-width: 46rem;          /* ~72-character measure */
  margin: 0 auto;
  padding: 0 28px;
}

.legal-head {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-head h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 200;
  margin: 0 0 0.8rem;
}

.legal-updated {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2.6rem 0 0.9rem;
}

.legal-body p,
.legal-body li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
}

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.legal-body li { margin-bottom: 0.5rem; }

.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--brass);
}
.legal-body a:hover { color: var(--brass); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .svc-block,
  .philosophy-inner,
  .bio-inner,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cv-panel { grid-template-columns: 1fr; }

  .packages-grid,
  .support-grid,
  .wp-grid {
    grid-template-columns: 1fr;
  }

  /* Process becomes a vertical timeline */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-step {
    padding: 0 0 30px 34px;
  }
  .process-step:last-child { padding-bottom: 0; }
  .process-step::before { top: 4px; left: 0; }
  .process-step::after {
    top: 6px;
    left: 6px;
    width: 1px;
    height: calc(100% - 6px);
  }

  .bio-body p:first-child { font-size: 1.12rem; }
}

/* About — centre "The approach" / CNA aside on phones */
@media (max-width: 768px) {
  .bio-aside { text-align: center; }

  /* Services — separate the service blocks into spaced cards so they stop
     blending into one another on phones */
  .services-list-section .section-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: transparent;
    border: none;
  }
  .svc-block {
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 34px 26px;
  }
}

@media (max-width: 620px) {
  .page-section { padding: 64px 0; }
  .page-technical-equipment .page-section--intro { padding-bottom: 64px; }

  .page-hero { min-height: 58vh; }

  .form-grid,
  .included-grid,
  .support-check-grid,
  .contact-lines,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap { padding: 28px 24px 32px; }

  .exclusion-callout { padding: 28px 24px; flex-direction: column; gap: 14px; }

  .svc-block__head h3 { font-size: 1.3rem; }
  .svc-block { padding: 36px 24px; }
  .svc-block__list { grid-template-columns: 1fr; }
}
