/* ==========================================================================
   Kearney Radiology — design system
   Palette: Navy #003B70 · Steel #66717F · White #FFFFFF · Ink #071B33
   Type: Fraunces (display) · Instrument Sans (text/UI)
   ========================================================================== */

:root {
  --berry: #003b70;
  --berry-deep: #00264a;
  --berry-tint: #eaf2f8;
  --gunmetal: #66717f;
  --gunmetal-deep: #1f2b38;
  --jet: #071b33;
  --ink: #071b33;
  --body: #344457;
  --muted: #687586;
  --paper: #ffffff;
  --canvas: #f8fafc;
  --stone: #eef3f7;
  --hairline: #d7dee8;
  --hairline-dark: rgba(255, 255, 255, 0.16);
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 62ch;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--berry);
  color: #fff;
}

/* ------------------------------------------------------------------ type */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--berry);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: var(--body);
}

.modality-list,
.service-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.modality-list li,
.service-pill-list li {
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-radius: 4px;
  padding: 0.42rem 0.68rem;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
}

.hx-hero .modality-list li {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 59, 112, 0.2);
}

.service-section-title {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.service-section-title:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------ skip link */

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--jet);
  color: #fff;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------- header */

.utility-bar {
  background: var(--gunmetal);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}

.utility-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.45rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.utility-inner a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.utility-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.utility-note {
  letter-spacing: 0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--hairline);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(8.25rem, 13vw, 11.25rem);
  height: auto;
  max-height: 4.1rem;
  object-fit: contain;
}

.brand:has(.brand-logo) {
  gap: 0;
}

.brand:has(.brand-logo) .brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--jet);
  letter-spacing: 0.005em;
}

.brand-note {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link:hover,
.nav-button:hover {
  color: var(--berry);
  background: var(--berry-tint);
}

.nav-link[aria-current="page"],
.nav-button[aria-current="page"] {
  color: var(--berry);
}

.nav-button .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.18s var(--ease);
}

.nav-item {
  position: relative;
}

.nav-item[data-open] .chevron {
  transform: rotate(180deg);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 330px;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(16, 19, 21, 0.14);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.nav-item[data-open] .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu-panel a {
  display: block;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s var(--ease);
}

.menu-panel a:hover {
  background: var(--stone);
}

.menu-panel a strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.menu-panel a span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1px;
}

.menu-panel a:hover strong {
  color: var(--berry);
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--jet);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* -------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--berry);
  color: #fff;
}

.button-primary:hover {
  background: var(--berry-deep);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gunmetal);
}

.button-outline:hover {
  background: var(--gunmetal);
  color: #fff;
}

.button-inverse {
  background: #fff;
  color: var(--ink);
}

.button-inverse:hover {
  background: var(--berry-tint);
  color: var(--berry-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--berry-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s var(--ease), gap 0.18s var(--ease);
}

.text-link:hover {
  border-color: var(--berry-deep);
  gap: 0.65rem;
}

.text-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------- layout */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.section-stone {
  background: var(--stone);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head-split > div {
  max-width: 640px;
}

.section-head-split h2 {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--gunmetal-deep);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 20%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(88deg, rgba(20, 25, 29, 0.93) 0%, rgba(24, 30, 35, 0.82) 42%, rgba(28, 35, 41, 0.25) 78%, rgba(28, 35, 41, 0.05) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter) clamp(4.5rem, 9vw, 7.5rem);
}

.hero-content {
  max-width: 640px;
}

.hero .eyebrow {
  color: #9fc3df;
}

.hero .eyebrow::before {
  background: #9fc3df;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: #9fc3df;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero-attrib {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--berry);
  padding-left: 1rem;
}

.hero-attrib strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.hero-attrib span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------ credential strip */

.cred-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.cred-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cred-item {
  padding: 1.6rem 1.5rem 1.6rem 0;
  border-left: 1px solid var(--hairline);
  padding-left: 1.5rem;
}

.cred-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.cred-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.cred-item span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

/* -------------------------------------------------------- service index */

.service-index {
  border-top: 1px solid var(--hairline);
}

.service-row {
  display: grid;
  grid-template-columns: 84px 1fr 2fr auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: background 0.18s var(--ease);
}

.service-row:hover {
  background: var(--berry-tint);
}

.service-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.service-row:hover .service-num {
  color: var(--berry);
}

.service-row h3 {
  margin: 0;
  transition: color 0.18s var(--ease);
}

.service-row:hover h3 {
  color: var(--berry-deep);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--body);
  margin: 0;
  max-width: 52ch;
}

