/* Hemalio editorial redesign — isolated layer; the pre-redesign HTML does not load it. */
:root {
  --intro-media-top: 84px;
  --intro-media-inline-inset: 32px;
  --r-ink: #10182d;
  --r-navy: #0b1430;
  --r-blue: #2f5fe0;
  --r-blue-dark: #2146aa;
  --r-coral: #ec5a3a;
  --r-paper: #f5f4f0;
  --r-surface: #fbfaf7;
  --r-rule: rgba(16, 24, 45, .15);
  --r-muted: #62697a;
  --r-ease-out: cubic-bezier(.23, 1, .32, 1);
  --r-ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

html { background: var(--r-paper); }
body {
  background: var(--r-paper);
  color: var(--r-ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.section-inner { width: min(calc(100% - 64px), 1240px); }
section { padding: clamp(80px, 8vw, 120px) 0; }
.section-kicker {
  margin-bottom: 22px;
  color: var(--r-coral);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .15em;
  line-height: 1.3;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 590;
  letter-spacing: -.045em;
  line-height: .99;
}
.section-lede {
  max-width: 600px;
  margin-bottom: 56px;
  color: var(--r-muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}

/* Crisp, quiet navigation. */
.site-header {
  height: 68px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 15, 35, .82);
  color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--r-rule);
  background: rgba(245, 244, 240, .92);
  color: var(--r-ink);
}
.nav { width: min(calc(100% - 64px), 1240px); min-height: 68px; }
.brand { gap: 9px; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
.nav-links { gap: 30px; font-size: 13px; font-weight: 520; }
.nav-links a { position: relative; color: inherit; opacity: .76; transition: opacity 150ms ease; }
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--r-ease-out);
  content: "";
}
.button {
  border-radius: 8px;
  font-weight: 610;
  letter-spacing: -.01em;
  transition: transform 140ms var(--r-ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:active { transform: scale(.97); }
.site-header .button { min-height: 38px; padding: 0 15px; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.08); }
.site-header.scrolled .button { border-color: var(--r-rule); background: #fff; }

/* Keep the film as the hero; the chrome and captions recede. */
.cinematic-hero {
  padding-top: 68px;
  background: var(--r-navy);
  font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif;
}
.cinematic-stage {
  width: calc(100% - 32px);
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f7eddd;
}
.cinematic-scrim {
  background: linear-gradient(90deg,rgba(249,244,234,.98) 0%,rgba(249,244,234,.92) 17%,rgba(249,244,234,.68) 27%,rgba(249,244,234,.18) 39%,transparent 48%);
}
.cinematic-column { width: 30%; padding: 32px 2% 32px 4.4%; }
.cinematic-phases { max-width: 330px; }
.cinematic-phase h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(34px, 3.15vw, 48px);
  font-weight: 590;
  letter-spacing: -.04em;
  line-height: .98;
}
.cinematic-progress { right: 14px; gap: 2px; }
.cinematic-progress button { width: 38px; height: 30px; }
.cinematic-progress button span { width: 5px; height: 5px; box-shadow: none; }
.cinematic-progress button[data-active="true"] span { background: var(--r-blue); box-shadow: 0 0 0 3px rgba(255,255,255,.72); }
.cinematic-end-state {
  padding-bottom: 30px;
  background: linear-gradient(0deg,rgba(248,244,236,.97),rgba(248,244,236,.76) 19%,transparent 44%);
}
.cinematic-end-state h1 {
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 590;
  letter-spacing: -.035em;
}
.cinematic-actions .button.primary { background: var(--r-blue); }
.cinematic-actions .button.secondary { border-color: rgba(16,24,45,.22); background: rgba(255,255,255,.34); }

/* Process reads as an authored sequence, not three oversized gradient cards. */
.process { background: var(--r-paper); }
.process > .section-inner {
  display: grid;
  grid-template-columns: minmax(150px,.45fr) minmax(0,1.35fr);
  column-gap: clamp(44px,7vw,100px);
}
.process .section-kicker { grid-column: 1; grid-row: 1 / span 2; padding-top: 10px; }
.process .section-heading, .process .section-lede { grid-column: 2; }
.process .section-heading { margin-bottom: 20px; }
.process .section-lede { margin-bottom: 0; }
.process-stack {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px;
  width: min(calc(100% - 64px), 1240px);
  max-width: none;
  margin: 66px auto 0;
  padding: 0;
}
.stack-card,
.stack-card:nth-child(1),
.stack-card:nth-child(2),
.stack-card:nth-child(3) {
  position: relative;
  top: auto;
  min-height: 0;
  margin: 0;
  padding: 28px 0 10px;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--r-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--r-ink);
}
.stack-head { margin-bottom: 48px; }
.stack-icon { width: 38px; height: 38px; border: 1px solid var(--r-rule); border-radius: 8px; background: transparent; color: var(--r-blue); }
.stack-icon svg { width: 19px; height: 19px; }
.stack-num { color: rgba(16,24,45,.32); font-size: 14px; font-weight: 580; letter-spacing: .08em; }
.stack-card h3 { margin-bottom: 14px; font-size: 25px; font-weight: 590; letter-spacing: -.03em; line-height: 1.12; }
.stack-card p { color: var(--r-muted); font-size: 15px; line-height: 1.6; }
.stack-tag { margin-top: 22px; border-radius: 4px; padding: 6px 9px; background: #e9e4d4; color: var(--r-ink); font-size: 9px; letter-spacing: .08em; }

/* The comparison is the visual proof point. */
.why { background: var(--r-navy); color: #fff; }
.why .section-inner { display: grid; grid-template-columns: minmax(240px,.72fr) minmax(0,1.5fr); column-gap: clamp(48px,7vw,104px); align-items: start; }
.why .section-kicker, .why .section-heading, .why .section-lede { grid-column: 1; }
.why .section-kicker { color: #9db4f7; }
.why .section-heading { font-size: clamp(38px,4.4vw,62px); }
.why .section-lede { margin-bottom: 0; color: rgba(255,255,255,.64); font-size: 17px; }
.compare { grid-column: 2; grid-row: 1 / span 4; margin: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: none; }
.compare-table thead th { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(255,255,255,.5); }
.compare-table th, .compare-table td { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.62); }
.compare-table tbody th { color: #fff; }
.compare-table .c-hem { background: rgba(67,106,221,.22); color: #fff; box-shadow: none; }
.compare-table thead .c-hem { background: var(--r-blue); }
.compare:hover .c-hem { box-shadow: none; }

/* Case studies remain in motion because the motion explains breadth. */
.case-studies { padding: clamp(84px,9vw,132px) 0; background: var(--r-surface); color: var(--r-ink); }
.case-studies-heading { max-width: 820px; margin: 0 0 68px; font-size: clamp(46px,6vw,82px); font-weight: 580; letter-spacing: -.05em; line-height: .96; text-align: left; }
.case-explore { grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr); gap: clamp(40px,6vw,92px); }
.case-study { border-color: var(--r-rule); border-radius: 6px; background: #edf2f7; }
.case-study-flow { flex-basis: 272px; width: 272px; border: 1px solid var(--r-rule); border-radius: 7px; }
.case-flow-group { gap: 14px; padding-right: 14px; }
.case-studies[data-flow-ready="true"] .case-flow-row:not([data-manual="true"]) { mask-image: linear-gradient(90deg,#000 0%,#000 88%,transparent 100%); }
.case-explore-copy { align-self: end; padding-bottom: 8px; }
.case-explore-copy h3 { margin-bottom: 22px; font-size: clamp(28px,3vw,42px); font-weight: 590; letter-spacing: -.035em; line-height: 1.06; }
.case-explore-copy p { color: var(--r-muted); font-size: 15px; }
.case-study:hover { border-color: rgba(47,95,224,.55); box-shadow: 0 8px 26px rgba(16,24,45,.1); }

/* Fit is a two-sided decision aid, not a pair of decorative cards. */
.audience { background: #eceae3; }
.selective { text-align: left; }
.selective .section-heading { max-width: 820px; margin-left: 0; margin-right: 0; }
.fit-grid { gap: 0; margin-top: 60px; border-top: 1px solid var(--r-rule); border-bottom: 1px solid var(--r-rule); }
.fit-card { padding: 34px 42px 42px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: none; }
.fit-card + .fit-card { padding-right: 0; padding-left: 42px; border-left: 1px solid var(--r-rule); }
.fit-card:hover { transform: none; box-shadow: none; }
.fit-card-title { margin-bottom: 28px; font-size: 18px; font-weight: 590; letter-spacing: -.015em; }
.fit-points { gap: 18px; }
.fit-points li { grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; }
.fit-points li svg { width: 17px; height: 17px; }

/* FAQ uses one clean reading column with rules instead of nested cards. */
.faq { background: var(--r-surface); }
.faq .section-inner { display: grid; grid-template-columns: minmax(240px,.65fr) minmax(0,1.35fr); column-gap: clamp(64px,9vw,140px); align-items: start; }
.faq .section-kicker, .faq .section-heading { grid-column: 1; }
.faq .section-heading { position: sticky; top: 110px; font-size: clamp(38px,4.2vw,60px); }
.faq-list { grid-column: 2; grid-row: 1 / span 3; max-width: none; gap: 0; border-top: 1px solid var(--r-rule); }
.faq-item { border: 0; border-bottom: 1px solid var(--r-rule); border-radius: 0; background: transparent; transition: none; }
.faq-item[open] { border-color: var(--r-rule); box-shadow: none; }
.faq-item summary { padding: 24px 0; font-size: 18px; font-weight: 570; letter-spacing: -.018em; }
.faq-chevron { width: 24px; height: 24px; border-radius: 6px; transition: transform 180ms var(--r-ease-out); }
.faq-item[open] .faq-chevron { background: transparent; }
.faq-answer { max-width: 650px; padding: 0 44px 26px 0; color: var(--r-muted); font-size: 15px; line-height: 1.65; }
.faq-item[open] .faq-answer { animation: none; }

/* Booking ends with a strong, restrained field of color. */
.contact { padding-top: clamp(88px,9vw,128px); background: #193783; color: #fff; }
.contact-book { text-align: left; }
.contact-book .section-heading, .contact-book .section-lede { margin-left: 0; margin-right: 0; }
.contact .section-kicker { color: rgba(255,255,255,.64); }
.contact .section-heading { max-width: 850px; font-size: clamp(48px,6vw,84px); }
.contact .section-lede { color: rgba(255,255,255,.72); }
.calendly-card { border-radius: 10px; padding: 6px; box-shadow: 0 28px 80px rgba(12,26,71,.3); }
.calendly-inline-widget { border-radius: 6px; }
footer { border: 0; background: #193783; color: rgba(255,255,255,.68); }
.footer-inner { width: min(calc(100% - 64px),1240px); min-height: 86px; border-top: 1px solid rgba(255,255,255,.2); }

@media (hover:hover) and (pointer:fine) {
  .nav-links a:hover { opacity: 1; }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .button:hover { transform: translateY(-1px); }
  .button:active { transform: scale(.97); }
}

@media (max-width: 920px) {
  section { padding: 82px 0; }
  .section-inner { width: min(calc(100% - 40px), 680px); }
  .process > .section-inner, .why .section-inner, .faq .section-inner { display: block; }
  .process .section-kicker { padding-top: 0; }
  .process-stack { width: min(calc(100% - 40px),680px); grid-template-columns: 1fr; gap: 0; margin-top: 54px; }
  .stack-card, .stack-card:nth-child(1), .stack-card:nth-child(2), .stack-card:nth-child(3) { padding: 24px 0 34px; }
  .stack-head { margin-bottom: 26px; }
  .why .section-lede { margin-bottom: 42px; }
  .compare { margin-top: 42px; }
  .faq .section-heading { position: static; }
  .faq-list { margin-top: 48px; }
  .case-explore { grid-template-columns: 1fr; }
  .case-explore-copy { order: -1; padding: 0; }
}

@media (max-width: 767px) {
  :root { --intro-media-top: 62px; --intro-media-inline-inset: 0px; }
  .site-header { height: 62px; }
  .nav { width: calc(100% - 28px); min-height: 62px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 29px; height: 29px; }
  .cinematic-hero { padding-top: 62px; }
  .cinematic-stage { width: 100%; margin-top: 0; border-radius: 0; }
  .cinematic-end-state { padding: 0 12px 8px; background: linear-gradient(0deg,rgba(248,244,236,.97),rgba(248,244,236,.76) 18%,transparent 38%); }
  .cinematic-end-state h1 { max-width: 100%; margin-bottom: 6px; font-size: clamp(14px,4vw,19px); line-height: 1.16; letter-spacing: -.02em; }
  .cinematic-end-footer { gap: 5px; }
  .cinematic-trust { font-size: 10.5px; line-height: 1.3; }
  .cinematic-actions { gap: 8px; }
  .cinematic-actions .button { min-height: 32px; padding: 6px 12px; font-size: 12px; line-height: 1.3; }
  .case-report-hint { display: none; }
  .cinematic-column { width: 43%; padding-left: 15px; }
  .cinematic-phase h2 { font-size: clamp(18px,5.2vw,22px); letter-spacing: -.025em; line-height: 1.05; }
  .cinematic-scrim { background: linear-gradient(90deg,rgba(249,244,234,.97),rgba(249,244,234,.9) 24%,rgba(249,244,234,.65) 36%,rgba(249,244,234,.14) 55%,transparent 64%); }
  .section-inner, .process-stack, .footer-inner { width: calc(100% - 32px); }
  section { padding: 72px 0; }
  .section-kicker { margin-bottom: 16px; font-size: 10px; }
  .section-heading, .process .section-heading, .why .section-heading, .audience .section-heading { font-size: clamp(34px,10vw,46px); line-height: 1.02; letter-spacing: -.04em; }
  .section-lede, .process .section-lede, .why .section-lede { margin-bottom: 40px; font-size: 16px; line-height: 1.55; }
  .process-stack { margin-top: 42px; padding: 0; }
  .stack-card, .stack-card:nth-child(1), .stack-card:nth-child(2), .stack-card:nth-child(3) { min-height: 0; padding: 22px 0 30px; border-radius: 0; }
  .stack-icon { width: 34px; height: 34px; }
  .stack-card h3 { font-size: 23px; }
  .stack-card p { font-size: 14px; }
  .stack-tag { font-size: 8px; }
  .why .section-lede { margin-bottom: 0; }
  .compare { margin-top: 38px; border-radius: 7px; }
  .compare-table th, .compare-table td { padding: 10px 6px; font-size: 10.5px; }
  .case-studies { padding: 82px 0; }
  .case-studies-heading { margin-bottom: 42px; font-size: clamp(32px,9.2vw,40px); line-height: 1.02; letter-spacing: -.038em; }
  .case-explore-copy h3 { font-size: 26px; line-height: 1.1; }
  .case-explore-copy p { font-size: 14px; }
  .case-study-flow { flex-basis: min(274px,76vw); width: min(274px,76vw); }
  .fit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-top: 42px; }
  .fit-card { min-width: 0; padding: 22px 14px 26px 0; }
  .fit-card + .fit-card { padding: 22px 0 26px 14px; border-top: 0; border-left: 1px solid var(--r-rule); }
  .fit-card-title { min-height: 3em; margin-bottom: 18px; font-size: 14px; line-height: 1.45; }
  .fit-points { gap: 13px; }
  .fit-points li { grid-template-columns: 14px minmax(0,1fr); gap: 7px; font-size: 11.5px; line-height: 1.42; }
  .fit-points li svg { width: 14px; height: 14px; }
  .faq-list { margin-top: 40px; }
  .faq-item summary { padding: 20px 0; font-size: 17px; }
  .faq-answer { padding: 0 32px 22px 0; font-size: 14px; }
  .contact .section-heading { font-size: clamp(42px,12vw,56px); }
  .calendly-card { margin-right: -8px; margin-left: -8px; }
  .footer-inner { min-height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after, .button, .faq-chevron { transition-duration: 0ms; }
}
