/* =====================================================================
   Wildcreek Consulting landing page styles
   Organized top to bottom in page order. Colors, fonts and sizes live
   in section 1 (tokens) so they can be changed in one place.
   Animations only move things (transform) or fade them (opacity).
   ===================================================================== */


/* ---------- 1. Tokens: brand colors, fonts, sizes ---------- */
:root {
  --forest: #1F4E3D;        /* primary green */
  --forest-dark: #143528;   /* hero, contact band, footer */
  --forest-soft: #DCEBE3;   /* about panel background */
  --mint: #8FD3B8;          /* accent text on dark backgrounds only */
  --creek: #2A7F8F;         /* small headings, icons, links */
  --creek-light: #E6F2F3;   /* AI agents section background */
  --sand: #F6F3EE;          /* key numbers band, service cards */
  --orange: #D9822B;        /* primary buttons, NEW badge, step numbers */
  --orange-dark: #BF6F1F;   /* button hover */
  --ink: #1D2422;           /* body text */
  --muted: #5A6662;         /* secondary text */
  --line: #E3E8E5;          /* borders */
  --white: #FFFFFF;
  --ok-green: #2FB06B;      /* status dots and check glyphs in the mock UI */

  --radius-card: 20px;
  --radius-pill: 999px;
  --max: 1180px;

  --font-head: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --nav-h: 72px;
  --gutter: 24px;
  --section-pad: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lift: 0 18px 40px -24px rgba(20, 53, 40, .35);

  /* Small icons drawn with CSS masks (shape only, color comes from background) */
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  --icon-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1.2 15.2 14.6H.8ZM7.1 5.8h1.8v4.4H7.1ZM7.1 11.4h1.8v1.8H7.1Z'/%3E%3C/svg%3E");
  --icon-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0 7.3 4.7 12 6 7.3 7.3 6 12 4.7 7.3 0 6 4.7 4.7Z'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  :root { --section-pad: 64px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
a { color: var(--creek); }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--creek);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.contact :focus-visible,
.footer :focus-visible,
.nav:not(.scrolled) :focus-visible { outline-color: var(--mint); }


/* ---------- 3. Typography ---------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2, .h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3, .h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

/* Small uppercase label above a heading */
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--creek);
  text-wrap: balance;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  text-wrap: pretty;
}


/* ---------- 4. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

/* Anchor links stop below the fixed nav */
section[id] { scroll-margin-top: 88px; }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { max-width: 62ch; margin: 0; }

/* Faint square grid used behind the hero and the contact band */
.grid-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 60% 40%, #000 35%, transparent 90%);
  mask-image: radial-gradient(ellipse 75% 75% at 60% 40%, #000 35%, transparent 90%);
  pointer-events: none;
}


/* ---------- 5. Buttons ---------- */
/* Pill button. The round arrow badge is <span class="btn-arrow"> inside the link. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 12px 12px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest-dark);
}
.btn-arrow::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--white);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform .25s ease;
}
.btn:hover .btn-arrow::before { transform: translateX(3px); }

/* Outline button for dark backgrounds */
.btn-ghost {
  padding: 12px 26px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Outline button for light backgrounds */
.btn-outline {
  padding: 12px 26px;
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover { background: var(--forest-soft); }

/* Compact size, used in the nav */
.btn-sm {
  min-height: 46px;
  gap: 10px;
  padding: 10px 10px 10px 20px;
  font-size: .95rem;
}
.btn-sm .btn-arrow { width: 26px; height: 26px; }
.btn-sm .btn-arrow::before { width: 12px; height: 12px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ---------- 6. Scroll reveal ---------- */
/* Elements with data-reveal start hidden and slide up when main.js adds .is-in.
   Only applies when JavaScript runs (the .js class), so nothing stays hidden without it. */
:where(.js) [data-reveal] {
  opacity: 0;
  translate: 0 20px;
  transition: opacity .7s var(--ease) var(--d, 0s), translate .7s var(--ease) var(--d, 0s);
}
:where(.js) [data-reveal].is-in {
  opacity: 1;
  translate: none;
}


/* ---------- 7. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
/* After scrolling 40px (set by main.js) */
.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .12em;
  white-space: nowrap;
}
.logo-globe {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--white);
  transition: color .3s ease;
}
.nav.scrolled .logo-globe { color: var(--forest); }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 30px;
}
.nav-links a {
  position: relative;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--mint); }
