/* ============================================================
   AES Integration — Design System  ·  Theme: Midnight Brass
   ============================================================ */

/* Fonts are loaded via <link> in each page's <head> (faster than @import). */

:root {
  /* ---- Midnight Brass palette ---- */
  --ink:        #0A1622;   /* page background */
  --ink-2:      #081019;   /* deepest */
  --surface:    #0F1F30;   /* raised sections */
  --surface-2:  #15293c;   /* cards */
  --surface-3:  #1c354b;   /* hover / inputs */
  --text:       #EAF1F8;
  --text-soft:  #C3D2E0;
  --muted:      #8197AB;
  --accent:     #C99A3C;   /* brass */
  --accent-2:   #E0B85C;   /* brass glow */
  --accent-deep:#9d7726;
  --accent-ink: #16110A;   /* text on brass */
  --line:       rgba(255,255,255,.10);
  --line-soft:  rgba(255,255,255,.06);
  --line-strong:rgba(255,255,255,.18);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;

  --wrap: 1200px;
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-pill: 999px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.7);
  --shadow-brass: 0 18px 50px -18px rgba(201,154,60,.45);
  --shadow-lift: 0 34px 60px -24px rgba(0,0,0,.72), 0 12px 26px -12px rgba(201,154,60,.36);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* subtle atmospheric grain over the whole page */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 3px 3px; opacity: .5; mix-blend-mode: overlay;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.alt { background: var(--surface); }
.section.deep { background: var(--ink-2); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-sm { max-width: 560px; } .maxw-md { max-width: 720px; } .maxw-lg { max-width: 860px; }

/* ============================================================
   Typography
   ============================================================ */
.eyebrow {
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.eyebrow .eq { flex: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.07; letter-spacing: -.02em; color: var(--text); }
.h1, h1.display { font-size: clamp(34px, 5.4vw, 66px); }
h1 { font-size: clamp(32px, 4.6vw, 56px); }
h2 { font-size: clamp(27px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 18.5px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-soft); line-height: 1.6; }
p { color: var(--text-soft); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
em.accent, .accent em { font-style: normal; color: var(--accent); }
strong { color: var(--text); font-weight: 700; }
.scripture { font-style: italic; color: var(--text); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), filter .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  position: relative; white-space: nowrap;
}
.arr { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: middle; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-brass); }
.btn--primary:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--text { padding: 0; color: var(--accent); font-weight: 700; font-size: 15px; }
.btn--text:hover { color: var(--accent-2); }
.btn--lg { padding: 18px 32px; font-size: 16.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============================================================
   Equalizer motif (audio identity)
   ============================================================ */
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; border-radius: 1px; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(1){ animation-delay: 0s; } .eq i:nth-child(2){ animation-delay: .18s; }
.eq i:nth-child(3){ animation-delay: .36s; } .eq i:nth-child(4){ animation-delay: .12s; }
.eq i:nth-child(5){ animation-delay: .30s; }
@keyframes eq { 0%,100% { transform: scaleY(.25);} 50% { transform: scaleY(1);} }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(8,16,25,.55); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, height .3s;
}
.site-header.scrolled { background: rgba(7,14,22,.92); border-bottom-color: var(--line); height: 66px; }
.site-header .wrap { display: flex; align-items: center; gap: 22px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(201,154,60,.7);
  transition: transform .3s var(--ease);
}
.logo:hover .logo__mark { transform: translateY(-2px) rotate(-3deg); }
.logo__mark svg { width: 26px; height: 26px; display: block; }
.logo__bars rect { transform-origin: bottom; }
.logo:hover .logo__bars rect { animation: eq 1s ease-in-out infinite; }
.logo:hover .logo__bars rect:nth-child(2){ animation-delay:.15s; }
.logo:hover .logo__bars rect:nth-child(3){ animation-delay:.3s; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .01em; color: var(--text); }
.logo__name b { color: var(--accent); font-weight: 700; }
.logo__sub { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text-soft);
  padding: 9px 12px; border-radius: 8px; position: relative; transition: color .2s; white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); border-radius: 2px;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent); }
.nav-cta { margin-left: 10px; }

