/* ==========================================================================
   L&A IT LLC — styles.css
   Static stylesheet. No preprocessor, no build step, no external requests.
   Sections:
     01. Design tokens
     02. Reset & base
     03. Layout primitives
     04. Typography helpers
     05. Buttons & links
     06. Header & navigation
     07. Hero
     08. Services
     09. Solutions
     10. Software solutions
     11. About
     12. Process
     13. Ancillary activities
     14. Contact
     15. Company details
     16. Footer
     17. Reveal animations
     18. Responsive refinements
   ========================================================================== */

/* ------------------------------------------------------------------
   01. Design tokens
   ------------------------------------------------------------------ */
:root {
  /* Colour */
  --background: #fbfaf7;
  --background-alt: #f4f2ed;
  --surface: #ffffff;
  --surface-muted: #f7f5f1;
  --contact-bg: #eef1ee;
  --ink: #0e1513;
  --text: #121618;
  --text-invert: #f4f3ef;
  --muted: #515a62;
  --muted-invert: #a6b3ad;
  --accent: #12604e;
  --accent-hover: #0d4a3b;
  --accent-light: #3e9c85;
  --accent-soft: #e8f0ec;
  /* Lighter greens for use on the dark charcoal header, where the base
     accent would sink into the background. */
  --accent-on-dark: #17795f;
  --accent-on-dark-hover: #1a8467;
  --border: #e6e2da;
  --border-strong: #d5cfc4;
  --border-invert: rgba(255, 255, 255, 0.14);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  /* Layout */
  --container: 1280px;
  --container-pad: clamp(20px, 5vw, 48px);
  --header-h: 72px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
  --space-10: 96px;
  --section-y: clamp(72px, 9vw, 128px);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(14, 21, 19, 0.04);
  --shadow-md: 0 12px 32px -18px rgba(14, 21, 19, 0.28);
  --shadow-lg: 0 24px 60px -32px rgba(14, 21, 19, 0.4);
  --shadow-card: 0 22px 54px -30px rgba(14, 21, 19, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 180ms var(--ease);

  /* Type */
  --font-sans: "Inter", "Manrope", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ------------------------------------------------------------------
   02. Reset & base
   ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

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

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.section--solutions :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------
   03. Layout primitives
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

.section__title {
  font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.7rem);
  margin-top: var(--space-4);
}

.section__intro {
  margin-top: var(--space-5);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  color: var(--muted);
  max-width: 62ch;
}

.section__title--invert { color: var(--text-invert); }
.section__intro--invert { color: var(--muted-invert); }

/* ------------------------------------------------------------------
   04. Typography helpers
   ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.eyebrow--invert { color: var(--accent-light); }
.eyebrow--muted { color: var(--muted); }

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(18, 96, 78, 0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
  word-break: break-word;
}
.link:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   05. Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.5rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(13, 74, 59, 0.9);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--sm { padding: 0.68rem 1.1rem; min-height: 42px; font-size: 0.875rem; }

.btn--lg {
  padding: 1.05rem 1.9rem;
  min-height: 56px;
  font-size: clamp(0.98rem, 0.9rem + 0.45vw, 1.2rem);
  flex-wrap: wrap;
  max-width: 100%;
  word-break: break-word;
}

.btn__icon { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------
   06. Header & navigation
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--text-invert);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color var(--transition), border-color var(--transition);
}

.site-header :focus-visible { outline-color: var(--accent-light); }

/* The header keeps its own lighter green so the CTA separates from the
   charcoal background while white label text stays legible. */
.site-header .btn--primary {
  background: var(--accent-on-dark);
  border-color: var(--accent-on-dark);
}
.site-header .btn--primary:hover {
  background: var(--accent-on-dark-hover);
  border-color: var(--accent-on-dark-hover);
  box-shadow: none;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
  }
}

.site-header.is-scrolled {
  background: rgba(14, 21, 19, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

/* Brand wordmark (text only — no logo graphic) */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.42rem);
  line-height: 1.1;
  color: var(--text-invert);
  flex: none;
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.85; }

.brand__text { white-space: nowrap; }

.brand__accent { color: var(--accent-light); }