.service-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.service-arrow svg {
  width: 15px;
  height: 15px;
}

.service-row:hover .service-arrow {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
  transform: translateX(4px);
}

/* --------------------------------------------------------- founder band */

.founder-band {
  background: var(--gunmetal);
  color: #fff;
}

.founder-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: stretch;
}

.founder-media {
  position: relative;
  margin-top: clamp(-3rem, -4vw, -4rem);
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}

.founder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.founder-body {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  max-width: 620px;
}

.founder-band .eyebrow {
  color: #9fc3df;
}

.founder-band .eyebrow::before {
  background: #9fc3df;
}

.founder-band h2 {
  color: #fff;
}

.founder-band p {
  color: rgba(255, 255, 255, 0.85);
}

.founder-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.founder-facts li {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 0.8rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.founder-facts strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

/* -------------------------------------------------------------- process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.process-step {
  border-top: 2px solid var(--jet);
  padding-top: 1.4rem;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--berry);
  display: block;
  margin-bottom: 0.9rem;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.96rem;
  margin: 0;
}

/* --------------------------------------------------------------- quotes */

.quote-feature {
  max-width: 900px;
}

.quote-feature blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 480;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.quote-feature blockquote::before {
  content: "\201C";
  color: var(--berry);
}

.quote-feature blockquote::after {
  content: "\201D";
  color: var(--berry);
}

.quote-cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 1.75rem;
  font-style: normal;
}

.quote-cite strong {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.quote-cite span {
  font-size: 0.88rem;
  color: var(--muted);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.quote-card {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.section-stone .quote-card {
  border: 0;
  box-shadow: 0 6px 30px rgba(16, 19, 21, 0.06);
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--body);
  flex-grow: 1;
}

.quote-card blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--berry);
  margin-bottom: 0.9rem;
}

.quote-card .quote-cite {
  margin-top: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
}

/* ------------------------------------------------------------ split rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  object-fit: cover;
}

.split-media-frame {
  position: relative;
}

.split-media-frame::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: -1.25rem;
  right: 1.25rem;
  bottom: -1.25rem;
  border: 1px solid var(--berry);
  z-index: -1;
}

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.98rem;
}

.checklist svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--berry);
  margin-top: 0.2rem;
}

.checklist strong {
  color: var(--ink);
}

/* -------------------------------------------------------------- end CTA */

.end-cta {
  background: var(--jet);
  color: #fff;
}

.end-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.end-cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.end-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.end-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.end-cta-phone {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.end-cta-phone a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.end-cta-phone a:hover {
  border-color: #fff;
}

/* ------------------------------------------------------------ page hero */

.page-hero {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}

.page-hero-inner > div {
  max-width: 760px;
}

.page-hero h1 {
  margin-bottom: 0.8rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--berry);
}

.breadcrumb span[aria-current] {
  color: var(--ink);
  font-weight: 550;
}

/* --------------------------------------------------------- article body */

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: flex-start;
}

.article-main h2 {
  margin-top: 2.2em;
}

.article-main h2:first-child {
  margin-top: 0;
}

.article-main img {
  margin: 2rem 0;
}

.article-aside {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 1.5rem;
}

.aside-card {
  border: 1px solid var(--hairline);
  padding: 1.6rem;
  background: #fff;
}

