/* ═══════════════════════════════════════════════════════════════
   STRONG BUILT · MINIMALIST DARK THEME
   Single source of truth for tokens + shared primitives.
   Hand-authored pages link this file via <link rel="stylesheet">.
   No build step; no Tailwind dependency.

   Includes:
     1. Design tokens (:root custom properties)
     2. Reset + base
     3. Typography
     4. Ambient textures (noise overlay + orbs)
     5. Layout primitives (.md-container, .md-reveal)
     6. Inline primitives (.md-eyebrow, .md-badge, .md-mono)
     7. Buttons (.md-btn, .md-btn-primary, .md-btn-secondary,
                 .md-btn-ghost, .md-btn-lg)
     8. Header + Nav + Dropdown + Drawer
     9. Footer (2-column: brand + contact card) + bottom strip
    10. Floating action (.md-fab)
   ═══════════════════════════════════════════════════════════════ */

/* ───── 1. DESIGN TOKENS ───── */
:root {
  /* Palette — pitch-black canvas + warm amber.
     Cards have no fill contrast against the page; they're defined
     entirely by their borders. Hover states light up amber. */
  --bg:                #000000;
  --bg-alt:            #000000;
  --muted:             #000000;
  --fg:                #FAFAFA;
  --fg-muted:          #B4B4BE;
  --fg-subtle:         #8A8A95;
  --accent:            #F59E0B;
  --accent-hover:      #FFB526;
  --accent-foreground: #000000;
  --accent-muted:      rgba(245, 158, 11, 0.15);
  --border:            rgba(255, 255, 255, 0.18);
  --border-hover:      rgba(245, 158, 11, 0.7);
  --card:              #000000;
  --card-solid:        #000000;

  /* Shadows + amber glows (signature) */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl:   0 20px 25px rgba(0, 0, 0, 0.4);
  --glow-sm:     0 0 20px rgba(245, 158, 11, 0.15);
  --glow-md:     0 0 40px rgba(245, 158, 11, 0.2);
  --glow-lg:     0 0 60px rgba(245, 158, 11, 0.25);
  --glow-btn:    0 0 20px rgba(245, 158, 11, 0.4);
  --border-glow: 0 0 0 1px rgba(245, 158, 11, 0.3),
                 0 0 20px rgba(245, 158, 11, 0.15);

  /* Radii */
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Type scale */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.25rem;
  --t-2xl:  1.5rem;
  --t-3xl:  2rem;
  --t-4xl:  2.5rem;
  --t-5xl:  3.5rem;
  --t-6xl:  4.5rem;
  --t-7xl:  6rem;

  /* Spacing */
  --section-y:     clamp(5rem, 10vw, 10rem);
  --container-max: 1680px;
  --container-pad: clamp(1rem, 3.5vw, 3rem);

  /* Header height (used by sticky offsets) */
  --header-h:       5.5rem;
  --header-h-lg:    6.75rem;
  --header-h-xl:    7.75rem;

  /* Transitions */
  --ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast:    160ms;
  --t-base-ms: 220ms;
  --t-slow:    320ms;

  /* Font stacks */
  --font-display: 'Oswald', 'Barlow Condensed', Impact, sans-serif;
  --font-heading: 'Barlow Condensed', 'Oswald', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-label:   'Barlow Condensed', sans-serif;

  /* ───────────────────────────────────────────────────────────
     FLUID TYPE SCALE (semantic, clamp-based)
     Use these on headings instead of raw --t-*.
     Sizes scale smoothly 375px → 1920px.
     ─────────────────────────────────────────────────────────── */
  --text-display-xl: clamp(3rem, 8vw, 7rem);                  /* 48 → 112px · hero H1 (every page) */
  --text-display-lg: clamp(2.5rem, 6vw, 5rem);                /* 40 → 80px · dramatic page H1 (future use) */
  --text-display-md: clamp(2.25rem, 5vw, 4rem);               /* 36 → 64px · major section H2 */
  --text-h1:         clamp(2rem, 4.5vw, 3.25rem);             /* 32 → 52px · nested section H2 */
  --text-h2:         clamp(1.75rem, 3.5vw, 2.5rem);           /* 28 → 40px · card/sub-section title */
  --text-h3:         clamp(1.4rem, 2.4vw, 2rem);              /* 22 → 32px · small block heading */
  --text-h4:         clamp(1.125rem, 1.5vw, 1.375rem);        /* 18 → 22px · minor heading */
  --text-body-lg:    1.125rem;   /* 18px · lead paragraphs */
  --text-body:       1rem;       /* 16px · default */
  --text-body-sm:    0.9375rem;  /* 15px · card copy */
  --text-caption:    0.875rem;   /* 14px · metadata */
  --text-micro:      0.75rem;    /* 12px · legal */

  /* Line heights */
  --leading-display: 1.05;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-body:    1.6;
  --leading-relaxed: 1.75;

  /* Letter-spacing */
  --tracking-display: -0.02em;
  --tracking-heading: -0.01em;
  --tracking-normal:  0;
  --tracking-eyebrow: 0.12em;

  /* Font weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Vertical-rhythm section padding — pick one per section */
  --section-y-sm: clamp(3rem, 6vw, 5rem);    /* 48 → 80px · dense strips */
  --section-y-md: clamp(4rem, 8vw, 7rem);    /* 64 → 112px · default */
  --section-y-lg: clamp(5rem, 10vw, 9rem);   /* 80 → 144px · hero / feature */

  /* Prose container cap — body paragraphs should never exceed this */
  --container-prose: 68ch;
}

