/* ==========================================================================
   Elevated Identities: styles.css
   Palette: black / white / gold. Gold is a thin accent only: rules, dividers
   and single highlighted lines. Never a background, per the brand brief.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Ink + paper */
  --ei-ink:          #0a0a0a;
  --ei-ink-2:        #1a1a1a;
  --ei-ink-3:        #2e2e2e;
  --ei-paper:        #ffffff;
  --ei-paper-2:      #f6f6f4;
  --ei-paper-3:      #ecebe7;

  /* Text */
  --ei-text:         #0a0a0a;
  --ei-text-muted:   #565656;   /* 7.0:1 on white */
  --ei-text-invert:  #ffffff;
  --ei-text-invert-muted: #c9c9c9; /* 11.6:1 on --ei-ink */

  /* Gold accent: text use is dark-background only */
  --ei-gold:         #c9a227;
  --ei-gold-bright:  #e3bf4a;   /* 9.2:1 on --ei-ink */
  --ei-gold-line:    rgba(201, 162, 39, 0.55);
  --ei-glow:         rgba(201, 162, 39, 0.42);
  --ei-glow-soft:    rgba(201, 162, 39, 0.16);
  --ei-glow-strong:  rgba(227, 191, 74, 0.55);

  /* Lines */
  --ei-rule:         #dedcd6;
  --ei-rule-invert:  rgba(255, 255, 255, 0.16);

  /* Feedback */
  --ei-error:        #a4161a;   /* 7.4:1 on white */
  --ei-error-invert: #ff8b8f;
  --ei-success:      #1c6b3f;

  /* Type */
  /* Display serif for headings, clean sans for anything functional. */
  --ei-font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ei-font-head: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ei-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ei-step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --ei-step-0:  clamp(1rem, 0.96rem + 0.19vw, 1.11rem);
  --ei-step-1:  clamp(1.19rem, 1.11rem + 0.36vw, 1.42rem);
  --ei-step-2:  clamp(1.41rem, 1.29rem + 0.62vw, 1.8rem);
  --ei-step-3:  clamp(1.69rem, 1.49rem + 0.99vw, 2.29rem);
  --ei-step-4:  clamp(2.1rem, 1.7rem + 1.9vw, 3.25rem);
  --ei-step-5:  clamp(2.6rem, 1.9rem + 3.2vw, 4.75rem);

  /* Space */
  --ei-sp-3xs: 0.25rem;
  --ei-sp-2xs: 0.5rem;
  --ei-sp-xs:  0.75rem;
  --ei-sp-s:   1rem;
  --ei-sp-m:   1.5rem;
  --ei-sp-l:   2rem;
  --ei-sp-xl:  3rem;
  --ei-sp-2xl: 4rem;
  --ei-sp-3xl: 6rem;

  /* Layout */
  --ei-measure:      68ch;
  --ei-container:    82rem;
  --ei-container-pad: clamp(1.25rem, 0.75rem + 2.5vw, 4rem);
  --ei-header-h:     4.25rem;

  /* Motion */
  --ei-ease: cubic-bezier(0.2, 0.6, 0.25, 1);
  --ei-dur:  240ms;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep in-page targets clear of the sticky header */
  scroll-padding-top: calc(var(--ei-header-h) + var(--ei-sp-s));
}

body {
  margin: 0;
  background: var(--ei-paper);
  color: var(--ei-text);
  font-family: var(--ei-font-body);
  font-size: var(--ei-step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--ei-font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 var(--ei-sp-s);
  text-wrap: balance;
}

h4 {
  font-family: var(--ei-font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--ei-sp-s);
}

h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3 { font-weight: 600; letter-spacing: -0.01em; }

h1 { font-size: var(--ei-step-5); }
h2 { font-size: var(--ei-step-4); }
h3 { font-size: var(--ei-step-2); }
h4 { font-size: var(--ei-step-1); }

p, ul, ol, dl { margin: 0 0 var(--ei-sp-s); }
p { max-width: var(--ei-measure); text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.18em; }

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

ul, ol { padding-left: 1.25em; }

hr {
  border: 0;
  border-top: 1px solid var(--ei-rule);
  margin: var(--ei-sp-xl) 0;
}

:focus-visible {
  outline: 3px solid var(--ei-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--ei-ink);
  color: var(--ei-paper);
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */

.ei-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ei-container {
  width: 100%;
  max-width: var(--ei-container);
  margin-inline: auto;
  padding-inline: var(--ei-container-pad);
}

.ei-container--narrow { max-width: 48rem; }

.ei-skip-link {
  position: absolute;
  left: var(--ei-sp-s);
  top: -100%;
  z-index: 999;
  background: var(--ei-ink);
  color: var(--ei-text-invert);
  padding: var(--ei-sp-2xs) var(--ei-sp-s);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--ei-dur) var(--ei-ease);
}
.ei-skip-link:focus { top: var(--ei-sp-s); }

/* --------------------------------------------------------------------------
   4. Sections
   -------------------------------------------------------------------------- */

.ei-section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.ei-section--tight { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }

.ei-section--dark {
  background: var(--ei-ink);
  color: var(--ei-text-invert);
}
.ei-section--dark p { color: var(--ei-text-invert-muted); }

.ei-section--alt { background: linear-gradient(180deg, var(--ei-paper-2), var(--ei-paper)); }

.ei-section-head { margin-bottom: var(--ei-sp-xl); }
.ei-section-head p {
  color: var(--ei-text-muted);
  font-size: var(--ei-step-1);
  margin-bottom: 0;
}
.ei-section--dark .ei-section-head p { color: var(--ei-text-invert-muted); }

/* Eyebrow: the gold hairline the brief asks for: a rule, not a fill */
.ei-eyebrow {
  display: block;
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ei-text-muted);
  margin: 0 0 var(--ei-sp-s);
  max-width: none;
}
.ei-section--dark .ei-eyebrow,
.ei-hero .ei-eyebrow,
.ei-cta .ei-eyebrow { color: var(--ei-gold-bright); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.ei-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ei-sp-2xs);
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--ei-font-head);
  font-size: var(--ei-step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--ei-dur) var(--ei-ease),
              color var(--ei-dur) var(--ei-ease),
              border-color var(--ei-dur) var(--ei-ease),
              transform var(--ei-dur) var(--ei-ease);
}
.ei-btn:hover { transform: translateY(-1px); }
.ei-btn:active { transform: translateY(0); }