.aside-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.aside-card p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.aside-card .button {
  width: 100%;
}

.aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-links li {
  border-bottom: 1px solid var(--hairline);
}

.aside-links li:last-child {
  border-bottom: 0;
}

.aside-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.2rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s var(--ease), padding-left 0.18s var(--ease);
}

.aside-links a svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.15s var(--ease), transform 0.18s var(--ease);
}

.aside-links a:hover,
.aside-links a[aria-current="page"] {
  color: var(--berry-deep);
}

.aside-links a:hover svg {
  color: var(--berry);
  transform: translateX(3px);
}

.aside-links a[aria-current="page"] {
  padding-left: 0.6rem;
  border-left: 2px solid var(--berry);
}

/* ---------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  text-decoration: none;
  overflow: hidden;
  background: var(--gunmetal-deep);
}

.link-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.82;
}

.link-card:hover img {
  transform: scale(1.035);
  opacity: 0.65;
}

.link-card-body {
  position: relative;
  z-index: 1;
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0) 0%, rgba(10, 12, 14, 0.72) 45%, rgba(10, 12, 14, 0.88) 100%);
  padding-top: 5rem;
}

.link-card h3 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.link-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.link-card .text-link {
  color: #9fc3df;
}

/* ---------------------------------------------------------------- forms */

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: flex-start;
}

.inquiry-form {
  display: grid;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field .req {
  color: var(--berry);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: #fff;
  font-size: 0.98rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(0, 59, 112, 0.16);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.field-error {
  display: none;
  font-size: 0.82rem;
  font-weight: 550;
  color: #8a4b00;
  margin-top: 0.35rem;
}

.field[data-invalid] .field-error {
  display: block;
}

.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea {
  border-color: #8a4b00;
}

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--gunmetal-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer .brand-note {
  color: rgba(255, 255, 255, 0.55);
}

.footer-blurb {
  font-size: 0.92rem;
  max-width: 34ch;
  margin-top: 1.1rem;
}

.footer-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.15s var(--ease);
}

.footer-links a:hover {
  color: #9fc3df;
}

.site-footer .brand-logo {
  background: #fff;
  border-radius: 4px;
  padding: 0.3rem 0.45rem;
}

.footer-contact p {
  font-size: 0.93rem;
  margin-bottom: 0.6rem;
}

.footer-contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
}

.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.2rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-inner a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom-inner a:hover {
  color: #fff;
}

/* --------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .article {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-media {
    margin: 0;
    max-height: 520px;
    overflow: hidden;
  }

  .founder-body {
    padding-top: 0;
  }

  .founder-band {
    padding-top: clamp(2.5rem, 6vw, 4rem);
  }
}

@media (max-width: 900px) {
  .utility-note {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 30px 50px rgba(16, 19, 21, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gutter) 1.25rem;
    gap: 0;
    display: none;
  }

  .site-header[data-menu-open="true"] .primary-nav {
    display: flex;
  }

  .site-header[data-menu-open="true"] .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header[data-menu-open="true"] .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-menu-open="true"] .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-link,
  .nav-button {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    font-size: 1rem;
  }

  .menu-panel {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 0.75rem;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-item[data-open] .menu-panel {
    display: block;
    transform: none;
  }

  .header-cta {
    display: none;
  }

  .cred-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cred-item {
    padding: 1.25rem 1rem 1.25rem 0;
  }

  .cred-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .cred-item:nth-child(even) {
    padding-left: 1.25rem;
  }

  .cred-item:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }

  .service-row {
    grid-template-columns: 56px 1fr auto;
  }

  .service-desc {
    display: none;
  }

  .split,
  .card-grid,
  .quote-grid,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .split-media {
    order: -1;
  }

  .split-media-frame::before {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .end-cta-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 0.75rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 5.5rem;
    height: auto;
    max-height: 3.1rem;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-note {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .founder-facts {
    grid-template-columns: 1fr;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-row {
    grid-template-columns: 44px 1fr auto;
    gap: 1rem;
  }
}

/* ==========================================================================
   Homepage — editorial redesign layer (hx-)
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hx-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hx-index-light {
  color: rgba(255, 255, 255, 0.55);
}

.hx-btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1rem;
}

.hx-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0.2rem;
}

.hx-ghost-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.hx-ghost-link:hover svg {
  transform: translateX(5px);
}

.hx-ghost-link-berry {
  color: var(--berry-deep);
}

/* ----------------------------------------------------------------- hero */