.nav.scrolled .nav-links a:hover { color: var(--creek); }

/* Active-section bar under a nav link */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { flex: none; }

/* Phones: only the logo and the Inquire button */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
/* Tablets and phones: stack the two logo words so everything fits on one row */
@media (max-width: 900px) {
  .nav-inner { gap: 24px; }
  .nav-links { gap: 24px; }
  .logo-word { display: flex; flex-direction: column; line-height: 1.15; }
}
@media (max-width: 480px) {
  .logo { gap: 9px; font-size: .78rem; letter-spacing: .14em; }
}


/* ---------- 8. Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: calc(var(--nav-h) + 56px) 0 88px;
  background: var(--forest-dark);
  color: var(--white);
}
/* Faint mint glow, top right */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -380px;
  right: -300px;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 211, 184, .08) 0%, rgba(143, 211, 184, .04) 35%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  align-items: center;
  gap: 48px;
}

.hero .eyebrow { color: var(--mint); margin-bottom: 22px; }

.hero h1 { margin-bottom: 26px; }
/* Hero headline size. Smaller than the general h1 scale so the copy always breaks
   cleanly at its commas (4 lines in the two-column layout and on phones):
   "Business Central, / done right. / Upgraded, extended, / supported."
   If the headline text changes, re-check these sizes. */
.hero h1 { font-size: clamp(2.6rem, calc(5vw - 2px), 3.7rem); }
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2rem, 9.2vw, 2.6rem); }
}
.h1-line { display: block; text-wrap: balance; }
.h1-line.accent { color: var(--mint); }

.hero-lead {
  max-width: 54ch;
  margin-bottom: 34px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}

.hero-tagline {
  margin: 30px 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--mint);
}

/* --- Hero visual: the floating "Business Central at work" mock --- */
/* --px and --py (set by main.js, -1 to 1) follow the mouse for a slight parallax. */
.hero-visual { position: relative; }

.composition {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}

.layer {
  position: relative;
  transition: transform .9s var(--ease);
}
/* Cards stack top to bottom (A, main, B) and overlap through negative margins:
   card A covers only the main card's top padding, card B only its placeholder rows. */
.layer-a {
  order: 1;
  z-index: 3;
  align-self: flex-end;
  width: 256px;
  margin-right: -12px;
  transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 0);
}
.layer-main {
  order: 2;
  z-index: 1;
  margin: -18px 9% 0 3%;
  transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 12px), 0);
}
.layer-b {
  order: 3;
  z-index: 2;
  align-self: flex-start;
  width: 236px;
  margin: -58px 0 0 -12px;
  transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 0);
}

/* Orbit rings */
.orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform .9s var(--ease);
  transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -6px), 0);
}
.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}
.orbit-1 { width: 420px; height: 420px; top: calc(50% - 210px); left: calc(50% - 210px); }
.orbit-2 { width: 560px; height: 560px; top: calc(50% - 280px); left: calc(50% - 280px); animation-direction: reverse; }
.sparkle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: rgba(255, 255, 255, .7);
  -webkit-mask: var(--icon-sparkle) center / contain no-repeat;
  mask: var(--icon-sparkle) center / contain no-repeat;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Shared card look for the mock UI */
.mock-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(20, 53, 40, .08);
  border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55), 0 10px 24px -14px rgba(0, 0, 0, .35);
  font-family: var(--font-head);
}

