/* TNO Systems — site styles
   Palette: Globe3 red and charcoal from the logo, on cool neutral greys.
   Red marks action; charcoal carries the hero, the module band and the footer. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"), url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F4F5F3;
  --paper: #FFFFFF;
  --ink: #1D1D1D;
  --slate: #50565C;
  --muted: #6B7177;
  --brand: #CB2128;        /* Globe3 red, from the logo */
  --brand-dark: #A8181F;   /* red for text links and hovers on light grounds */
  --brand-tint: #FBEAEB;   /* icon wells */
  --brand-bright: #F05A60; /* thin lines and indicators on charcoal */
  --charcoal: #1D1D1D;     /* Globe3 wordmark grey */
  --rule: #DADDDB;
  --error: #B42318;
  --success: #1E6B45;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.3rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.45rem + 3.2vw, 3.75rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 24, 0.05), 0 1px 3px rgba(20, 22, 24, 0.07);
  --shadow-lg: 0 24px 48px -16px rgba(20, 22, 24, 0.22), 0 2px 6px rgba(20, 22, 24, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }
strong { font-weight: 700; }
.sprite { position: absolute; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--brand); color: var(--paper); padding: 0.6rem 1rem; font-weight: 600; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--charcoal); color: rgba(255,255,255,0.72); font-size: 0.8125rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar-note { margin: 0; }
.topbar-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.topbar-links a { display: inline-flex; align-items: center; gap: 0.45rem; color: rgba(255,255,255,0.88); text-decoration: none; }
.topbar-links a:hover { color: var(--paper); text-decoration: underline; }
.topbar-links .icon { width: 0.95rem; height: 0.95rem; color: var(--brand-bright); }
.topbar :focus-visible { outline-color: var(--paper); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(20,22,24,0.25); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.4) blur(10px); } }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: auto; height: 2.5rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.2rem; font-weight: 750; font-variation-settings: "wdth" 115; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; color: var(--ink); text-decoration: none; font-weight: 550;
  padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.site-nav ul a:hover { background: var(--bg); }
