/* ==========================================================================
   Moretti Consulting — Homepage
   Brand: royal blue #003189 (from logo) · deep navy · brass · foam white
   Type: EB Garamond (display, mirrors Adobe Garamond in print)
         Jost (labels/buttons, mirrors Futura Bold in print)
         Inter (body, for on-screen readability)
   ========================================================================== */

:root {
  --brand: var(--e-global-color-primary, #003189);        /* logo royal blue */
  --brand-deep: var(--e-global-color-brand_deep, #00246b);
  --ink: var(--e-global-color-secondary, #081d3f);          /* blue-black for dark sections */
  --ink-2: #0c2a55;
  --sea: #123963;
  --accent: var(--e-global-color-accent, #c99b45);       /* brass / compass gold */
  --accent-deep: #a97f2f;
  --foam: var(--e-global-color-foam, #f7f6f2);         /* warm off-white */
  --mist: var(--e-global-color-mist, #e8e6de);
  --text: var(--e-global-color-text, #37455c);
  --text-soft: #66758c;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: var(--e-global-typography-primary-font-family, "EB Garamond"), Garamond, Georgia, serif;
  --sans: var(--e-global-typography-text-font-family, "Inter"), system-ui, sans-serif;
  --label: var(--e-global-typography-secondary-font-family, "Jost"), "Futura", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

section[id], [id="assessments"], [id="healthcare"] { scroll-margin-top: calc(var(--nav-h) + 12px); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.005em;
}

h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.42rem; line-height: 1.28; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- shared bits ---------- */

.kicker {
  font-family: var(--label);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--accent);
}
.kicker--light { color: var(--accent); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__sub { margin-top: 1.1rem; color: var(--text-soft); font-size: 1.05rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--label);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* primary on dark imagery: crisp white, near-black text */
.btn--primary {
  background: var(--white);
  color: #14181f;
  box-shadow: 0 14px 34px -14px rgba(2, 12, 32, .65);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(2,12,32,.7); }

/* primary on light sections: brand royal blue */
.btn--accent {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 12px 30px -12px rgba(0, 49, 137, .55);
}
.btn--accent:hover { transform: translateY(-2px); background: var(--brand-deep); box-shadow: 0 18px 38px -14px rgba(0,49,137,.6); }

.btn--ghost {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--white); background: rgba(255,255,255,.12); }

.btn--dark { background: var(--brand); color: var(--white); }
.btn--dark:hover { transform: translateY(-2px); background: var(--brand-deep); }

.btn--light { background: var(--white); color: #14181f; }
.btn--light:hover { transform: translateY(-2px); }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--white);
}
.nav__wordmark {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: .005em;
  white-space: nowrap;
}
.nav__wordmark em {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: .05em;
}

.nav.scrolled {
  background: rgba(6, 20, 44, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(3, 10, 24, .6);
}

/* hamburger */

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 9.5rem;
}

.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: center 30%;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,16,38,.66) 0%, rgba(5,16,38,.34) 42%, rgba(5,16,38,.82) 100%),
    radial-gradient(70% 55% at 50% 46%, rgba(4,12,30,.35) 0%, rgba(4,12,30,0) 65%);
}

.hero__content { position: relative; max-width: 920px; }

/* eyebrow: short, one line, geometric label with flanking rules */
.hero__eyebrow {
  font-family: var(--label);
  font-size: clamp(.72rem, 1.1vw, .82rem);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 12px rgba(4,12,30,.6);
  margin-bottom: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  white-space: nowrap;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: clamp(26px, 5vw, 56px);
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, rgba(201,155,69,.85));
}
.hero__eyebrow::after {
  background: linear-gradient(90deg, rgba(201,155,69,.85), transparent);
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.6rem, 6.6vw, 5.1rem);
  font-weight: 500;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(4,12,30,.4);
}
.hero__title span { font-style: italic; font-weight: 400; color: #ecdfc3; }

.hero__sub {
  max-width: 580px;
  margin: 1.6rem auto 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 12px rgba(4,12,30,.55);
}

.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* scroll cue sits in flow, safely clear of the buttons */
.hero__scrollcue {
  position: relative;
  display: none;
  width: 26px; height: 42px;
  margin: 3.2rem auto 0;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
}
.hero__scrollcue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--white);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}
@media (min-height: 760px) { .hero__scrollcue { display: block; } }