/* ───────────────────────────────────────────────────────────
   SEMANTIC TYPOGRAPHY UTILITIES
   Apply on headings/paragraphs instead of hand-rolled sizes.
   Keeps hierarchy consistent across pages.
   ─────────────────────────────────────────────────────────── */
.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}
.t-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}
.t-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}
.t-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}
.t-h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  line-height: var(--leading-snug);
  font-weight: var(--weight-semibold);
}
.t-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  color: var(--fg-muted);
}
.t-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--fg-muted);
}
.t-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body);
  color: var(--fg-muted);
}
.t-caption {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  line-height: var(--leading-snug);
  color: var(--fg-subtle);
}
.t-micro {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  line-height: var(--leading-snug);
  color: var(--fg-subtle);
}

/* Prose cap — apply to any <p>/wrapper holding long-form copy */
.md-prose { max-width: var(--container-prose); }

/* Section-rhythm helpers */
.md-section-sm { padding-block: var(--section-y-sm); position: relative; }
.md-section-md { padding-block: var(--section-y-md); position: relative; }
.md-section-lg { padding-block: var(--section-y-lg); position: relative; }

/* ───── 2. RESET + BASE ───── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--accent); color: var(--accent-foreground); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

/* Accessible focus ring (amber, brand-coherent) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.md-btn:focus-visible,
.md-nav-link:focus-visible,
a:focus-visible { outline: none; }
.md-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ───── 3. TYPOGRAPHY ───── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--fg);
  text-transform: uppercase;
  margin: 0;
}
.md-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1;
  text-transform: uppercase;
}
.md-mono {
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.md-accent { color: var(--accent); }
.md-italic-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* ───── 4. AMBIENT TEXTURES ───── */
/* Attach noise layer to body via ::before on pages that opt in
   (we guard behind .md-atmospheric on body so pages without the
   theme don't get unwanted background pseudo-elements). */
body.md-atmospheric::before,
body::before[data-md-noise] {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.015;
}

/* Simpler — always-on subtle noise via a utility element pages can drop in */
.md-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.md-orb {
  display: none !important;
}

/* ───── 5. LAYOUT PRIMITIVES ───── */
.md-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  z-index: 1;
}

.md-section { padding-block: var(--section-y); position: relative; }

.md-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.md-reveal.is-visible { opacity: 1; transform: none; }

