/*
Theme Name: Ellam Media
Theme URI: https://ellammedia.co.uk
Author: Ellam Media
Author URI: https://ellammedia.co.uk
Description: Custom theme for Ellam Media — visual storytelling for brands that want to be remembered. Dark forest/jade brand system with Syne, Unbounded and DM Sans. Includes the Blog link in the site header.
Version: 1.21.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ellam-media
*/

html, body { margin: 0; padding: 0; background: #0A1A12; }

/* ===== WordPress fit — paint wrappers dark, kill page gutters around the design ===== */
  html, body { margin: 0 !important; padding: 0 !important; background: #0A1A12 !important; }
  /* Common theme content wrappers — keep them from boxing/capping the design width */
  .entry-content, .wp-block-post-content, .site-content, .content-area,
  #content, #primary, #main, .site-main, article, .page-content {
    max-width: none !important; margin: 0 !important; padding: 0 !important; background: #0A1A12 !important; }

  /* ===== Ellam Media homepage — self-contained ===== */
  #em-root *, #em-root *::before, #em-root *::after { box-sizing: border-box; }
  #em-root { margin: 0; background: #0A1A12; color: #F5F0E8; font-family: 'DM Sans', sans-serif; line-height: 1.5; overflow-x: hidden; overflow-x: clip;
    /* Full-bleed breakout — fills the viewport width inside any theme container */
    width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
  #em-root img { display: block; }
  #em-root ::selection { background: #2EC98A; color: #0A1A12; }

  @keyframes em-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes em-rise { from { transform: translateY(14px); } to { transform: translateY(0); } }

  .em-rise { animation: em-rise 0.7s ease both; }
  .em-rise-1 { animation-delay: 0.05s; }
  .em-rise-2 { animation-delay: 0.15s; }
  .em-rise-3 { animation-delay: 0.25s; }
  .em-rise-4 { animation-delay: 0.35s; }

  /* nav */
  .em-nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 24px 56px; }
  .em-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
  .em-bars { display: flex; flex-direction: column; gap: 3px; width: 26px; }
  .em-bars span { height: 6px; border-radius: 3px; background: #F5F0E8; width: 100%; }
  .em-bars span:nth-child(2) { background: #2EC98A; width: 68%; }
  .em-word { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: #F5F0E8; }
  .em-word small { font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 9px; letter-spacing: 0.22em; color: #2EC98A; margin-left: 9px; }
  .em-navlinks { display: flex; align-items: center; gap: 36px; }
  .em-navlinks a { text-decoration: none; font-size: 15px; color: rgba(245,240,232,0.75); transition: color 0.2s ease; }
  .em-navlinks a:hover, .em-navlinks a.is-current { color: #F5F0E8; }
  .em-btn { font-family: 'Unbounded', sans-serif; font-size: 10px; letter-spacing: 0.18em; padding: 12px 22px; border-radius: 999px; text-decoration: none; transition: all 0.2s ease; white-space: nowrap; }
  .em-btn-ghost { color: #F5F0E8; border: 1px solid rgba(245,240,232,0.4); }
  .em-btn-ghost:hover { background: #2EC98A; border-color: #2EC98A; color: #0A1A12; }

  /* hero */
  .em-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  .em-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
  .em-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,18,0.5) 0%, rgba(10,26,18,0.32) 45%, #0A1A12 100%); }
  .em-hero-inner { position: relative; z-index: 5; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
  .em-eyebrow { margin: 0 0 24px; font-family: 'Unbounded', sans-serif; font-size: 11px; letter-spacing: 0.24em; color: #2EC98A; }
  .em-h1 { margin: 0; font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(60px, 11vw, 140px); line-height: 0.96; letter-spacing: -0.03em; color: #F5F0E8; }
  .em-h1 em { font-style: normal; color: #2EC98A; }
  .em-hero-sub { margin: 32px 0 0; max-width: 540px; font-size: 19px; font-weight: 300; line-height: 1.6; color: rgba(245,240,232,0.88); }
  .em-hero-cta { display: flex; gap: 18px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }
  .em-cta-solid { font-family: 'Unbounded', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #0A1A12; background: #2EC98A; padding: 16px 30px; border-radius: 999px; text-decoration: none; transition: background 0.2s ease; }
  .em-cta-solid:hover { background: #1AAA70; }
  .em-cta-ghost { font-family: 'Unbounded', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #F5F0E8; border: 1px solid rgba(245,240,232,0.35); padding: 15px 30px; border-radius: 999px; text-decoration: none; background: rgba(10,26,18,0.3); transition: all 0.2s ease; }
  .em-cta-ghost:hover { border-color: #2EC98A; color: #2EC98A; }
  .em-scroll-cue { position: relative; z-index: 5; padding-bottom: 26px; display: flex; justify-content: center; }
  .em-scroll-cue span { width: 4px; height: 42px; border-radius: 2px; background: linear-gradient(180deg, #2EC98A, transparent); }

  /* ticker */
  .em-ticker { border-top: 1px solid rgba(245,240,232,0.1); border-bottom: 1px solid rgba(245,240,232,0.1); overflow: hidden; padding: 20px 0; background: #0D2E1C; }
  .em-ticker-track { display: flex; gap: 56px; width: max-content; animation: em-marquee 26s linear infinite; }
  .em-ticker-track span { display: flex; align-items: center; gap: 56px; font-family: 'Unbounded', sans-serif; font-size: 13px; letter-spacing: 0.24em; color: rgba(245,240,232,0.72); white-space: nowrap; }
  .em-ticker-track span i { display: inline-block; width: 22px; height: 5px; border-radius: 3px; background: #2EC98A; }

  /* about */
  .em-about { background: #F5F0E8; color: #0A1A12; }
  .em-about-wrap { max-width: 1180px; margin: 0 auto; padding: 110px 48px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
  .em-about-wrap > * { min-width: 0; }
  .em-about figure { margin: 0; position: relative; }
  .em-about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
  .em-about figcaption { position: absolute; left: 20px; bottom: 20px; background: #0A1A12; border-radius: 10px; padding: 12px 18px; font-family: 'Unbounded', sans-serif; font-size: 9px; letter-spacing: 0.2em; color: #2EC98A; }
  .em-kicker { margin: 0 0 18px; font-family: 'Unbounded', sans-serif; font-size: 10px; letter-spacing: 0.22em; color: #1AAA70; }
  .em-about h2 { margin: 0; font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; color: #0A1A12; }
  .em-about p.lead { margin: 26px 0 0; font-size: 17px; font-weight: 400; line-height: 1.65; color: rgba(10,26,18,0.75); }
  .em-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
  .em-stat { border-top: 3px solid rgba(10,26,18,0.15); padding-top: 16px; }
  .em-stat:first-child { border-top-color: #2EC98A; }
  .em-stat b { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 44px; letter-spacing: -0.03em; color: #0A1A12; display: block; }
  .em-stat small { margin-top: 6px; font-family: 'Unbounded', sans-serif; font-size: 9px; letter-spacing: 0.2em; color: rgba(10,26,18,0.55); display: block; }

  /* services */
  .em-services { max-width: 1320px; margin: 0 auto; padding: 110px 48px 100px; }
  .em-services-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
  .em-services-head h2 { margin: 0; font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.03em; color: #F5F0E8; }
  .em-services-head .kick { margin: 0 0 14px; font-family: 'Unbounded', sans-serif; font-size: 10px; letter-spacing: 0.22em; color: #2EC98A; }
  .em-services-head p { margin: 0; max-width: 360px; font-size: 15px; font-weight: 300; line-height: 1.6; color: rgba(245,240,232,0.65); }
  .em-row { display: flex; gap: 16px; height: 560px; }
  .svc-panel { position: relative; flex: 1; min-width: 0; border-radius: 20px; overflow: hidden; cursor: pointer; transition: flex 0.85s cubic-bezier(0.65, 0, 0.35, 1); outline: none; }
  .svc-panel.is-active { flex: 2.7; }
  .svc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1); }
  .svc-panel.is-active .svc-img { transform: scale(1.05); }
  .svc-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,18,0.4) 0%, rgba(10,26,18,0.82) 100%); transition: background 0.85s ease; }
  .svc-panel.is-active .svc-overlay { background: linear-gradient(180deg, rgba(10,26,18,0.3) 0%, rgba(10,26,18,0.92) 75%); }
  .svc-num { position: absolute; top: 28px; left: 28px; font-family: 'Unbounded', sans-serif; font-size: 11px; letter-spacing: 0.2em; color: rgba(245,240,232,0.6); transition: color 0.6s ease; }
  .svc-panel.is-active .svc-num { color: #2EC98A; }
  .svc-label { position: absolute; left: 30px; bottom: 30px; margin: 0; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: #F5F0E8; writing-mode: vertical-rl; white-space: nowrap; opacity: 1; visibility: visible; transition: opacity 0.5s ease; pointer-events: none; }
  .svc-panel.is-active .svc-label { opacity: 0 !important; visibility: hidden !important; }
  .svc-detail { position: absolute; left: 30px; bottom: 30px; width: 440px; max-width: calc(100% - 60px); opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
  .svc-panel.is-active .svc-detail { opacity: 1 !important; visibility: visible !important; transform: translateY(0); pointer-events: auto; }
  .svc-detail h3 { margin: 0 0 14px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: #F5F0E8; white-space: nowrap; }
  .svc-detail p { margin: 0 0 18px; font-size: 14px; font-weight: 300; line-height: 1.6; color: rgba(245,240,232,0.85); }
  .svc-detail ul { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
  .svc-detail li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: rgba(245,240,232,0.92); white-space: nowrap; }
  .svc-detail li i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; background: #2EC98A; flex: none; transform: translateY(-2px); }
  .svc-detail a { font-family: 'Unbounded', sans-serif; font-size: 10px; letter-spacing: 0.18em; color: #0A1A12; background: #2EC98A; padding: 12px 22px; border-radius: 999px; text-decoration: none; display: inline-block; transition: background 0.2s ease; }
  .svc-detail a:hover { background: #1AAA70; }

  /* clients */
  .em-clients { background: #0D2E1C; padding: 104px 0; border-top: 1px solid rgba(245,240,232,0.06); border-bottom: 1px solid rgba(245,240,232,0.06); overflow: hidden; }
  .em-clients-kick { margin: 0 0 56px; text-align: center; font-family: 'Unbounded', sans-serif; font-size: 11px; letter-spacing: 0.24em; color: rgba(245,240,232,0.5); }
  .em-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
  .em-marquee-track { display: flex; gap: 80px; width: max-content; animation: em-marquee 58s linear infinite; align-items: center; }
  .em-logo-slot { flex: none; height: 110px; display: flex; align-items: center; justify-content: center; }
  .em-logo-slot img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; opacity: 0.82; transition: opacity 0.25s ease; }
  .em-logo-slot img:hover { opacity: 1; }

  /* testimonials */
  .em-tmt { background: #F5F0E8; color: #0A1A12; }
  .em-tmt-wrap { max-width: 980px; margin: 0 auto; padding: 110px 48px; text-align: center; }
  .em-tmt-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #2EC98A; margin: 0 auto 28px; display: flex; align-items: center; justify-content: center; background: #0A1A12; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: #2EC98A; overflow: hidden; }
  .em-tmt-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .em-tmt-body { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
  .em-tmt-quote { margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 400; line-height: 1.6; color: #0A1A12; transition: opacity 0.3s ease; }
  .em-tmt-name { margin: 28px 0 0; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; color: #0A1A12; }
  .em-tmt-org { margin: 8px 0 0; font-family: 'Unbounded', sans-serif; font-size: 10px; letter-spacing: 0.2em; color: #1AAA70; }
  .em-tmt-controls { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 36px; }
  .em-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(10,26,18,0.25); background: transparent; color: #0A1A12; font-size: 18px; cursor: pointer; transition: all 0.2s ease; }
  .em-arrow:hover { background: #0A1A12; color: #2EC98A; }
  .em-dots { display: flex; gap: 9px; }
  .em-dots button { width: 22px; height: 5px; border-radius: 3px; border: none; cursor: pointer; padding: 0; background: rgba(10,26,18,0.18); transition: background 0.2s ease; }
  .em-dots button.is-active { background: #2EC98A; }

  /* cta */
  .em-cta { background: #2EC98A; color: #0A1A12; }
  .em-cta-wrap { max-width: 1180px; margin: 0 auto; padding: 100px 48px; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
  .em-cta h2 { margin: 0; font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -0.03em; line-height: 1.08; }
  .em-cta .bars span { background: #F5F0E8; }
  .em-cta-mail { font-family: 'Unbounded', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #2EC98A; background: #0A1A12; padding: 18px 32px; border-radius: 999px; text-decoration: none; transition: color 0.2s ease; }
  .em-cta-mail:hover { color: #F5F0E8; }
  .em-cta-phone { font-family: 'Unbounded', sans-serif; font-size: 9px; letter-spacing: 0.2em; color: rgba(10,26,18,0.6); padding-left: 6px; }

  /* footer */
  .em-footer-grid { max-width: 1180px; margin: 0 auto; padding: 64px 48px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
  .em-footer-grid p.col-h { margin: 0 0 6px; font-family: 'Unbounded', sans-serif; font-size: 9px; letter-spacing: 0.22em; color: #2EC98A; }
  .em-footer-col { display: flex; flex-direction: column; gap: 12px; }
  .em-footer-col a, .em-footer-col span { color: rgba(245,240,232,0.72); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
  .em-footer-col a:hover { color: #2EC98A; }
  .em-social { display: flex; flex-direction: row; gap: 12px; margin-top: 6px; }
  .em-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(245,240,232,0.2); border-radius: 999px; color: rgba(245,240,232,0.72); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
  .em-social a:hover { color: #0A1A12; background: #2EC98A; border-color: #2EC98A; }
  .em-footer-blurb { margin: 16px 0 0; font-size: 14px; font-weight: 300; line-height: 1.6; color: rgba(245,240,232,0.6); max-width: 280px; }
  .em-footer-base { max-width: 1180px; margin: 0 auto; padding: 0 48px 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .em-footer-base p { margin: 0; font-family: 'Unbounded', sans-serif; font-size: 8px; letter-spacing: 0.2em; color: rgba(245,240,232,0.35); }

  /* Force brand fonts over Squarespace's theme fonts */
  #em-root .em-word, #em-root .em-h1, #em-root .em-about h2, #em-root .em-services-head h2,
  #em-root .svc-label, #em-root .svc-detail h3, #em-root .em-cta h2, #em-root .em-tmt-name,
  #em-root .em-tmt-avatar { font-family: 'Syne', sans-serif !important; }
  #em-root .em-eyebrow, #em-root .em-word small, #em-root .em-btn, #em-root .em-cta-solid,
  #em-root .em-cta-ghost, #em-root .em-kicker, #em-root .em-services-head .kick,
  #em-root .em-clients-kick, #em-root .em-ticker-track span, #em-root .svc-num,
  #em-root .em-tmt-org, #em-root .em-footer-grid p.col-h, #em-root .em-footer-base p,
  #em-root .em-cta-mail, #em-root .em-cta-phone, #em-root .svc-detail a { font-family: 'Unbounded', sans-serif !important; }
  #em-root, #em-root p, #em-root li, #em-root a, #em-root blockquote, #em-root span,
  #em-root .em-navlinks a, #em-root .em-hero-sub { font-family: 'DM Sans', sans-serif; }

  /* responsive */
  @media (max-width: 900px) {
    .em-nav { padding: 18px 22px; flex-wrap: wrap; gap: 16px; }
    .em-navlinks { gap: 20px; font-size: 14px; }
    .em-about-wrap { grid-template-columns: 1fr; gap: 40px; padding: 80px 24px; }
    .em-services { padding: 80px 24px; }
    .em-row { flex-direction: column; height: auto; }
    .svc-panel { height: 120px; }
    .svc-panel.is-active { flex: 1; height: 540px; }
    .svc-detail { width: auto; right: 30px; }
    .svc-detail h3, .svc-detail li { white-space: normal; }
    .em-tmt-wrap, .em-cta-wrap { padding: 80px 24px; }
    .em-footer-grid { grid-template-columns: 1fr 1fr; padding: 56px 24px 32px; }
    .em-ticker-track span, .em-ticker-track { gap: 36px; }
  }
  @media (max-width: 560px) {
    .em-navlinks .em-btn { display: none; }
    .em-footer-grid { grid-template-columns: 1fr; }
    .em-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
    .em-stat b { font-size: 36px; }
    .em-hero-cta { width: 100%; }
    .em-clients { padding: 72px 0; }
    .em-clients-kick { margin-bottom: 36px; padding: 0 24px; }
    .em-marquee-track { gap: 40px; }
    .em-logo-slot { height: 72px; }
  }
  /* Services: hover accordion can't work on touch — show every service as an
     always-open stacked card (no images, just the copy) on phones. */
  @media (max-width: 760px) {
    .em-services { padding: 64px 24px 76px; }
    .em-services-head { display: block; margin-bottom: 30px; }
    .em-services-head p { margin-top: 14px; max-width: none; }
    .em-row { flex-direction: column; height: auto; gap: 16px; }
    .svc-panel, .svc-panel.is-active {
      height: auto !important; flex: none !important; min-width: 0; cursor: default;
      border-radius: 16px; background: #0D2E1C; overflow: visible;
      border: 1px solid rgba(245,240,232,0.1); padding: 26px 22px; }
    .svc-img, .svc-overlay, .svc-label { display: none !important; }
    .svc-num { position: static; margin: 0 0 14px; color: #2EC98A; }
    .svc-detail {
      position: static !important; width: auto !important; max-width: none !important;
      opacity: 1 !important; visibility: visible !important; transform: none !important;
      pointer-events: auto !important; }
    .svc-detail h3 { white-space: normal; font-size: 24px; }
    .svc-detail p { font-size: 15px; }
    .svc-detail li { white-space: normal; }
  }
  @media (prefers-reduced-motion: reduce) {
    .em-rise { animation: none; opacity: 1; }
    .em-ticker-track, .em-marquee-track { animation: none; }
  }


/* =====================================================================
   Multi-page chrome — site header, mobile menu, inner pages, blog
   ===================================================================== */

/* The design fills the theme's full width (no column to break out of) */
#em-root { width: 100%; left: auto; margin-left: 0; }

/* ---- Fixed site header (shared across all pages) ---- */
.em-siteheader { position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px; transition: background 0.3s ease; }
.em-siteheader .em-navlinks { display: flex; align-items: center; gap: 36px; }
.em-menu { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.em-menu li { margin: 0; }
.em-navlinks .current-menu-item > a, .em-navlinks .current_page_item > a,
.em-navlinks .current-menu-ancestor > a { color: #F5F0E8; }
/* Solid header on inner pages; transparent over the homepage hero */
body:not(.home) .em-siteheader { background: rgba(10,26,18,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,240,232,0.08); }
.em-siteheader.is-open { background: rgba(10,26,18,0.97); }
/* Push inner-page content below the fixed header (homepage hero stays full-bleed) */
body:not(.home) #em-content { padding-top: 84px; }
#em-content { min-height: 50vh; }
/* WordPress admin bar offset */
body.admin-bar .em-siteheader { top: 32px; }
@media (max-width: 782px) { body.admin-bar .em-siteheader { top: 46px; } }

/* ---- Mobile menu ---- */
.em-burger { display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px; }
.em-burger span { width: 26px; height: 2px; background: #F5F0E8; display: block; border-radius: 2px; }
@media (max-width: 900px) {
  .em-siteheader { padding: 16px 22px; flex-wrap: wrap; }
  .em-burger { display: flex; }
  .em-siteheader .em-navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 18px 24px 26px; background: #0A1A12;
    box-shadow: 0 24px 44px rgba(0,0,0,0.55); z-index: 70;
    border-bottom: 1px solid rgba(245,240,232,0.1); }
  .em-siteheader.is-open { background: #0A1A12; }
  .em-siteheader.is-open .em-navlinks { display: flex; }
  .em-menu { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
}

/* ---- Inner page hero + content (the_content from the WP editor) ---- */
.em-pagehero { max-width: 1180px; margin: 0 auto; padding: 64px 48px 8px; }
.em-pagehero-bar { width: 56px; height: 4px; border-radius: 2px; background: #2EC98A; margin-bottom: 22px; }
.em-pagehero h1, .em-pagehero-title { font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -0.03em;
  color: #F5F0E8; margin: 8px 0 0; }
.em-page-feature { max-width: 1180px; margin: 28px auto 0; padding: 0 48px; }
.em-page-feature img { width: 100%; border-radius: 18px; display: block; }
.em-page-content { max-width: 760px; margin: 0 auto; padding: 12px 48px 100px;
  font-size: 18px; line-height: 1.75; color: rgba(245,240,232,0.85); }
.em-page-content > *:first-child { margin-top: 0; }
.em-page-content h1, .em-page-content h2 { font-family: 'Syne', sans-serif; font-weight: 800;
  color: #F5F0E8; letter-spacing: -0.02em; margin: 48px 0 16px; line-height: 1.1; }
.em-page-content h2 { font-size: 32px; }
.em-page-content h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 24px;
  color: #F5F0E8; margin: 36px 0 12px; }
.em-page-content p { margin: 0 0 22px; }
.em-page-content a { color: #2EC98A; text-decoration: underline; text-underline-offset: 3px; }
.em-page-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 24px 0; }
.em-page-content ul, .em-page-content ol { margin: 0 0 22px; padding-left: 22px; }
.em-page-content li { margin: 0 0 8px; }
.em-page-content blockquote { margin: 28px 0; padding: 6px 0 6px 24px;
  border-left: 3px solid #2EC98A; font-size: 22px; color: #F5F0E8; }
.em-page-foot { max-width: 760px; margin: 0 auto; padding: 0 48px 100px; }

/* ---- Blog / archive listing ---- */
.em-archive { max-width: 1180px; margin: 0 auto; padding: 36px 48px 100px; }
.em-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.em-postcard { display: flex; flex-direction: column; background: #0D2E1C;
  border: 1px solid rgba(245,240,232,0.08); border-radius: 18px; overflow: hidden;
  text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease; }
.em-postcard:hover { transform: translateY(-6px); border-color: rgba(46,201,138,0.5); }
.em-postcard-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.em-postcard-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.em-postcard-date { font-family: 'Unbounded', sans-serif; font-size: 9px; letter-spacing: 0.2em; color: #2EC98A; }
.em-postcard-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: #F5F0E8; letter-spacing: -0.02em; }
.em-postcard-excerpt { font-size: 14px; line-height: 1.6; color: rgba(245,240,232,0.7); }
.em-postcard-more { font-family: 'Unbounded', sans-serif; font-size: 10px; letter-spacing: 0.18em; color: #2EC98A; margin-top: 4px; }
.em-pagination { max-width: 1180px; margin: 0 auto; padding: 8px 48px 0; }
.em-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.em-pagination a, .em-pagination .current { display: inline-block; padding: 10px 16px;
  border-radius: 10px; color: #F5F0E8; text-decoration: none;
  font-family: 'Unbounded', sans-serif; font-size: 12px; border: 1px solid rgba(245,240,232,0.18); }
.em-pagination .current { background: #2EC98A; color: #0A1A12; border-color: #2EC98A; }
@media (max-width: 640px) {
  .em-pagehero { padding: 48px 24px 8px; }
  .em-page-content, .em-page-foot { padding-left: 24px; padding-right: 24px; }
  .em-archive { padding: 28px 24px 80px; }
  /* Long words in big headings must fit a phone screen */
  .em-page-content h2 { font-size: min(26px, calc((100vw - 48px) / 11.6)); }
  .em-cta h2 { font-size: min(34px, calc((100vw - 48px) / 11.2)); }
}
/* Last resort: a word too long for the screen wraps instead of spilling off the edge */
#em-root h1, #em-root h2, #em-root h3 { overflow-wrap: break-word; }

/* ---- Buttons: press feedback everywhere, a slight grow on hover for mouse users ---- */
.em-btn, .em-navlinks .em-btn, .em-cta-solid, .em-cta-ghost, .em-cta-mail, .svc-detail a, .em-arrow {
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .em-btn:hover, .em-navlinks .em-btn:hover, .em-cta-solid:hover, .em-cta-ghost:hover, .em-cta-mail:hover,
  .svc-detail a:hover, .em-arrow:hover {
    transform: scale(1.06);
  }
}
.em-btn:active, .em-navlinks .em-btn:active, .em-cta-solid:active, .em-cta-ghost:active, .em-cta-mail:active,
.svc-detail a:active, .em-arrow:active {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .em-btn:hover, .em-navlinks .em-btn:hover, .em-cta-solid:hover, .em-cta-ghost:hover, .em-cta-mail:hover,
  .svc-detail a:hover, .em-arrow:hover { transform: none; }
}