.ei-btn--primary {
  background: var(--ei-ink);
  color: var(--ei-text-invert);
  border-color: var(--ei-ink);
}
.ei-btn--primary:hover { background: var(--ei-ink-3); border-color: var(--ei-ink-3); }

.ei-btn--secondary {
  background: transparent;
  color: var(--ei-text);
  border-color: var(--ei-ink);
}
.ei-btn--secondary:hover { background: var(--ei-ink); color: var(--ei-text-invert); }

/* On dark grounds */
.ei-section--dark .ei-btn--primary,
.ei-hero .ei-btn--primary,
.ei-cta .ei-btn--primary {
  background: var(--ei-paper);
  color: var(--ei-ink);
  border-color: var(--ei-paper);
}
.ei-section--dark .ei-btn--primary:hover,
.ei-hero .ei-btn--primary:hover,
.ei-cta .ei-btn--primary:hover { background: var(--ei-paper-3); border-color: var(--ei-paper-3); }

.ei-section--dark .ei-btn--secondary,
.ei-hero .ei-btn--secondary,
.ei-cta .ei-btn--secondary {
  color: var(--ei-text-invert);
  border-color: var(--ei-gold);
}
.ei-section--dark .ei-btn--secondary:hover,
.ei-hero .ei-btn--secondary:hover,
.ei-cta .ei-btn--secondary:hover {
  background: transparent;
  border-color: var(--ei-gold-bright);
  color: var(--ei-gold-bright);
}

.ei-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ei-sp-s);
  margin-top: var(--ei-sp-l);
}

/* Text link with gold underline accent */
.ei-link {
  font-family: var(--ei-font-head);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ei-gold);
  padding-bottom: 2px;
  transition: border-color var(--ei-dur) var(--ei-ease);
}
.ei-link:hover { border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.ei-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ei-ink);
  color: var(--ei-text-invert);
  border-bottom: 1px solid var(--ei-rule-invert);
  transition: background var(--ei-dur) var(--ei-ease),
              box-shadow var(--ei-dur) var(--ei-ease),
              border-color var(--ei-dur) var(--ei-ease);
}

/* Condensed, translucent header once the page has been scrolled. */
.ei-header.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ei-gold-line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.ei-header.is-scrolled .ei-header__inner { min-height: 3.6rem; }
.ei-header__inner { transition: min-height var(--ei-dur) var(--ei-ease); }

/* Reading-progress rail: a gold hairline, on-brand as a rule. */
.ei-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--ei-gold), var(--ei-gold-bright));
  transform: scaleX(var(--ei-progress, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity var(--ei-dur) var(--ei-ease);
  pointer-events: none;
}
.ei-header.is-scrolled .ei-header__progress { opacity: 1; }

.ei-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ei-sp-s);
  min-height: var(--ei-header-h);
}

/* Wordmark: wide letterspacing per the brand pack, tightened on small
   screens so the header cannot overflow a 320px viewport. */
.ei-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ei-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ei-text-invert);
  white-space: nowrap;
  min-width: 0;
}
.ei-wordmark__mark {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}
.ei-wordmark__text { min-width: 0; }
.ei-wordmark__sub { color: var(--ei-gold-bright); }

@media (min-width: 26em) {
  .ei-wordmark { letter-spacing: 0.2em; font-size: 1rem; }
}
@media (min-width: 60em) {
  .ei-wordmark { letter-spacing: 0.26em; }
}

/* Toggle */
.ei-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: var(--ei-text-invert);
  border: 1px solid var(--ei-rule-invert);
  border-radius: 2px;
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  flex: none;
}
.ei-nav-toggle:hover { border-color: var(--ei-gold); }

.ei-nav-toggle__bars {
  position: relative;
  width: 1rem;
  height: 0.7rem;
  flex: none;
}
.ei-nav-toggle__bars span,
.ei-nav-toggle__bars::before,
.ei-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ei-dur) var(--ei-ease), opacity var(--ei-dur) var(--ei-ease);
}
.ei-nav-toggle__bars::before { top: 0; }
.ei-nav-toggle__bars span { top: 50%; margin-top: -0.75px; }
.ei-nav-toggle__bars::after { bottom: 0; }

