/* ==========================================================================
   ADNANSON SOLUTIONS — GLOBAL STYLESHEET (bright edition, 2026-07-16)
   --------------------------------------------------------------------------
   This file contains the entire design system for the site:
     1. Design tokens (colors, type, spacing)
     2. Base / reset styles (incl. the paper-grain texture)
     3. Typography
     4. The "ledger" signature element (mono eyebrows, coordinates, rules)
     5. Navigation (desktop + mobile)
     6. Hero sections
     7. Buttons & links
     8. Content sections (warm-white "dossier" registers)
     9. Cards: projects, team, certifications, capability lists
    10. Contact form
    11. Footer
    12. Animation base states (JS-gated — page works without JS)
    13. Responsive breakpoints
    14. Accessibility (focus, reduced motion)

   THE MOOD: bright, warm, welcoming — a high-end architecture portfolio,
   never a dark ops room. Two light registers alternate: warm white paper
   and a slightly deeper warm "well" (.sec-well). Copper is the single
   brand thread; the five service accents are muted field tones darkened
   to stay readable on light ground.

   HOW TO EDIT: every block is labelled. Colors and fonts live in :root —
   change them there and the whole site follows.
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Light surfaces --- */
  --base:       #FAFAF7;   /* page background — warm white, never pure #FFF */
  --base-2:     #F3F0E9;   /* deeper warm register (.sec-well, footer) */
  --base-3:     #E6E1D5;   /* hairlines / borders on light */
  --card:       #FFFFFF;   /* raised cards on the warm-white body */

  /* --- Text --- */
  --text:       #1A1A18;   /* primary — warm dark, not pure black */
  --text-2:     #5B5449;   /* muted / secondary — warm gray, dark enough to
                              hold AA with margin on every light ground
                              (the earlier #6B6459 read beige and washed out) */
  --text-3:     #3E3A33;   /* mid tone: hero subtitles over imagery */

  /* --- Brand accent (the orange "A" thread) --- */
  --copper:     #B4682A;   /* brand copper — marks, lines, hovers */
  --copper-hi:  #D8944E;   /* brighter copper — only over photos/scrims */
  --copper-ink: #8C4F1D;   /* darker copper — text-safe on light ground */
  --copper-cta: #A25A1B;   /* solid buttons — white text stays AA */

  /* --- Service accents (each vertical keys off one of these).
         Pages set `--svc` on <body> to recolor shared components.
         All five are darkened for AA contrast on white. --- */
  --svc-cyb:    #46708F;   /* cybersecurity — steel blue */
  --svc-ehr:    #47775B;   /* electronic health — sage */
  --svc-tac:    #7D6220;   /* operational training — khaki brass */
  --svc-con:    #9B5312;   /* consulting — deep copper */
  --svc-pmo:    #5D5990;   /* project management — slate violet */
  --svc:        var(--copper-ink); /* default accent, overridden per page */

  /* --- Typography --- */
  --font-display: "Newsreader", Georgia, serif;          /* headlines */
  --font-body:    "Public Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", "SF Mono", Menlo, monospace; /* ledger */

  /* --- Type scale (fluid) --- */
  --fs-hero:   clamp(2.6rem, 6.5vw, 5.2rem);
  --fs-h1:     clamp(2.2rem, 4.5vw, 3.4rem);
  --fs-h2:     clamp(1.7rem, 3vw, 2.4rem);
  --fs-h3:     1.25rem;
  --fs-body:   1.0625rem;   /* 17px */
  --fs-small:  0.9375rem;   /* 15px */
  --fs-mono:   0.75rem;     /* 12px ledger text */

  /* --- Layout --- */
  --content-w: 1180px;
  --pad-x:     clamp(1.25rem, 4vw, 3rem);
  --sec-y:     clamp(4rem, 9vw, 7.5rem);
  --nav-h:     72px;

  /* --- Depth: warm shadows only, never gray/black-heavy --- */
  --shadow-card: 0 1px 2px rgba(90, 70, 40, 0.05), 0 16px 40px -24px rgba(90, 70, 40, 0.28);
  --shadow-lift: 0 2px 4px rgba(90, 70, 40, 0.06), 0 24px 48px -20px rgba(90, 70, 40, 0.32);

  /* --- Motion --- */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       0.6s;
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The site is deliberately light-only. Without this declaration, Safari
     (and Chrome's auto-dark) synthesize a dark theme for the page on
     dark-mode systems — inverting headlines and scrims into an unreadable
     mix. "only light" forbids that. Paired with the meta color-scheme tag
     in every page head. */
  color-scheme: only light;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* parallax layers can bleed 1-2px; never show a scrollbar */
}

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

/* Paper grain: a whisper of texture over the warm white so flat areas feel
   like stock, not a blank document. Fixed, non-interactive, imperceptible
   over imagery; remove this block to go clean. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* Fade the whole page in on arrival / out on internal navigation.
   animations.js toggles .page-leaving; without JS nothing is hidden. */
body { opacity: 1; transition: opacity 0.22s ease; }
body.page-leaving { opacity: 0; }


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance; /* avoids one-word orphan lines in display type */
}

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

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.35; }

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