/* industries band */
.hero__foot {
  position: absolute;
  bottom: 2.1rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(920px, 100% - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.05rem;
}
.hero__foot-label {
  font-family: var(--label);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.hero__foot-label::before,
.hero__foot-label::after {
  content: "";
  width: clamp(30px, 8vw, 70px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
}
.hero__foot-label::after {
  background: linear-gradient(90deg, rgba(255,255,255,.5), transparent);
}
.hero__industries {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: .5rem;
}
.hero__industries li {
  font-family: var(--label);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(4,12,30,.6);
  display: flex;
  align-items: center;
}
.hero__industries li + li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--accent);
  rotate: 45deg;
  margin: 0 1.15rem;
  flex: none;
  opacity: .9;
}

@media (max-width: 640px) {
  .hero { padding-bottom: 10rem; }
  .hero__eyebrow { font-size: .6rem; letter-spacing: .18em; gap: 0; }
  .hero__eyebrow::before, .hero__eyebrow::after { display: none; }

  /* buttons side by side on phones: split the row evenly, never overflow */
  .hero__actions { gap: .6rem; flex-wrap: nowrap; width: 100%; }
  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: .85rem .4rem;
    font-size: .82rem;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  .hero__actions .btn svg { width: 14px; height: 14px; flex: none; }

  .hero__foot-label { font-size: .62rem; letter-spacing: .26em; }
  .hero__industries li { font-size: .68rem; letter-spacing: .08em; }
  .hero__industries li + li::before { width: 3px; height: 3px; margin: 0 .6rem; }
  .br-desk { display: none; }
}

/* ==========================================================================
   PHILOSOPHY
   ========================================================================== */

.philosophy {
  position: relative;
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  text-align: center;
  overflow: hidden;
}

.philosophy__wind {
  position: absolute;
  left: -40px;
  top: 14%;
  width: clamp(240px, 26vw, 400px);
  color: #ccd3de;
  pointer-events: none;
}
.philosophy__wind path {
  stroke-dasharray: 6 12;
  animation: windflow 9s linear infinite;
}
.philosophy__wind .wind-2 { animation-duration: 12s; animation-delay: -3s; opacity: .8; }
.philosophy__wind .wind-3 { animation-duration: 10.5s; animation-delay: -6s; opacity: .6; }
@keyframes windflow {
  to { stroke-dashoffset: -180; }
}

.philosophy__compass {
  position: absolute;
  right: -70px;
  top: 50%;
  translate: 0 -50%;
  width: clamp(260px, 30vw, 420px);
  color: var(--mist);
  opacity: .85;
  pointer-events: none;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .philosophy__compass, .philosophy__wind path { animation: none; }
}

.philosophy .kicker { justify-content: center; }
.philosophy .kicker::before { display: none; }

.philosophy__statement {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  max-width: 820px;
  margin-inline: auto;
}
.philosophy__statement em {
  font-style: italic;
  color: var(--brand);
}
.philosophy__body {
  max-width: 640px;
  margin: 1.8rem auto 0;
  font-size: 1.08rem;
  color: var(--text-soft);
}

@media (max-width: 700px) {
  .philosophy__wind { opacity: .5; top: 4%; }
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats {
  background: linear-gradient(150deg, var(--ink) 0%, var(--brand-deep) 130%);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: .4rem;
}
.stat__label { font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.5; }

@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } .stat__label { font-size: .8rem; } }

/* ==========================================================================
   PRINCIPLES
   ========================================================================== */

.principles {
  position: relative;
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  background: linear-gradient(180deg, var(--foam) 0%, #eef0ee 100%);
  overflow: hidden;
}
.principles__course {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #c7d0da;
  pointer-events: none;
}

.principles .container { position: relative; }

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.principle {
  background: var(--white);
  border: 1px solid #e4e1d8;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.principle:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -22px rgba(4, 18, 46, .3);
  border-color: var(--accent);
}
.principle::after {
  content: "";
  position: absolute;
  left: 1.8rem; right: 1.8rem; top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
  transform-origin: left;
}
.principle:hover::after { transform: scaleX(1); }

.principle__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.principle__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(0, 49, 137, .07);
  color: var(--brand);
  display: grid;
  place-items: center;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.principle__icon svg { width: 28px; height: 28px; }
.principle:hover .principle__icon {
  background: var(--brand);
  color: var(--white);
  transform: rotate(-5deg) scale(1.06);
}
.principle__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent-deep);
}
.principle h3 { margin-bottom: .9rem; }
.principle p { font-size: .92rem; line-height: 1.6; }
.principle__water { color: var(--text-soft); padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px dashed var(--mist); }
.principle p b { color: var(--ink); font-weight: 600; }