/* Main card: Sales Orders table */
.mock-orders {
  padding: 22px 18px 18px;
  container-type: inline-size;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
}
.mock-title { font-weight: 600; font-size: 1rem; }
.chip {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--creek-light);
  color: var(--creek);
  font-size: .7rem;
  font-weight: 600;
}
.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.mock-table th {
  padding: 9px 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 500;
  font-size: .7rem;
  color: var(--muted);
}
.mock-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-weight: 500;
}
.mock-table .col-no { color: var(--creek); }
.mock-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mock-table th:first-child, .mock-table td:first-child { padding-left: 0; }
.mock-table th:last-child, .mock-table td:last-child { padding-right: 0; }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: .68rem;
  font-weight: 600;
}
.pill-green { background: #E2F4EA; color: #1F7A4D; }
.pill-grey { background: #EEF1EF; color: var(--muted); }
.pill-orange { background: #FBEAD7; color: #A65A14; }

/* Narrow card: drop the order number column */
@container (max-width: 380px) {
  .col-no { display: none; }
}

.mock-skeleton {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr 1.2fr;
  gap: 12px 14px;
  padding: 14px 0 2px;
}
.mock-skeleton i:nth-child(n+5) { opacity: .55; }
.mock-skeleton i {
  height: 8px;
  border-radius: 4px;
  background: #EDF0EE;
}

/* Floating card A: AI agent activity */
.mock-agent { padding: 15px 18px 16px; }
.agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  color: var(--forest);
}
.live-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok-green);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok-green);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.8); opacity: 0; }
}

.feed {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: .78rem;
  line-height: 1.4;
  transition: opacity .4s ease;
}
.feed li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  transition: opacity .35s ease, translate .35s var(--ease);
}
.feed li.is-flag { color: #A65A14; font-weight: 600; }

/* Glyph: green check when done, orange warning on the flagged line */
.glyph {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #E2F4EA;
}
.glyph::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: #1F7A4D;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
.is-flag .glyph { background: transparent; border-radius: 0; }
.is-flag .glyph::before {
  inset: 0;
  background: var(--orange);
  -webkit-mask-image: var(--icon-warn);
  mask-image: var(--icon-warn);
}

/* While playing (main.js adds .is-playing): lines appear one at a time */
.feed.is-playing li { opacity: 0; translate: 0 4px; }
.feed.is-playing li.is-shown { opacity: 1; translate: none; }
.feed.is-playing li:not(.is-done):not(.is-flag) .glyph {
  background: transparent;
  border: 1.5px solid var(--line);
  border-top-color: var(--creek);
  animation: spin .8s linear infinite;
}
.feed.is-playing li:not(.is-done):not(.is-flag) .glyph::before { opacity: 0; }
.feed.is-fading { opacity: 0; }

/* Floating card B: live support */
.mock-support {
  padding: 15px 18px 16px;
  background: var(--forest);
  color: var(--white);
  border-color: rgba(255, 255, 255, .14);
}
.support-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
}
.support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.support-big { font-size: 1.85rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.support-cap { font-family: var(--font-body); font-size: .72rem; color: rgba(255, 255, 255, .7); }
.support-zones { display: flex; gap: 6px; flex: none; }
.support-zones span {
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .12);
  color: var(--mint);
}
/* The region chips pop in one after another once the hero visual has faded in */
.hero-visual:not(.is-in) .support-zones span { opacity: 0; }
.hero-visual.is-in .support-zones span { animation: zone-in .5s var(--ease) both; }
.hero-visual.is-in .support-zones span:nth-child(2) { animation-delay: .15s; }
.hero-visual.is-in .support-zones span:nth-child(3) { animation-delay: .3s; }
@keyframes zone-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Floating only on devices with a mouse */
@media (hover: none) {
  .composition { animation: none; }
}

