/* =====================================================================
   Edlund Tech AB — Website styles
   Brand: "Nordic forest, modern" — Forest green + warm gold
   Hand-authored CSS (no framework, no build step) for fast, FOUC-free
   loading on every device.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (from Brand_EdlundTech_DesignHandoff.md) */
  --forest:      #1B4332;
  --forest-deep: #143026;
  --pine:        #2D6A4F;
  --sage:        #8FB09B;
  --gold:        #C8A23C;
  --gold-light:  #E2C879;
  --spark:       #FBF3D6;
  --birch:       #F5F2E9;
  --birch-soft:  #FBF9F2;
  --ink:         #18211C;
  --stone:       #5C665E;
  --white:       #FFFFFF;

  /* Semantic surfaces */
  --bg:          var(--birch);
  --surface:     #FFFFFF;
  --text:        var(--ink);
  --text-muted:  var(--stone);

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;

  /* Shadows (warm-tinted, soft) */
  --shadow-sm: 0 1px 2px rgba(24, 33, 28, .06), 0 2px 8px rgba(24, 33, 28, .05);
  --shadow:    0 10px 30px rgba(24, 33, 28, .09), 0 2px 8px rgba(24, 33, 28, .05);
  --shadow-lg: 0 28px 60px rgba(20, 48, 38, .18), 0 8px 18px rgba(24, 33, 28, .08);
  --ring:      0 0 0 3px rgba(200, 162, 60, .45);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .32s;

  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* ~17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold-light); color: var(--forest-deep); }

/* Accessible focus */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--birch);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  z-index: 200;
  transition: top .2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 800;
}
.section-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-muted);
  margin-top: .8rem;
}

.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  box-shadow: 0 8px 20px rgba(200, 162, 60, .35);
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 12px 26px rgba(200, 162, 60, .45); }

.btn-forest { background: var(--forest); color: var(--birch); }
.btn-forest:hover { background: var(--pine); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(27, 67, 50, .28);
}
.btn-ghost:hover { border-color: var(--forest); background: rgba(27, 67, 50, .05); }

/* Light-on-dark ghost (for hero) */
.btn-ghost-light {
  background: rgba(245, 242, 233, .06);
  color: var(--birch);
  border-color: rgba(245, 242, 233, .35);
}
.btn-ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-block { width: 100%; }

/* Subtle sheen sweep on primary */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.5) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }

/* =====================================================================
   Header / navigation
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-header.scrolled {
  background: rgba(245, 242, 233, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(24,33,28,.06), 0 10px 30px rgba(24,33,28,.06);
  border-bottom-color: rgba(24, 33, 28, .06);
}

/* Brand logo lockup in nav */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.brand .brand-mark { flex: none; }
/* Solid forest tile — the default mark (compact, legible on light & dark) */
.brand .brand-mark--solid {
  width: 46px; height: 46px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(245, 242, 233, .14), 0 4px 14px rgba(0, 0, 0, .22);
}
/* Transparent hands + spark mark — hidden by default */
.brand .brand-mark--hero {
  height: 38px; width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .38));
  display: none;
}
/* On roomy desktops show the hands over the dark hero; the tile returns when
   the header turns light on scroll (and on every smaller screen). */
@media (min-width: 1200px) {
  .site-header:not(.scrolled) .brand-mark--hero { display: inline-block; }
  .site-header:not(.scrolled) .brand-mark--solid { display: none; }
}
/* Collapse the horizontal nav to the menu button until there's room for it. */
@media (max-width: 980px) {
  .nav-links, .nav-actions .desktop-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
/* Free room for the full nav in the mid range by dropping the descriptor line. */
@media (min-width: 981px) and (max-width: 1100px) {
  .brand .brand-sub { display: none; }
}
/* Keep the brand lockup compact on phones so the menu button always fits */
@media (max-width: 560px) {
  .site-header .container { gap: 12px; }
  .brand { gap: 10px; }
  .brand .brand-text { font-size: 1.15rem; }
  .brand .brand-mark--solid { width: 40px; height: 40px; }
}
.brand .brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  color: var(--forest);
  line-height: 1;
}
.brand .brand-text .tech { color: var(--gold); }
.brand .brand-sub {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--pine);
  margin-top: 5px;
}
/* When header is over the dark hero (not scrolled), keep logo readable:
   the hero is dark, header transparent → use light brand text. */