.principle--cta {
  background: linear-gradient(150deg, var(--ink) 0%, var(--brand-deep) 100%);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.principle--cta h3 { color: var(--white); }
.principle--cta p { color: rgba(255,255,255,.78); }
.principle--cta .btn { align-self: flex-start; }

@media (max-width: 980px) { .principles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .principles__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service {
  background: var(--white);
  border: 1px solid #e4e1d8;
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -22px rgba(4, 18, 46, .26);
}

.service__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(0, 49, 137, .07);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.service__icon svg { width: 34px; height: 34px; }
.service:hover .service__icon {
  background: var(--brand);
  color: var(--white);
  transform: rotate(-6deg) scale(1.05);
}

.service h3 { margin-bottom: .8rem; }
.service p { font-size: .95rem; flex: 1; }

.service__link {
  margin-top: 1.4rem;
  font-family: var(--label);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--brand);
  text-decoration: none;
  transition: color .3s;
}
.service__link:hover { color: var(--accent-deep); }
.service__link--light { color: var(--accent); }
.service__link--light:hover { color: var(--white); }

/* wide cards: image on top, solid body below — copy stays fully legible */
.services__wide {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.widecard {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.widecard:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px -24px rgba(4, 18, 46, .45);
}

.widecard__media {
  position: relative;
  height: 240px;
  overflow: hidden;
  flex: none;
}
.widecard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.widecard:hover .widecard__media img { transform: scale(1.06); }
.widecard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,29,63,.08) 55%, rgba(8,29,63,.85) 100%);
}

.widecard__body {
  padding: 2rem 2.2rem 2.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.widecard__body h3 { color: var(--white); margin-bottom: .7rem; }
.widecard__body p { font-size: .95rem; color: rgba(255,255,255,.85); max-width: 52ch; flex: 1; }
.widecard__body .service__link { margin-top: 1.3rem; }

@media (max-width: 980px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__wide { grid-template-columns: 1fr; }
  .widecard__media { height: 210px; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about {
  background: var(--white);
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 24px 24px 0 -8px var(--mist);
}

.about__badge {
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: rgba(6, 20, 44, .84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,.87);
  font-size: .82rem;
  line-height: 1.45;
}
.about__badge-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--accent);
  white-space: nowrap;
}

.about__body h2 { margin-bottom: 1.3rem; }
.about__body p { margin-bottom: 1.1rem; max-width: 54ch; }
.about__body strong { color: var(--brand); }

.about__quote {
  border-left: 3px solid var(--accent);
  padding: .4rem 0 .4rem 1.3rem;
  margin: 1.6rem 0 1.9rem;
}
.about__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
}

/* founder chip */
.about__founder {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.9rem;
  padding: .55rem 1.3rem .55rem .55rem;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: var(--foam);
}
.about__founder img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 4px 12px -4px rgba(4, 18, 46, .35);
}
.about__founder strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.about__founder span {
  font-family: var(--label);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  
}

/* ==========================================================================
   QUOTE BAND
   ========================================================================== */

.quoteband {
  position: relative;
  padding: clamp(6rem, 13vw, 10rem) 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.quoteband__media, .quoteband__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.quoteband__media img { object-fit: cover; object-position: center 60%; }
.quoteband__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,20,44,.55), rgba(6,20,44,.74));
}
.quoteband__content { position: relative; }
.quoteband blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.32;
  max-width: 840px;
  margin-inline: auto;
  text-wrap: balance;
}
.quoteband figcaption {
  margin-top: 1.4rem;
  font-family: var(--label);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  background: var(--foam);
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.cta__body h2 { margin-bottom: 1.2rem; }
.cta__body > p { max-width: 52ch; color: var(--text-soft); }

.cta__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.cta .btn--ghost {
  color: var(--brand);
  border-color: rgba(0, 49, 137, .35);
}
.cta .btn--ghost:hover { border-color: var(--brand); background: rgba(0, 49, 137, .05); }

.cta__meta {
  margin-top: 1.4rem;
  font-size: .85rem;
  color: var(--text-soft);
  letter-spacing: .02em;
}

.cta__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: -24px 24px 0 -8px var(--mist);
}
.cta__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; }
  .cta__media { order: -1; max-width: 560px; }
  .cta__media img { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 3rem;
}