.ei-nav-toggle[aria-expanded="true"] .ei-nav-toggle__bars::before { transform: translateY(0.335rem) rotate(45deg); }
.ei-nav-toggle[aria-expanded="true"] .ei-nav-toggle__bars span { opacity: 0; }
.ei-nav-toggle[aria-expanded="true"] .ei-nav-toggle__bars::after { transform: translateY(-0.335rem) rotate(-45deg); }

/* Nav panel: sits below the sticky header so the toggle stays visible and
   doubles as the close control. */
.ei-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ei-ink);
  border-bottom: 1px solid var(--ei-rule-invert);
  display: none;
}
.ei-nav[data-open="true"] { display: block; }

.ei-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--ei-sp-2xs) var(--ei-container-pad) var(--ei-sp-m);
  display: flex;
  flex-direction: column;
}

.ei-nav__link {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--ei-font-head);
  font-size: var(--ei-step-1);
  font-weight: 600;
  text-decoration: none;
  color: var(--ei-text-invert);
  border-bottom: 1px solid var(--ei-rule-invert);
}
.ei-nav__link:hover { color: var(--ei-gold-bright); }

.ei-nav__cta { margin-top: var(--ei-sp-m); }
.ei-nav__cta .ei-btn { width: 100%; }

/* Desktop nav */
@media (min-width: 60em) {
  .ei-nav-toggle { display: none; }

  .ei-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
  }
  .ei-nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 0.3rem + 1.4vw, 1.9rem);
    padding: 0;
  }
  .ei-nav__link {
    padding: 0.35rem 0;
    font-size: var(--ei-step--1);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
  }
  .ei-nav__cta { margin: 0 0 0 var(--ei-sp-2xs); }
  .ei-nav__cta .ei-btn {
    width: auto;
    min-height: 2.6rem;
    padding: 0.5rem 1.1rem;
    font-size: var(--ei-step--1);
  }
}

/* Active page state, driven by <body data-page> so the header markup stays
   byte-identical across every page and works with JavaScript disabled. */
body[data-page="home"]         .ei-nav__link[href="index.html"],
body[data-page="about"]        .ei-nav__link[href="about.html"],
body[data-page="services"]     .ei-nav__link[href="services.html"],
body[data-page="faq"]          .ei-nav__link[href="faq.html"],
body[data-page="testimonials"] .ei-nav__link[href="testimonials.html"],
body[data-page="contact"]      .ei-nav__link[href="contact.html"] {
  color: var(--ei-gold-bright);
  border-bottom-color: var(--ei-gold);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.ei-hero {
  background: var(--ei-ink);
  color: var(--ei-text-invert);
  padding-block: clamp(3rem, 1.6rem + 6vw, 6rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Soft neutral light from the top right. Deliberately not gold: the brand
   brief restricts gold to thin accents and forbids it as a background. */
.ei-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 82% -18%, rgba(255, 255, 255, 0.075), transparent 62%),
    radial-gradient(700px 420px at 8% 108%, rgba(255, 255, 255, 0.045), transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* Decorative geometry echoing the logo mark. */
.ei-hero__deco {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(56rem, 82%);
  transform: translateY(-50%)
             translate3d(calc(var(--px, 0) * -20px), calc(var(--py, 0) * -16px), 0);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -2;
  opacity: 0.38;
  pointer-events: none;
}
.ei-hero__deco svg { width: 100%; height: auto; display: block; }
.ei-hero__deco [data-draw] {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.js .ei-hero__deco [data-draw] {
  animation: ei-draw 2.4s var(--ei-ease) forwards;
  animation-delay: calc(var(--d, 0) * 160ms + 200ms);
}
@keyframes ei-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 63.99em) {
  .ei-hero__deco { opacity: 0.28; right: -22%; width: 40rem; }
}
.ei-hero::after {
  /* single gold hairline, the one highlighted line the brief permits */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ei-gold), transparent);
}

.ei-hero h1 { max-width: 18ch; }
.ei-hero__lede {
  font-size: var(--ei-step-1);
  line-height: 1.6;
  color: var(--ei-text-invert-muted);
  max-width: 54ch;
}

.ei-hero--page { padding-block: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem); }
.ei-hero--page h1 { max-width: 24ch; }

.ei-breadcrumb {
  font-size: var(--ei-step--1);
  color: var(--ei-text-invert-muted);
  margin-bottom: var(--ei-sp-s);
}
.ei-breadcrumb a { color: inherit; }
.ei-breadcrumb [aria-current] { color: var(--ei-text-invert); }


/* Hero layout: content left, service panel right, so wide screens do not sit
   half empty. Collapses to a single column below 64em. */
.ei-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ei-sp-xl);
  align-items: center;
}
@media (min-width: 64em) {
  .ei-hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--ei-sp-2xl); }
}

.ei-hero__main > :last-child { margin-bottom: 0; }

.ei-hero__panel {
  border: 1px solid var(--ei-rule-invert);
  /* Sits over the decorative line work, so it needs enough weight to keep the
     links legible rather than letting strokes run through the text. */
  background: rgba(16, 16, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--ei-sp-m);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.ei-panel__title {
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ei-gold-bright);
  margin: 0 0 var(--ei-sp-s);
}