.site-header:not(.scrolled) .brand-text { color: var(--birch); }
.site-header:not(.scrolled) .brand-sub  { color: var(--sage); }

.nav { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--forest);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header:not(.scrolled) .nav-links a { color: rgba(245, 242, 233, .9); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(27, 67, 50, .08);
  border: 1px solid rgba(27, 67, 50, .12);
}
.site-header:not(.scrolled) .lang-toggle {
  background: rgba(245, 242, 233, .12);
  border-color: rgba(245, 242, 233, .25);
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--stone);
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 999px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header:not(.scrolled) .lang-toggle button { color: rgba(245,242,233,.7); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--birch);
  box-shadow: var(--shadow-sm);
}
.site-header:not(.scrolled) .lang-toggle button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--forest-deep);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(27,67,50,.18);
  background: rgba(255,255,255,.5);
  border-radius: 12px;
  cursor: pointer;
}
.site-header:not(.scrolled) .menu-btn {
  border-color: rgba(245,242,233,.3);
  background: rgba(245,242,233,.1);
}
.menu-btn svg { width: 24px; height: 24px; stroke: var(--forest); }
.site-header:not(.scrolled) .menu-btn svg { stroke: var(--birch); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 64px;
  background:
    radial-gradient(120% 120% at 80% -10%, #225740 0%, transparent 55%),
    radial-gradient(90% 90% at 10% 110%, #1f5038 0%, transparent 50%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--birch);
  overflow: hidden;
  isolation: isolate;
}

/* Faint topographic contour motif */
.hero-contours {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .25;
  background-image:
    radial-gradient(60% 50% at 75% 30%, rgba(143,176,155,.12) 0, transparent 60%);
  pointer-events: none;
}
.hero-contours svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-contours path { fill: none; stroke: rgba(143,176,155,.18); stroke-width: 1; }

/* Animated spark glow that echoes the logo */
.hero-glow {
  position: absolute;
  z-index: -1;
  top: 18%;
  right: 8%;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              rgba(251,243,214,.55) 0%,
              rgba(226,200,121,.35) 22%,
              rgba(200,162,60,.18) 42%,
              transparent 68%);
  filter: blur(6px);
  animation: glowPulse 7s var(--ease) infinite;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.12); opacity: 1; }
}

/* Floating spark particles */
.spark-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spark-field i {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px 3px rgba(226,200,121,.6);
  opacity: 0;
  animation: floatSpark var(--t, 9s) linear var(--d, 0s) infinite;
}
@keyframes floatSpark {
  0%   { transform: translateY(20px) scale(.6); opacity: 0; }
  15%  { opacity: .9; }
  85%  { opacity: .7; }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

/* Signature hands-and-spark artwork (new brand) */
.hero-art {
  position: absolute;
  z-index: 1;
  top: clamp(70px, 13vh, 158px);
  right: clamp(-44px, -1.5vw, 6px);
  width: min(620px, 56vw);
  height: auto;
  opacity: .94;
  pointer-events: none;
  filter: drop-shadow(0 16px 44px rgba(0, 0, 0, .28));
  animation: artFloat 9s var(--ease) infinite;
  will-change: transform;
}
@keyframes artFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
/* On mid-size screens keep the artwork smaller and tucked in the corner so it
   never crowds the headline. */
@media (min-width: 821px) and (max-width: 1080px) {
  .hero-art { width: min(440px, 46vw); top: clamp(60px, 10vh, 110px); opacity: .82; }
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgba(200, 162, 60, .40);
  background: linear-gradient(180deg, rgba(245, 242, 233, .11), rgba(245, 242, 233, .04));
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--birch);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 24px rgba(0, 0, 0, .20);
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px 1px rgba(226, 200, 121, .55);
  animation: badgePulse 2.6s var(--ease) infinite;
}
@keyframes badgePulse {
  0%   { box-shadow: 0 0 10px 1px rgba(226, 200, 121, .55), 0 0 0 0 rgba(226, 200, 121, .45); }
  70%  { box-shadow: 0 0 10px 1px rgba(226, 200, 121, .55), 0 0 0 8px rgba(226, 200, 121, 0); }
  100% { box-shadow: 0 0 10px 1px rgba(226, 200, 121, .55), 0 0 0 0 rgba(226, 200, 121, 0); }
}