a { color: inherit; }

.muted { color: var(--text-2); }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 400;
}

/* Display italic — used sparingly for one emphasized word in headlines */
.disp-i { font-style: italic; font-weight: 400; }


/* ==========================================================================
   4. LEDGER — the site's signature element
   --------------------------------------------------------------------------
   Mono-spaced "file record" strips: section eyebrows, coordinates, codes.
   Encodes real structure: every service has a file code (CYB, EHR, TAC,
   CON, PMO) used consistently in nav, hub, and service pages.
   ========================================================================== */
.ledger {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ledger .tick { color: var(--svc); } /* accent piece inside a ledger line */

/* Eyebrow above section headings: short rule + label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--svc);
  flex: none;
}

/* Full-width hero baseline strip (coordinates, status, code) */
.hero-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad-x);
  border-top: 1px solid rgba(26, 26, 24, 0.14);
}
.hero-strip span { white-space: nowrap; }


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
/* nav.js adds .nav--solid after the page scrolls past the hero top */
.nav--solid {
  background: rgba(250, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 26, 24, 0.08);
}

.nav-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap; /* the wordmark never breaks */
  line-height: 1;
}
/* The oversized copper initial IS the "A" of "Adnanson" — an editorial
   drop-cap inside the word, not a separate mark. It flows inline so the
   "dnanson" continues directly from it with no gap; line-height 0 stops
   the larger glyph from stretching the nav row. */
.nav-brand .brand-mark {
  color: var(--copper);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6em;
  line-height: 0;
  letter-spacing: 0.06em; /* breathing room so the italic A doesn't collide with the D */
  text-transform: none;
}
.nav-brand .brand-sub { font-weight: 400; color: var(--text-2); letter-spacing: 0.16em; margin-left: 0.1em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li { position: relative; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-3);
  transition: color 0.2s ease;
  padding: 0.4rem 0;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--text); }

/* Copper underline that grows on hover */
.nav-links > li > a { position: relative; }
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* --- Services dropdown --- */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none; border: 0; cursor: pointer;
  font: inherit;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.nav-drop-btn:hover, .nav-drop-btn:focus-visible,
.nav-drop.open .nav-drop-btn { color: var(--text); }
.nav-drop-btn .caret {
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.nav-drop.open .caret { transform: rotate(225deg) translateY(-1px); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: var(--card);
  border: 1px solid var(--base-3);
  box-shadow: var(--shadow-lift);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out), visibility 0.22s;
}
.nav-drop.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 1.3rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
}
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--base-2); color: var(--text); }
.nav-drop-menu .code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--acc, var(--copper-ink)); /* each item sets --acc inline */
  width: 2.6em;
  flex: none;
}

/* --- Mobile hamburger --- */
.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- Mobile menu panel --- */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(250, 250, 247, 0.98);
  padding: 2rem var(--pad-x) 3rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s var(--ease-out);
}
.nav-mobile.open { opacity: 1; transform: translateY(0); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--base-3);
}
.nav-mobile .code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--acc, var(--copper-ink));
  width: 3em; flex: none;
}
.nav-mobile .nav-mobile-group {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 2rem 0 0.5rem;
}


/* ==========================================================================
   6. HERO
   --------------------------------------------------------------------------
   Bright imagery with a warm-white scrim rising from the bottom, so the
   dark hero text reads like print laid over the photograph — airy, not
   a dark overlay. A soft wash at the very top keeps the nav legible.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
/* Service pages use a shorter hero */
.hero--sub { min-height: 72svh; }