/* Word-mask reveal for hero text (optional use) */
.md-word-mask { display: inline-block; overflow: hidden; }
.md-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.md-reveal.is-visible .md-word { transform: none; }

/* ───── 6. INLINE PRIMITIVES ───── */
.md-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.md-eyebrow-accent { color: var(--accent); }
.md-eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.md-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--card-solid);
}
.md-badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  animation: md-pulse 2.2s ease-in-out infinite;
}
@keyframes md-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.25); }
}

/* ───── 7. BUTTONS ───── */
.md-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-base-ms) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.md-btn:active { transform: scale(0.98); }
.md-btn-lg { padding: 1rem 1.75rem; font-size: 0.9rem; }

.md-btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
}
.md-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--glow-btn);
  transform: translateY(-1px);
}

.md-btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-hover);
}
.md-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
}

.md-btn-ghost {
  background: transparent;
  color: var(--fg);
  padding-inline: 0.25rem;
}
.md-btn-ghost:hover { color: var(--accent); }

/* Icon button (small circular) */
.md-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all var(--t-base-ms);
}
.md-icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ───── 8. HEADER + NAV + DROPDOWN + DRAWER ───── */
.md-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow), border-color var(--t-slow);
}
.md-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border-hover);
}
.md-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .md-header-inner { padding: 0 2.5rem; height: var(--header-h-lg); }
}
@media (min-width: 1280px) {
  .md-header-inner { padding: 0 3.5rem; height: var(--header-h-xl); }
}

.md-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
/* Unified logo size — scales up at each breakpoint. Header
   heights bump together so the logo has room. !important wins
   against per-page overrides in index.html / projects.html /
   map.html / etc., so every page renders the same size logo. */
.md-logo img {
  height: 4rem !important;
  width: auto !important;
  display: block;
  transition: filter var(--t-base-ms), opacity var(--t-base-ms);
}
@media (min-width: 1024px) {
  .md-logo img { height: 4.5rem !important; }
}
@media (min-width: 1280px) {
  .md-logo img { height: 5rem !important; }
}
@media (min-width: 1680px) {
  .md-logo img { height: 5.5rem !important; }
}
.md-logo:hover img { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35)); opacity: 0.9; }

.md-nav {
  display: none;
  gap: 0.25rem;
  align-items: center;
}
@media (min-width: 1024px) { .md-nav { display: flex; } }
@media (min-width: 1280px) { .md-nav { gap: 0.5rem; } }

.md-nav-item { position: relative; }
.md-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: transparent;
  border-radius: var(--r-md);
  transition: color var(--t-base-ms), background var(--t-base-ms);
  cursor: pointer;
}
@media (min-width: 1280px) {
  .md-nav-link { font-size: 0.9rem; padding: 0.5rem 0.875rem; }
}
.md-nav-link:hover,
.md-nav-item:hover .md-nav-link,
.md-nav-link:focus-visible { color: var(--fg); }
.md-nav-link.is-active { color: var(--accent); }
.md-nav-link:focus-visible { outline: none; color: var(--accent); }
.md-nav-link i.fa-chevron-down {
  font-size: 0.7em;
  transition: transform var(--t-base-ms);
}
.md-nav-item:hover .md-nav-link i.fa-chevron-down,
.md-nav-link[aria-expanded="true"] i.fa-chevron-down { transform: rotate(180deg); }

.md-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 13rem;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-base-ms) var(--ease-out);
}
.md-nav-item:hover .md-nav-dropdown,
.md-nav-item:focus-within .md-nav-dropdown,
.md-nav-link[aria-expanded="true"] + .md-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.md-nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-radius: var(--r-sm);
  transition: color 180ms, background 180ms;
}
.md-nav-dropdown a:hover {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.06);
}
.md-nav-dropdown a i {
  font-size: 0.8em;
  color: var(--accent);
  width: 1rem;
}

/* !important wins over .md-btn { display: inline-flex } that also targets this element */
.md-header-cta { display: none !important; }
@media (min-width: 1024px) { .md-header-cta { display: inline-flex !important; } }