.ei-panel__list { list-style: none; margin: 0 0 var(--ei-sp-s); padding: 0; }
.ei-panel__list li + li { border-top: 1px solid var(--ei-rule-invert); }
.ei-panel__list a {
  display: block;
  padding: 0.8rem 0;
  font-family: var(--ei-font-head);
  font-size: var(--ei-step-0);
  font-weight: 600;
  color: var(--ei-text-invert);
  text-decoration: none;
  transition: color var(--ei-dur) var(--ei-ease);
}
.ei-panel__list a:hover { color: var(--ei-gold-bright); }
.ei-panel__foot { margin: 0; }

/* --------------------------------------------------------------------------
   8. Grids + cards
   -------------------------------------------------------------------------- */

.ei-grid {
  display: grid;
  gap: var(--ei-sp-m);
  grid-template-columns: 1fr;
}
@media (min-width: 40em)  { .ei-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40em)  { .ei-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em)  { .ei-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.ei-card {
  background: var(--ei-paper);
  border: 1px solid var(--ei-rule);
  border-top: 2px solid var(--ei-ink);
  padding: var(--ei-sp-m);
  display: flex;
  flex-direction: column;
  transition: border-color var(--ei-dur) var(--ei-ease),
              transform var(--ei-dur) var(--ei-ease);
}
.ei-card:hover { border-top-color: var(--ei-gold); transform: translateY(-2px); }
.ei-card h3 { margin-bottom: var(--ei-sp-2xs); }
.ei-card p { color: var(--ei-text-muted); }
.ei-card > :last-child { margin-bottom: 0; }
.ei-card__foot { margin-top: auto; padding-top: var(--ei-sp-s); }

.ei-card__num {
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ei-text-muted);
  margin-bottom: var(--ei-sp-2xs);
}

/* Split content block */
.ei-split {
  display: grid;
  gap: var(--ei-sp-xl);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 56em) {
  .ei-split { grid-template-columns: 1fr 1fr; gap: var(--ei-sp-2xl); }
  .ei-split--lead { grid-template-columns: 5fr 6fr; }
}

/* Stat / trust row */
.ei-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ei-sp-m);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 40em) { .ei-stats { grid-template-columns: repeat(3, 1fr); } }

.ei-stat { border-top: 1px solid var(--ei-gold-line); padding-top: var(--ei-sp-s); }
.ei-stat__value {
  font-family: var(--ei-font-display);
  font-size: var(--ei-step-3);
  font-weight: 600;
  line-height: 1.1;
  display: block;
}
.ei-stat__label {
  font-size: var(--ei-step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ei-text-muted);
}
.ei-section--dark .ei-stat__label,
.ei-hero .ei-stat__label,
.ei-cta .ei-stat__label { color: var(--ei-text-invert-muted); }

/* Checklist */
.ei-checklist { list-style: none; padding: 0; }
.ei-checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--ei-sp-2xs);
}
.ei-checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.42em;
  width: 0.4rem;
  height: 0.72rem;
  border-right: 2px solid var(--ei-gold);
  border-bottom: 2px solid var(--ei-gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   9. CTA band
   -------------------------------------------------------------------------- */

.ei-cta {
  background: var(--ei-ink);
  color: var(--ei-text-invert);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  border-top: 1px solid var(--ei-gold-line);
}
.ei-cta h2 { max-width: 20ch; }
.ei-cta p { color: var(--ei-text-invert-muted); max-width: 52ch; }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

.ei-form { display: grid; gap: var(--ei-sp-m); max-width: 40rem; }

.ei-field { display: grid; gap: var(--ei-sp-3xs); }

.ei-label {
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ei-label__opt {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ei-text-muted);
}

.ei-input,
.ei-select,
.ei-textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: var(--ei-step-0);
  color: var(--ei-text);
  background: var(--ei-paper);
  border: 1px solid var(--ei-ink-3);
  border-radius: 2px;
  transition: border-color var(--ei-dur) var(--ei-ease), box-shadow var(--ei-dur) var(--ei-ease);
}
.ei-textarea { min-height: 9rem; resize: vertical; }

.ei-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ei-ink) 50%),
                    linear-gradient(135deg, var(--ei-ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.8rem) 1.35rem;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.ei-input:focus,
.ei-select:focus,
.ei-textarea:focus {
  outline: none;
  border-color: var(--ei-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.ei-input[aria-invalid="true"],
.ei-select[aria-invalid="true"],
.ei-textarea[aria-invalid="true"] { border-color: var(--ei-error); }

.ei-hint { font-size: var(--ei-step--1); color: var(--ei-text-muted); }

.ei-error {
  font-size: var(--ei-step--1);
  font-weight: 600;
  color: var(--ei-error);
  min-height: 0;
}
.ei-error:empty { display: none; }

/* Consent checkbox: the label is the hit target, so the text is clickable too. */
.ei-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: var(--ei-step--1);
  color: var(--ei-text-muted);
  line-height: 1.55;
  cursor: pointer;
}

.ei-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--ei-gold);
  cursor: pointer;
}

.ei-checkbox:focus-visible {
  outline: 2px solid var(--ei-gold);
  outline-offset: 2px;
}

.ei-checkbox[aria-invalid="true"] { outline: 2px solid var(--ei-error); outline-offset: 2px; }

.ei-form__note {
  margin-top: var(--ei-sp-2xs);
  font-size: var(--ei-step--1);
  color: var(--ei-text-muted);
  line-height: 1.55;
}