.hero-media {
  position: absolute;
  inset: -6% 0;         /* bleed for parallax travel */
  z-index: -2;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Readability scrim: warm white rising from the bottom + a top wash that
   keeps the dark nav text grounded over bright skies and windows */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top,
      rgba(250, 250, 247, 0.97) 0%,
      rgba(250, 250, 247, 0.78) 24%,
      rgba(250, 250, 247, 0.16) 52%,
      rgba(250, 250, 247, 0)    68%,
      rgba(250, 250, 247, 0.42) 88%,
      rgba(250, 250, 247, 0.72) 100%);
}

.hero-inner {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 7.5rem;
}
.hero--sub .hero-inner { padding-bottom: 6rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 1.2rem 0 1.4rem;
  max-width: 15ch;
  color: var(--text);
}
/* The one italic word in each hero headline takes the page's service accent
   (copper on home) — every page signs its headline in its own color. */
.hero-title .disp-i { color: var(--svc); }
.hero-sub {
  max-width: 46ch;
  color: var(--text-3);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2.4rem;
}

/* Keep hero text crisp where the scrim thins out over bright detail */
.hero-inner .ledger,
.hero-title,
.hero-sub { text-shadow: 0 1px 16px rgba(250, 250, 247, 0.8); }

/* The eyebrow sits highest, where the scrim is thinnest — the page-body
   muted gray disappears over photography, so it runs darker here. */
.hero-inner .ledger {
  color: #4A443A;
  text-shadow: 0 1px 3px rgba(250, 250, 247, 0.9), 0 1px 18px rgba(250, 250, 247, 0.85);
}

/* ==========================================================================
   DUSK HERO — home landing only (.hero--dusk on the section, .home-dusk on
   <body>). Emre's call 2026-07-16: white text over a dark evening scrim
   reads better on the NYC reel than dark-on-white. Every other page keeps
   the bright hero treatment. Doubled class on ::before so this survives
   the narrow-screen .hero::before override further down.
   ========================================================================== */