.footer__brand p { margin: 1.2rem 0 1.4rem; font-size: .92rem; max-width: 34ch; }

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--accent);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: color .3s;
}
.footer__linkedin:hover { color: #d8ab55; }
.footer__linkedin svg { width: 17px; height: 17px; }

.footer__col h4 {
  font-family: var(--label);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.2rem;
}
.footer__col a {
  display: block;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .93rem;
  margin-bottom: .7rem;
  transition: color .3s;
}
.footer__col a:hover { color: var(--accent); }
.footer__col p { font-size: .93rem; margin-bottom: .9rem; }

.footer__wbe {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .06em;
  padding: .45rem .85rem;
  border: 1px solid rgba(201,155,69,.45);
  border-radius: 999px;
  color: var(--accent);
}

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__credit a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .3s;
}
.footer__credit a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer__bar-inner { justify-content: center; text-align: center; }
}

/* ==========================================================================
   BLOG / INNER TEMPLATES (index, single, page)
   ========================================================================== */

body.admin-bar .nav { top: 32px; }

/* ==========================================================================
   CMS LAYER — core block adjustments (navigation block, block-native content)
   ========================================================================== */

.hero__title em { font-style: italic; font-weight: 400; color: #ecdfc3; }
.principle p strong { color: var(--ink); font-weight: 600; }
figure.wp-block-image { margin: 0; }
.wp-block-quote.about__quote { border-left: 3px solid var(--accent); margin: 1.6rem 0 1.9rem; padding: .4rem 0 .4rem 1.3rem; }

.hero__eyebrow p, .philosophy .kicker p, .kicker p { margin: 0; display: inline; }
.kicker.elementor-widget { display: flex; }

/* buttons */
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.cta__actions { margin-top: 2rem; }
.cta__actions.e-con { --gap: 1rem; --column-gap: 1rem; }

/* counters */
.stat-el .elementor-counter-number-wrapper {
  font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  color: var(--accent); line-height: 1.1; margin-bottom: .4rem; justify-content: flex-start;
}
.stat-el .elementor-counter-title { font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.5; text-align: left; }
.stat__num-el { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.1rem); color: var(--accent); line-height: 1.1; margin-bottom: .4rem; }
.stat__label-el { font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.5; }

/* nav menu widget: desktop */
.nav { z-index: 100; }
.nav .elementor-nav-menu--layout-horizontal .elementor-nav-menu { gap: 2rem; }
.nav .elementor-nav-menu--main .elementor-item {
  color: rgba(255,255,255,.88); font-family: var(--label); font-size: .9rem;
  font-weight: 500; letter-spacing: .06em; padding: 0; position: relative; transition: color .3s;
}
.nav .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-item:hover { color: var(--white); }
.nav .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-item:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--white); }

/* nav menu widget: dropdown panel (desktop submenu) */
/* nav menu widget: toggle + mobile dropdown */
/* header layout */
.nav.e-con { position: fixed; inset: 0 0 auto 0; }

.nav__cta-el { flex: none; }
.nav__cta-el .elementor-button { padding: .62rem 1.4rem; font-size: .9rem; }
@media (max-width: 1024px) { .nav__cta-el { display: none; } }

/* image widget */
.elementor-widget-image.cta__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* quote band via Elementor background */
.quoteband .quoteband__content { position: relative; }

/* ghost button on light CTA section */
/* heading typography: serif system applied to Elementor heading widgets */
/* html widgets must not become containing blocks: their absolute children
   (hero foot, decorative SVGs) anchor to the section containers instead */
.elementor-widget-html.elementor-widget-html { position: static; }