.hero h1 {
  color: var(--birch);
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin-bottom: .35em;
}
.hero h1 .accent {
  color: var(--gold-light);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .09em;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 4px;
}

.hero-lead {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  color: rgba(245,242,233,.86);
  max-width: 620px;
  margin-bottom: 14px;
}
.hero-positioning {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .01em;
  color: var(--sage);
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: .9rem;
  color: var(--sage);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .5em; }
.hero-trust svg { width: 18px; height: 18px; stroke: var(--gold-light); flex: none; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--sage);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(143,176,155,.5);
  border-radius: 14px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* =====================================================================
   Reveal-on-scroll
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* =====================================================================
   Logos / trust strip
   ===================================================================== */
.trust-strip {
  background: var(--forest-deep);
  color: var(--sage);
  padding: 26px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px clamp(20px, 4vw, 48px);
  text-align: center;
}
.trust-strip .label {
  width: 100%;
  font-family: var(--font-head);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(143,176,155,.7);
  margin-bottom: 4px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--birch);
}
.trust-item svg { width: 20px; height: 20px; stroke: var(--gold-light); }

/* =====================================================================
   Services
   ===================================================================== */
.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid rgba(24,33,28,.08);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,162,60,.4);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(45,106,79,.12), rgba(200,162,60,.12));
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--pine); fill: none; }
.card h3 { font-size: 1.24rem; font-weight: 700; margin-bottom: .5em; }
.card p { color: var(--text-muted); font-size: .98rem; margin: 0; }

/* =====================================================================
   Approach / process
   ===================================================================== */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 8px;
}
.step .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--sage);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.step .num b { color: var(--gold); font-weight: 800; }
.step h3 { font-size: 1.18rem; margin-bottom: .4em; }
.step p { color: var(--text-muted); font-size: .96rem; margin: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 36px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
  display: none;
}

/* =====================================================================
   About
   ===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  justify-self: start;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(45,106,79,.45), transparent 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder shown until a real headshot is dropped in */
.photo-placeholder {
  text-align: center;
  color: var(--sage);
  padding: 24px;
}
.photo-placeholder .ph-mark { width: 84px; height: 84px; margin: 0 auto 16px; opacity: .9; }
.photo-placeholder strong {
  display: block;
  font-family: var(--font-head);
  color: var(--birch);
  font-weight: 600;
  margin-bottom: 6px;
}
.photo-placeholder small { font-size: .78rem; opacity: .75; }
.about-photo .badge-float {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(245,242,233,.92);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.about-photo .badge-float svg { width: 26px; height: 26px; stroke: var(--gold); }
.about-photo .badge-float div { line-height: 1.2; }
.about-photo .badge-float strong { font-family: var(--font-head); color: var(--forest); font-size: .9rem; }
.about-photo .badge-float span { font-size: .74rem; color: var(--stone); }

.about-body .signature {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--forest);
  margin-top: 22px;
  font-size: 1.05rem;
}
.about-body .signature span { color: var(--gold); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 8px 14px;
  background: var(--birch-soft);
  border: 1px solid rgba(24,33,28,.08);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--forest);
}
.fact svg { width: 16px; height: 16px; stroke: var(--gold); }

/* =====================================================================
   Stats
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  color: var(--forest);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat .num .unit { color: var(--gold); }
.stat .label {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--text-muted);
}

/* =====================================================================
   Experience
   ===================================================================== */
