/* ============================================================
   STONE EDGE CHURCH — Design System
   Brand palette (Stone Edge Foundation, Jenn David, LCH) merged
   with the bold "Foxy Agency" structural template:
   - Big Anton condensed-caps display
   - Instrument Serif italic accent words (church already uses these)
   - Inter / Inter Tight for UI + body
   - Deep teal-blue accent over warm-neutral darks
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* ---- Neutrals (warm stone) ---- */
  --se-ink:        #1B1C1A;   /* near-black page bg */
  --se-ink-2:      #232423;   /* raised dark surface / cards on dark */
  --se-ink-3:      #2E302D;   /* hover dark surface */
  --se-stone-6:    #3D3E3B;
  --se-stone-5:    #63645F;
  --se-stone-4:    #8B8C87;
  --se-stone-3:    #B5B6B2;
  --se-stone-2:    #D7D8D3;
  --se-mist:       #E2E3DF;   /* lightest neutral */
  --se-paper:      #F4F4F1;   /* light section bg */
  --se-white:      #FFFFFF;

  /* ---- Accent (deep teal-blue → sky) ---- */
  --se-deep:       #031E2B;   /* darkest ocean — accent sections */
  --se-deep-2:     #0A2C3D;
  --se-teal-5:     #144258;
  --se-teal-4:     #376983;   /* primary accent block */
  --se-teal-3:     #6091AE;
  --se-sky-2:      #8EBCD9;
  --se-sky-1:      #C1E8FF;   /* bright pop / highlights */

  /* ---- Text ---- */
  --se-fg:         #E2E3DF;   /* primary on dark */
  --se-fg-2:       #B5B6B2;   /* secondary on dark */
  --se-fg-3:       #8B8C87;   /* labels / meta */
  --se-on-light:   #1B1C1A;   /* text on light/white */
  --se-on-light-2: #63645F;

  /* ---- Lines ---- */
  --se-line:       rgba(226,227,223,0.14);
  --se-line-soft:  rgba(226,227,223,0.08);
  --se-line-dark:  rgba(27,28,26,0.12);

  /* ---- Type families ---- */
  --se-display: 'Anton', 'Arial Narrow', sans-serif;
  --se-serif:   'Instrument Serif', Georgia, serif;
  --se-tight:   'Inter Tight', system-ui, sans-serif;
  --se-sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* ---- Type scale ---- */
  --se-hero:   clamp(3.75rem, 9vw, 9rem);
  --se-h1:     clamp(2.75rem, 6vw, 5.5rem);
  --se-h2:     clamp(2rem, 4vw, 3.5rem);
  --se-h3:     clamp(1.5rem, 2.4vw, 2.25rem);
  --se-h4:     1.375rem;
  --se-lead:   clamp(1.125rem, 1.5vw, 1.5rem);
  --se-body:   1.0625rem;
  --se-sm:     0.9375rem;
  --se-xs:     0.8125rem;

  /* ---- Spacing ---- */
  --se-1: 4px;  --se-2: 8px;  --se-3: 12px; --se-4: 16px;
  --se-5: 24px; --se-6: 32px; --se-7: 48px; --se-8: 64px;
  --se-9: 96px; --se-10: 128px; --se-11: 180px;

  /* ---- Radii ---- */
  --se-r-sm:  8px;
  --se-r-md:  14px;
  --se-r-lg:  22px;
  --se-r-xl:  32px;
  --se-r-pill: 999px;

  /* ---- Shadow ---- */
  --se-shadow:     0 18px 50px rgba(0,0,0,0.35);
  --se-shadow-sm:  0 6px 20px rgba(0,0,0,0.2);
  --se-shadow-light: 0 24px 60px rgba(3,30,43,0.12);

  /* ---- Motion ---- */
  --se-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --se-dur:  0.5s;

  --se-maxw: 1280px;
  --se-gutter: clamp(20px, 5vw, 80px);
  --se-topbar-h: 46px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--se-ink);
  color: var(--se-fg);
  font-family: var(--se-sans);
  font-size: var(--se-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   LAYOUT
   ============================================================ */
.se-wrap { width: 100%; max-width: var(--se-maxw); margin-inline: auto; padding-inline: var(--se-gutter); }
.se-section { padding-block: clamp(64px, 10vw, 140px); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.se-eyebrow {
  font-family: var(--se-tight);
  font-size: var(--se-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--se-teal-3);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.se-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--se-teal-4);
}
.se-eyebrow.no-rule::before { display: none; }

.se-display {
  font-family: var(--se-display);
  font-size: var(--se-hero);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}
.se-h1 { font-family: var(--se-display); font-size: var(--se-h1); line-height: 0.95; text-transform: uppercase; margin: 0; font-weight: 400; letter-spacing: 0.005em; }
.se-h2 { font-family: var(--se-display); font-size: var(--se-h2); line-height: 0.98; text-transform: uppercase; margin: 0; font-weight: 400; letter-spacing: 0.005em; }
.se-h3 { font-family: var(--se-tight); font-size: var(--se-h3); line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.se-h4 { font-family: var(--se-tight); font-size: var(--se-h4); line-height: 1.2; margin: 0; font-weight: 600; }

/* Instrument Serif italic accent — the soul of the brand voice.
   Use inside display/headings:  <h1>This is <em>More</em> Than Church</h1> */
.se-display em, .se-h1 em, .se-h2 em, .se-serif {
  font-family: var(--se-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--se-sky-1);
}
.se-serif { color: inherit; }

.se-lead { font-family: var(--se-sans); font-size: var(--se-lead); line-height: 1.45; color: var(--se-fg); margin: 0; text-wrap: pretty; }
.se-body-t { color: var(--se-fg-2); margin: 0; text-wrap: pretty; }
.se-label { font-family: var(--se-tight); font-size: var(--se-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--se-fg-3); font-weight: 600; }

/* On-light contexts */
.on-light { color: var(--se-on-light); }
.on-light .se-body-t { color: var(--se-on-light-2); }
.on-light .se-lead { color: var(--se-on-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.se-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--se-tight); font-weight: 600; font-size: var(--se-sm);
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 16px 28px; border-radius: var(--se-r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--se-dur) var(--se-ease), color var(--se-dur) var(--se-ease),
              border-color var(--se-dur) var(--se-ease), transform 0.2s var(--se-ease);
  white-space: nowrap;
}
.se-btn .arrow { transition: transform 0.4s var(--se-ease); }
.se-btn:hover .arrow { transform: translateX(4px); }

.se-btn--primary { background: var(--se-sky-1); color: var(--se-deep); }
.se-btn--primary:hover { background: var(--se-white); }

.se-btn--teal { background: var(--se-teal-4); color: var(--se-white); }
.se-btn--teal:hover { background: var(--se-teal-3); }

.se-btn--ghost { background: transparent; color: var(--se-fg); border-color: var(--se-line); }
.se-btn--ghost:hover { background: rgba(226,227,223,0.08); border-color: rgba(226,227,223,0.3); }

.se-btn--dark { background: var(--se-ink); color: var(--se-white); }
.se-btn--dark:hover { background: var(--se-deep); }

.on-light .se-btn--ghost { color: var(--se-on-light); border-color: var(--se-line-dark); }
.on-light .se-btn--ghost:hover { background: rgba(27,28,26,0.05); border-color: rgba(27,28,26,0.25); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.se-nav {
  position: fixed; top: var(--se-topbar-h); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--se-gutter);
  background: rgba(27,28,26,0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--se-line-soft);
  transition: background var(--se-dur) var(--se-ease), padding var(--se-dur) var(--se-ease), top var(--se-dur) var(--se-ease);
}

/* ============================================================
   ANNOUNCEMENT TOP BAR
   ============================================================ */
.se-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--se-topbar-h);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding-inline: clamp(44px, 6vw, 80px);
  background: var(--se-sky-1); color: var(--se-deep);
  text-align: center;
}
.se-topbar__msg {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--se-tight); font-size: var(--se-sm); font-weight: 600;
  letter-spacing: 0.04em; color: var(--se-deep); line-height: 1;
}
.se-topbar__msg .lbl { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.se-topbar__cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--se-tight); font-weight: 700; font-size: var(--se-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--se-deep); color: var(--se-sky-1);
  padding: 7px 15px; border-radius: var(--se-r-pill);
  transition: background 0.25s var(--se-ease), transform 0.25s var(--se-ease);
  white-space: nowrap;
}
.se-topbar__cta:hover { background: var(--se-ink); transform: translateY(-1px); }
.se-topbar__cta .arrow { transition: transform 0.3s var(--se-ease); }
.se-topbar__cta:hover .arrow { transform: translateX(3px); }
.se-topbar__close {
  position: absolute; right: clamp(12px, 3vw, 28px); top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--se-deep);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; line-height: 1;
  transition: background 0.2s;
}
.se-topbar__close:hover { background: rgba(3,30,43,0.12); }
body.topbar-hidden { --se-topbar-h: 0px; }
body.topbar-hidden .se-topbar { display: none; }
@media (max-width: 820px) {
  .se-topbar__tag { display: none; }
}
@media (max-width: 600px) {
  .se-topbar__msg .lbl { display: none; }
  .se-topbar { gap: 10px; padding-inline: 44px; }
}
.se-nav.scrolled { background: rgba(27,28,26,0.9); padding-block: 14px; }
.se-logo { display: flex; align-items: center; gap: 12px; }
.se-logo__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--se-teal-4), var(--se-deep));
  display: grid; place-items: center;
  font-family: var(--se-display); font-size: 18px; color: var(--se-sky-1);
  border: 1px solid rgba(193,232,255,0.25);
}
.se-logo__text { font-family: var(--se-display); font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--se-fg); line-height: 1; white-space: nowrap; }
.se-logo__img { height: 30px; width: auto; display: block; }
.se-footer .se-logo__img { height: 34px; }
.se-nav__cta .se-btn { white-space: nowrap; }
.se-nav__links { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.se-nav__links a { font-family: var(--se-tight); font-size: var(--se-sm); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--se-fg); transition: color 0.2s; white-space: nowrap; }
.se-nav__links a:hover, .se-nav__links a.active { color: var(--se-white); }
.se-nav__cta { display: flex; align-items: center; gap: 14px; }
.se-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.se-burger span { width: 24px; height: 2px; background: var(--se-fg); transition: 0.3s var(--se-ease); }