.site-nav ul a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .topbar-note { display: none; }
  .topbar-row { justify-content: center; }
  .topbar-links { gap: 1.25rem; }
  .topbar-links li:last-child { display: none; }
  .js .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center;
    font: inherit; font-weight: 600; color: var(--ink); background: var(--paper);
    border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.5rem 1rem; cursor: pointer;
  }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1.25rem; margin-left: 0; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; }
}
@media (max-width: 480px) {
  .topbar-links li:nth-child(2) { display: none; }
  .brand-sub { display: none; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.65rem 1.25rem;
  font: inherit; font-weight: 650; text-decoration: none; line-height: 1.2; white-space: nowrap;
  border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-small { min-height: 2.5rem; padding: 0.5rem 1.05rem; font-size: 0.95rem; }
.btn-large { min-height: 3.25rem; padding: 0.8rem 1.6rem; }
.btn-primary { background: var(--brand); color: var(--paper); box-shadow: 0 1px 2px rgba(120,10,15,0.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-quiet { border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn-on-dark { border-color: rgba(255,255,255,0.55); color: var(--paper); }
.btn-on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light { background: var(--paper); color: var(--brand-dark); }
.btn-light:hover { background: var(--charcoal); color: var(--paper); }

/* ---------- Photo heroes ---------- */
.hero-photo { position: relative; isolation: isolate; color: var(--paper); background: var(--charcoal); overflow: hidden; }
.hero-bg, .cta-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg picture, .cta-bg picture { display: block; height: 100%; }
.hero-bg-img, .cta-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,15,17,0.9) 0%, rgba(14,15,17,0.68) 45%, rgba(14,15,17,0.2) 100%),
    linear-gradient(0deg, rgba(14,15,17,0.7) 0%, rgba(14,15,17,0) 45%);
}
.hero-photo :focus-visible { outline-color: var(--paper); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 38rem; margin-top: 1.25rem; }
.hero-photo .lede { color: rgba(255,255,255,0.84); }

/* Home hero */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(6rem, 11vw, 8.5rem); }
.hero .hero-bg-img { object-position: 60% 55%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.5rem;
  font-size: 0.875rem; font-weight: 550; color: rgba(255,255,255,0.9);
  padding: 0.35rem 0.85rem 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; background: rgba(255,255,255,0.06);
}
.hero-kicker .icon { width: 1rem; height: 1rem; color: var(--brand-bright); }
.hero h1 { font-size: var(--step-4); line-height: 1.04; font-weight: 750; font-variation-settings: "wdth" 114; letter-spacing: -0.025em; max-width: 17ch; }
.hero .actions { margin-top: 2.25rem; }

/* Workflow panel */
.flow {
  background: rgba(24,25,27,0.86); color: var(--paper);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
@supports (backdrop-filter: blur(8px)) { .flow { background: rgba(24,25,27,0.72); backdrop-filter: blur(14px) saturate(1.2); } }
.flow-title { font-size: var(--step-1); font-variation-settings: "wdth" 106; font-weight: 650; margin-bottom: 1rem; }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.flow-tabs [role="tab"] {
  font: inherit; font-size: var(--step--1); font-weight: 600; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  padding: 0.38rem 0.85rem; cursor: pointer;
}
.flow-tabs [role="tab"]:hover { color: var(--paper); border-color: rgba(255,255,255,0.35); }
.flow-tabs [role="tab"][aria-selected="true"] { color: var(--paper); background: var(--brand); border-color: var(--brand); }
.flow-tabs [role="tab"]:focus-visible, .flow-panel:focus-visible { outline-color: var(--paper); }
html:not(.js) .flow-tabs { display: none; }
.js .flow-panel[data-inactive] { display: none; }
html:not(.js) .flow-panel + .flow-panel { margin-top: 2rem; }
.flow-panel-name { font-size: var(--step--1); font-weight: 500; font-variation-settings: "wdth" 100; color: rgba(255,255,255,0.7); margin-bottom: 1rem; letter-spacing: 0; }
.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow-steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; line-height: 1.4; min-height: 2.2rem; }
.flow-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.15rem;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  background: var(--brand); color: var(--paper); border-radius: 50%;
  font-weight: 750; font-size: 0.875rem; font-variant-numeric: tabular-nums;
}
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(0.95rem - 1px); top: 1.75rem; bottom: 0.1rem; width: 2px; background: rgba(240,90,96,0.55); }
.flow-steps li:last-child { padding-bottom: 0; }

/* One orchestrated entrance on the home hero, and the workflow rail when a tab changes */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero .flow { animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero .flow { animation-delay: 0.22s; }
  .js .flow-panel.is-entering li { animation: rise 0.32s ease-out both; }
  .js .flow-panel.is-entering li:nth-child(2) { animation-delay: 0.05s; }
  .js .flow-panel.is-entering li:nth-child(3) { animation-delay: 0.1s; }
  .js .flow-panel.is-entering li:nth-child(4) { animation-delay: 0.15s; }
  .js .flow-panel.is-entering li:nth-child(5) { animation-delay: 0.2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Proof card (overlaps the hero) ---------- */
.proof { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -6vw, -3rem); }
.proof-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
}
.proof-logo img { width: 8.5rem; height: auto; }
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.25rem; list-style: none; margin: 0; padding: 0 0 0 clamp(1.25rem, 2.5vw, 2rem); border-left: 1px solid var(--rule); }
.proof-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.proof-list strong { display: block; color: var(--ink); font-size: 0.975rem; white-space: nowrap; font-variation-settings: "wdth" 106; margin-bottom: 0.1rem; }
.proof-icon { width: 1.5rem; height: 1.5rem; color: var(--brand); margin-top: 0.1rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.proof + .section { padding-top: clamp(3.5rem, 7vw, 5rem); }
.section-alt { background: var(--paper); border-block: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--step-3); max-width: 18ch; }
.section-head p { color: var(--slate); max-width: 34rem; font-size: 1.0625rem; }