.hero.hero--dusk::before {
  background:
    linear-gradient(to top,
      rgba(16, 14, 11, 0.82) 0%,
      rgba(16, 14, 11, 0.55) 26%,
      rgba(16, 14, 11, 0.30) 52%,
      rgba(16, 14, 11, 0.10) 68%,
      rgba(16, 14, 11, 0.34) 88%,
      rgba(16, 14, 11, 0.58) 100%);
}
.hero--dusk .hero-inner .ledger {
  color: #E8DFD0;
  text-shadow: 0 1px 14px rgba(10, 10, 8, 0.6);
}
.hero--dusk .hero-title {
  color: #FFFFFF;
  text-shadow: 0 2px 26px rgba(10, 10, 8, 0.55);
}
.hero--dusk .hero-title .disp-i { color: var(--copper-hi); } /* bright copper on dark */
.hero--dusk .hero-sub {
  color: #EAE5DC;
  text-shadow: 0 1px 18px rgba(10, 10, 8, 0.6);
}
.hero--dusk .hero-strip {
  color: #D9D2C6;
  border-top-color: rgba(250, 250, 247, 0.22);
}
.hero--dusk .hero-strip .tick { color: var(--copper-hi); }
.hero--dusk .btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #FFFFFF; }
.hero--dusk .btn--ghost:hover,
.hero--dusk .btn--ghost:focus-visible { border-color: #FFFFFF; }

/* The fixed nav starts light over the dusk photograph and returns to its
   standard ink the moment it solidifies on scroll. */
.home-dusk .nav:not(.nav--solid) .nav-brand { color: #F5F1E8; }
.home-dusk .nav:not(.nav--solid) .nav-brand .brand-sub { color: #D5CEC1; }
/* Top-level links only (`> li > a`): the dropdown panel is a white card,
   so its items must keep their standard ink — they live inside .nav-links
   too and an unscoped selector turns them white-on-white. */
.home-dusk .nav:not(.nav--solid) .nav-links > li > a,
.home-dusk .nav:not(.nav--solid) .nav-drop-btn { color: #E9E3D7; }
.home-dusk .nav:not(.nav--solid) .nav-links > li > a:hover,
.home-dusk .nav:not(.nav--solid) .nav-links > li > a:focus-visible,
.home-dusk .nav:not(.nav--solid) .nav-links > li > a[aria-current="page"],
.home-dusk .nav:not(.nav--solid) .nav-drop-btn:hover,
.home-dusk .nav:not(.nav--solid) .nav-drop-btn:focus-visible { color: #FFFFFF; }
.home-dusk .nav:not(.nav--solid) .nav-burger span { background: #F5F1E8; }

/* Pages whose hero photograph is busy exactly where the text column sits
   (a figure or dark object on the left) add this class to the hero: it
   lays a warm-white column over the text side, on top of the bottom rise. */
.hero--veil-left::before {
  background:
    linear-gradient(97deg,
      rgba(250, 250, 247, 0.92) 0%,
      rgba(250, 250, 247, 0.72) 30%,
      rgba(250, 250, 247, 0.28) 52%,
      rgba(250, 250, 247, 0)    68%),
    linear-gradient(to top,
      rgba(250, 250, 247, 0.97) 0%,
      rgba(250, 250, 247, 0.78) 24%,
      rgba(250, 250, 247, 0.16) 52%,
      rgba(250, 250, 247, 0)    68%,
      rgba(250, 250, 247, 0.42) 88%,
      rgba(250, 250, 247, 0.72) 100%);
}

/* Consulting hero (Emre, 2026-07-17): the page read far too white. This
   variant shows more of the photograph — the left text veil releases
   sooner across the frame, and the bottom white rise holds clear until
   ~38% up, landing solid only at the seam into the paper section. */
.hero--veil-left.hero--fade-late::before {
  background:
    linear-gradient(97deg,
      rgba(250, 250, 247, 0.90) 0%,
      rgba(250, 250, 247, 0.66) 26%,
      rgba(250, 250, 247, 0.20) 46%,
      rgba(250, 250, 247, 0)    60%),
    linear-gradient(to top,
      rgba(250, 250, 247, 0.96) 0%,
      rgba(250, 250, 247, 0.55) 12%,
      rgba(250, 250, 247, 0.10) 26%,
      rgba(250, 250, 247, 0)    38%,
      rgba(250, 250, 247, 0)    68%,
      rgba(250, 250, 247, 0.42) 88%,
      rgba(250, 250, 247, 0.72) 100%);
}

/* CTA row wraps cleanly on narrow screens */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}


/* ==========================================================================
   7. BUTTONS & TEXT LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.btn .arr { transition: transform 0.25s var(--ease-out); }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(4px); }

.btn--solid {
  background: var(--copper-cta);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(162, 90, 27, 0.6);
}
.btn--solid:hover, .btn--solid:focus-visible { background: var(--copper); }

.btn--ghost {
  border-color: rgba(26, 26, 24, 0.3);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--text); }

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--copper-ink);
}
.link-arrow .arr { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .arr, .link-arrow:focus-visible .arr { transform: translateX(4px); }


/* ==========================================================================
   8. CONTENT SECTIONS
   --------------------------------------------------------------------------
   Two light registers give the page rhythm without ever going dark:
   .sec-paper — warm white (the default reading ground)
   .sec-well  — a slightly deeper warm tone for featured/contact blocks
   ========================================================================== */
.sec {
  padding: var(--sec-y) var(--pad-x);
}
.sec-inner {
  max-width: var(--content-w);
  margin: 0 auto;
}

.sec-paper {
  background: var(--base);
  color: var(--text);
}

.sec-well {
  background: var(--base-2);
  color: var(--text);
}

/* Section header row: eyebrow + heading + optional side note */
.sec-head { margin-bottom: 3rem; max-width: 62ch; }
.sec-head h2 { max-width: 24ch; }

/* Two-column split used in overview blocks */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Hairline divider with ledger label, used between major blocks */
.rule-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 auto;
  max-width: var(--content-w);
  padding: 0 var(--pad-x);
}
.rule-label::before, .rule-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--base-3);
}


/* ==========================================================================
   9. CARDS
   ========================================================================== */

/* --- Registration corners (survey-document motif, part of the signature).
       Add class .reg-corners to a card to get fine corner ticks. --- */
.reg-corners { position: relative; }
.reg-corners::before, .reg-corners::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--svc);
  border-style: solid;
  opacity: 0.9;
}
.reg-corners::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.reg-corners::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* --- Project / case-study card --- */
.proj-card {
  background: var(--card);
  border: 1px solid var(--base-3);
  box-shadow: var(--shadow-card);
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.proj-card .proj-body { padding: clamp(1.8rem, 4vw, 3.2rem); }
.proj-card .proj-media { position: relative; min-height: 300px; }
.proj-card .proj-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8);            /* quiet at rest… */
  transition: filter 0.5s ease;
}
.proj-card:hover .proj-media img { filter: none; } /* …full color on hover */
.proj-card .proj-media::after { /* blend image softly into the card edge */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%);
}
.proj-client {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin: 0.9rem 0 1rem;
}
.proj-desc { color: var(--text-2); font-size: var(--fs-small); max-width: 52ch; }