/* Honeypot */
.ei-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ei-form__status {
  padding: var(--ei-sp-s) var(--ei-sp-m);
  border-left: 2px solid var(--ei-gold);
  background: var(--ei-paper-2);
  font-size: var(--ei-step-0);
}
.ei-form__status:empty { display: none; }
.ei-form__status[data-state="error"] { border-left-color: var(--ei-error); }
.ei-form__status[data-state="success"] { border-left-color: var(--ei-success); }
.ei-form__status p:last-child { margin-bottom: 0; }

.ei-form button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }

/* --------------------------------------------------------------------------
   11. Accordion (native <details>, works without JS)
   -------------------------------------------------------------------------- */

.ei-accordion { border-top: 1px solid var(--ei-rule); max-width: 48rem; }

.ei-acc {
  border-bottom: 1px solid var(--ei-rule);
}
.ei-acc > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ei-sp-s);
  padding: var(--ei-sp-s) 0;
  cursor: pointer;
  font-family: var(--ei-font-head);
  font-size: var(--ei-step-1);
  font-weight: 600;
  list-style: none;
}
.ei-acc > summary::-webkit-details-marker { display: none; }
.ei-acc > summary:hover { color: var(--ei-ink-3); }

.ei-acc__icon {
  position: relative;
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.4em;
}
.ei-acc__icon::before,
.ei-acc__icon::after {
  content: "";
  position: absolute;
  background: var(--ei-gold);
  transition: transform var(--ei-dur) var(--ei-ease);
}
.ei-acc__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; margin-top: -0.75px; }
.ei-acc__icon::after  { left: 50%; top: 0; height: 100%; width: 1.5px; margin-left: -0.75px; }
.ei-acc[open] .ei-acc__icon::after { transform: scaleY(0); }

.ei-acc__body { padding-bottom: var(--ei-sp-s); }
.ei-acc__body > :last-child { margin-bottom: 0; }
.ei-acc__body p { color: var(--ei-text-muted); }

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */

.ei-quote {
  border: 1px solid var(--ei-rule);
  border-left: 2px solid var(--ei-gold);
  padding: var(--ei-sp-m);
  margin: 0;
  background: var(--ei-paper);
  display: flex;
  flex-direction: column;
}
.ei-quote blockquote { margin: 0 0 var(--ei-sp-s); }
.ei-quote p { font-size: var(--ei-step-2); font-family: var(--ei-font-display); line-height: 1.35; }
.ei-quote figcaption {
  margin-top: auto;
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ei-text-muted);
}

.ei-placeholder-note {
  border: 1px dashed var(--ei-rule);
  background: var(--ei-paper-2);
  padding: var(--ei-sp-m);
  max-width: var(--ei-measure);
}
.ei-placeholder-note > :last-child { margin-bottom: 0; }


/* --------------------------------------------------------------------------
   12b. Illustration figure
   -------------------------------------------------------------------------- */

.ei-figure {
  margin: var(--ei-sp-xl) 0 0;
  padding: clamp(1.25rem, 0.5rem + 3vw, 2.75rem);
  border: 1px solid var(--ei-rule);
  background: linear-gradient(180deg, var(--ei-paper-2), var(--ei-paper));
  position: relative;
  overflow: hidden;
}
.ei-figure::after {
  /* single gold hairline along the top, consistent with the rest of the site */
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ei-gold), transparent 65%);
}
.ei-figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 34rem;
  margin-inline: auto;
}
@media (max-width: 47.99em) {
  /* Reclaim the container gutters so the artwork is not squeezed on a phone. */
  .ei-figure {
    margin-inline: calc(var(--ei-container-pad) * -1);
    padding: var(--ei-sp-s);
    border-left: 0;
    border-right: 0;
  }
}

.ei-figure figcaption {
  margin: var(--ei-sp-m) auto 0;
  max-width: 62ch;
  font-size: var(--ei-step--1);
  line-height: 1.6;
  color: var(--ei-text-muted);
  text-align: center;
}


/* Illustration animation. Driven by the figure's own reveal class, so it plays
   when the figure scrolls into view and never hides anything without JS. */
.js .ei-figure [data-tl="row"] {
  opacity: 0;
  transform: translateX(-14px);
}
.js .ei-figure.is-visible [data-tl="row"] {
  animation: ei-tl-row 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--row, 0) * 160ms + 200ms);
}
@keyframes ei-tl-row { to { opacity: 1; transform: none; } }

.js .ei-figure [data-tl="square"] {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.2);
}
.js .ei-figure.is-visible [data-tl="square"] {
  animation: ei-tl-square 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--sq, 0) * 45ms + 400ms);
}
@keyframes ei-tl-square { to { opacity: 1; transform: none; } }