/* Tiles: industries and services */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tile-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover { border-color: #C4C8C6; box-shadow: var(--shadow-sm); }
.section-alt .tile { background: var(--bg); }
.tile h3 { font-size: var(--step-1); font-variation-settings: "wdth" 108; margin-top: 0.5rem; }
.tile p { color: var(--slate); margin: 0; }
.tile-muted { background: transparent; border-style: dashed; }
.tile-link { margin-top: auto !important; padding-top: 0.5rem; font-weight: 600; }
.tile-icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
  border-radius: var(--radius); background: var(--brand-tint); color: var(--brand);
}
.tile-icon .icon { width: 1.4rem; height: 1.4rem; }
.check-list { list-style: none; margin: auto 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.45rem; font-size: var(--step--1); font-weight: 550; }
.check-list li { position: relative; padding-left: 1.4rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}

/* Modules on charcoal */
.section-dark { background: var(--charcoal); color: var(--paper); }
.section-dark .section-head p { color: rgba(255,255,255,0.72); }
.module-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.14); border-left: 1px solid rgba(255,255,255,0.14); }
.module-grid li { padding: 1.75rem 1.5rem; border-right: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); }
.module-icon { width: 1.75rem; height: 1.75rem; color: var(--brand-bright); margin-bottom: 1rem; }
.module-grid h3 { font-size: 1.0625rem; font-variation-settings: "wdth" 106; margin-bottom: 0.4rem; }
.module-grid p { color: rgba(255,255,255,0.68); font-size: var(--step--1); line-height: 1.5; }

/* Why: photo and features */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why-grid h2 { font-size: var(--step-3); max-width: 18ch; margin-bottom: 2rem; }
.photo { margin: 0; }
.photo-img { width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--rule); }
.why-photo .photo-img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; box-shadow: var(--shadow-lg); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list h3 { font-size: 1.125rem; font-variation-settings: "wdth" 106; margin-bottom: 0.3rem; }
.feature-list p { color: var(--slate); }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: proc; }
.process li { counter-increment: proc; position: relative; padding-top: 3.75rem; }
.process li::before {
  content: counter(proc); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brand); color: var(--brand-dark);
  font-weight: 750; font-variant-numeric: tabular-nums; z-index: 1;
}
.process li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 2.5rem; right: -1.5rem; height: 2px; background: var(--rule); }
.process h3 { font-size: 1.125rem; font-variation-settings: "wdth" 106; margin-bottom: 0.4rem; }
.process p { color: var(--slate); font-size: 0.95rem; line-height: 1.55; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-intro { position: sticky; top: 7rem; }
.faq-intro h2 { font-size: var(--step-3); max-width: 14ch; margin-bottom: 1rem; }
.faq-intro p { color: var(--slate); }
.faq-contact { display: grid; gap: 0.6rem; margin-top: 1.5rem !important; }
.faq-contact a { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.faq-contact a:hover { color: var(--brand-dark); }
.faq-contact .icon { color: var(--brand); }
.faq-list { border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 650; font-variation-settings: "wdth" 104;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-dark); }
.faq-chevron { color: var(--muted); transition: transform 0.2s ease; }
.faq[open] .faq-chevron { transform: rotate(180deg); color: var(--brand); }
.faq p { color: var(--slate); padding: 0 2.5rem 1.4rem 0; max-width: 46rem; }

/* CTA with red-lit photo */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); background: var(--brand); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(168,24,31,0.97) 0%, rgba(203,33,40,0.9) 50%, rgba(203,33,40,0.72) 100%); }
.cta-bg-img { object-position: 70% 40%; filter: grayscale(0.3); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 3rem; }
.cta h2 { font-size: var(--step-3); max-width: 20ch; }
.cta p { color: rgba(255,255,255,0.88); margin-top: 0.75rem; max-width: 36rem; }
.cta :focus-visible { outline-color: var(--paper); }