/* Stats strip inside project cards */
.proj-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.2rem 2rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--base-3);
}
.proj-stats .stat .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  display: block;
  margin-bottom: 0.35rem;
}
.proj-stats .stat .v { font-size: 0.9rem; font-weight: 600; }

/* --- Team cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--base-3);
  box-shadow: var(--shadow-card);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.8rem;
  align-items: start;
}
/* Photo slot: shows initials until a real <img> src is provided.
   TO ADD A REAL PHOTO: put the file in assets/images/ and set the img src;
   the initials sit behind the image and disappear once it loads. */
.team-photo {
  position: relative;
  width: 96px; height: 120px;
  background: var(--base-2);
  border: 1px solid var(--base-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-photo .initials {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--copper);
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-ink);
  display: block;
  margin: 0.2rem 0 0.9rem;
}
.team-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; margin-bottom: 0; }
.team-card p { font-size: var(--fs-small); color: var(--text-2); }

/* --- Certification slots (service pages) --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cert-slot {
  border: 1px dashed var(--base-3);
  background: var(--card);
  padding: 1.6rem 1.4rem;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.cert-slot .cert-name { font-weight: 600; font-size: var(--fs-small); }
.cert-slot .cert-org { font-size: 0.8rem; color: var(--text-2); }

/* --- Capability list (service pages overview) --- */
.cap-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
}
.cap-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--base-3);
  align-items: baseline;
}
.cap-list li:first-child { border-top: 1px solid var(--base-3); }
.cap-list .cap-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--svc);
}
.cap-list .cap-title { font-weight: 600; display: block; margin-bottom: 0.25rem; }
.cap-list .cap-desc { font-size: var(--fs-small); color: var(--text-2); }


/* ==========================================================================
   10. CONTACT
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}
.contact-meta { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-meta li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--base-3);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.contact-meta .k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.contact-meta a { color: var(--text); text-decoration: none; }
.contact-meta a:hover { color: var(--copper-ink); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form-field input,
.form-field textarea {
  background: var(--card);
  border: 1px solid var(--base-3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(180, 104, 42, 0.15);
}
.form-field textarea { resize: vertical; min-height: 140px; }


/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  background: var(--base-2);
  color: var(--text-2);
  border-top: 1px solid var(--base-3);
  padding: 3.5rem var(--pad-x) 2.5rem;
}
.footer-inner { max-width: var(--content-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--base-3);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { color: var(--text-2); text-decoration: none; font-size: var(--fs-small); transition: color 0.2s ease; }
.footer a:hover { color: var(--text); }
.footer-blurb { font-size: var(--fs-small); max-width: 36ch; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ==========================================================================
   12. ANIMATION BASE STATES
   --------------------------------------------------------------------------
   animations.js adds .js-anim to <html> only when GSAP loads AND the user
   allows motion. Without it, nothing below applies and content is visible.
   ========================================================================== */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}
.js-anim .hero [data-reveal] { transform: translateY(18px); }


/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .proj-card { grid-template-columns: 1fr; }
  .proj-card .proj-media { min-height: 240px; order: -1; }
  .proj-card .proj-media::after { background: linear-gradient(to top, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Narrow screens put more text over the image's midsection — thicken the scrim */
  .hero::before {
    background:
      linear-gradient(to top,
        rgba(250, 250, 247, 0.97) 0%,
        rgba(250, 250, 247, 0.85) 30%,
        rgba(250, 250, 247, 0.5)  58%,
        rgba(250, 250, 247, 0.18) 76%,
        rgba(250, 250, 247, 0.55) 100%);
  }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: block; visibility: hidden; pointer-events: none; }
  .nav-mobile.open { visibility: visible; pointer-events: auto; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .proj-stats { grid-template-columns: repeat(2, auto); }
  .hero-strip { flex-wrap: wrap; row-gap: 0.4rem; }
  .hero-strip span:nth-child(n+3) { display: none; } /* keep the strip one line on small screens */
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .team-card { grid-template-columns: 1fr; }
  .team-photo { width: 84px; height: 104px; }
  .cert-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 6rem; }
}


/* ==========================================================================
   14. ACCESSIBILITY
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--copper-ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px; left: 1rem;
  z-index: 200;
  background: var(--copper-cta);
  color: #fff;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Screen-reader-only headings (used by the services story section) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* JS also checks this and never hides content, but belt-and-braces: */
  .js-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
}