.js .ei-figure [data-tl="marker"] {
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.js .ei-figure.is-visible [data-tl="marker"] {
  animation: ei-tl-marker 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 900ms;
}
@keyframes ei-tl-marker { to { transform: none; } }

.js .ei-figure [data-tl="accent"] {
  transform-box: fill-box;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.js .ei-figure.is-visible [data-tl="accent"] {
  animation: ei-tl-accent 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 260ms;
}
@keyframes ei-tl-accent { to { transform: none; } }

.js .ei-figure [data-tl="highlight"] { opacity: 0; }
.js .ei-figure.is-visible [data-tl="highlight"] {
  animation: ei-tl-fade 700ms var(--ei-ease) forwards;
  animation-delay: 700ms;
}
@keyframes ei-tl-fade { to { opacity: 1; } }

/* --------------------------------------------------------------------------
   13. Prose (legal pages)
   -------------------------------------------------------------------------- */

.ei-prose { max-width: var(--ei-measure); }
.ei-prose h2 { font-size: var(--ei-step-2); margin-top: var(--ei-sp-xl); }
.ei-prose h2:first-of-type { margin-top: 0; }
.ei-prose h3 { font-size: var(--ei-step-1); margin-top: var(--ei-sp-m); }
.ei-prose li { margin-bottom: var(--ei-sp-3xs); }
.ei-prose__meta {
  font-size: var(--ei-step--1);
  color: var(--ei-text-muted);
  border-left: 2px solid var(--ei-gold);
  padding-left: var(--ei-sp-s);
  margin-bottom: var(--ei-sp-xl);
}

/* --------------------------------------------------------------------------
   14. Contact details list
   -------------------------------------------------------------------------- */

.ei-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--ei-sp-m); }
.ei-contact-list dt,
.ei-contact-list__label {
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ei-text-muted);
  margin-bottom: var(--ei-sp-3xs);
}
.ei-contact-list__value { font-size: var(--ei-step-1); }
.ei-contact-list__value a { text-decoration-color: var(--ei-gold); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.ei-footer {
  background: var(--ei-ink);
  color: var(--ei-text-invert);
  padding-block: var(--ei-sp-xl) var(--ei-sp-m);
  border-top: 1px solid var(--ei-gold-line);
}

.ei-footer__grid {
  display: grid;
  gap: var(--ei-sp-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 44em) { .ei-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .ei-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.ei-footer__brand p {
  color: var(--ei-text-invert-muted);
  max-width: 34ch;
  font-size: var(--ei-step--1);
}

.ei-footer h2 {
  font-size: var(--ei-step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ei-gold-bright);
  margin-bottom: var(--ei-sp-s);
}

.ei-footer__list { list-style: none; padding: 0; margin: 0; }
.ei-footer__list li { margin-bottom: var(--ei-sp-2xs); }
.ei-footer__list a {
  color: var(--ei-text-invert-muted);
  text-decoration: none;
  font-size: var(--ei-step--1);
}
.ei-footer__list a:hover { color: var(--ei-text-invert); text-decoration: underline; }

.ei-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ei-sp-s);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--ei-sp-s);
}
.ei-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ei-rule-invert);
  border-radius: 2px;
  color: var(--ei-text-invert);
  transition: border-color var(--ei-dur) var(--ei-ease), color var(--ei-dur) var(--ei-ease);
}
.ei-social a:hover { border-color: var(--ei-gold); color: var(--ei-gold-bright); }
.ei-social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

.ei-footer__bar {
  margin-top: var(--ei-sp-xl);
  padding-top: var(--ei-sp-m);
  border-top: 1px solid var(--ei-rule-invert);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ei-sp-2xs) var(--ei-sp-m);
  align-items: center;
  justify-content: space-between;
  font-size: var(--ei-step--1);
  color: var(--ei-text-invert-muted);
}
.ei-footer__legal { display: flex; flex-wrap: wrap; gap: var(--ei-sp-m); list-style: none; padding: 0; margin: 0; }
.ei-footer__legal a { color: inherit; }

.ei-disclaimer {
  margin-top: var(--ei-sp-m);
  font-size: var(--ei-step--1);
  color: var(--ei-text-invert-muted);
  max-width: 90ch;
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */

.ei-404 { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.ei-404 p { margin-inline: auto; }
.ei-404 .ei-btn-row { justify-content: center; }


/* --------------------------------------------------------------------------
   17. Motion and interaction
   -------------------------------------------------------------------------- */

/* Everything here is opt-in behind `.js`, added by an inline script in <head>.
   Without JavaScript the class never appears, so nothing is left hidden. */

/* Scroll reveals ---------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(54px) scale(0.97);
  transition: opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 110ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-reveal="left"]  { transform: translateX(-64px); }
.js [data-reveal="right"] { transform: translateX(64px); }

/* Headline revealed word by word from behind a mask. */
.ei-word { display: inline-block; }
.ei-word > i { display: inline-block; font-style: inherit; will-change: transform, filter, opacity; }
.js .is-split .ei-word > i {
  opacity: 0;
  transform: translateY(0.55em) rotate(3deg) scale(0.96);
  filter: blur(10px);
  animation: ei-word-in 1200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--w, 0) * 85ms + 150ms);
}
@keyframes ei-word-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Rule that draws itself under the headline once the words have landed. */
.ei-hero__rule {
  height: 1px;
  width: min(320px, 55%);
  margin: 0 0 var(--ei-sp-m);
  background: linear-gradient(90deg, var(--ei-gold-bright), transparent);
  box-shadow: 0 0 14px var(--ei-glow);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.js .ei-hero__rule {
  animation: ei-rule-in 1300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 850ms;
}
@keyframes ei-rule-in { to { transform: scaleX(1); } }

.js [data-rise] {
  opacity: 0;
  transform: translateY(34px);
  animation: ei-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 260ms);
}
@keyframes ei-rise { to { opacity: 1; transform: none; } }

/* Hero atmosphere --------------------------------------------------------- */

/* Drifting gold light. The brief restricted gold to hairlines; the client has
   since approved gold glows and gradients, which is what this uses. */