.md-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border-hover);
  transition: all var(--t-base-ms);
  cursor: pointer;
}
.md-menu-btn:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 1024px) { .md-menu-btn { display: none; } }

/* Drawer */
.md-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.md-drawer.is-open { visibility: visible; pointer-events: auto; }
.md-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.md-drawer.is-open .md-drawer-backdrop { opacity: 1; }
.md-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(22rem, 88vw);
  background: var(--bg);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.5rem 1.25rem 1.25rem;
  transform: translateX(100%);
  transition: transform var(--t-slow) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Drawer close button — borderless, icon-only. ID selector beats
   any per-page `.md-menu-btn` override, so the cross looks
   consistent on every page. */
#drawerClose {
  background: transparent !important;
  border: none !important;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  border-radius: var(--r-md);
  transition: background 200ms, color 200ms, transform 200ms;
}
#drawerClose i { font-size: 1.05rem; line-height: 1; }
#drawerClose:hover,
#drawerClose:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--accent) !important;
  border: none !important;
  outline: none;
  transform: rotate(90deg);
}
.md-drawer.is-open .md-drawer-panel { transform: none; }
.md-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.md-drawer-header img { height: 3.5rem !important; width: auto !important; }
.md-drawer-eyebrow {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.md-drawer-eyebrow::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
}
.md-drawer nav { display: flex; flex-direction: column; gap: 0.1rem; }
.md-drawer-link,
.md-drawer-dropbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.75rem 0.85rem 0.9rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 200ms, color 200ms;
  text-align: left;
}
.md-drawer-link > i,
.md-drawer-dropbtn > i:first-child {
  font-size: 0.9rem;
  width: 1.15rem;
  color: var(--fg-subtle);
  transition: color 200ms;
}
.md-drawer-dropbtn { justify-content: flex-start; }
.md-drawer-dropbtn .chev {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--fg-subtle);
  transition: transform 300ms, color 200ms;
}
.md-drawer-link:hover,
.md-drawer-dropbtn:hover {
  background: rgba(245, 158, 11, 0.06);
  color: var(--accent);
}
.md-drawer-link:hover > i,
.md-drawer-dropbtn:hover > i:first-child,
.md-drawer-dropbtn:hover .chev { color: var(--accent); }
.md-drawer-link.is-active {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent);
}
.md-drawer-link.is-active > i { color: var(--accent); }
.md-drawer-link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.5rem;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.md-drawer-dropbtn.is-open { color: var(--accent); }
.md-drawer-dropbtn.is-open > i:first-child,
.md-drawer-dropbtn.is-open .chev { color: var(--accent); }
.md-drawer-dropbtn.is-open .chev { transform: rotate(180deg); }
.md-drawer-sub {
  max-height: 0;
  overflow: hidden;
  padding-left: 2.6rem;
  transition: max-height 350ms ease;
}
.md-drawer-sub.is-open { max-height: 20rem; }
.md-drawer-sub a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-radius: var(--r-sm);
  transition: color 200ms, background 200ms;
}
.md-drawer-sub a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--border-hover);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 200ms;
}
.md-drawer-sub a:hover,
.md-drawer-sub a.is-active { color: var(--accent); background: rgba(245, 158, 11, 0.05); }
.md-drawer-sub a:hover::before,
.md-drawer-sub a.is-active::before { background: var(--accent); }

/* Drawer CTA + footer */
.md-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.25rem 0.5rem 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--accent);
  color: #000000;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: box-shadow 200ms, transform 200ms;
}
.md-drawer-cta:hover {
  box-shadow: 0 10px 30px -8px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}
.md-drawer-foot {
  margin-top: auto;
  padding: 1.25rem 0.5rem 0;
  border-top: 1px solid var(--border);
}
.md-drawer-foot-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 0.85rem;
}
.md-drawer-foot-socials { display: flex; gap: 0.55rem; margin-bottom: 1rem; }
.md-drawer-foot-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.md-drawer-foot-contact a {
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 200ms;
}
.md-drawer-foot-contact a i { color: var(--accent); width: 0.9rem; font-size: 0.75rem; }
.md-drawer-foot-contact a:hover { color: var(--accent); }