/* Hamburger */
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: transparent; cursor: pointer; margin-left: auto;
  position: relative; flex: none;
}
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
body.menu-open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; padding: 90px 32px 40px;
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s, transform .35s, visibility .35s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-family: var(--font-display); font-size: clamp(24px, 7vw, 36px); font-weight: 600;
  color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateX(-16px);
}
body.menu-open .drawer a { animation: drawerIn .5s var(--ease) forwards; }
.drawer a:nth-child(1){ animation-delay:.06s;} .drawer a:nth-child(2){ animation-delay:.12s;}
.drawer a:nth-child(3){ animation-delay:.18s;} .drawer a:nth-child(4){ animation-delay:.24s;}
.drawer a:nth-child(5){ animation-delay:.3s;} .drawer a:nth-child(6){ animation-delay:.36s;}
.drawer a:nth-child(7){ animation-delay:.42s;} .drawer a:nth-child(8){ animation-delay:.48s;}
.drawer a .arr { color: var(--accent); }
.drawer a.active { color: var(--accent); }
.drawer .drawer-cta { margin-top: 28px; }
.drawer .drawer-cta .btn { width: 100%; justify-content: center; }
@keyframes drawerIn { to { opacity: 1; transform: none; } }

/* Scrim behind the menu (dims page, click to close) */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,10,16,.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
body.menu-open .drawer-scrim { opacity: 1; visibility: visible; pointer-events: auto; }

/* ≥600px: compact dropdown panel anchored top-right instead of full-screen */
@media (min-width: 600px) {
  .drawer-scrim { background: rgba(5,10,16,.4); }
  .drawer {
    inset: auto;
    top: calc(var(--header-h) - 10px);
    right: 28px;
    width: min(264px, calc(100vw - 56px));
    padding: 7px;
    gap: 1px;
    justify-content: flex-start;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    transform: translateY(-12px) scale(.97);
    transform-origin: top right;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-header.scrolled ~ .drawer { top: 58px; }
  .drawer a {
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    padding: 8px 12px; border-radius: 7px; border-bottom: none;
    transition: background .18s, color .18s;
  }
  .drawer a:hover { background: var(--surface-2); color: var(--accent); }
  .drawer a .arr { width: 14px; height: 14px; opacity: .5; }
  .drawer a:hover .arr { opacity: 1; }
  .drawer .drawer-cta { margin-top: 6px; padding: 3px; }
  .drawer .drawer-cta .btn { padding: 10px 18px; font-size: 13.5px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; padding-top: var(--header-h); }
.hero--page { min-height: 70vh; }
.hero__media { position: absolute; inset: -4%; z-index: 0; }
.hero__media .photo { position: absolute; inset: 0; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0,0);} to { transform: scale(1.1) translate(-1.5%,-1%);} }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,16,26,.94) 0%, rgba(8,16,26,.7) 42%, rgba(8,16,26,.25) 75%, rgba(8,16,26,.5) 100%),
              linear-gradient(0deg, rgba(8,16,26,.85) 0%, transparent 45%); }
.hero__glow { position: absolute; z-index: 1; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 62%); opacity: .14; filter: blur(12px); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity:.11;} 50% { transform: scale(1.12); opacity:.2;} }
.hero__inner { position: relative; z-index: 2; padding: clamp(40px,6vw,90px) 0 clamp(56px,7vw,96px); max-width: 760px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 600px; margin-bottom: 32px; }

/* floating stat card in hero */
.hero__stat { position: absolute; right: 0; bottom: clamp(56px,7vw,96px); z-index: 2;
  background: rgba(8,16,26,.5); backdrop-filter: blur(10px); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 26px; text-align: right; box-shadow: var(--shadow); }
.hero__stat .big { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--accent); line-height: 1; }
.hero__stat .lbl { font-size: 12.5px; color: var(--text-soft); margin-top: 8px; letter-spacing: .03em; }

/* ============================================================
   Brand ticker
   ============================================================ */
