/* ==========================================================================
   FNG Structural Engineering Inc. — "The Drawing Set"
   Design system: design-system/MASTER.md
   ========================================================================== */

:root {
  --ink: #0e1b2c;
  --ink-2: #16293f;
  --blueprint: #1d4ed8;
  --blueprint-soft: #dbeafe;
  --paper: #fafbfc;
  --paper-2: #f1f4f7;
  --annotation: #5a6b7e;
  --hairline: #d7dee6;
  --signal: #c2410c;
  --signal-dark: #9a3412;

  --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --container: 1160px;
  --radius: 2px;

  /* spacing scale (8px grid) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: var(--s-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--blueprint); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ink); }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

/* --------------------------------------------------------------------------
   Drawing-set primitives
   -------------------------------------------------------------------------- */

/* Eyebrow styled as a drawing sheet reference: "S-101 — SERVICES" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--annotation);
  margin-bottom: var(--s-2);
}
.eyebrow .sheet-no {
  color: var(--blueprint);
  border: 1px solid var(--hairline);
  padding: 2px 8px;
  background: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.eyebrow { align-items: flex-start; }
.eyebrow .sheet-no { margin-top: -2px; }

/* Dimension-line divider with tick terminators */
.dim-line {
  position: relative;
  height: 1px;
  background: var(--hairline);
  margin: var(--s-6) 0;
}
.dim-line::before,
.dim-line::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--annotation);
}
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }

/* Animated draw variant (SVG handled in JS; this is the CSS fallback state) */
.draw-line { transform-origin: left center; }

/* Mono annotation text */
.annotation {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--annotation);
  letter-spacing: 0.04em;
}

/* Hairline grid background (vellum) */
.grid-bg {
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }

.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--annotation);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.main-nav a:hover { color: var(--blueprint); }
.main-nav a.active {
  color: var(--blueprint);
  box-shadow: inset 0 -2px 0 var(--blueprint);
}

.main-nav .nav-cta a {
  margin-left: 8px;
  background: var(--signal);
  color: #fff;
  padding: 10px 15px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
  box-shadow: none;
}
.main-nav .nav-cta a:hover { background: var(--signal-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: var(--s-12) 0 var(--s-16);
  overflow: hidden;
}

.hero-grid-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-8);
  align-items: center;
}

.hero h1 { margin-bottom: var(--s-3); max-width: 640px; }

.hero .lead {
  font-size: 1.18rem;
  color: var(--annotation);
  max-width: 560px;
  margin-bottom: var(--s-4);
  font-weight: 400;
}

.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.hero-dim {
  margin-top: var(--s-8);
  max-width: 640px;
}
.hero-dim .dim-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

/* Hero technical figure */
.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; }
.hero-figure .fig-caption {
  margin-top: var(--s-2);
  display: flex;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Proof band (registrations + stats)
   -------------------------------------------------------------------------- */

.proof-band {
  background: var(--ink);
  color: #fff;
  padding: var(--s-8) 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

.proof-item { border-left: 1px solid rgba(255, 255, 255, 0.15); padding-left: var(--s-3); }

.proof-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.proof-value .unit { color: var(--blueprint-soft); font-size: 1.4rem; }

.proof-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa3b8;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: var(--s-12) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section-head { max-width: 660px; margin-bottom: var(--s-8); }
.section-head p { color: var(--annotation); margin-top: var(--s-2); font-size: 1.05rem; }

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.section-head-row .section-head { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.card:hover {
  border-color: var(--blueprint);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(14, 27, 44, 0.08);
}

.card .card-ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--blueprint);
  margin-bottom: var(--s-2);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--annotation); font-size: 0.98rem; }

.card .card-icon {
  width: 44px;
  height: 44px;
  color: var(--ink);
  stroke-width: 1.5;
  margin-bottom: var(--s-3);
}

.card-link {
  display: inline-block;
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card ul {
  list-style: none;
  margin-top: var(--s-2);
}
.card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--annotation);
  font-size: 0.95rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--blueprint);
}

/* --------------------------------------------------------------------------
   Service rows (services page)
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--hairline);
}
.service-row:last-child { border-bottom: none; }

.service-visual {
  border: 1px solid var(--hairline);
  background: #fff;
  padding: var(--s-4);
}
.service-visual svg { width: 100%; height: auto; }

.service-row ul { list-style: none; margin-top: var(--s-3); }
.service-row ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--annotation);
}
.service-row ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 1px;
  background: var(--blueprint);
}

/* --------------------------------------------------------------------------
   Process timeline (drafting schedule)
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-3);
}

/* horizontal connector line */
.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
}

.timeline-item {
  position: relative;
  padding-top: var(--s-3);
}

/* diamond survey-marker node on the line */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--paper);
  border: 1px solid var(--blueprint);
}