.hx-hero {
  position: relative;
  background: var(--canvas);
  overflow: hidden;
}

.hx-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hx-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(48, 61, 69, 0.05) 1px, transparent 1px);
  background-size: 25% 100%;
  background-position: 12.5% 0;
}

.hx-glow {
  position: absolute;
  top: -30%;
  right: -12%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 59, 112, 0.11) 0%, rgba(0, 59, 112, 0.045) 42%, transparent 68%);
}

.hx-hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hx-hero-copy {
  min-width: 0;
}

.hx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gunmetal);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
}

.hx-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--berry);
  animation: hx-pulse 2.4s var(--ease) infinite;
}

@keyframes hx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 59, 112, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(0, 59, 112, 0); }
}

.hx-title {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(2.3rem, 5.6vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 clamp(1.4rem, 2.6vw, 2rem);
}

.hx-title em {
  font-style: italic;
  font-weight: 460;
  color: var(--berry);
}

.hx-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hx-line > span {
  display: block;
  transform: translateY(112%);
  animation: hx-rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes hx-rise {
  to { transform: translateY(0); }
}

.hx-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: hx-in 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes hx-in {
  to { opacity: 1; transform: translateY(0); }
}

html:not(.js) .hx-fade,
html:not(.js) .hx-line > span {
  animation: none;
  opacity: 1;
  transform: none;
}

.hx-sub {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.68;
  color: var(--body);
  max-width: 50ch;
  margin: 0 0 clamp(1.8rem, 3vw, 2.5rem);
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.hx-portrait {
  margin: 0;
  position: relative;
}

.hx-portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 34px 80px rgba(35, 45, 52, 0.22);
}

.hx-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hx-portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 50% 18%;
  will-change: transform;
}

.hx-portrait::before {
  content: "";
  position: absolute;
  top: -1.4rem;
  right: -1.4rem;
  width: 62%;
  height: 62%;
  border: 1px solid var(--berry);
  border-radius: 2px;
  z-index: -1;
}

.hx-portrait figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(20, 24, 27, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 2px;
  padding: 0.85rem 1.1rem;
}

.hx-portrait figcaption strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 560;
}

.hx-portrait figcaption span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}

.hx-hero-stats {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}

.hx-stat {
  padding: 1.7rem 1.5rem 2.1rem 0;
}

.hx-stat + .hx-stat {
  padding-left: 1.5rem;
  border-left: 1px solid var(--hairline);
}

.hx-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 480;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hx-stat strong em {
  font-style: italic;
  font-size: 0.6em;
  color: var(--muted);
}

.hx-stat > span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* --------------------------------------------------------- logo marquee */

.hx-logos {
  background: #fff;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
}

.hx-logos-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 auto 2rem;
  padding: 0 var(--gutter);
  max-width: none;
}

.hx-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.hx-marquee-track {
  display: flex;
  width: max-content;
  animation: hx-marquee 38s linear infinite;
}

.hx-marquee:hover .hx-marquee-track {
  animation-play-state: paused;
}

@keyframes hx-marquee {
  to { transform: translateX(-50%); }
}

.hx-logo-set {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5.5rem);
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.5rem, 3vw, 2.75rem);
}

.hx-logo-set img {
  width: auto;
  filter: grayscale(1) opacity(0.62);
  transition: filter 0.3s var(--ease);
}