.ticker { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; padding: 16px 0; overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 24px; }
.ticker .lead-lbl { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; flex: none; }
.ticker__vp { overflow: hidden; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker__track { display: flex; gap: 38px; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: .06em; color: var(--muted); transition: color .2s; }
.ticker__track span:hover { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ============================================================
   Section headers
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head p { margin-top: 16px; font-size: 18px; }
.app-head { margin-top: clamp(56px, 7vw, 96px); }

/* ============================================================
   Grids & Cards
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background .3s; position: relative; overflow: hidden; will-change: transform; }
.card:hover { transform: translateY(-14px) scale(1.022); border-color: rgba(201,154,60,.45); box-shadow: var(--shadow-lift); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(201,154,60,.12); color: var(--accent); margin-bottom: 18px; transition: background .3s, transform .3s; }
.card:hover .card__icon { background: var(--accent); color: var(--accent-ink); transform: scale(1.05); }
.card__icon svg { width: 24px; height: 24px; }
.card h4, .card h3 { margin-bottom: 9px; }
.card p { font-size: 15px; color: var(--muted); }
.card .more { margin-top: 18px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14.5px; color: var(--accent); }
.card .more .arr { transition: transform .25s var(--ease); }
.card:hover .more .arr { transform: translateX(4px); }
.card .more + .more { margin-left: 18px; }

/* service card with photo */
.scard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; display: flex; flex-direction: column; will-change: transform; }
.scard:hover { transform: translateY(-14px) scale(1.022); border-color: rgba(201,154,60,.45); box-shadow: var(--shadow-lift); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease); }
.scard__pic { aspect-ratio: 16/10; flex: 0 0 auto; min-height: 180px; position: relative; overflow: hidden; }
.scard__pic .photo { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.scard:hover .scard__pic .photo { transform: scale(1.06); }
.scard__body { padding: 24px; flex: 1 0 auto; display: flex; flex-direction: column; }
.scard__body h4, .scard__body h3 { margin-bottom: 8px; }
.scard__body p { font-size: 14.5px; color: var(--muted); }
.scard__links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; }
.scard__links a { font-weight: 700; font-size: 14px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.scard__links a .arr { transition: transform .25s var(--ease); }
.scard__links a:hover .arr { transform: translateX(4px); }

/* ============================================================
   Photo placeholders
   ============================================================ */
.photo { background: linear-gradient(135deg, var(--surface-3), var(--ink-2)); position: relative; overflow: hidden; }
/* When a real <img> is dropped inside a .photo, it fills the frame and the placeholder UI hides */
.photo > img, .photo > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 2; }
.photo:has(> img)::before, .photo:has(> img)::after, .photo:has(> img) .cam,
.photo:has(> video)::before, .photo:has(> video)::after, .photo:has(> video) .cam { display: none; }
.photo::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,154,60,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,154,60,.06) 1px, transparent 1px);
  background-size: 28px 28px; }
.photo::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: rgba(195,210,224,.5); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 16px; text-align: center; }
.photo .cam { position: absolute; left: 50%; top: calc(50% - 20px); transform: translate(-50%,-50%); width: 30px; height: 30px; color: rgba(201,154,60,.5); }
/* shimmer sweep */
.photo .sweep { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.07) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 6s ease-in-out infinite; }
@keyframes sweep { 0%,60% { transform: translateX(-100%);} 85%,100% { transform: translateX(100%);} }

/* ============================================================
   Photo credit — corner caption that expands on hover / tap
   ============================================================ */