.step-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--blueprint);
  display: block;
  margin-bottom: 10px;
  white-space: nowrap;
}
.timeline-item h3 { font-size: 0.98rem; margin-bottom: 8px; }
.timeline-item p { font-size: 0.87rem; color: var(--annotation); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.project-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  border-color: var(--blueprint);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(14, 27, 44, 0.08);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  position: relative;
}
.project-thumb svg { width: 100%; height: 100%; color: var(--ink); }
.project-thumb .thumb-ref {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--annotation);
}

.project-body { padding: var(--s-3); }
.project-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 8px;
}
.project-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.project-body p { font-size: 0.93rem; color: var(--annotation); }
.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }

.team-card {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: var(--s-4) var(--s-3);
  text-align: left;
}
.team-avatar {
  width: 72px;
  height: 72px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--blueprint);
  margin-bottom: var(--s-3);
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--annotation);
}
.team-cred {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--blueprint);
  font-family: var(--font-mono);
}

/* Registration badges */
.reg-badges { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.reg-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blueprint);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: var(--s-12) 0;
  position: relative;
  overflow: hidden;
}
.cta-band .hero-grid-layer {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  mask-image: none;
  -webkit-mask-image: none;
}
.cta-inner { position: relative; max-width: 640px; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { color: #a9bacb; margin-bottom: var(--s-4); font-size: 1.08rem; }
.cta-band .annotation { color: #8fa3b8; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.form-grid .full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field label .req { color: var(--signal); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blueprint);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.form-field textarea { resize: vertical; min-height: 150px; }

.form-note { font-size: 0.85rem; color: var(--annotation); }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  margin-bottom: var(--s-3);
  border: 1px solid transparent;
}
.form-status.success { display: block; background: #ecf7ef; color: #14532d; border-color: #bbe0c6; }
.form-status.error { display: block; background: #fdf0ee; color: #9a3412; border-color: #f3cfc5; }

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

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

.contact-info-card {
  background: var(--ink);
  color: #a9bacb;
  padding: var(--s-4);
}
.contact-info-card h3 { color: #fff; margin-bottom: var(--s-3); }
.contact-info-card .info-item {
  display: flex;
  gap: 14px;
  margin-bottom: var(--s-3);
  align-items: flex-start;
}
.contact-info-card .info-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--blueprint-soft);
  margin-top: 3px;
}
.contact-info-card .info-item strong {
  display: block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-info-card a { color: #d4e0ec; }
.contact-info-card a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   About / credential list
   -------------------------------------------------------------------------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

.credential-list { list-style: none; }
.credential-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--hairline);
}
.credential-list li:last-child { border-bottom: none; }
.credential-list svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--blueprint);
  margin-top: 4px;
}
.credential-list strong { color: var(--ink); }
.credential-list span { color: var(--annotation); }
.credential-list strong { display: inline; }

/* --------------------------------------------------------------------------
   Footer — title block
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #8fa3b8;
  font-size: 0.95rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--s-6);
  padding: var(--s-8) 0;
}

.footer-main h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--s-2);
}

.footer-main ul { list-style: none; }
.footer-main ul li { margin-bottom: 10px; }
.footer-main a { color: #8fa3b8; }
.footer-main a:hover { color: #fff; }
.footer-about p { color: #8fa3b8; }

/* Title-block strip */
.footer-titleblock {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tb-cell {
  padding: 14px var(--s-2);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tb-cell:last-child { border-right: none; }
.tb-cell .tb-label { color: #5f7389; display: block; margin-bottom: 2px; }
.tb-cell .tb-value { color: #d4e0ec; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--s-2) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Motion helpers (initial states set by JS — content visible without JS)
   -------------------------------------------------------------------------- */

.will-reveal { will-change: transform, opacity; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-figure { max-width: 520px; }
  .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  /* timeline switches to a vertical rail */
  .timeline { grid-template-columns: 1fr; gap: var(--s-4); }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .timeline-item { padding-top: 0; padding-left: var(--s-4); }
  .timeline-item::before { top: 6px; left: 1px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); }
  .service-row, .contact-layout, .about-layout { grid-template-columns: 1fr; gap: var(--s-4); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-titleblock { grid-template-columns: repeat(2, 1fr); }
  .tb-cell:nth-child(2) { border-right: none; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--s-3) var(--s-3); }
  .main-nav a { padding: 14px 8px; }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--blueprint); padding-left: 16px; }
  .main-nav .nav-cta a { margin-left: 0; margin-top: var(--s-1); text-align: center; }

  .grid-3, .grid-2, .grid-4, .team-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }

  .hero { padding: var(--s-8) 0 var(--s-12); }
  .section { padding: var(--s-8) 0; }
  body { font-size: 16px; }
}