/* ---------- Inner page heroes ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero.hero-photo { padding-block: clamp(4rem, 9vw, 6.5rem); }
.page-hero h1 { font-size: var(--step-4); font-weight: 750; font-variation-settings: "wdth" 114; letter-spacing: -0.025em; line-height: 1.04; }
.page-hero .actions { margin-top: 2rem; }
.page-hero-tall { padding-bottom: clamp(4rem, 10vw, 8rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: var(--step--1); color: rgba(255,255,255,0.75); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.breadcrumb a { color: rgba(255,255,255,0.9); }

/* About */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.statement { margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--brand); }
.statement p { font-size: var(--step-1); line-height: 1.5; font-weight: 500; color: var(--ink); }
.facts, .contact-details, .next-steps { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.facts-title, .contact-details h2, .next-steps h2 { font-size: var(--step-1); margin-bottom: 1.1rem; }
.facts dl, .contact-details dl { margin: 0; }
.facts dl > div, .contact-details dl > div { padding-block: 0.85rem; border-bottom: 1px solid var(--rule); }
.facts dl > div:first-child, .contact-details dl > div:first-child { padding-top: 0; }
.facts dl > div:last-child, .contact-details dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt, .contact-details dt { font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: 0.45rem; }
.contact-details dt .icon { width: 1rem; height: 1rem; color: var(--brand); }
.facts dd, .contact-details dd { margin: 0.2rem 0 0; font-weight: 550; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.page-hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.contact-form-col > h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.contact-side { display: grid; gap: 1.25rem; }
.next-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: ns; display: grid; gap: 1rem; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 2.5rem; color: var(--slate); line-height: 1.5; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: -0.1rem; width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark);
  font-weight: 700; font-size: 0.85rem;
}

.form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #A9AFB3; border-radius: var(--radius); padding: 0.7rem 0.85rem; min-height: 3rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #7E858A; }
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(203,33,40,0.22); }
.field-hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.field-error { font-size: var(--step--1); color: var(--error); font-weight: 600; margin: 0; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--error); border-width: 2px; }
.field-check { grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.field-check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--brand); }
.field-check label { font-weight: 400; color: var(--slate); }
.field-check .field-error { grid-column: 2; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-left: 4px solid; padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.notice:focus { outline: none; }
.notice h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.notice-error { border-color: var(--error); }
.notice-error p { color: var(--error); font-weight: 600; }
.notice-success { border-color: var(--success); padding: 1.5rem 1.75rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.72); font-size: var(--step--1); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { height: 2.25rem; width: auto; }
.footer-brand span { color: var(--paper); font-weight: 700; font-size: 1.0625rem; font-variation-settings: "wdth" 112; }
.footer-about p { max-width: 30rem; line-height: 1.6; }
.footer-badges { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-badges li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; color: rgba(255,255,255,0.88); font-size: 0.8125rem; }
.footer-badges .icon { width: 1rem; height: 1rem; color: var(--brand-bright); }
.footer-heading { font-size: 0.9375rem; color: var(--paper); font-weight: 650; font-variation-settings: "wdth" 104; margin-bottom: 1rem; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; font-style: normal; line-height: 2; }
.footer-social { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: 1.25rem; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: 1.5rem; }
.footer-base::before { content: ""; flex-basis: 100%; height: 1px; background: rgba(255,255,255,0.12); margin-bottom: 0.75rem; }
.footer-base p { margin: 0; }
.footer-g3 img { width: 6.5rem; height: auto; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .proof-card { grid-template-columns: 1fr; }
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
  .tile-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .process li:nth-child(3)::after { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .prose-grid, .contact-grid, .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(14,15,17,0.82) 0%, rgba(14,15,17,0.72) 100%); }
  .section-head { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-photo .photo-img { aspect-ratio: 16 / 9; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tile-grid, .tile-grid-4, .module-grid, .field-row { grid-template-columns: 1fr; }
  .proof-list { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 1.75rem; }
  .process li { padding: 0 0 0 3.5rem; }
  .process li::after { display: none; }
  .hero .actions, .cta .actions { flex-direction: column; align-items: stretch; }
  .faq p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