.se-mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--se-ink); padding: 96px var(--se-gutter) 40px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-100%); transition: transform 0.5s var(--se-ease);
  visibility: hidden;
}
.se-mobile-menu.open { transform: translateY(0); visibility: visible; }
.se-mobile-menu a { font-family: var(--se-display); font-size: clamp(2rem,9vw,3.5rem); text-transform: uppercase; color: var(--se-fg); padding-block: 6px; border-bottom: 1px solid var(--se-line-soft); }
.se-mobile-menu a em { font-family: var(--se-serif); font-style: italic; color: var(--se-teal-3); text-transform: none; }

@media (max-width: 1100px) {
  .se-nav__links { display: none; }
  .se-nav__cta .se-btn--ghost { display: none; }
  .se-burger { display: flex; }
}

/* ============================================================
   CARDS / PILLS / CHIPS
   ============================================================ */
.se-card { background: var(--se-ink-2); border: 1px solid var(--se-line); border-radius: var(--se-r-lg); padding: var(--se-7); transition: border-color var(--se-dur) var(--se-ease), transform var(--se-dur) var(--se-ease); }
.se-card:hover { border-color: rgba(226,227,223,0.28); }
.se-card--light { background: var(--se-white); color: var(--se-on-light); border: none; box-shadow: var(--se-shadow-light); }
.se-card--teal { background: var(--se-teal-4); color: var(--se-white); border: none; }
.se-card--deep { background: var(--se-deep); border: 1px solid rgba(193,232,255,0.12); }