.pcredit {
  position: absolute; z-index: 4; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  max-width: min(80%, 360px); font-family: var(--font-body); text-align: right;
}
.hero .pcredit { right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vw, 40px); }
.pcredit__tag {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(10,16,26,.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(201,154,60,.42); color: #EAF1F8;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.65); transition: border-color .25s, background .25s;
  order: 2;
}
.pcredit__tag:hover { border-color: rgba(201,154,60,.8); background: rgba(10,16,26,.85); }
.pcredit__tag svg { width: 13px; height: 13px; color: var(--accent); flex: none; }
.pcredit__detail {
  order: 1; max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  background: rgba(10,16,26,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,154,60,.32); border-radius: 13px;
  color: #C8D6E4; font-size: 12.5px; line-height: 1.5; padding: 0 15px;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.72);
  transition: max-height .42s var(--ease), opacity .3s var(--ease), padding .42s var(--ease);
}
.pcredit:hover .pcredit__detail, .pcredit:focus-within .pcredit__detail, .pcredit.open .pcredit__detail {
  max-height: 200px; opacity: 1; pointer-events: auto; padding: 13px 15px;
}
.pcredit__detail b { color: #EAF1F8; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .pcredit__detail { transition: opacity .2s; }
}

/* ============================================================
   Feature lists (icon + text)
   ============================================================ */
.flist { list-style: none; display: grid; gap: 16px; }
.flist li { display: flex; gap: 14px; align-items: flex-start; }
.flist .ico { flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(201,154,60,.12); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.flist .ico svg { width: 17px; height: 17px; }
.flist b { color: var(--text); }
.flist p, .flist span { color: var(--text-soft); font-size: 15.5px; }
.flist--check li .ico { border-radius: 50%; }

/* numbered steps */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: flex; gap: 20px; padding: 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.step:hover { border-color: rgba(201,154,60,.4); transform: translateX(4px) translateY(-7px); box-shadow: var(--shadow-lift); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease); }
.step__n { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(201,154,60,.12); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }

/* ============================================================
   Split (text + media)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--media-left .split__media { order: -1; }
.split__media .photo { width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg); border: 1px solid var(--line); }

/* ============================================================
   Care Plan card
   ============================================================ */
.careplan { background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid rgba(201,154,60,.3); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.careplan::before { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(201,154,60,.18), transparent 65%); }
.careplan .eyebrow { color: var(--accent-2); }

/* ============================================================
   Stats row
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 22px; }
.stat-b { text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.stat-b .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); color: var(--accent); line-height: 1; }
.stat-b .lbl { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ============================================================
   Featured project (spotlight)
   ============================================================ */
.spotlight { background: var(--ink-2); }
.spotlight__hero { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; }
.spotlight__hero .photo { position: absolute; inset: 0; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery .photo { aspect-ratio: 1; border-radius: var(--r-sm); border: 1px solid var(--line); }
.gallery .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* highlight list with check icons inside spotlight */
.hl-list { list-style: none; display: grid; gap: 14px; }
.hl-list li { display: flex; gap: 13px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.hl-list .ico { flex: none; color: var(--accent); margin-top: 3px; }
.hl-list b { color: var(--text); }
.hl-list span { color: var(--text-soft); font-size: 15.5px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band--brass { background: linear-gradient(135deg, var(--accent-2), var(--accent) 50%, var(--accent-deep)); color: var(--accent-ink); }
.cta-band--brass h2, .cta-band--brass .eyebrow { color: var(--accent-ink); }
.cta-band--brass p { color: rgba(22,17,10,.82); }
.cta-band--brass .btn--primary { background: var(--accent-ink); color: var(--accent-2); box-shadow: none; }
.cta-band--brass .btn--ghost { border-color: rgba(22,17,10,.4); color: var(--accent-ink); }
.cta-band--brass .btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: rgba(22,17,10,.06); }
.cta-band--deep { background: var(--ink-2); }
.cta-band .eq-deco { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; align-items: flex-end; height: 120px; opacity: .25; }
.cta-band .eq-deco i { width: 8px; background: currentColor; border-radius: 3px; transform-origin: bottom; animation: eq 1.4s ease-in-out infinite; }
.cta-band .eq-deco i:nth-child(odd){ animation-delay:.2s;} .cta-band .eq-deco i:nth-child(3n){ animation-delay:.5s;}

/* CTA themed motifs (one identity per page) */
.cta-band .cta-motif { position: absolute; right: 5.5%; top: 50%; transform: translateY(-50%); width: 94px; height: 94px; color: var(--accent-ink); opacity: .26; pointer-events: none; }
.cta-band .cta-motif svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cta-motif [class^="m-"] { transform-box: fill-box; }
.cta-motif .m-wave { transform-origin: left center; animation: mWave 2.6s ease-out infinite; }
.cta-motif .m-w2 { animation-delay: .55s; }
.cta-motif .m-glow { animation: mGlow 2.6s ease-in-out infinite; }
.cta-motif .m-g2 { animation-delay: .45s; } .cta-motif .m-g3 { animation-delay: .9s; }
.cta-motif .m-blink { animation: mBlink 2.1s steps(1, end) infinite; }
.cta-motif .m-bob { animation: mBob 2.4s ease-in-out infinite; }
.cta-motif .m-flow { animation: mFlowY 1.9s linear infinite; }
.cta-motif .m-f2 { animation-delay: .95s; }
.cta-motif .m-pan { transform-origin: 42% 50%; animation: mPan 4.4s ease-in-out infinite; }
@keyframes mWave { 0% { opacity: 0; transform: scale(.55); } 35% { opacity: .95; } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes mGlow { 0%, 100% { opacity: .12; } 50% { opacity: 1; } }
@keyframes mBlink { 0%, 48% { opacity: 1; } 50%, 98% { opacity: .1; } 100% { opacity: 1; } }
@keyframes mBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes mFlowY { 0% { transform: translateY(-2px); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@keyframes mPan { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

/* Eyebrow per-page themed icon (small, replaces audio EQ on non-home pages) */
.eb-ic { display: inline-flex; width: 18px; height: 18px; flex: none; color: var(--accent); }
.eb-ic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.eb-ic [class] { transform-box: fill-box; }
.eb-ic .g { animation: mGlow 2.4s ease-in-out infinite; }
.eb-ic .g2 { animation-delay: .5s; }
.eb-ic .bl { animation: mBlink 2s steps(1, end) infinite; }
.eb-ic .sw { transform-origin: left top; animation: mSwing 3s ease-in-out infinite; }
.eb-ic .pan { transform-origin: 42% 82%; animation: mPan 4.4s ease-in-out infinite; }
.eb-ic .s { opacity: .18; animation: mSig 1.9s ease-in-out infinite; }
.eb-ic .s2 { animation-delay: .22s; } .eb-ic .s3 { animation-delay: .44s; }
.eb-ic .pl { animation: mPulse 2.2s ease-in-out infinite; }
@keyframes mSwing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes mSig { 0%, 100% { opacity: .18; } 50% { opacity: 1; } }
@keyframes mPulse { 0%, 100% { opacity: .35; transform: scale(.65); } 50% { opacity: 1; transform: scale(1); } }

/* ============================================================
   Contact form
   ============================================================ */
.form { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; letter-spacing: .01em; }
.field label .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font-body); font-size: 15.5px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,154,60,.18); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C99A3C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #d9685a; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: rgba(201,154,60,.15); color: var(--accent); display: grid; place-items: center; animation: pop .5s var(--ease); }
.form-success .check svg { width: 32px; height: 32px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0;} 100% { transform: scale(1); opacity: 1;} }

/* contact info list */
.contact-info { list-style: none; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(201,154,60,.12); color: var(--accent); display: grid; place-items: center; }
.contact-info .ico svg { width: 19px; height: 19px; }
.contact-info .k { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-info .v { color: var(--text); font-weight: 600; font-size: 16px; }
.contact-info a.v:hover { color: var(--accent); }

/* reassurance strip */
.reassure { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.reassure .item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.reassure .ico { flex: none; color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 64px 0 32px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: var(--muted); max-width: 320px; }
.footer-col h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: var(--text-soft); }
.footer-col a { transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer-bottom small, .footer-seo { font-size: 12.5px; color: var(--muted); }
.footer-seo { margin-top: 16px; line-height: 1.8; max-width: 980px; }

/* ============================================================
   Hover & micro-interactions (premium polish)
   ============================================================ */
/* establish stacking so the spotlight sits above bg, below content */
.card, .scard, .step, .reassure .item { position: relative; z-index: 0; }
/* cursor-tracking brass spotlight */
.card::before, .scard::before, .step::before, .reassure .item::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 184, 92, .15), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover::before, .scard:hover::before, .step:hover::before, .reassure .item:hover::before { opacity: 1; }
.card:hover, .scard:hover, .step:hover { box-shadow: 0 26px 55px -32px rgba(0, 0, 0, .85); }
.scard:hover .scard__pic .photo { filter: brightness(1.06); }
.scard:hover .card__icon, .card:hover .card__icon { transform: scale(1.06) rotate(-3deg); }

/* button sheen sweep + tactile press */
.btn { overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 36%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.btn--primary:hover::after, .btn--ghost:hover::after { opacity: 1; animation: sheen .85s var(--ease); }
.btn--text { overflow: visible; }
.btn--text::after { display: none; }
.btn:active { transform: translateY(-1px) scale(.985); }
@keyframes sheen { from { left: -40%; } to { left: 130%; } }

/* accessible keyboard focus */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s;} .reveal[data-d="2"]{ transition-delay:.16s;}
.reveal[data-d="3"]{ transition-delay:.24s;} .reveal[data-d="4"]{ transition-delay:.32s;}
.reveal[data-d="5"]{ transition-delay:.4s;} .reveal[data-d="6"]{ transition-delay:.48s;}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--media-left .split__media { order: 0; }
  .hero__stat { display: none; }
  .reassure { grid-template-columns: 1fr; }
  .spotlight__hero { aspect-ratio: 16/10; }
  .cta-band .cta-motif { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* Neutralize desktop column spans (set inline as grid-column: span 2/1) so a
     single-column grid doesn't spawn an implicit 2nd track and stretch cards. */
  .grid-2 > *, .grid-3 > *, .grid-4 > * { grid-column: auto !important; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .photo:first-child { grid-column: span 2; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn--text { width: auto; }
  .logo__sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .eq-deco { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Pause infinite animations while their host is off-screen (saves CPU/GPU/battery) */
.anim-paused, .anim-paused *, .anim-paused *::before, .anim-paused *::after { animation-play-state: paused !important; }

/* ============================================================
   Footer bottom links
   ============================================================ */
.footer-bottom a { color: var(--text-soft); transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   Service-area towns
   ============================================================ */
.towns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.towns .town {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text-soft);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; transition: border-color .25s var(--ease), color .25s, transform .25s var(--ease), background .25s;
}
.towns .town::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; opacity: .8;
}
.towns .town:hover { border-color: rgba(201,154,60,.5); color: var(--text); transform: translateY(-2px); background: var(--surface-3); }
.towns .town.is-base { border-color: rgba(201,154,60,.55); color: var(--text); }
.towns .town.is-base::before { opacity: 1; box-shadow: 0 0 0 3px rgba(201,154,60,.18); }

/* ============================================================
   Custom select (matches inputs, replaces native option list)
   ============================================================ */
.cselect { position: relative; }
.cselect__native {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
  clip: rect(0 0 0 0); overflow: hidden; margin: 0;
}
.cselect__btn {
  width: 100%; text-align: left; background: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); color: var(--text); font-family: var(--font-body); font-size: 15.5px;
  padding: 14px 44px 14px 16px; cursor: pointer; position: relative;
  display: flex; align-items: center; transition: border-color .2s, box-shadow .2s;
}
.cselect__btn .cselect__val { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cselect__btn .cselect__val.ph { color: var(--muted); }
.cselect__btn::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C99A3C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 18px;
  transition: transform .25s var(--ease);
}
.cselect.open .cselect__btn::after { transform: translateY(-50%) rotate(180deg); }
.cselect.open .cselect__btn, .cselect__btn:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,154,60,.18);
}
.cselect__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); padding: 6px; max-height: 264px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: top center;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.cselect.open .cselect__panel { opacity: 1; visibility: visible; transform: none; }
.cselect__opt {
  padding: 11px 14px; border-radius: 8px; font-size: 15px; line-height: 1.3; color: var(--text-soft); cursor: pointer;
  transition: background .15s, color .15s; display: flex; align-items: center; gap: 10px;
}
.cselect__opt:hover, .cselect__opt.active { background: var(--surface-3); color: var(--text); }
.cselect__opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }

/* ============================================================
   Sticky mobile call bar
   ============================================================ */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--line); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -10px 30px -12px rgba(0,0,0,.6);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 10px; font-family: var(--font-body); font-weight: 700; font-size: 15.5px; }
  .callbar svg { width: 19px; height: 19px; flex: none; }
  .callbar__call { background: var(--accent); color: var(--accent-ink); }
  .callbar__quote { background: var(--ink-2); color: var(--text); }
  .callbar a:active { filter: brightness(.94); }
  body { padding-bottom: 60px; }
  body.no-scroll .callbar { display: none; }
}