.brand__suffix {
  margin-left: 0.45em;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  vertical-align: 0.28em;
}

.brand--footer {
  font-size: clamp(1.15rem, 1rem + 0.45vw, 1.35rem);
  color: var(--text-invert);
}
.brand--footer .brand__accent { color: var(--accent-light); }
.brand--footer .brand__suffix { color: rgba(255, 255, 255, 0.45); }

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 8px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text-invert); }
.nav__link.is-active { color: var(--accent-light); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent-light);
}

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-invert);
  background: transparent;
  transition: border-color var(--transition), background-color var(--transition);
}
.nav-toggle:hover {
  border-color: rgba(62, 156, 133, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle__box {
  position: relative;
  width: 18px;
  height: 12px;
  flex: none;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 140ms linear;
}
.nav-toggle__bars { top: 5px; }
.nav-toggle__bars::before { content: ""; top: -5px; }
.nav-toggle__bars::after { content: ""; top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 21, 19, 0.32);
  opacity: 0;
  transition: opacity 200ms linear;
}
.nav-backdrop.is-visible { opacity: 1; }

/* ------------------------------------------------------------------
   07. Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--border);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(18, 96, 78, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 96, 78, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 85% at 65% 15%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%);
  mask-image: radial-gradient(120% 85% at 65% 15%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero__title {
  margin-top: var(--space-5);
  font-size: clamp(2.1rem, 1.25rem + 3.4vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

.hero__lead {
  margin-top: var(--space-5);
  max-width: 58ch;
  font-size: clamp(1.02rem, 0.97rem + 0.28vw, 1.18rem);
  color: var(--muted);
}

.hero__actions {
  margin-top: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__meta {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-size: 0.875rem;
  color: var(--muted);
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  flex: none;
}

/* Hero diagram */
.hero__visual { display: none; }

.diagram { width: 100%; height: auto; font-family: var(--font-sans); }
.diagram__links path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.4;
}
.diagram__nodes rect {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1.4;
}
.diagram__node--core {
  fill: var(--accent-soft) !important;
  stroke: rgba(18, 96, 78, 0.4) !important;
}
.diagram__dots circle { fill: var(--border-strong); }
.diagram__labels text {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: var(--muted);
  text-anchor: middle;
}
.diagram__label--core { fill: var(--accent) !important; }

.diagram__pulse path {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 34 320;
  stroke-dashoffset: 354;
  animation: dash-flow 5.5s linear infinite;
}
.diagram__pulse-b { animation-delay: 2.4s !important; }

@keyframes dash-flow {
  0% { stroke-dashoffset: 354; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ------------------------------------------------------------------
   08. Services
   ------------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.8vw, 24px);
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.service__title {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.service__desc {
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: 0.945rem;
  color: var(--muted);
}

.service__list {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text);
}
.service__list li {
  position: relative;
  padding-left: 18px;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
}

.service--wide .service__body { display: grid; gap: var(--space-5); }
.service--wide .service__list {
  margin-top: 0;
  padding-top: var(--space-5);
}

/* ------------------------------------------------------------------
   09. Additional business activities (secondary block inside Services)
   ------------------------------------------------------------------ */
.extras {
  display: block;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.extras__head { max-width: 70ch; }

.extras__title {
  margin-top: var(--space-3);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
}

.extras__text {
  margin-top: var(--space-3);
  font-size: 0.92rem;
  color: var(--muted);
}

.extras__list {
  margin-top: clamp(24px, 2.6vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.6vw, 20px);
}

.extras__item {
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.extras__item:hover { border-color: var(--border-strong); }

.extras__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.extras__name::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  flex: none;
}

.extras__desc {
  margin-top: var(--space-2);
  padding-left: 15px;
  font-size: 0.875rem;
  color: var(--muted);
}

.extras__note {
  margin-top: clamp(20px, 2.2vw, 26px);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   10. Solutions (dark)
   ------------------------------------------------------------------ */
.section--solutions {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-invert);
}

.solutions__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 120% at 85% 0%, #000, transparent 70%);
  mask-image: radial-gradient(90% 120% at 85% 0%, #000, transparent 70%);
}

.solutions__inner {
  position: relative;
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.solutions__text { max-width: 60ch; }

/* Low horizontal blocks — 2 x 3 grid on desktop. */
.solutions__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.solution {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--border-invert);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-invert);
  transition: border-color var(--transition), background-color var(--transition);
}
.solution:hover {
  border-color: rgba(62, 156, 133, 0.42);
  background: rgba(62, 156, 133, 0.07);
}

/* Small teal rounded-square icon container (not a circle). */
.solution__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(62, 156, 133, 0.13);
  color: var(--accent-light);
}
.solution__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solution__label { min-width: 0; }