/* Laptops: tighter column gap, floating cards stay inside the page margins */
@media (max-width: 1024px) {
  .hero-grid { gap: 32px; }
  .layer-a { margin-right: 0; }
  .layer-b { margin-left: 0; }
}

/* Tablets and phones: stack text over the mock, keep main card + card A only */
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: calc(var(--nav-h) + 40px) 0 64px;
  }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .composition {
    gap: 14px;
    max-width: none;
    animation: none;
  }
  .orbits, .layer-b { display: none; }
  .layer { width: auto; margin: 0; align-self: stretch; transform: none; }
  .layer-main { order: 1; }
  .layer-a { order: 2; }
}

@media (max-width: 480px) {
  .hero-lead { font-size: 1.06rem; }
  .hero .btn-row .btn { width: 100%; }
  .hero .btn-row .btn-primary { justify-content: space-between; }
}


/* ---------- 9. Key numbers band ---------- */
.stats {
  padding: 60px 0;
  background: var(--sand);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.stat {
  padding-left: 20px;
  border-left: 1px solid rgba(31, 78, 61, .16);
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
  white-space: nowrap;
}
.stat-num {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: 1.05rem; }
.stat-caption {
  margin: 0;
  text-wrap: pretty;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 760px) {
  .stats { padding: 48px 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .stat { padding-left: 16px; }
  .stat:last-child { grid-column: 1 / -1; }
}


/* ---------- 10. Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  padding: 32px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  /* reveal fade + hover lift */
  transition: opacity .7s var(--ease) var(--d, 0s), translate .7s var(--ease) var(--d, 0s), transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--creek-light);
  color: var(--creek);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--muted); font-size: 1rem; margin-bottom: 22px; }

/* Bullet list with check marks */
.checks {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(31, 78, 61, .1);
  list-style: none;
  font-size: .95rem;
  line-height: 1.5;
}
.checks li {
  position: relative;
  padding-left: 28px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 17px;
  height: 17px;
  background: var(--creek);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

/* Add-on panel with the scrolling tag row */
.addons {
  margin-top: 24px;
  padding: 36px 0 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.addons-text {
  max-width: 800px;
  padding: 0 36px;
}
.addons-text h3 { margin-bottom: 8px; }
.addons-text p { margin: 0; color: var(--muted); }

.marquee {
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0; /* same as the gap, so the loop is seamless */
  list-style: none;
}
.marquee-list li {
  flex: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1024px) {
  .card { padding: 28px; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .card { padding: 26px 22px; }
  .addons { padding: 28px 0 26px; }
  .addons-text { padding: 0 22px; }
}


/* ---------- 11. AI agents ---------- */
.section-ai { background: var(--creek-light); }

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
}
.ai-text h2 { margin-bottom: 20px; }
.ai-text p:not(.eyebrow) { color: var(--ink); }
.ai-text .btn { margin-top: 12px; }

/* NEW badge with a soft ring that pulses outward */
.badge-new {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .12em;
  line-height: 1.3;
}
.badge-new::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange);
  border-radius: inherit;
  opacity: 0;
  animation: badge-ring 2.5s ease-out infinite;
}
@keyframes badge-ring {
  0% { transform: scale(1); opacity: .7; }
  55%, 100% { transform: scale(1.45, 1.8); opacity: 0; }
}

/* Agent console */
.console {
  background: var(--white);
  border: 1px solid rgba(42, 127, 143, .16);
  border-radius: var(--radius-card);
  box-shadow: 0 34px 70px -42px rgba(20, 53, 40, .4);
  overflow: hidden;
}
.console-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
  background: #FBFCFB;
}
.console-tab {
  position: relative;
  min-height: 56px;
  padding: 12px 6px 14px;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .84rem;
  line-height: 1.3;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}
.console-tab:hover { color: var(--forest); }
.console-tab.is-active { color: var(--forest); }