h1, h2, h3, h4, .h1, .display { text-wrap: balance; }
p, .lead, li, .scripture { text-wrap: pretty; }

/* Hero focal point — keep the camera (upper-right of the photo) in frame when
   the wide hero image is cropped to a tall/portrait viewport on phones/tablets. */
@media (max-width: 900px) {
  .hero__media img.focal-cam { object-position: 70% 33%; }
  /* Home hero — tablet sits in the lower-right of the frame; override the
     desktop inline style so the tablet stays visible on portrait phones. */
  .hero__media img.focal-cam[src*="commercial-av-tablet"] { object-position: 82% 62% !important; }
}

/* On narrow phones, auto-hyphenation tames the ragged edge in tight columns.
   Relies on lang="en" (set on <html>); leaves brand terms like AES/Wi-Fi intact. */
@media (max-width: 600px) {
  p, .lead, .flist span, .hl-list span, .scard__body p, .card p {
    hyphens: auto; -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* ============================================================
   Mobile full-screen menu — fix oversized links & clipped CTA
   ============================================================ */
@media (max-width: 599px) {
  .drawer { justify-content: flex-start; overflow-y: auto; padding: 92px 28px 40px; }
  .drawer > a { font-size: clamp(20px, 5.4vw, 27px); padding: 15px 0; }
  /* CTA must be a real button, not inherit the giant nav-link styling */
  .drawer .drawer-cta { margin-top: 22px; }
  .drawer .drawer-cta .btn {
    font-family: var(--font-body); font-size: 16px; font-weight: 700;
    padding: 16px 24px; border-bottom: none; display: flex;
    opacity: 1; transform: none;
  }
}