.se-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--se-tight); font-size: var(--se-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--se-r-pill); background: rgba(226,227,223,0.08); border: 1px solid var(--se-line); color: var(--se-fg-2); }
.se-chip--accent { background: rgba(193,232,255,0.12); border-color: rgba(193,232,255,0.3); color: var(--se-sky-1); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--se-ease), transform 0.7s var(--se-ease); }
  .reveal.in { opacity: 1; transform: none; }
  /* directional + effect variants */
  .reveal.reveal--left { transform: translateX(-32px); }
  .reveal.reveal--right { transform: translateX(32px); }
  .reveal.reveal--img { transform: scale(1.06); transition: opacity 0.8s var(--se-ease), transform 0.8s var(--se-ease); }
  .reveal.reveal--img.in,
  .reveal.reveal--left.in,
  .reveal.reveal--right.in { transform: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.se-footer { background: var(--se-ink); padding-block: clamp(64px,8vw,110px) 40px; position: relative; overflow: hidden; }
.se-footer__big { font-family: var(--se-display); font-size: clamp(4rem, 18vw, 16rem); line-height: 0.82; text-transform: uppercase; color: rgba(193,232,255,0.07); position: absolute; bottom: -0.12em; left: 50%; transform: translateX(-50%); pointer-events: none; white-space: nowrap; }

/* footer layout — defined here so every page (incl. youth/kids) gets the multi-column grid */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: var(--se-6); position: relative; z-index: 2; padding-bottom: var(--se-9); }
.footer-col { display: flex; flex-direction: column; gap: var(--se-3); }
.footer-col a, .footer-col span { font-family: var(--se-tight); font-size: var(--se-sm); color: var(--se-fg-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--se-sky-1); }
.footer-col .se-label { margin-bottom: var(--se-2); color: var(--se-teal-3); }
.footer-social { display: flex; gap: var(--se-4); margin-top: var(--se-5); }
.footer-social a { font-family: var(--se-tight); font-size: var(--se-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--se-fg-2); transition: color 0.2s; }
.footer-social a:hover { color: var(--se-sky-1); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--se-4); flex-wrap: wrap; position: relative; z-index: 2; padding-top: var(--se-5); border-top: 1px solid rgba(193,232,255,0.12); font-family: var(--se-tight); font-size: var(--se-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--se-fg-3); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 981px) { .footer-brand { grid-column: 1; } }