.hx-logo-set li:hover img {
  filter: grayscale(0) opacity(1);
}

/* ------------------------------------------------------------ statement */

.hx-statement {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9.5rem) var(--gutter) clamp(4rem, 9vw, 7.5rem);
}

.hx-statement-text {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 22em;
  margin: 0;
}

.hx-statement-text .w {
  opacity: 0.16;
  transition: opacity 0.35s linear;
}

.hx-statement-text .w.on {
  opacity: 1;
}

html:not(.js) .hx-statement-text .w {
  opacity: 1;
}

.hx-statement-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.hx-rule {
  width: clamp(3rem, 8vw, 6rem);
  height: 1px;
  background: var(--berry);
}

.hx-statement-foot p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------- ticker */

.hx-ticker {
  background: var(--berry);
  color: #fff;
  overflow: hidden;
  padding: 0.9rem 0;
  transform: rotate(-0.6deg) scale(1.01);
}

.hx-ticker-track {
  display: flex;
  width: max-content;
  animation: hx-marquee 30s linear infinite;
}

.hx-ticker-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ------------------------------------------------------------- services */

.hx-services {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
}

.hx-services-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hx-services-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 460;
  margin: 0;
}

.hx-services-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.hx-service-list {
  border-top: 1px solid var(--hairline);
}

.hx-service {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  grid-template-areas: "num name arrow" "num note arrow";
  align-items: center;
  column-gap: 1.25rem;
  padding: 1.45rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  position: relative;
  transition: padding-left 0.3s var(--ease), background 0.3s var(--ease);
}

.hx-service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--berry);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}

.hx-service:hover,
.hx-service:focus-visible {
  padding-left: 1.3rem;
  background: linear-gradient(90deg, var(--berry-tint), transparent 70%);
}

.hx-service:hover::before,
.hx-service:focus-visible::before {
  transform: scaleY(1);
}

.hx-service-num {
  grid-area: num;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

.hx-service:hover .hx-service-num {
  color: var(--berry);
}

.hx-service-name {
  grid-area: name;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  transition: color 0.25s var(--ease);
}

.hx-service:hover .hx-service-name {
  color: var(--berry-deep);
}

.hx-service-note {
  grid-area: note;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.hx-service-arrow {
  grid-area: arrow;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hx-service-arrow svg {
  width: 15px;
  height: 15px;
}

.hx-service:hover .hx-service-arrow {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
  transform: rotate(-45deg);
}

.hx-service-preview {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 4.6;
  border-radius: 2px;
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 26px 60px rgba(35, 45, 52, 0.18);
}

.hx-service-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.45s var(--ease), transform 0.9s var(--ease);
}

.hx-service-preview img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* -------------------------------------------------------------- founder */

.hx-founder {
  background: var(--gunmetal-deep);
  color: rgba(255, 255, 255, 0.85);
}

.hx-founder-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
}

.hx-founder-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 440;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: #fff;
  max-width: 18em;
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hx-founder-title em {
  font-style: italic;
  color: #9fc3df;
}

.hx-founder-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hx-founder-photo {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.hx-founder-photo img {
  width: 100%;
  object-fit: cover;
}

.hx-founder-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hx-founder-copy .hx-ghost-link-berry {
  color: #9fc3df;
  margin-top: 0.6rem;
}

.hx-cred-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin: 0;
  border-top: 1px solid var(--hairline-dark);
  padding-top: 2rem;
}

.hx-cred dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9fc3df;
  margin-bottom: 0.5rem;
}

.hx-cred dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------------------------- process */

.hx-process {
  background: var(--stone);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.hx-process-head {
  max-width: var(--container);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 0 var(--gutter);
}

.hx-process-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 460;
  margin: 0;
  max-width: 20em;
}

.hx-process-line {
  max-width: var(--container);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 0 var(--gutter);
}

.hx-process-line span {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--berry), var(--gunmetal));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}

.hx-process-line span.is-in {
  transform: scaleX(1);
}