/* Shared social-button utility */
.md-social-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border-hover);
  color: var(--fg-muted);
  transition: all var(--t-base-ms);
}
.md-social-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ───── 9. FOOTER ───── */
.md-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.md-footer .md-container {
  padding-block: clamp(2.5rem, 4vw, 3.5rem) 0;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER — Vertical Lines / Editorial design
   4 columns separated by hairline dividers: Brand · Address ·
   Reach · Hours. Brand column shows logo + simple tagline.
   ───────────────────────────────────────────────────────────── */
.md-footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (min-width: 720px) {
  .md-footer-top {
    grid-template-columns: 1fr 1.4fr 1fr 1fr;
    gap: 0;
    align-items: start;
  }
}

/* Brand column */
.md-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.md-footer-brand > a { display: inline-block; line-height: 0; }
.md-footer-logo {
  height: clamp(76px, 7vw, 104px) !important;
  width: auto !important;
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.2));
}
.md-footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}
.md-footer-tagline em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

/* Each contact column. Vertical hairlines on inside edges. */
.md-fc-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.md-fc-item:last-of-type { border-right: 0; padding-right: 0; }
@media (max-width: 719px) {
  .md-fc-item {
    padding: 1.5rem 0 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .md-fc-item:first-of-type { padding-top: 1.5rem; }
}
@media (min-width: 720px) {
  /* The brand col gets a right-edge hairline too */
  .md-footer-brand { padding-right: 2rem; border-right: 1px solid rgba(255, 255, 255, 0.1); }
}

.md-fc-k {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.md-fc-k::before {
  content: '—';
  color: var(--accent);
  font-weight: 400;
}
.md-fc-k i { font-size: 0.7rem; display: none; }   /* hide old fa-icons in K labels */
.md-fc-v {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin: 0;
  text-decoration: none;
  display: block;
  transition: color var(--t-base-ms);
}
a.md-fc-v:hover { color: var(--accent); }
p.md-fc-v { color: rgba(255, 255, 255, 0.75); }
.md-fc-v + .md-fc-v { margin-top: 0.15rem; }

/* Bottom strip — Copyright | Designed by | Socials */
.md-footer-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
.md-footer-strip-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.md-footer-strip-center {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  justify-self: center;
}
.md-footer-strip-center strong {
  color: var(--accent);
  font-weight: 600;
}
.md-footer-strip-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.md-footer-socials { display: flex; gap: 0.5rem; }
.md-footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  transition: color 200ms, border-color 200ms;
}
.md-footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.md-footer-strip-links { display: flex; gap: 1rem; }
.md-footer-strip-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--t-base-ms);
}
.md-footer-strip-links a:hover { color: var(--accent); }

@media (max-width: 899px) {
  .md-footer-strip {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.8rem;
  }
  .md-footer-strip-left,
  .md-footer-strip-right { justify-self: center; }
}

/* ───── 10. FLOATING ACTION ───── */
.md-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.md-fab a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  color: var(--fg);
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: all var(--t-base-ms);
}
.md-fab a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
  box-shadow: var(--glow-btn);
}

/* ───── Utility: glass card primitive ───── */
.md-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all var(--t-slow) var(--ease-out);
}
.md-card-interactive:hover {
  border-color: var(--border-hover);
  background: var(--card-solid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.md-card-highlighted {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: var(--border-glow);
}

/* ───── Utility: section head ───── */
.md-section-head {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}
.md-section-head.md-center {
  margin-inline: auto;
  text-align: center;
}
.md-section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 1rem 0 1.25rem;
}
.md-section-head p {
  color: var(--fg-muted);
  font-size: var(--t-lg);
  line-height: 1.65;
  margin: 0;
}