/* Thin progress bar under each tab; the active one fills over 5 seconds */
.console-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}
.console-bar-fill {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.console-tab.is-active .console-bar-fill { transform: scaleX(1); }
.console.is-auto.is-in .console-tab.is-active .console-bar-fill {
  animation: tab-progress 5s linear both;
}
@keyframes tab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* All panels share one grid cell, so the card keeps the height of the tallest one */
.console-panels {
  display: grid;
  padding: 30px 28px 28px;
}
.console-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.console-panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease .2s, visibility 0s linear .2s;
}
.console-panel h3 { margin-bottom: 8px; color: var(--forest); }
.console-panel > p { margin-bottom: 22px; color: var(--muted); font-size: 1rem; }

/* Activity log lines */
.console-log {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--forest-dark);
  color: rgba(255, 255, 255, .88);
  list-style: none;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.45;
}
.console-log li {
  position: relative;
  padding-left: 26px;
}
.console-log li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 16px;
  height: 16px;
  background: #5FD39A;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
/* Log lines slide in one after another when a panel opens */
.console-panel.is-active .console-log li { animation: log-in .45s var(--ease) both; }
.console-panel.is-active .console-log li:nth-child(1) { animation-delay: .3s; }
.console-panel.is-active .console-log li:nth-child(2) { animation-delay: .45s; }
.console-panel.is-active .console-log li:nth-child(3) { animation-delay: .6s; }
@keyframes log-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .ai-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 560px) {
  .console-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 10px 0; column-gap: 8px; row-gap: 0; }
  .console-tab { min-height: 48px; padding: 12px 6px; }
  .console-panels { padding: 24px 20px 22px; }
  .console-log { padding: 16px; font-size: .76rem; }
}


/* ---------- 12. Our approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-head {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.step-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
/* Connector from this number to the next one (reaches across the 32px gap) */
.step-rail {
  flex: 1;
  height: 2px;
  margin: 0 -16px 0 16px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.step-rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--forest);
  transform-origin: left;
  transition: transform .4s linear var(--rail-delay, .3s);
}
/* Starts empty, then draws left to right: three segments, 0.4s each = 1.2s */
:where(.js) .step-rail-fill { transform: scaleX(0); }
:where(.js) .step.is-in .step-rail-fill { transform: none; }
.step:nth-child(2) { --rail-delay: .7s; }
.step:nth-child(3) { --rail-delay: 1.1s; }

.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Phones: steps stack, the line runs down the left side */
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
  }
  .step-head {
    grid-row: 1 / span 2;
    flex-direction: column;
    margin: 0;
  }
  .step-num { padding-top: 2px; }
  .step-rail {
    width: 2px;
    height: auto;
    margin: 12px 0 -16px;
  }
  .step-rail-fill { transform-origin: top; }
  :where(.js) .step-rail-fill { transform: scaleY(0); }
  .step:nth-child(n) { --rail-delay: .3s; }
  .step h3, .step p { grid-column: 2; }
}


/* ---------- 13. About ---------- */
/* No top padding (the approach section above already has it). The bottom padding keeps
   white space between the panel and the dark contact band. */
.section-about { padding-top: 0; }

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 56px;
  border-radius: 24px;
  background: var(--forest-soft);
}
.about-quote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--forest);
}
/* Large opening quotation mark */
.about-quote::before {
  content: "\201C";
  display: block;
  height: .55em;
  margin-bottom: 14px;
  font-size: 2.6em;
  font-weight: 600;
  line-height: 1;
  color: var(--orange);
}
.about-quote p { margin: 0; text-wrap: pretty; }
.about-text { padding-top: 10px; }
.about-text .eyebrow { margin-bottom: 14px; }
.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .about-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px; }
}
@media (max-width: 760px) {
  .about-panel { padding: 32px; }
}
@media (max-width: 480px) {
  .about-panel { padding: 32px 22px; border-radius: 20px; }
}