.experience { background: var(--birch-soft); }
.exp-flagship {
  background: linear-gradient(155deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--birch);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.exp-flagship-glow {
  position: absolute; z-index: 0;
  top: -30%; right: -10%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,200,121,.22), transparent 65%);
  pointer-events: none;
}
.exp-flagship-inner { position: relative; z-index: 1; max-width: 720px; }
.exp-flagship-inner .tag {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 600; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.exp-flagship-inner h3 {
  color: var(--birch);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: .5em;
}
.exp-flagship-inner p { color: rgba(245,242,233,.85); }
.exp-flagship-inner ul {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 12px;
}
.exp-flagship-inner li {
  position: relative;
  padding-left: 30px;
  color: rgba(245,242,233,.9);
  font-size: .98rem;
}
.exp-flagship-inner li svg {
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; stroke: var(--gold-light);
}

.exp-list { display: grid; gap: 14px; margin-top: clamp(24px, 4vw, 36px); }
.exp-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px 26px;
  align-items: baseline;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid rgba(24,33,28,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.exp-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.exp-row .yr {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: .95rem;
}
.exp-row .role { font-family: var(--font-head); font-weight: 600; color: var(--forest); }
.exp-row .desc { color: var(--text-muted); font-size: .94rem; margin-top: 4px; }
.exp-row .ctx { display: block; font-size: .82rem; color: var(--pine); font-weight: 500; margin-top: 2px; }

/* Certifications */
.cert-wrap { margin-top: clamp(28px, 4vw, 44px); }
.cert-title {
  font-family: var(--font-head);
  font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 16px; text-align: center;
}
.cert-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cert-pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid rgba(200,162,60,.35);
  border-radius: 999px;
  font-size: .86rem; font-weight: 500; color: var(--forest);
  box-shadow: var(--shadow-sm);
}
.cert-pill svg { width: 16px; height: 16px; stroke: var(--gold); flex: none; }

/* Grouped certifications (Architecture & platform / OT-ICS · CISA) */
.cert-group { margin-top: clamp(18px, 2.6vw, 26px); }
.cert-group:first-of-type { margin-top: 0; }
.cert-sub {
  font-family: var(--font-head);
  font-weight: 600; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; text-align: center;
}
/* Clickable cert pills (link straight to the PDF) */
.cert-pill--link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.cert-pill--link:hover {
  border-color: var(--gold);
  background: rgba(200, 162, 60, .1);
  box-shadow: var(--shadow);
}
.cert-pill--link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =====================================================================
   Booking
   ===================================================================== */
.booking { background: var(--forest-deep); color: var(--birch); position: relative; overflow: hidden; }
.booking::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(45,106,79,.5), transparent 55%),
    radial-gradient(50% 50% at 5% 100%, rgba(200,162,60,.12), transparent 55%);
  pointer-events: none;
}
.booking .container { position: relative; z-index: 1; }

/* Brand "seam" divider — signature hands + spark glowing on the dark forest,
   with thin gold rules leading into it. */
.brand-seam {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  margin-bottom: clamp(34px, 5vw, 58px);
}
.brand-seam img {
  width: clamp(200px, 32vw, 380px);
  height: auto;
  opacity: .62;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, .35));
  animation: artFloat 9s var(--ease) infinite;
  will-change: transform;
}
.brand-seam .seam-line {
  flex: 1 1 auto;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 60, .55));
}
.brand-seam .seam-line:last-child {
  background: linear-gradient(90deg, rgba(200, 162, 60, .55), transparent);
}
@media (max-width: 560px) {
  .brand-seam .seam-line { max-width: 60px; }
  .brand-seam img { width: min(70vw, 280px); opacity: .55; }
}

.booking .eyebrow { color: var(--gold-light); }
.booking .eyebrow::before { background: var(--gold-light); }
.booking .section-title { color: var(--birch); }
.booking .section-lead { color: rgba(245,242,233,.82); }

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 52px);
}