.se-divider { height: 1px; background: var(--se-line); border: 0; margin: 0; }

/* ============================================================
   CONNECT CARD MODAL
   ============================================================ */
.se-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.se-modal.open { display: block; }
.se-modal__backdrop { position: absolute; inset: 0; background: rgba(4,7,13,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.se-modal__dialog { position: relative; z-index: 1; width: min(560px, 92vw); max-height: 88vh; overflow: auto; margin: 6vh auto 0; background: #fff; border-radius: var(--se-r-lg); box-shadow: var(--se-shadow); padding: clamp(22px, 3vw, 38px); animation: se-modal-in 0.32s var(--se-ease) both; }
@keyframes se-modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.se-modal__close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(27,28,26,0.06); color: var(--se-on-light); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.se-modal__close:hover { background: rgba(27,28,26,0.13); }
.se-modal__title { font-family: var(--se-display); text-transform: uppercase; font-size: 1.7rem; color: var(--se-on-light); margin: 0 0 6px; letter-spacing: 0.01em; }
.se-modal__sub { font-family: var(--se-sans); color: var(--se-on-light-2); margin: 0 0 var(--se-5); font-size: var(--se-sm); }
.se-modal__body { min-height: 360px; }
.se-modal__body iframe { width: 100% !important; border: 0; display: block; }
body.modal-open { overflow: hidden; }

/* ============================================================
   PAGE LOADER
   ============================================================ */
#se-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--se-ink);
  transition: opacity 0.5s var(--se-ease), visibility 0.5s var(--se-ease);
}
#se-loader.hidden { opacity: 0; visibility: hidden; }
#se-loader dotlottie-wc { width: clamp(140px, 22vw, 220px); height: clamp(140px, 22vw, 220px); }
.se-loader__fallback { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--se-line); border-top-color: var(--se-sky-1); animation: se-load-spin 0.9s linear infinite; }
@keyframes se-load-spin { to { transform: rotate(360deg); } }
html.se-loaded #se-loader { display: none; }

/* utility */
.se-grid { display: grid; gap: var(--se-5); }
.text-center { text-align: center; }
.se-flow > * + * { margin-top: var(--se-5); }

/* ============================================================
   MEGA MENU
   ============================================================ */
.se-mega-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--se-tight); font-size: var(--se-sm); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--se-fg);
  background: none; border: 0; cursor: pointer;
  padding: 6px 12px; margin: 0 -12px;
  border-radius: var(--se-r-sm);
  transition: color 0.2s, background 0.2s;
}
.se-mega-trigger:hover, .se-mega-trigger[aria-expanded="true"] {
  color: var(--se-white);
  background: rgba(226,227,223,0.08);
}
.se-mega-caret {
  font-size: 0.65em; opacity: 0.6; display: inline-block;
  transition: transform 0.3s var(--se-ease), opacity 0.2s;
}
.se-mega-trigger[aria-expanded="true"] .se-mega-caret { transform: rotate(180deg); opacity: 1; }