html:not(.js) .hx-process-line span {
  transform: scaleX(1);
}

.hx-process-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  list-style: none;
  counter-reset: none;
}

.hx-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gunmetal);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gunmetal);
  margin-bottom: 1.3rem;
}

.hx-step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.55rem;
}

.hx-step p {
  font-size: 0.96rem;
  margin: 0;
}

/* ---------------------------------------------------------------- quote */

.hx-quote {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
}

.hx-quote-mark {
  font-family: var(--serif);
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 0.6;
  color: var(--berry-tint);
  -webkit-text-stroke: 1px var(--berry);
  user-select: none;
  margin-bottom: -0.12em;
}

.hx-quote-main {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 24em;
  margin: 0;
}

.hx-quote-cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2rem;
}

.hx-quote-cite strong {
  font-weight: 600;
  color: var(--ink);
}

.hx-quote-cite span {
  font-size: 0.88rem;
  color: var(--muted);
}

.hx-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.hx-quote-card {
  margin: 0;
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.hx-quote-card blockquote {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--body);
  flex-grow: 1;
}

.hx-quote-card figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.hx-quote-card figcaption span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hx-quote-more {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ------------------------------------------------------------------ cta */

.hx-cta {
  position: relative;
  background: var(--jet);
  color: #fff;
  overflow: hidden;
}

.hx-cta-glow {
  position: absolute;
  bottom: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 70vw;
  max-width: 1300px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 59, 112, 0.32) 0%, rgba(0, 59, 112, 0.12) 40%, transparent 66%);
  pointer-events: none;
}

.hx-cta-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  text-align: center;
}

.hx-cta h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 440;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 1.4rem;
}

.hx-cta h2 em {
  font-style: italic;
  color: #9fc3df;
}

.hx-cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hx-cta .hx-index-light {
  margin-bottom: 1.6rem;
}

.hx-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.6rem;
}

.hx-cta-phone {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hx-cta-phone a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.hx-cta-phone a:hover {
  border-color: #fff;
}

/* -------------------------------------------------------- scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------- hx responsive */

@media (max-width: 1080px) {
  .hx-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hx-portrait {
    max-width: 520px;
  }

  .hx-services-body {
    grid-template-columns: 1fr;
  }

  .hx-service-preview {
    display: none;
  }

  .hx-founder-row {
    grid-template-columns: 1fr;
  }

  .hx-cred-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hx-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hx-stat {
    padding: 1.25rem 1rem 1.25rem 0;
  }

  .hx-stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .hx-stat:nth-child(even) {
    padding-left: 1.25rem;
    border-left: 1px solid var(--hairline);
  }

  .hx-stat:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }

  .hx-process-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hx-quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.05rem;
    line-height: 1.14;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .page-hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .page-hero-inner > div,
  .container,
  .article,
  .article-main {
    min-width: 0;
  }

  .page-hero .lead {
    font-size: 1rem;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  .hx-hero {
    overflow-x: clip;
  }

  .hx-hero-inner {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .hx-kicker {
    max-width: 100%;
    align-items: flex-start;
    border-radius: 8px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hx-title {
    font-size: 2.35rem;
    line-height: 1.02;
    letter-spacing: 0;
  }

  .hx-line {
    overflow: visible;
  }

  .hx-sub {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hx-hero .modality-list {
    max-width: 100%;
    overflow: hidden;
  }

  .hx-hero .modality-list li {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hx-cred-band {
    grid-template-columns: 1fr;
  }

  .hx-actions .button {
    width: 100%;
  }

  .hx-service {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    column-gap: 0.9rem;
  }

  .hx-service-note {
    display: none;
  }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  [data-reveal],
  .hx-fade,
  .hx-line > span {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hx-marquee-track,
  .hx-ticker-track {
    animation: none;
  }

  .hx-process-line span {
    transform: scaleX(1);
  }

  .hx-statement-text .w {
    opacity: 1;
  }
}