.ei-hero__aurora {
  position: absolute;
  inset: -25%;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(36% 40% at 22% 28%, rgba(201, 162, 39, 0.30), transparent 62%),
    radial-gradient(32% 36% at 80% 20%, rgba(227, 191, 74, 0.22), transparent 64%),
    radial-gradient(42% 46% at 64% 84%, rgba(255, 255, 255, 0.10), transparent 62%);
  filter: blur(30px);
  animation: ei-aurora 22s ease-in-out infinite alternate;
}
@keyframes ei-aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.10); }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.04); }
}

/* Light that follows the pointer. */
.ei-hero__spot {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ei-ease);
  background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, 50%),
              rgba(227, 191, 74, 0.26), transparent 68%);
}

/* Legibility scrim. Gold light behind gold text destroys contrast: at peak
   overlap the eyebrow measured about 3.75:1 against a 4.5 requirement. This
   sits above the glow and below the content, so the glow still reads at the
   edges of the hero while text keeps a dark ground. */
.ei-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(10, 10, 10, 0.93) 0%,
    rgba(10, 10, 10, 0.78) 36%,
    rgba(10, 10, 10, 0.34) 62%,
    rgba(10, 10, 10, 0) 82%);
}
.ei-hero.is-pointing .ei-hero__spot { opacity: 1; }

.ei-hero__deco [data-draw] {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.js .ei-hero__deco [data-draw] {
  animation: ei-draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 200ms);
}
@keyframes ei-draw { to { stroke-dashoffset: 0; } }

/* Slow light sweeping across the hero. */
.ei-hero__sheen {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.075) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: ei-sheen 11s ease-in-out infinite;
}
@keyframes ei-sheen {
  0%        { background-position: 145% 0; }
  55%, 100% { background-position: -45% 0; }
}

/* Motes of gold light drifting upward. */
.ei-hero__motes {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.ei-hero__motes i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ei-gold-bright);
  box-shadow: 0 0 12px var(--ei-glow-strong);
  opacity: 0;
  animation: ei-mote var(--dur, 15s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}
@keyframes ei-mote {
  0%   { opacity: 0;    transform: translateY(30px) scale(0.5); }
  20%  { opacity: 0.75; }
  65%  { opacity: 0.45; }
  100% { opacity: 0;    transform: translateY(-90px) scale(1.15); }
}

.ei-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ei-hero,
.ei-section--dark,
.ei-cta,
.ei-footer { position: relative; isolation: isolate; }

/* Luminous panel ---------------------------------------------------------- */

.ei-hero__panel {
  border: 1px solid transparent;
  border-radius: 3px;
  background-image:
    linear-gradient(rgba(14, 14, 14, 0.86), rgba(14, 14, 14, 0.86)),
    conic-gradient(from var(--ei-angle),
      rgba(201, 162, 39, 0.10) 0deg,
      var(--ei-glow-strong) 60deg,
      rgba(201, 162, 39, 0.08) 150deg,
      var(--ei-glow) 260deg,
      rgba(201, 162, 39, 0.10) 360deg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transform: translate3d(calc(var(--px, 0) * 9px), calc(var(--py, 0) * 7px), 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--ei-sp-m);
  box-shadow: 0 40px 80px -50px #000, 0 0 60px -30px var(--ei-glow);
  transition: box-shadow 400ms var(--ei-ease), transform 400ms var(--ei-ease);
}
.ei-hero__panel:hover {
  box-shadow: 0 40px 80px -46px #000, 0 0 80px -24px var(--ei-glow);
}

/* The gradient border sweeps around the panel. Where @property is unsupported
   the angle simply stays put and the border renders as a static gradient. */
@property --ei-angle {
  syntax: "<angle>";
  initial-value: 140deg;
  inherits: false;
}
.ei-hero__panel {
  --ei-angle: 140deg;
  animation: ei-angle 12s linear infinite;
}
@keyframes ei-angle { to { --ei-angle: 500deg; } }

.js .ei-hero__panel .ei-panel__list li {
  opacity: 0;
  transform: translateX(16px);
  animation: ei-panel-item 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 950ms);
}
@keyframes ei-panel-item { to { opacity: 1; transform: none; } }

.ei-panel__list a {
  position: relative;
  transition: color var(--ei-dur) var(--ei-ease), padding-left 300ms var(--ei-ease);
}
.ei-panel__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.85rem;
  height: 1px;
  background: var(--ei-gold-bright);
  box-shadow: 0 0 8px var(--ei-glow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 300ms var(--ei-ease);
}
.ei-panel__list a:hover { padding-left: 1.5rem; }
.ei-panel__list a:hover::before { transform: scaleX(1); }

/* Cards: tilt in 3D with light tracking the pointer ------------------------ */

.ei-grid { perspective: 1200px; }

.ei-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 420ms var(--ei-ease),
              border-color 420ms var(--ei-ease);
}
.ei-card.is-tilting { transition: box-shadow 420ms var(--ei-ease); }
.ei-card:hover {
  border-color: var(--ei-gold-line);
  box-shadow: 0 40px 70px -46px rgba(0, 0, 0, 0.55), 0 0 46px -28px var(--ei-glow);
}
.ei-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ei-ease);
  background: radial-gradient(200px 200px at var(--gx, 50%) var(--gy, 50%),
              rgba(201, 162, 39, 0.16), transparent 70%);
}
.ei-card:hover .ei-card__glow { opacity: 1; }
.ei-card::after {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ei-gold), var(--ei-gold-bright));
  box-shadow: 0 0 12px var(--ei-glow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ei-card:hover::after,
.ei-card:focus-within::after { transform: scaleX(1); }
.ei-card__num { transition: color var(--ei-dur) var(--ei-ease); }
.ei-card:hover .ei-card__num { color: var(--ei-gold-bright); }

/* Buttons: magnetic, with a gold bloom ------------------------------------ */

.ei-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--ei-dur) var(--ei-ease),
              color var(--ei-dur) var(--ei-ease),
              border-color var(--ei-dur) var(--ei-ease),
              box-shadow 360ms var(--ei-ease),
              transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ei-btn.is-magnetic { transition: box-shadow 360ms var(--ei-ease); }