.se-mega {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding-top: calc(var(--se-topbar-h) + 72px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.22s var(--se-ease), transform 0.22s var(--se-ease), visibility 0.22s;
}
.se-mega.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.se-mega__panel {
  background: rgba(13,14,13,0.97);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--se-line);
  box-shadow: 0 32px 72px rgba(0,0,0,0.6), inset 0 1px 0 rgba(226,227,223,0.05);
}
.se-mega__inner {
  max-width: var(--se-maxw); margin-inline: auto;
  padding: 40px var(--se-gutter) 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr)) 1.6fr;
  gap: clamp(20px, 2.5vw, 48px);
  align-items: start;
}
.se-mega__col { display: flex; flex-direction: column; }
.se-mega__col .se-label {
  display: block; color: var(--se-teal-3);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226,227,223,0.09);
  margin-bottom: 10px;
}
.se-mega__col a {
  font-family: var(--se-tight); font-size: var(--se-sm); color: var(--se-fg-2);
  padding: 7px 0;
  width: fit-content; transition: color 0.15s, transform 0.15s var(--se-ease);
  line-height: 1.3;
}
.se-mega__col a:hover { color: var(--se-sky-1); transform: translateX(4px); }
/* sub-brand stickers in the dropdown */
.se-stk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; margin-left: 7px; transform: rotate(-7deg); vertical-align: middle; box-shadow: 0 2px 7px rgba(0,0,0,0.35); transition: transform 0.25s var(--se-ease); }
.se-mega__col a:hover .se-stk { transform: rotate(0deg) scale(1.14); }
.se-stk--kids { background: #FFDA86; }
.se-stk--youth { background: #C8FF35; }
.se-mega__feature {
  background: var(--se-deep); border: 1px solid rgba(193,232,255,0.12);
  border-radius: var(--se-r-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.28s var(--se-ease), transform 0.28s var(--se-ease);
}
.se-mega__feature:hover { border-color: rgba(193,232,255,0.32); transform: translateY(-2px); }
.se-mega__feature img { width: 100%; height: 158px; object-fit: cover; }
.se-mega__feature-video { position: relative; width: 100%; padding-top: 56.25%; background: #000; overflow: hidden; }
.se-mega__feature-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.se-mega__feature-link { font-family: var(--se-tight); font-size: var(--se-sm); font-weight: 500; color: var(--se-sky-1); transition: color 0.2s, transform 0.2s var(--se-ease); width: fit-content; }
.se-mega__feature-link:hover { color: var(--se-white); transform: translateX(3px); }
.se-mega__feature .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.se-mega__feature .se-chip { align-self: flex-start; }
.se-mega-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(4,7,13,0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.28s, visibility 0.28s;
}
.se-mega-backdrop.open { opacity: 1; visibility: visible; }
@media (max-width: 1100px) { .se-mega, .se-mega-backdrop, .se-mega-trigger { display: none; } }

/* ============================================================
   ACCESSIBILITY — WCAG 2.2 AA
   ============================================================ */
/* Contrast: lift meta/label grey so it clears 4.5:1 on dark teal sections */
:root { --se-fg-3: #9C9D98; }

/* Honor reduced-motion globally (safety net beyond the reveal guards) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keep focused content clear of the fixed nav (2.4.11 Focus Not Obscured) */
html { scroll-padding-top: 120px; }

/* Visually-hidden utility (kept accessible to screen readers) */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link — visible on keyboard focus */
.se-skip {
  position: fixed; top: 8px; left: 8px; z-index: 10000;
  transform: translateY(-150%);
  background: var(--se-sky-1); color: var(--se-deep);
  font-family: var(--se-tight); font-weight: 700; font-size: var(--se-sm);
  letter-spacing: 0.02em; padding: 12px 20px; border-radius: var(--se-r-sm);
  text-decoration: none; box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: transform 0.2s var(--se-ease);
}
.se-skip:focus { transform: translateY(0); outline: 3px solid var(--se-white); outline-offset: 2px; }

/* Visible focus indicator for all interactive elements (2.4.7 / 2.4.13) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
image-slot:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--se-sky-1);
  outline-offset: 2px;
  border-radius: 3px;
}
/* On the bright teal block, the sky ring is low-contrast — use white there */
.cta-band a:focus-visible,
.cta-band button:focus-visible,
.se-card--teal a:focus-visible,
.min-card--cta:focus-visible,
.band-light a:focus-visible,
.band-light button:focus-visible {
  outline-color: var(--se-deep);
}
main:focus { outline: none; }

/* Restore a visible ring on form fields (interior.css clears the default) */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--se-sky-1);
  outline-offset: 1px;
  border-color: var(--se-sky-1);
}

/* Target size (2.5.8 AA = 24×24): guarantee small icon controls qualify */
.se-burger, .se-topbar__close, .se-modal__close { min-width: 24px; min-height: 24px; }