.booking-aside .contact-line {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,242,233,.12);
}
.booking-aside .contact-line:first-of-type { padding-top: 0; }
.booking-aside .ci {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(245,242,233,.08);
  border: 1px solid rgba(245,242,233,.14);
}
.booking-aside .ci svg { width: 22px; height: 22px; stroke: var(--gold-light); }
.booking-aside .contact-line .meta small {
  display: block; color: var(--sage); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.booking-aside .contact-line .meta a,
.booking-aside .contact-line .meta span {
  font-family: var(--font-head); font-weight: 600; color: var(--birch); font-size: 1.02rem;
}
.booking-aside .contact-line .meta a:hover { color: var(--gold-light); }
.booking-aside .assurance {
  margin-top: 24px;
  display: grid; gap: 10px;
}
.booking-aside .assurance div {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; color: rgba(245,242,233,.88);
}
.booking-aside .assurance svg { width: 18px; height: 18px; stroke: var(--gold-light); flex: none; }

/* Booking card (holds the Microsoft Bookings iframe OR fallback) */
.booking-card {
  background: var(--birch);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.booking-card iframe {
  width: 100%;
  flex: 1;
  min-height: 560px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 8px);
  background: var(--birch);
}
/* Fallback request panel (shown when no Bookings URL is configured) */
.booking-fallback {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
}
.booking-fallback h3 { font-size: 1.3rem; margin-bottom: .35em; }
.booking-fallback p { color: var(--text-muted); font-size: .96rem; }
.booking-fallback .form-row { margin-top: 16px; }
.booking-fallback label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .84rem;
  color: var(--forest);
  margin-bottom: 6px;
}
.booking-fallback input,
.booking-fallback textarea,
.booking-fallback select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid rgba(24,33,28,.16);
  border-radius: 12px;
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.booking-fallback input:focus,
.booking-fallback textarea:focus,
.booking-fallback select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,162,60,.18);
}
.booking-fallback textarea { resize: vertical; min-height: 96px; }
.booking-fallback .grid-2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-fallback .btn { margin-top: 20px; }
.booking-fallback .note {
  margin-top: 14px; font-size: .82rem; color: var(--stone);
  display: flex; gap: 8px; align-items: flex-start;
}
.booking-fallback .note svg { width: 16px; height: 16px; stroke: var(--pine); flex: none; margin-top: 2px; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--pine); }
.form-status.err { color: #b4452f; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--forest);
  color: var(--sage);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 40px;
}
.footer-brand .brand-text { color: var(--birch); font-size: 1.4rem; }
.footer-brand .brand-text .tech { color: var(--gold-light); }
.footer-brand p { margin-top: 14px; color: var(--sage); max-width: 320px; font-size: .95rem; }
.footer-motto {
  font-family: var(--font-head);
  font-weight: 600; font-style: italic;
  color: var(--gold-light);
  margin-top: 16px;
}
.footer-col h4 {
  color: var(--birch);
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col span { color: var(--sage); font-size: .95rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(245,242,233,.12);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: rgba(143,176,155,.8);
}
.footer-bottom a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(245,242,233,.18);
  border-radius: 11px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.footer-social a:hover { border-color: var(--gold-light); background: rgba(226,200,121,.1); }
.footer-social svg { width: 20px; height: 20px; }
.footer-social svg path { fill: var(--sage); }
.footer-social a:hover svg path { fill: var(--gold-light); }

/* =====================================================================
   Mobile drawer
   ===================================================================== */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(20,48,38,.5);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(86vw, 340px); height: 100%;
  background: var(--birch);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .36s var(--ease);
  display: flex; flex-direction: column;
  padding: 22px;
}
.drawer.open { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer-close {
  width: 44px; height: 44px;
  border: 1px solid rgba(24,33,28,.14);
  background: transparent; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
}
.drawer-close svg { width: 22px; height: 22px; stroke: var(--forest); }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  color: var(--forest); padding: 14px 12px; border-radius: 12px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drawer nav a:hover { background: rgba(27,67,50,.06); color: var(--gold); }
.drawer .drawer-cta { margin-top: auto; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin-inline: auto; justify-self: center; }
  .booking-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-links, .nav-actions .desktop-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  /* Keep the headline clean on small screens; brand shows in nav/about instead */
  .hero-art { display: none; }
  /* Compact forest tile in the header on mobile; hands mark is a desktop flourish */
  .brand .brand-mark--hero { display: none; }
  .brand .brand-mark--solid { display: inline-block; }
}

@media (max-width: 560px) {
  .brand .brand-sub { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .exp-row { grid-template-columns: 1fr; gap: 4px; }
  .exp-row .yr { order: -1; }
  .booking-fallback .grid-2-form { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (min-width: 821px) {
  .step:not(:first-child)::before { display: block; }
  .step { padding-left: 0; padding-top: 18px; }
}

/* =====================================================================
   Reduced motion — respect user preference
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-glow, .spark-field, .scroll-cue .mouse::after { animation: none !important; }
  .spark-field { display: none; }
}