.ei-btn:hover { transform: none; }
.ei-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ei-btn--secondary::before { background: var(--ei-ink); }
.ei-hero .ei-btn--secondary::before,
.ei-cta .ei-btn--secondary::before,
.ei-section--dark .ei-btn--secondary::before { background: rgba(201, 162, 39, 0.16); }
.ei-btn--primary::before { background: var(--ei-ink-3); }
.ei-hero .ei-btn--primary::before,
.ei-cta .ei-btn--primary::before,
.ei-section--dark .ei-btn--primary::before { background: var(--ei-paper-3); }
.ei-btn:hover::before { transform: scaleX(1); }

.ei-hero .ei-btn--primary:hover,
.ei-cta .ei-btn--primary:hover,
.ei-section--dark .ei-btn--primary:hover { box-shadow: 0 18px 46px -20px rgba(255, 255, 255, 0.4); }
.ei-btn--secondary:hover { box-shadow: 0 0 34px -8px var(--ei-glow); }

/* Stats ------------------------------------------------------------------- */

.ei-stat { position: relative; border-top-color: transparent; }
.ei-stat::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ei-gold), transparent);
  box-shadow: 0 0 10px var(--ei-glow-soft);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 150ms);
}
.ei-stat.is-visible::before { transform: scaleX(1); }
.ei-stat__value { font-variant-numeric: tabular-nums; }

/* Header progress rail ---------------------------------------------------- */

.ei-header__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--ei-gold), var(--ei-gold-bright));
  box-shadow: 0 0 12px var(--ei-glow);
  transform: scaleX(var(--ei-progress, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity var(--ei-dur) var(--ei-ease);
  pointer-events: none;
}
.ei-header.is-scrolled .ei-header__progress { opacity: 1; }

/* Specialties marquee ----------------------------------------------------- */

.ei-marquee {
  background: var(--ei-ink-2);
  color: var(--ei-text-invert-muted);
  border-bottom: 1px solid var(--ei-rule-invert);
  overflow: hidden;
  padding-block: var(--ei-sp-s);
  position: relative;
}
.ei-marquee::before,
.ei-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(2rem, 8vw, 7rem);
  z-index: 2;
  pointer-events: none;
}
.ei-marquee::before { left: 0;  background: linear-gradient(90deg, var(--ei-ink-2), transparent); }
.ei-marquee::after  { right: 0; background: linear-gradient(270deg, var(--ei-ink-2), transparent); }

.ei-marquee__track { display: flex; width: max-content; animation: ei-marquee 46s linear infinite; }
.ei-marquee:hover .ei-marquee__track { animation-play-state: paused; }
.ei-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0;
}
.ei-marquee__group li {
  font-family: var(--ei-font-head);
  font-size: var(--ei-step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.ei-marquee__group li::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ei-gold);
  box-shadow: 0 0 8px var(--ei-glow);
  flex: none;
}
@keyframes ei-marquee { to { transform: translateX(-50%); } }

/* Accordion --------------------------------------------------------------- */

.ei-acc[open] .ei-acc__body { animation: ei-acc-in 460ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes ei-acc-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.ei-acc > summary { transition: color var(--ei-dur) var(--ei-ease); }
.ei-acc > summary:hover { color: var(--ei-gold); }

/* Pointer-driven effects are for fine pointers only. */
@media (hover: none), (pointer: coarse) {
  .ei-hero__spot { display: none; }
}

/* --------------------------------------------------------------------------
   18. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Nothing may stay hidden waiting for an animation that will not play. */
  .js [data-reveal],
  .js [data-rise],
  .js .is-split .ei-word > i {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .js .ei-hero__deco [data-draw] { animation: none !important; stroke-dashoffset: 0 !important; }
  .ei-hero__aurora,
  .ei-hero__sheen { animation: none !important; transform: none !important; }
  .ei-hero__motes { display: none !important; }
  .ei-hero__panel { animation: none !important; transform: none !important; }
  .js .ei-hero__panel .ei-panel__list li { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .ei-hero__rule { animation: none !important; transform: scaleX(1) !important; }
  .ei-hero__deco { transition: none !important; }
  .js .ei-figure [data-tl] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .ei-hero__spot { display: none !important; }
  .ei-marquee__track { animation: none !important; transform: none !important; }
  .ei-stat::before { transform: scaleX(1) !important; }
  .ei-acc[open] .ei-acc__body { animation: none !important; }
  .ei-card, .ei-btn { transform: none !important; }
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */

@media print {
  .ei-header, .ei-footer, .ei-cta, .ei-nav-toggle, .ei-skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .ei-hero { background: none; color: #000; padding-block: 0 var(--ei-sp-m); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