/* ------------------------------------------------------------------
   11. About
   ------------------------------------------------------------------ */
.about__inner {
  display: grid;
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.about__text {
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  color: var(--muted);
  max-width: 64ch;
}
.about__text + .about__text { margin-top: var(--space-5); }
.about__text:first-child { color: var(--text); }

.note {
  margin-top: clamp(32px, 4vw, 44px);
  padding: clamp(22px, 2.4vw, 28px);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.note__title {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.note__text {
  margin-top: var(--space-3);
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ------------------------------------------------------------------
   12. Process
   ------------------------------------------------------------------ */
.section--process {
  background: var(--background-alt);
  border-block: 1px solid var(--border);
}

.process { border-top: 1px solid var(--border-strong); }

.process__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--border-strong);
  transition: background-color var(--transition);
}
.process__item:hover { background: rgba(18, 96, 78, 0.03); }

.process__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.process__title { font-size: 1.12rem; }

.process__text {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ------------------------------------------------------------------
   13. Contact
   ------------------------------------------------------------------ */
.section--contact {
  position: relative;
  overflow: hidden;
  background: var(--contact-bg);
  border-top: 1px solid var(--border);
}

.contact__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(65% 60% at 88% 0%, rgba(18, 96, 78, 0.1), transparent 70%),
    radial-gradient(55% 55% at 0% 100%, rgba(18, 96, 78, 0.06), transparent 70%);
}

.contact__inner {
  position: relative;
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.contact__title {
  max-width: 16ch;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
}

.contact__text {
  margin-top: var(--space-5);
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
}

.contact__cta { margin-top: clamp(26px, 3vw, 34px); }

.contact__note {
  margin-top: var(--space-5);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact details card */
.contact-card {
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-card__title {
  padding-bottom: clamp(18px, 2vw, 24px);
  border-bottom: 1px solid var(--border);
  font-size: 1.12rem;
}

.contact-card__list { margin-top: 4px; }

.detail {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 18px);
  padding-block: clamp(17px, 2vw, 22px);
  border-top: 1px solid var(--border);
}
.detail:first-child { border-top: 0; }

/* Outline icon inside a very light circular rule — no filled colour tiles. */
.detail__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(18, 96, 78, 0.2);
  color: var(--accent);
}
.detail__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail__body { min-width: 0; padding-top: 2px; }

.detail__label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

.detail__value {
  margin-top: 5px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail__value--strong {
  color: var(--text);
  font-weight: 500;
}

.detail__link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(18, 96, 78, 0.32);
  transition: color var(--transition), text-decoration-color var(--transition);
}
.detail__link:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------------
   14. Legal pages (privacy.html, terms.html)
   ------------------------------------------------------------------ */
.legal-hero {
  padding-block: clamp(44px, 5.5vw, 76px) clamp(30px, 3.5vw, 44px);
  border-bottom: 1px solid var(--border);
}

.legal-hero__title {
  margin-top: var(--space-4);
  font-size: clamp(1.95rem, 1.35rem + 2.1vw, 2.9rem);
}
/* Page opens directly with the heading — no eyebrow above it. */
.legal-hero__title--first { margin-top: 0; }

.legal-hero__lead {
  margin-top: var(--space-5);
  max-width: 62ch;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  color: var(--muted);
}

.legal-hero__meta {
  margin-top: clamp(24px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.82rem;
  color: var(--muted);
}
.legal-hero__meta dt { font-weight: 600; color: var(--text); display: inline; }
.legal-hero__meta dd { display: inline; margin-left: 6px; }
.legal-hero__meta > div { display: flex; gap: 0; }

.legal { padding-block: clamp(44px, 5.5vw, 76px); }

.legal__inner {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.legal__content { max-width: 820px; }

.legal__intro {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}

.legal__intro + .legal__section { margin-top: clamp(30px, 3.2vw, 42px); }

.legal__section + .legal__section {
  margin-top: clamp(32px, 3.6vw, 48px);
  padding-top: clamp(32px, 3.6vw, 48px);
  border-top: 1px solid var(--border);
}

.legal__section h2 {
  font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.42rem);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal__section h3 {
  margin-top: clamp(22px, 2.4vw, 30px);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.legal__section p,
.legal__section li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.legal__section p { margin-top: var(--space-4); }

.legal__section ul {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__section li {
  position: relative;
  padding-left: 18px;
}
.legal__section li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
}

.legal__callout {
  margin-top: var(--space-5);
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.legal__callout p { margin-top: 0; color: var(--text); font-size: 0.93rem; }
.legal__callout p + p { margin-top: var(--space-3); color: var(--muted); }

.legal__address {
  margin-top: var(--space-4);
  font-style: normal;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
}
.legal__address strong { color: var(--text); font-weight: 600; }

/* Table of contents — desktop only */
.legal-toc { display: none; }

.legal-toc__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-toc ol {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 7px;
  counter-reset: toc;
}

.legal-toc a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  transition: color var(--transition);
}
.legal-toc a:hover { color: var(--accent); }

/* ------------------------------------------------------------------
   15. Footer (dark)
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--text-invert);
  border-top: 1px solid rgba(62, 156, 133, 0.3);
  padding-block: clamp(36px, 4vw, 56px) clamp(20px, 2.2vw, 28px);
}

.site-footer :focus-visible { outline-color: var(--accent-light); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}

.site-footer__desc {
  margin-top: 12px;
  max-width: 46ch;
  font-size: 0.92rem;
  color: var(--muted-invert);
}

.site-footer__tagline {
  margin-top: 10px;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.58);
}

/* Ancillary activity sits below the primary service line, visibly secondary. */
.site-footer__ancillary {
  margin-top: 6px;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__heading {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.site-footer__links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--muted-invert);
}

.site-footer__links a {
  color: var(--muted-invert);
  transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--text-invert); }

.site-footer__bottom {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: clamp(16px, 1.8vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__slogan {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.75rem;
}
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.site-footer__legal a:hover { color: var(--accent-light); }
.site-footer__legal span {
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

/* ------------------------------------------------------------------
   16. Project inquiry modal and form
   ------------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 19, 0.45);
  opacity: 0;
  transition: opacity 200ms linear;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .modal__backdrop {
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - clamp(32px, 6vw, 80px));
  overflow-y: auto;
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -45px rgba(14, 21, 19, 0.6);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}
.modal.is-open .modal__dialog {
  opacity: 1;
  transform: none;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background-color var(--transition), color var(--transition);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.modal__title {
  margin-top: var(--space-4);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
}
.modal__title:focus { outline: none; }

.modal__intro {
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 46ch;
}

.modal__alt {
  margin-top: clamp(20px, 2.4vw, 26px);
  padding-top: clamp(16px, 2vw, 20px);
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted);
}

.modal__panel--success {
  text-align: center;
  padding-block: clamp(8px, 2vw, 20px);
}
.modal__panel--success .modal__intro {
  margin-inline: auto;
  max-width: 40ch;
}

.modal__success-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.modal__success-icon svg { width: 26px; height: 26px; }

.modal__success-close { margin-top: clamp(22px, 2.6vw, 28px); }

/* Form */
.form {
  margin-top: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 18px);
}

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

.form__label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.form__req { color: var(--accent); }
.form__optional {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.form__input {
  margin-top: 7px;
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder { color: #8b949b; }
.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 96, 78, 0.14);
}
.form__input[aria-invalid="true"] { border-color: #b4432f; }
.form__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 67, 47, 0.14); }

.form__textarea {
  min-height: 132px;
  resize: vertical;
}

.form__error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #a03c2a;
}

.form__status {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: #a03c2a;
  background: rgba(180, 67, 47, 0.07);
  border: 1px solid rgba(180, 67, 47, 0.28);
  border-radius: var(--radius-sm);
}
.form__status[hidden] { display: none; }

.form__submit {
  width: 100%;
  min-height: 50px;
}
.form__submit[disabled] {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.form__note {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

body.is-modal-open { overflow: hidden; }

/* Bottom-sheet presentation on small screens */
@media (max-width: 560px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal__dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
    padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
    transform: translateY(24px);
  }
}

/* ------------------------------------------------------------------
   17. Back to top
   ------------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px -16px rgba(14, 21, 19, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease), transform 220ms var(--ease),
    background-color var(--transition), border-color var(--transition),
    color var(--transition), visibility 0s linear 220ms;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover {
  border-color: rgba(62, 156, 133, 0.5);
  color: var(--accent-light);
}

.to-top:focus-visible { outline-color: var(--accent-light); }

.to-top svg { width: 20px; height: 20px; }

/* Stay out of the way of the inquiry modal and the mobile navigation. */
body.is-modal-open .to-top,
body.is-nav-open .to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

@media (max-width: 560px) {
  .to-top {
    width: 44px;
    height: 44px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ------------------------------------------------------------------
   18. Reveal animations
   ------------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .diagram__pulse path { animation: none; opacity: 0.6; stroke-dasharray: none; stroke-dashoffset: 0; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------
   18. Responsive refinements
   ------------------------------------------------------------------ */

/* --- Mobile navigation (below 940px) --- */
@media (max-width: 939px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 95;
    display: block;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--space-5) var(--container-pad) calc(var(--space-6) + env(safe-area-inset-bottom));
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 200ms var(--ease), transform 220ms var(--ease),
      visibility 0s linear 220ms;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list {
    display: block;
    max-width: var(--container);
    margin-inline: auto;
  }

  .nav__list li + li { border-top: 1px solid rgba(255, 255, 255, 0.09); }

  .nav__link {
    display: block;
    padding: 16px 4px;
    font-size: 1.02rem;
    font-weight: 500;
    border-radius: 0;
  }
  .nav__link:hover { background: transparent; color: var(--accent-light); }
  .nav__link.is-active::after { left: 4px; right: auto; bottom: 10px; width: 20px; }

  .nav__cta {
    display: flex;
    width: 100%;
    max-width: var(--container);
    margin: var(--space-5) auto 0;
    min-height: 50px;
    font-size: 0.95rem;
  }
}

/* --- Small phones --- */
@media (max-width: 380px) {
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px; }
  .brand { font-size: 1.08rem; }
}

/* --- Tablet --- */
@media (min-width: 640px) {
  .solutions__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .process__item {
    grid-template-columns: 88px 1fr;
    gap: var(--space-5);
    align-items: baseline;
  }
  .process__num { padding-top: 2px; }
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .service--wide { grid-column: 1 / -1; }
  .extras__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .service--wide .service__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
  .service--wide .service__list {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--border);
    padding-left: clamp(24px, 3vw, 40px);
  }
  .service__list--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px clamp(16px, 2vw, 28px);
  }
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }
}

@media (min-width: 900px) {
  /* Heading and the consulting note share the left column; the text column
     spans both rows so the section keeps an even visual weight. */
  .about__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
  .about__head { grid-column: 1; grid-row: 1; }
  .about__body { grid-column: 2; grid-row: 1 / span 2; }
  .note { grid-column: 1; grid-row: 2; margin-top: 0; }

  .process__content {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: baseline;
  }
  .process__text { margin-top: 0; }
}

/* --- Desktop --- */
@media (min-width: 1024px) {
  /* Copy on the left (~45%), 2 x 3 solution grid on the right (~55%) */
  .solutions__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .contact__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

@media (min-width: 940px) {
  .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .hero__visual { display: block; }
  .hero__content { max-width: 640px; }
}

@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* --- Legal pages: sticky table of contents (desktop only) --- */
@media (min-width: 1100px) {
  .legal__inner { grid-template-columns: 232px minmax(0, 1fr); }
  .legal-toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    max-height: calc(100vh - var(--header-h) - 56px);
    overflow-y: auto;
    padding-right: 8px;
  }
}

/* --- Large desktop --- */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
}