/* Elementor editor canvas: reveal animations are frontend-only behavior.
   Without this, .reveal elements sit at opacity:0 in the editor (theme JS
   does not run there) and the canvas looks blank. */
.elementor-editor-active .reveal,
body.elementor-editor-preview .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* footer handoff pass */
.footer__col .elementor-heading-title { font-family: var(--label); font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.footer__grid.e-con { display: grid; }

/* ==========================================================================
   STRUCTURAL LAYER — only what Elementor controls cannot express.
   Colours, fonts, sizes, paddings now live in Elementor (Site Settings +
   per-widget controls). Do not re-add them here.
   ========================================================================== */

.btn-el .elementor-button { display: inline-flex; align-items: center; gap: .6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn-el .elementor-button:hover { transform: translateY(-2px); }
.btn-el--primary .elementor-button { box-shadow: 0 14px 34px -14px rgba(2,12,32,.55); }

/* wide card image: pre-scale + GPU layer removes the sub-pixel white edge on hover zoom */
.widecard__media { overflow: hidden; transform: translateZ(0); }
.widecard__media img { transform: scale(1.03); backface-visibility: hidden; will-change: transform; }
.widecard:hover .widecard__media img { transform: scale(1.09); }

/* submenu chevron: smooth rotation + panel entrance */

@keyframes ddIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav .elementor-nav-menu--main .sub-menu { animation: none; } }

/* quote band + footer: layout only */
.quoteband__content.e-con { text-align: center; }
.footer__col .elementor-icon-list-item { margin-bottom: 0; }

/* header brand sits on dark imagery: opt out of the global link colour */
.nav .nav__brand, .nav .nav__brand:hover { color: var(--white); text-decoration: none; }
.footer .nav__brand, .footer .nav__brand:hover { color: var(--white); text-decoration: none; }

/* menu toggle: shape only (colour comes from the widget's Toggle Button controls) */
.nav .elementor-menu-toggle { border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; width: 46px; height: 46px; background: transparent; }
.nav .elementor-nav-menu--dropdown { border-radius: 0 0 16px 16px; overflow: hidden; }

/* kicker: keep the rule flush with the first line when the label wraps */
.widecard__body .kicker { align-items: flex-start; line-height: 1.5; }
.widecard__body .kicker::before { margin-top: .6em; flex: none; }

/* ==========================================================================
   PASS 4 — native-widget adaptations
   ========================================================================== */

/* submenu chevron: sized up and always the same colour as its label */
/* wide card image widget */
.widecard__media.elementor-widget-image { height: 240px; position: relative; overflow: hidden; transform: translateZ(0); }
.widecard__media .elementor-widget-container, .widecard__media figure, .widecard__media img { height: 100%; width: 100%; margin: 0; display: block; }
.widecard__media img { object-fit: cover; transform: scale(1.03); backface-visibility: hidden; will-change: transform; transition: transform .8s var(--ease); }
.widecard:hover .widecard__media img { transform: scale(1.09); }

/* about: photo column matches the copy column height, badge overlays it */
.about__media.e-con { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 24px 24px 0 -8px var(--mist); align-self: stretch; min-height: 100%; }
.about__photo.elementor-widget-image, .about__photo .elementor-widget-container, .about__photo figure { height: 100%; margin: 0; }
.about__photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
.about__media .about__badge { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; margin: 0; }
.about__grid.e-con { align-items: stretch; }

/* about quote as a text widget keeps its rule */
.about__quote.elementor-widget-text-editor { border-left: 3px solid var(--accent); padding: .4rem 0 .4rem 1.3rem; margin: 1.6rem 0 1.9rem; }
.about__quote.elementor-widget-text-editor p { margin: 0; }

@media (max-width: 900px) {
  .about__media.e-con { min-height: 0; box-shadow: 16px 16px 0 -8px var(--mist); }
  .about__photo img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .about__photo img { aspect-ratio: 3 / 2.4; }
  .about__media .about__badge { left: .75rem; right: .75rem; bottom: .75rem; padding: .8rem .9rem; font-size: .76rem; }
  .about__badge-num { font-size: 1.35rem; }
}

/* footer WBE badge card */
.wbe-card { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.4rem; padding: .85rem 1.1rem; border: 1px solid rgba(201,155,69,.35); border-radius: 14px; background: linear-gradient(140deg, rgba(201,155,69,.13), rgba(201,155,69,.04)); }
.wbe-card__seal { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(201,155,69,.16); color: var(--accent); }
.wbe-card__text { display: flex; flex-direction: column; line-height: 1.35; }
.wbe-card__text strong { font-family: var(--label); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.wbe-card__text em { font-style: normal; font-size: .78rem; color: rgba(255,255,255,.6); }

/* phones: the caption stops covering the photo and sits beneath it instead */
@media (max-width: 600px) {
  .about__media.e-con { overflow: visible; box-shadow: none; border-radius: 0; }
  .about__photo img { aspect-ratio: 4 / 3.2; border-radius: var(--radius); }
  .about__media .about__badge { position: static; margin: .8rem 0 0; left: auto; right: auto; bottom: auto; border-radius: var(--radius-sm); backdrop-filter: none; background: var(--ink); }
}

/* ==========================================================================
   PASS 5 — menu mechanics, glass buttons, card rhythm
   ========================================================================== */

/* menu items carry their own vertical padding, so the underline is pinned to
   the text baseline instead of the padded box edge */
.nav .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-item { position: relative; }
.nav .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-item::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: .72em;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-item:hover::after,
.nav .elementor-nav-menu--main > .elementor-nav-menu > li:hover > .elementor-item::after { transform: scaleX(1); transform-origin: left; }

/* submenu chevron: small, tucked close, always the label's colour */
.nav .elementor-nav-menu .sub-arrow { display: inline-flex; align-items: center; margin-left: 4px; color: inherit; font-size: 10px; line-height: 1; }
.nav .elementor-nav-menu .sub-arrow svg, .nav .elementor-nav-menu .sub-arrow svg.e-font-icon-svg { width: 1em; height: 1em; fill: currentColor; }
.nav .elementor-nav-menu li:hover > a .sub-arrow svg { transform: rotate(180deg); transition: transform .3s var(--ease); }

/* the panel must not linger — a hover bridge keeps the pointer 'inside' while
   travelling the gap, so the menu can close instantly on real exit */
.nav .elementor-nav-menu--main .sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

/* glass button (ghost on imagery) — Elementor owns the colours, CSS adds the blur */
.btn-el--ghost .elementor-button { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* card rhythm now comes from the container gap, so kill inherited paragraph margins */
.principle .elementor-widget-text-editor p, .service .elementor-widget-text-editor p,
.widecard__body .elementor-widget-text-editor p, .stat .elementor-widget-text-editor p { margin: 0; }
.principle__water { padding-bottom: .8rem; border-bottom: 1px dashed var(--mist); }
.principle h3, .service h3 { margin: 0; }

/* founder chip rebuilt from native widgets */
.about__founder.e-con { flex-direction: row; align-items: center; gap: .9rem; width: max-content; max-width: 100%; padding: .55rem 1.3rem .55rem .55rem; border: 1px solid var(--mist); border-radius: 999px; background: var(--foam); margin-bottom: 1.9rem; }
.about__founder-photo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 4px 12px -4px rgba(4,18,46,.35); display: block; }
.about__founder-text.e-con { width: auto; gap: 0; }
.about__founder-role p { margin: 0; }

/* ==========================================================================
   PASS 6 — viewport safety, badge anchoring, minimal footer
   ========================================================================== */

/* nothing may exceed the viewport: the fixed bar is measured against the
   viewport itself, never against a document that has overflowed */
html, body { overflow-x: clip; max-width: 100%; }
.nav.e-con { position: fixed; inset: 0 0 auto 0; width: 100%; max-width: 100vw; }
.nav .nav__inner.e-con {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  height: var(--nav-h); width: 100%; max-width: var(--container);
  padding-inline: 1.5rem; margin-inline: auto; gap: 1rem;
}
.nav .elementor-widget-nav-menu { flex: 0 0 auto; min-width: 0; }
.nav .nav__brand { min-width: 0; }
@media (max-width: 480px) { .nav .nav__wordmark { font-size: 1.16rem; } .nav .nav__inner.e-con { padding-inline: 1.1rem; } }

/* desktop submenu sizing only — must never touch the mobile panel */
@media (min-width: 1025px) {
  .nav .elementor-nav-menu--main .sub-menu { min-width: 290px; margin-top: 14px; animation: ddIn .28s var(--ease) both; }
}

/* the badge anchors to the photo frame, never to the widget wrapper */
.about__media.e-con { position: relative; }
.about__media .elementor-widget-html { position: static; }
.about__media .about__badge { position: absolute; inset: auto 1.2rem 1.2rem 1.2rem; width: auto; max-width: calc(100% - 2.4rem); margin: 0; }
@media (max-width: 900px) { .about__media .about__badge { inset: auto 1rem 1rem 1rem; max-width: calc(100% - 2rem); } }
@media (max-width: 600px) {
  .about__media .about__badge { position: static; inset: auto; width: 100%; max-width: 100%; margin: .8rem 0 0; }
}

/* ---- footer: quieter, roomier, fewer ornaments ---- */
.footer { border-top: 1px solid rgba(201,155,69,.22); }
.footer__grid.e-con { padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem 2.5rem; gap: clamp(2rem, 5vw, 4rem); }
.footer__brand p { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.58); max-width: 30ch; }
.footer__linkedin { font-size: .84rem; font-weight: 500; letter-spacing: .02em; }
.footer .elementor-icon-list-item a, .footer .elementor-icon-list-item span { letter-spacing: .01em; }
.footer .elementor-icon-list-icon { opacity: .75; }
.footer__bar { padding: 1.15rem 0; font-size: .76rem; letter-spacing: .015em; border-top: 1px solid rgba(255,255,255,.07); }
.footer__bar-inner { padding-inline: 1.5rem; }

/* WBE mark: a hairline pill instead of a filled card */
.wbe-card { display: inline-flex; align-items: center; gap: .65rem; max-width: 100%; margin-top: 1.5rem; padding: .55rem .95rem .55rem .6rem; border: 1px solid rgba(201,155,69,.3); border-radius: 999px; background: transparent; }
.wbe-card__seal { width: 26px; height: 26px; background: rgba(201,155,69,.14); }
.wbe-card__seal svg { width: 14px; height: 14px; }
.wbe-card__text strong { font-size: .72rem; letter-spacing: .14em; }
.wbe-card__text em { font-size: .72rem; color: rgba(255,255,255,.5); }
@media (max-width: 420px) { .wbe-card__text em { display: none; } }

/* the photo frame stacks image over caption; never let it wrap into columns */
.about__media.e-con { flex-wrap: nowrap; }
@media (max-width: 600px) { .about__media.e-con { min-height: 0; height: auto; align-self: start; } }

/* ==========================================================================
   INNER PAGES — shared chrome
   Structural only. Colours, fonts and sizes live in Elementor.
   ========================================================================== */

/* the homepage hero fills the viewport; inner heroes are a band, not a stage */
.hero--page {
  min-height: clamp(30rem, 62svh, 40rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.hero--page .hero__content { max-width: 860px; }
.hero--page .hero__sub { max-width: 620px; }

/* headline pattern: first half roman, second half italic */
.head-em em { font-style: italic; color: var(--brand); }
.head-em--light em { color: #ecdfc3; }

/* a centred section head, for sections whose body is centred too */
.section-head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

/* ==========================================================================
   OUR APPROACH — 1. THE LABORATORY
   ========================================================================== */

.lab { padding: clamp(5rem, 10vw, 8.5rem) 0; background: var(--foam); }

.lab__grid.e-con {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.lab__media.elementor-widget-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: -24px 24px 0 -8px var(--mist);
}
.lab__media .elementor-widget-container, .lab__media figure { margin: 0; }
.lab__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; }

/* the four racing conditions, read as one instrument cluster */
.conditions {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2.2rem;
  background: var(--mist);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.conditions li {
  background: var(--white);
  padding: 1.1rem 1.2rem;
  transition: background .4s var(--ease);
}
.conditions li:hover { background: #fdfcf8; }
.conditions__label {
  display: block;
  font-family: var(--label);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .4rem;
}
.conditions__label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: .6rem;
  background: var(--accent);
  transform: rotate(45deg);
  vertical-align: middle;
}
.conditions__note {
  display: block;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .lab__grid.e-con { grid-template-columns: 1fr; }
  .lab__media.elementor-widget-image { box-shadow: none; }
  .lab__media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 440px) { .conditions { grid-template-columns: 1fr; } }

/* ==========================================================================
   OUR APPROACH — 2. THE COURSE
   Five principles laid out as marks between the start gun and the finish line.
   The cards themselves are the existing .principle component; only the course
   geometry is new.
   ========================================================================== */

.course {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  background: linear-gradient(180deg, var(--foam) 0%, #eef0ee 100%);
}
.course .container { position: relative; }

.course__track.e-con {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.course__track::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  border-left: 2px dashed #c3ccd7;
  transform: translateX(-1px);
  pointer-events: none;
}

/* start / finish markers ride the line inside a solid pill, so the dashes
   never run through the label */
.course__flag { align-self: center; text-align: center; }
.course__flag-inner {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.15rem;
  border: 1px solid #e4e1d8;
  border-radius: 999px;
  background: var(--white);
}
.course__flag-mark {
  width: 9px; height: 9px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
}
.course__flag--finish .course__flag-mark { background: var(--brand); }
.course__flag-label {
  font-family: var(--label);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mark.e-con { width: calc(50% - 42px); align-self: flex-start; }
.mark--right.e-con { align-self: flex-end; }

/* the buoy: a mark on the course, level with the card's icon */
.mark::before {
  content: "";
  position: absolute;
  top: 2.6rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* Elementor gives every container its own ::before overlay with left:0. A bare
   `right` would lose to it, so both sides are reset explicitly. */
.mark:not(.mark--right)::before { right: -50px; left: auto; bottom: auto; }
.mark--right::before { left: -50px; right: auto; bottom: auto; }
.mark:hover::before {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(201, 155, 69, .16);
}

@media (max-width: 900px) {
  .course__track::before { left: 21px; }
  .mark.e-con, .mark--right.e-con { width: calc(100% - 62px); align-self: flex-end; }
  .mark:not(.mark--right)::before, .mark--right::before { left: -49px; right: auto; }
  .course__flag { align-self: flex-start; margin-left: -0.4rem; }
}
@media (max-width: 640px) {
  .course__track::before { left: 13px; }
  .mark.e-con, .mark--right.e-con { width: calc(100% - 38px); }
  .mark:not(.mark--right)::before, .mark--right::before { left: -31px; width: 12px; height: 12px; top: 2.2rem; }
  .course .principle { padding: 1.6rem 1.3rem; }
  .course .principle::after { left: 1.3rem; right: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mark::before, .conditions li { transition: none; }
}

/* ==========================================================================
   OUR APPROACH — 3. HOW WE WORK
   ========================================================================== */

.howwework {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  background: linear-gradient(160deg, var(--ink) 0%, var(--brand-deep) 100%);
}
.howwework::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent);
}
.howwework .container { position: relative; }

.hww__list.e-con { border-top: 1px solid rgba(255, 255, 255, .16); }

.hww__row.e-con {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(190px, 250px) 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.7rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: background .4s var(--ease);
}
.hww__row::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.hww__row:hover { background: rgba(255, 255, 255, .045); }
.hww__row:hover::before { transform: scaleY(1); }
.hww__row .elementor-widget-text-editor p { margin: 0; }

/* the positioning line the firm uses across all its print collateral */
/* Elementor caps every container child at 100% from `.elementor.elementor
   .e-con > .elementor-widget` (0,4,0) - this selector has to outrank it. */
.howwework .container.e-con > .hww__note.elementor-widget {
  max-width: 760px;
  margin: clamp(2.6rem, 5vw, 4rem) auto 0;
  margin-inline: auto;
  position: relative;
  padding-top: 2.2rem;
}
.hww__note::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 40px; height: 2px;
  transform: translateX(-50%);
  background: var(--accent);
}

@media (max-width: 860px) {
  .hww__row.e-con { grid-template-columns: 54px 1fr; gap: .4rem 1.1rem; align-items: start; }
  .hww__row .hww__num { grid-row: span 2; }
}
@media (max-width: 480px) {
  .hww__row.e-con { grid-template-columns: 1fr; gap: .45rem; padding: 1.5rem .2rem; }
  .hww__row .hww__num { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hww__row, .hww__row::before { transition: none; }
}