/* ---------- 14. Contact band (landing page) ---------- */
.contact {
  padding: 112px 0;
  background: var(--forest-dark);
  color: var(--white);
  text-align: center;
}
.contact::before { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 20%, transparent 85%); }
.contact h2 { margin-bottom: 18px; color: var(--white); }
.contact-inner > p {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}
.btn-email { max-width: 100%; }
.contact .contact-phone {
  margin: 22px auto 0;
  font-size: .98rem;
  color: rgba(255, 255, 255, .7);
}
.contact-phone a {
  display: inline-block;
  padding: 10px 2px; /* larger tap area */
  color: var(--white);
  text-underline-offset: 3px;
}
/* "Office address and contact details" link, same color as the phone line */
.contact .contact-more {
  margin: 22px auto 0;
  font-size: .98rem;
}
.contact .contact-phone + .contact-more { margin-top: 0; }
.contact-more a {
  display: inline-block;
  padding: 10px 2px; /* larger tap area */
  color: rgba(255, 255, 255, .7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}
.contact-more a:hover { color: var(--white); text-decoration-color: var(--white); }

@media (max-width: 760px) {
  .contact { padding: 88px 0; }
}
@media (max-width: 480px) {
  .btn-email { padding-left: 18px; font-size: .95rem; }
}


/* ---------- 15. Contact page (contact.html) ---------- */
/* Header band: dark green with the hero's faint grid. The top padding clears the fixed nav. */
.page-head {
  padding: calc(var(--nav-h) + 72px) 0 80px;
  background: var(--forest-dark);
  color: var(--white);
}
.page-head .eyebrow { color: var(--mint); }
.page-head h1 { max-width: 760px; margin-bottom: 18px; color: var(--white); }
.page-head-lead {
  max-width: 62ch;
  margin: 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}

/* Two columns: office card left, email and phone buttons right */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.office-card {
  padding: 40px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.office-card .eyebrow { margin-bottom: 14px; }
.office-address {
  margin: 0 0 24px;
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--forest);
}
.office-lines {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.office-lines li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.office-lines svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--creek);
}
.office-lines a {
  display: inline-block;
  min-width: 0;
  padding: 8px 0; /* larger tap area */
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.office-lines a:hover { color: var(--creek); text-decoration: underline; }

.contact-note { padding-top: 8px; }
.contact-note h2 { margin-bottom: 14px; }
.contact-note-lead {
  margin-bottom: 28px;
  font-size: 1.15rem;
  color: var(--muted);
}
.contact-note .btn-row { margin-bottom: 24px; }
.contact-note-small {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .page-head { padding: calc(var(--nav-h) + 48px) 0 64px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact-note { padding-top: 0; }
}
@media (max-width: 480px) {
  .office-card { padding: 30px 22px; }
}


/* ---------- 16. Footer ---------- */
.footer {
  background: var(--forest-dark);
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
}
.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
/* Thin top line, aligned with the text edges */
.footer-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer p { margin: 0; text-wrap: balance; }
.footer a {
  display: inline-block;
  padding: 10px 0; /* larger tap area */
  color: rgba(255, 255, 255, .85);
  text-underline-offset: 3px;
}
.footer-inner > p:first-child { padding: 10px 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}


/* ---------- 17. Reduced motion ---------- */
/* Visitors who ask their device for less motion get a still page:
   everything visible, no floating, no marquee, no counting, no auto-rotating tabs. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  :where(.js) [data-reveal] { opacity: 1; translate: none; }
  .composition, .layer, .orbits { transform: none !important; }
  .card:hover { transform: none; }
  :where(.js) .step-rail-fill { transform: none; }
  .support-zones span { opacity: 1; }

  /* Tags wrap on several lines instead of scrolling */
  .marquee { -webkit-mask-image: none; mask-image: none; padding: 0 36px; }
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; padding: 0; }
  .marquee-list[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 480px) {
  .marquee { padding: 0 22px; }
}
