/* assets/css/styles.css - Custom styles */
:root {
  color-scheme: light;
  --brand-ink: #111827;
  --brand-ink-soft: #1f2937;
  --brand-muted: #4b5563;
  --brand-blue: #1d4ed8;
  --brand-blue-soft: #60a5fa;
  --brand-amber: #fbbf24;
  --border-soft: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --surface-glass: rgba(255, 255, 255, 0.95);
  --surface-panel: rgba(255, 255, 255, 0.98);
  --shadow-soft: 0 18px 45px -30px rgba(15, 23, 42, 0.35);
  --shadow-strong: 0 45px 90px -40px rgba(15, 23, 42, 0.5);
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--brand-ink);
  line-height: 1.7;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
  padding-block: clamp(0.5rem, 3vh, 1.25rem);
}

@media (min-width: 768px) {
  body {
    padding-inline: clamp(1rem, 4vw, 3rem);
    padding-block: clamp(0.75rem, 4vh, 1.75rem);
  }
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover {
  color: var(--brand-blue);
}

.is-dark a,
.hero a,
.section-block.bg-slate-900 a,
.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.is-dark a:hover,
.hero a:hover,
.section-block.bg-slate-900 a:hover,
.site-footer a:hover {
  color: var(--brand-blue-soft);
  text-decoration-color: var(--brand-blue-soft);
}

::selection {
  background: rgba(96, 165, 250, 0.35);
}

button,
.button-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.4);
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 20px 40px -24px rgba(29, 78, 216, 0.45);
}

.button-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25), 0 25px 55px -34px rgba(15, 23, 42, 0.45);
}

.button-link:active {
  transform: translateY(0);
}

.button-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 20px 45px -38px rgba(15, 23, 42, 0.5);
}

@media (min-width: 640px) {
  .button-cluster {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero .button-cluster {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 45px -40px rgba(15, 23, 42, 0.75);
  margin-top: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@supports not ((backdrop-filter: blur(18px))) {
  .site-header {
    background: rgba(248, 250, 252, 0.98);
  }
}

.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header--scrolled {
  border-color: var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.site-header--scrolled::after {
  opacity: 1;
}

.site-header__brand span {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-toggle {
  border-radius: 999px;
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(241, 245, 249, 0.9);
  box-shadow: 0 10px 35px -20px rgba(15, 23, 42, 0.3);
}

.nav-toggle span,
.nav-toggle svg {
  pointer-events: none;
}

.nav-toggle:hover {
  border-color: rgba(29, 78, 216, 0.4);
  background: rgba(255, 255, 255, 1);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.site-header__nav {
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header__nav-list {
  font-weight: 500;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.65);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.site-header__nav-item {
  list-style: none;
}

.site-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  color: var(--brand-muted);
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
  color: var(--brand-ink);
  background: rgba(29, 78, 216, 0.08);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.2);
}

.site-header__nav-link[aria-current="page"] {
  background: rgba(29, 78, 216, 0.12);
  color: var(--brand-blue);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.28);
}

.site-header__nav-link--cta {
  background: linear-gradient(120deg, #fbbf24 0%, #f97316 55%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px -20px rgba(236, 72, 153, 0.45);
  border: none;
}

.site-header__nav-link--cta:hover,
.site-header__nav-link--cta:focus-visible {
  background: linear-gradient(120deg, #f59e0b 0%, #f97316 50%, #d946ef 100%);
  color: #ffffff;
  box-shadow: 0 22px 40px -18px rgba(217, 70, 239, 0.5);
}

.site-header__nav-link--cta[aria-current="page"] {
  box-shadow: 0 24px 50px -18px rgba(251, 191, 36, 0.6);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  background: linear-gradient(135deg, #111827 0%, #1f3a8a 55%, #1d4ed8 100%);
  color: #f8fafc;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 0% 20%, rgba(96, 165, 250, 0.28) 0%, transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(251, 191, 36, 0.12) 0%, transparent 75%);
  z-index: 0;
}

.hero__content,
.hero__profile {
  position: relative;
  z-index: 1;
}

.hero__content {
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: 2.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 197, 255, 0.28);
  box-shadow: 0 45px 90px -50px rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
}

.hero__title {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero__subtitle {
  color: rgba(226, 232, 240, 0.95);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  max-width: 42ch;
}

.hero .button-link {
  font-size: 0.95rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(148, 197, 255, 0.45);
  color: rgba(226, 232, 240, 0.94);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.genai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: var(--brand-blue);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.section-block.text-white .genai-chip {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(191, 219, 254, 0.5);
  color: rgba(226, 232, 240, 0.95);
}

.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.link-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-muted);
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.link-strip__item:hover,
.link-strip__item:focus-visible {
  background: rgba(29, 78, 216, 0.15);
  color: var(--brand-blue);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.section-block.text-white .link-strip {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 197, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.section-block.text-white .link-strip__item {
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.9);
}

.section-block.text-white .link-strip__item:hover,
.section-block.text-white .link-strip__item:focus-visible {
  background: rgba(96, 165, 250, 0.3);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.5);
}

.hero__profile {
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero__profile {
    margin-inline: 0;
  }
}

@media (min-width: 1024px) {
  .hero__profile {
    justify-content: flex-end;
    align-self: stretch;
  }
}

.hero__profile figure {
  max-width: clamp(12rem, 26vw, 18rem);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2.5rem;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 1.2s ease;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.45));
}

.hero__profile img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 32%;
}

.hero__profile figure:hover {
  transform: translateY(-8px);
}

.section-block {
  position: relative;
  overflow: hidden;
}

.section-block > div {
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.section-block::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0), rgba(29, 78, 216, 0.35), rgba(29, 78, 216, 0));
  opacity: 0.3;
}

.section-block.bg-white {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
}

.section-block.bg-slate-100 {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.75) 0%, rgba(241, 245, 249, 0.98) 100%);
}

.section-block.bg-slate-900 {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  border-block: 1px solid rgba(148, 163, 184, 0.18);
}

.section-block__title {
  display: inline-flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-margin-top: 6rem;
  letter-spacing: -0.02em;
  font-size: clamp(2.15rem, 3.8vw, 3rem);
  line-height: 1.15;
  padding-bottom: 0.4rem;
}

.section-block__title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-amber) 100%);
}

.section-block__cta {
  box-shadow: 0 18px 45px -25px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.section-block__cta:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.section-block__lead {
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  color: var(--brand-muted);
  max-width: 65ch;
}

.prose-block h2,
.section-block:not(.text-white) h2,
.section-block:not(.text-white) h3 {
  color: var(--brand-ink);
}

.section-block.text-white h2,
.section-block.text-white h3 {
  color: #ffffff;
}

.prose-block p,
.section-block:not(.text-white) p,
.section-block:not(.text-white) li {
  color: var(--brand-muted);
}

.section-block.text-white p,
.section-block.text-white li {
  color: rgba(226, 232, 240, 0.92);
}

.section-block--collaborate {
  background: linear-gradient(150deg, #0b1120 0%, #1d3a8a 45%, #312e81 100%);
  color: rgba(248, 250, 252, 0.96);
}

.section-block--collaborate .section-block__title,
.section-block--collaborate .section-block__title::after {
  color: rgba(248, 250, 252, 0.98);
}

.section-block--collaborate .section-block__title::after {
  background: linear-gradient(90deg, #60a5fa 0%, #fbbf24 100%);
}

.section-block--collaborate p,
.section-block--collaborate li,
.section-block--collaborate dt,
.section-block--collaborate dd {
  color: rgba(226, 232, 240, 0.94);
}

.section-block--collaborate dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(191, 219, 254, 0.95);
}

.section-block--collaborate .rounded-3xl {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 197, 255, 0.25);
  box-shadow: 0 32px 68px -38px rgba(2, 6, 23, 0.65);
}

.section-block--collaborate .rounded-3xl dd {
  color: rgba(241, 245, 249, 0.96);
}

.section-block--collaborate .button-cluster {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 197, 255, 0.2);
}

.section-block--collaborate .button-link:not(.bg-white) {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(148, 197, 255, 0.35);
  color: rgba(248, 250, 252, 0.95);
}

.section-block--collaborate .button-link:not(.bg-white):hover,
.section-block--collaborate .button-link:not(.bg-white):focus-visible {
  background: rgba(96, 165, 250, 0.3);
  border-color: rgba(191, 219, 254, 0.6);
  color: #ffffff;
}

.page-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
}

.page-layout__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.page-layout__content > section {
  border-radius: 2rem;
  overflow: hidden;
}

.page-layout__content > section:not(.bg-slate-900) {
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.page-layout__content > section.bg-slate-900 {
  box-shadow: 0 35px 80px -42px rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(148, 197, 255, 0.2);
}

.page-layout__sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 64, 175, 0.85) 100%);
  border: 1px solid rgba(148, 197, 255, 0.25);
  box-shadow: 0 35px 75px -40px rgba(15, 23, 42, 0.7);
  color: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(18px);
}

.page-layout__sidebar:focus-within {
  box-shadow: 0 40px 85px -38px rgba(37, 99, 235, 0.55);
}

@media (min-width: 1024px) {
  .page-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-layout__sidebar {
    position: sticky;
    top: 6.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}

.page-layout__sidebar::-webkit-scrollbar {
  width: 0.4rem;
}

.page-layout__sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 197, 255, 0.4);
}

.page-layout__sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 197, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(148, 197, 255, 0.08);
}

.sidebar-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.95);
}

.sidebar-card__copy,
.sidebar-card__list,
.sidebar-card__meta {
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.92rem;
  line-height: 1.6;
}

.sidebar-card__meta {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 197, 255, 0.85);
}

.sidebar-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.sidebar-card__list a {
  color: rgba(248, 250, 252, 0.95);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(248, 250, 252, 0.35);
  text-underline-offset: 0.2rem;
}

.sidebar-card__list a:hover,
.sidebar-card__list a:focus-visible {
  color: #fbbf24;
  text-decoration-color: #fbbf24;
}

.sidebar-card__list--stacked > li {
  display: grid;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 197, 255, 0.18);
}

.sidebar-card__list--stacked > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(248, 250, 252, 0.45);
  text-underline-offset: 0.2rem;
}

.sidebar-card__link:hover,
.sidebar-card__link:focus-visible {
  color: #fbbf24;
  text-decoration-color: #fbbf24;
}

.sidebar-card__list--stacked .sidebar-card__link {
  justify-self: flex-start;
}

.sidebar-card p {
  margin: 0;
}

.sidebar-card + .sidebar-card {
  border-top: 1px solid rgba(148, 197, 255, 0.12);
  padding-top: 1.5rem;
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.8vw, 1.4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}

.content-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(59, 130, 246, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.content-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-strong);
}

.content-card:hover::after {
  opacity: 1;
}

.content-card--soft {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(226, 232, 240, 0.86) 100%);
}

.content-card > *:first-child {
  margin-top: 0;
}

.content-card > *:last-child {
  margin-bottom: 0;
}

.section-block.text-white .content-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 197, 255, 0.35);
  box-shadow: 0 24px 55px -38px rgba(15, 23, 42, 0.65);
}

.section-block.text-white .content-card--soft {
  background: rgba(15, 23, 42, 0.5);
}

.section-block.text-white .content-card h3,
.section-block.text-white .content-card p,
.section-block.text-white .content-card li {
  color: rgba(226, 232, 240, 0.92);
}

.card-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: stretch;
}

@media (min-width: 640px) {
  .card-grid {
    gap: clamp(1.4rem, 2.8vw, 2.75rem);
  }
}

.card-grid--stretch > * {
  height: 100%;
}

.card-grid--autofit {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

@media (min-width: 1024px) {
  .card-grid--media {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  }
}

.service-card,
.blog-card,
.media-grid__item,
.timeline-card,
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.8vw, 1.4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.service-card::after,
.blog-card::after,
.media-grid__item::after,
.timeline-card::after,
.testimonial-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(59, 130, 246, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.service-card ul {
  margin-top: 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

@media (min-width: 640px) {
  .service-card ul {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

.service-card ul > li {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 1.85rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 36px -30px rgba(15, 23, 42, 0.45);
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.service-card ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.8rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.list-grid {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .list-grid {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  }
}

.list-pills {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .list-pills {
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  }
}

.list-grid > li,
.list-pills > li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.75rem;
  border-radius: 1.25rem;
  background: var(--surface-panel);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 35px -28px rgba(15, 23, 42, 0.45);
  font-size: 0.92rem;
  color: var(--brand-muted);
}

.list-grid > li::before,
.list-pills > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.75rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.list-grid > li strong,
.list-pills > li strong {
  color: var(--brand-ink);
}

.list-plain {
  list-style: none;
  padding: 0;
}

.list-plain > li {
  padding-block: 0.35rem;
}

.service-card:hover,
.blog-card:hover,
.media-grid__item:hover,
.timeline-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-strong);
}

.service-card:hover::after,
.blog-card:hover::after,
.media-grid__item:hover::after,
.timeline-card:hover::after,
.testimonial-card:hover::after {
  opacity: 1;
}

.blog-card a:hover {
  color: var(--brand-blue);
}

.media-grid__item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.media-grid__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: transform 0.5s ease;
}

.media-grid__item:hover img {
  transform: scale(1.05);
}

.media-grid__item figcaption {
  padding: 0.75rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-muted);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.testimonial-card__quote {
  position: relative;
  padding-left: 1.75rem;
}

.testimonial-card__quote::before {
  content: "\201C";
  position: absolute;
  inset-inline-start: 0;
  top: -0.25rem;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(191, 219, 254, 0.5);
}

.quote-callout {
  border-left: 3px solid rgba(37, 99, 235, 0.4);
  padding-left: 1rem;
  color: var(--brand-muted);
}

.timeline-card__year {
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
}

.list-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  font-weight: 500;
}

blockquote {
  border-left: 4px solid rgba(37, 99, 235, 0.35);
  padding-left: 1.25rem;
  color: var(--brand-muted);
  font-style: italic;
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0));
}

.site-footer h2,
.site-footer h3 {
  color: rgba(248, 250, 252, 0.96);
}

.site-footer h2 {
  font-size: 1.1rem;
}

.site-footer__lead {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.75);
}

.site-footer__link {
  transition: color 0.25s ease;
}

.site-footer__link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer__link--pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.45);
  color: rgba(226, 232, 240, 0.85);
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-footer__link--pill:hover {
  background: rgba(29, 78, 216, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

.site-footer__link-icon {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-footer__link--pill:hover .site-footer__link-icon {
  transform: translateX(4px);
  opacity: 1;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.site-footer__list--quick {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.site-footer__list--social {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.site-footer__meta {
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: rgba(148, 163, 184, 0.75);
}

[data-year] {
  font-variant-numeric: tabular-nums;
}

/* Navigation refinement for small screens */
@media (max-width: 767px) {
  .site-header {
    padding-inline: 0.5rem;
  }

  .site-header__nav {
    position: absolute;
    inset-inline: 1rem;
    top: calc(100% + 0.75rem);
    background: var(--surface-glass);
    border: 1px solid var(--border-strong);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-strong);
    padding: 1.25rem;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
  }

  .site-header__nav.site-header__nav--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none !important;
  }

  .site-header__nav {
    display: block !important;
    background: transparent;
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .site-header__nav-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .site-header__nav-list {
    gap: 1.1rem;
  }
}

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

/* Custom scrollbars */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.6);
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.75), rgba(96, 165, 250, 0.75));
    border-radius: 999px;
  }
}


/* --- Header restyle to match footer look & hover behavior --- */
/* Apply footer-like rounded hover, background and transitions to header nav links */
.site-header__nav .site-header__nav-link,
.site-header__nav .site-header__nav-link a,
.site-header__nav .site-header__nav-link > * {
  transition: background-color 0.18s ease, color 0.18s ease, padding 0.12s, box-shadow 0.18s ease;
  padding: 0.125rem 0.25rem;
  border-radius: 0.375rem;
  color: rgba(17,24,39,1);
}

/* Hover/Focus highlight similar to footer */
.site-header__nav .site-header__nav-link:hover,
.site-header__nav .site-header__nav-link:focus,
.site-header__nav .site-header__nav-link a:hover,
.site-header__nav .site-header__nav-link a:focus {
  background: rgba(255,255,255,0.06);
  color: inherit;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

/* If header uses dark background (hero overlap or scrolled state), ensure hover looks good */
.site-header--scrolled .site-header__nav .site-header__nav-link,
.site-header--scrolled .site-header__nav .site-header__nav-link a {
  color: rgba(255,255,255,0.92);
}
.site-header--scrolled .site-header__nav .site-header__nav-link:hover,
.site-header--scrolled .site-header__nav .site-header__nav-link:focus {
  background: rgba(255,255,255,0.06);
  color: white;
}

/* Keep the Book me / CTA prominent */
.site-header__nav .site-header__nav-link--cta,
.site-header__nav .button-link {
  background: linear-gradient(180deg, var(--brand-amber), color-mix(in srgb, var(--brand-amber) 80%, black 10%));
  color: rgba(17,24,39,1);
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  box-shadow: 0 14px 30px -18px rgba(251, 191, 36, 0.45), 0 6px 18px -12px rgba(2,6,23,0.35);
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
  text-decoration: none;
}

/* CTA hover tweak */
.site-header__nav .site-header__nav-link--cta:hover,
.site-header__nav .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px -20px rgba(251, 191, 36, 0.5);
  filter: brightness(1.02);
}

/* Responsive: keep horizontal on >=640px, vertical under 640px */
@media (min-width: 640px) {
  .site-header__nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1rem;
  }
  .site-header__nav .site-header__nav-link {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 639px) {
  .site-header__nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  /* Make the CTA full-width on mobile and keep it prominent */
  .site-header__nav .site-header__nav-link--cta,
  .site-header__nav .button-link {
    width: 100%;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}


/* ===== Footer styles added by assistant =====
   Goal: match header style, improve contrast, add highlighting and responsive reflow,
   and implement spacing and rounded corners as requested.
   NOTE: This block intentionally does NOT change header styles.
*/
footer, .site-footer, #footer, .footer {
  background: #1d4fa3;
  color: #ffffff;
  padding: 28px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 28px; /* gap between end of main content and start of footer */
  border-radius: 12px; /* rounded corners like other components */
  overflow: hidden; /* ensure inner elements respect the rounded corners */
}

/* Ensure there's a visible gap between the header and main content without changing header */
main, .site-main, #main, .content, .page-main {
  margin-top: 22px;
}

/* Inner wrapper to allow flexible columns and a centered max-width */
.footer-inner, .site-footer .inner, footer .inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Footer column */
.footer-column, .footer .column, .site-footer .col {
  flex: 1 1 220px;
  min-width: 180px;
}

/* Links and highlights */
footer a, .site-footer a, #footer a {
  color: #ffd54f;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: all 180ms ease-in-out;
}

footer a:hover, .site-footer a:hover, #footer a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  border-bottom-color: #ffd54f;
  text-decoration: none;
}

/* Small print / meta */
footer .meta, .site-footer .meta {
  opacity: 0.95;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Make footer buttons or CTA inline and visible */
.footer-cta, .site-footer .cta, footer .cta {
  display: inline-block;
  background: #ffd54f;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}

/* Accessibility: ensure sufficient contrast for small text */
footer small, .site-footer small { color: #ffffff; }

/* Mobile / narrow screens: stack columns and keep gaps */
@media (max-width: 768px) {
  .footer-inner, .site-footer .inner, footer .inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column, .footer .column, .site-footer .col {
    min-width: auto;
    width: 100%;
    margin-bottom: 18px;
  }
  footer .footer-cta, .site-footer .cta { margin-left: 0; }
  /* Reduce main top margin on very small screens to avoid excessive whitespace */
  main, .site-main, #main, .content, .page-main { margin-top: 16px; }
  footer { margin-top: 22px; border-radius: 10px; }
}

/* Utility: subtle top border to separate from content (softened so rounded corners are visible) */
footer, .site-footer, #footer { box-shadow: 0 -1px 0 rgba(0,0,0,0.04) inset; }

/* End generated footer styles */

/* ==========================================================================
   Three-style visual system
   Professional is the complete default. The two optional stylesheets only
   override tokens and selected treatments under their html[data-theme] scope.
   ========================================================================== */
:root {
  --page: #eef4f6;
  --surface: #ffffff;
  --surface-alt: #eaf3f8;
  --ink: #0b2538;
  --muted: #476273;
  --accent: #007b78;
  --accent-strong: #005e5c;
  --accent-soft: #dff4ef;
  --on-accent: #ffffff;
  --rule: #b8d1d8;
  --focus-inner: #ffffff;
  --focus-outer: #006b68;
  --footer-bg: #0b2538;
  --footer-text: #f7fbfc;
  --footer-muted: #cbdce2;
  --footer-link: #ffdc67;
  --footer-link-hover: #ffffff;
  --font-ui: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-reading: Georgia, "Times New Roman", serif;
  --measure: 72ch;
  --radius-sm: 0.45rem;
  --radius-card: 0.75rem;
  --radius-pill: 999px;
  --rule-width: 1px;
  --shadow-card: 0 14px 34px -24px rgba(11, 37, 56, 0.42);
  --shadow-lift: 0 22px 44px -25px rgba(11, 37, 56, 0.5);
  --shell: 80rem;
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --brand-ink: var(--ink);
  --brand-ink-soft: #183b50;
  --brand-muted: var(--muted);
  --brand-blue: var(--accent);
  --brand-blue-soft: #53c7c1;
  --brand-amber: #d7a22a;
  --border-soft: color-mix(in srgb, var(--rule) 62%, transparent);
  --border-strong: var(--rule);
  --surface-glass: color-mix(in srgb, var(--surface) 94%, transparent);
  --surface-panel: var(--surface);
  --shadow-soft: var(--shadow-card);
  --shadow-strong: var(--shadow-lift);
}

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

html {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent-soft) 60%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--surface) 0%, var(--page) 100%);
  color: var(--ink);
  font-family: var(--font-ui);
}

body::before {
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1px);
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

figure {
  max-width: 100%;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

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

main a:not(.button-link):not(.site-header__nav-link),
.entry-content a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

:where(a, button, select, input, textarea):focus-visible {
  outline: 2px solid var(--focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-outer);
}

/* Minimal utility bridge for the prepared main-page markup. */
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-5 { width: 1.25rem; }
.w-12 { width: 3rem; }
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-12 { height: 3rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-inline: 0.75rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.px-6 { padding-inline: 1.5rem; }
.py-1 { padding-block: 0.25rem; }
.py-2 { padding-block: 0.5rem; }
.py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; }
.py-5 { padding-block: 1.25rem; }
.py-12 { padding-block: 3rem; }
.py-16 { padding-block: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: var(--shell); }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.rounded-md { border-radius: var(--radius-sm); }
.rounded-2xl { border-radius: var(--radius-card); }
.rounded-3xl { border-radius: calc(var(--radius-card) * 1.65); }
.rounded-full { border-radius: var(--radius-pill); }
.border { border: var(--rule-width) solid var(--rule); }
.border-t { border-top: var(--rule-width) solid var(--rule); }
.ring-1 { box-shadow: 0 0 0 1px var(--rule); }
.shadow-sm { box-shadow: var(--shadow-card); }
.shadow-lg,
.shadow-xl { box-shadow: var(--shadow-lift); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 650; }
.leading-relaxed { line-height: 1.75; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide { letter-spacing: 0.04em; }
.tracking-widest { letter-spacing: 0.13em; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration-line: underline; }
.underline-offset-4 { text-underline-offset: 0.25rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-main {
  padding: clamp(0.5rem, 2vw, 1.25rem);
}

body.page-main > :where(header, main, footer) {
  max-width: var(--shell);
  margin-inline: auto;
}

.bg-white,
.section-block.bg-white { background: var(--surface); }
.bg-slate-50,
.bg-slate-50\/60,
.bg-slate-50\/70,
.bg-slate-50\/80 { background: var(--surface-alt); }
.bg-slate-100,
.section-block.bg-slate-100 { background: color-mix(in srgb, var(--surface-alt) 76%, var(--page)); }
.bg-slate-900,
.section-block.bg-slate-900 {
  background:
    linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 72%, var(--accent)));
  color: var(--on-accent);
}
.bg-blue-300,
.bg-blue-500 { background: var(--accent); }
.bg-white\/10 { background: rgba(255, 255, 255, 0.12); }
.border-slate-200,
.border-slate-300,
.border-slate-800,
.border-white\/10,
.border-white\/20,
.border-white\/30 { border-color: var(--rule); }
.text-slate-900,
.text-slate-700,
.text-slate-600,
.text-slate-500 { color: var(--ink); }
.text-slate-400,
.text-slate-300 { color: var(--muted); }
.text-blue-600,
.text-blue-700,
.text-blue-500,
.text-blue-400 { color: var(--accent-strong); }
.text-white,
.text-slate-100,
.text-slate-200,
.text-blue-100,
.text-blue-200 { color: var(--on-accent); }

.site-header {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: var(--rule-width) solid color-mix(in srgb, var(--rule) 75%, transparent);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.site-header > .max-w-7xl {
  padding-inline: var(--gutter);
}

.site-style-bar {
  display: flex;
  justify-content: flex-end;
  min-height: 2.75rem;
  border-bottom: var(--rule-width) solid color-mix(in srgb, var(--rule) 70%, transparent);
}

.theme-control {
  display: none;
}

.js .theme-control {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-control__select-wrap {
  position: relative;
}

.theme-control__select {
  min-height: 44px !important; /* Astra sets a smaller control height on the preserved blog. */
  max-width: 12rem;
  padding: 0.5rem 2.25rem 0.5rem 0.8rem;
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.theme-control__select:hover {
  border-color: var(--accent);
}

.site-header__nav-list {
  background: color-mix(in srgb, var(--surface-alt) 76%, transparent);
  border-radius: var(--radius-pill);
}

.site-header__nav-link {
  min-height: 2.75rem;
  color: var(--muted);
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible,
.site-header__nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 var(--rule-width) color-mix(in srgb, var(--accent) 34%, transparent);
}

.site-header__nav-link--cta,
.site-header__nav .site-header__nav-link--cta {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-card);
}

.hero {
  background:
    linear-gradient(118deg, var(--ink) 0 62%, color-mix(in srgb, var(--accent) 75%, var(--ink)) 62% 100%);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.hero::before {
  background:
    linear-gradient(102deg, transparent 0 54%, color-mix(in srgb, var(--accent-soft) 12%, transparent) 54% 56%, transparent 56%),
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 32rem);
}

.hero__content {
  border-radius: var(--radius-card);
  border-color: color-mix(in srgb, var(--accent-soft) 30%, transparent);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  box-shadow: var(--shadow-lift);
}

.hero__title,
.section-block__title,
.entry-title {
  font-family: var(--font-display);
  overflow-wrap: normal;
  word-break: normal;
}

.hero__tag,
.hero__badge,
.genai-chip {
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: color-mix(in srgb, var(--accent-soft) 44%, transparent);
}

.section-block {
  padding-block: var(--section-space);
}

.section-block > div {
  padding-block: 0;
  padding-inline: var(--gutter);
}

.section-block::before,
.section-block__title::after {
  background: linear-gradient(90deg, var(--accent), #d7a22a);
}

:where(.service-card, .blog-card, .publication-card, .timeline-card, .quote-callout, .tweet-card, .content-card, .widget) {
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

:where(.service-card, .blog-card, .publication-card, .timeline-card, .content-card) {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

:where(.service-card, .blog-card, .publication-card, .timeline-card, .content-card):hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

.button-link {
  min-height: 2.75rem;
  border-radius: var(--radius-sm);
}

.site-footer {
  background: var(--footer-bg);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  color: var(--footer-text);
}

.site-footer :where(h2, h3) {
  color: var(--footer-text);
}

.site-footer :where(p, .text-slate-300, .text-slate-400, .text-slate-500, .ast-footer-copyright, .site-footer__meta) {
  color: var(--footer-muted);
}

.site-footer :where(a, .site-footer__link) {
  color: var(--footer-link);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  background: color-mix(in srgb, var(--footer-text) 12%, transparent);
  color: var(--footer-link-hover);
  text-decoration-color: currentColor;
}

.section-block.bg-slate-900 .section-block__cta {
  border: var(--rule-width) solid var(--rule);
  background: var(--surface);
  color: var(--ink);
}

.section-block.bg-slate-900 .section-block__cta:hover,
.section-block.bg-slate-900 .section-block__cta:focus-visible {
  background: var(--accent-soft);
  color: var(--ink);
}

/* Preserved WordPress/Astra blog bridge. */
body.page-blog {
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
}

body.page-blog::before {
  content: none;
}

.theme-control-wrap {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding-inline: var(--gutter);
  background: var(--ink);
  border-bottom: calc(var(--rule-width) * 2) solid var(--accent);
}

.blog-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  color: var(--footer-link);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.blog-return-link:hover,
.blog-return-link:focus-visible {
  background: color-mix(in srgb, var(--footer-text) 12%, transparent);
  color: var(--footer-link-hover);
}

.theme-control-wrap .theme-control {
  color: var(--on-accent);
}

.theme-control-wrap .theme-control__select {
  border-color: color-mix(in srgb, var(--accent-soft) 52%, transparent);
}

body.page-blog .site-header {
  position: relative;
  inset: auto;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule), var(--shadow-card);
  backdrop-filter: none;
}

body.page-blog .site-header::after {
  content: none;
}

body.page-blog .ast-container {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

body.page-blog .site-content {
  padding-block: clamp(2rem, 6vw, 5rem);
}

body.page-blog :where(.entry-title, .widget-title, .site-title) {
  color: var(--ink);
  font-family: var(--font-display);
}

body.page-blog .entry-title a {
  color: inherit;
}

body.page-blog :where(.entry-meta, .entry-meta a, .site-description) {
  color: var(--muted);
}

body.page-blog :where(.ast-article-post, .ast-article-single) {
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

body.page-blog .entry-content {
  max-width: var(--measure);
  color: var(--ink);
  font-family: var(--font-reading);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.78;
}

body.page-blog .entry-content :where(p, li, dd) {
  overflow-wrap: break-word;
}

body.page-blog .entry-content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
}

body.page-blog .entry-content :where(blockquote, figure, table) {
  max-width: 100%;
}

body.page-blog .entry-content blockquote {
  margin-inline: 0;
  padding: 1rem 1.25rem;
  border-left: calc(var(--rule-width) * 4) solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

body.page-blog :where(.widget, .post-navigation) {
  padding: 1.25rem;
  border: var(--rule-width) solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
}

body.page-blog :where(.widget a, .post-navigation a, .entry-meta a) {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.page-blog :where(.main-header-menu .menu-link, .ast-custom-button-link, .menu-toggle) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

body.page-blog .site-footer {
  border-radius: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
}

body.page-blog .site-footer .ast-footer-copyright {
  color: var(--footer-muted);
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-inline: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:pt-0 { padding-top: 0; }
  .md\:w-auto { width: auto; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-\[2fr_3fr\] { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .lg\:grid-cols-\[3fr_2fr\] { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .lg\:items-center { align-items: center; }
  .lg\:items-start { align-items: flex-start; }
  .lg\:px-8 { padding-inline: 2rem; }
  .lg\:py-24 { padding-block: 6rem; }
  .lg\:text-5xl { font-size: 3rem; }
}

@media (max-width: 767px) {
  body.page-main {
    padding: 0;
  }

  .site-header {
    border-radius: 0;
  }

  .site-header > .max-w-7xl > .flex {
    flex-wrap: wrap;
  }

  .site-style-bar {
    justify-content: center;
  }

  .js .theme-control {
    width: 100%;
    justify-content: space-between;
  }

  .site-header__nav {
    flex-basis: 100%;
  }

  .site-header__nav-list {
    border-radius: var(--radius-card);
  }

  .site-header__nav-link {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .hero,
  .site-footer {
    border-radius: 0;
  }

  .theme-control-wrap {
    justify-content: center;
  }

  body.page-blog .ast-container {
    width: min(100% - 1.25rem, var(--shell));
  }

  body.page-blog :where(.ast-article-post, .ast-article-single) {
    padding: 1rem;
  }
}

/* The prepared navigation contains eight destinations; keep the proven
   disclosure pattern until there is genuinely enough horizontal room. */
@media (min-width: 768px) and (max-width: 1199px) {
  body.page-main .nav-toggle {
    display: inline-flex;
  }

  body.page-main .site-header > .max-w-7xl > .flex {
    flex-wrap: wrap;
  }

  body.page-main .site-header__nav.md\:block {
    display: none;
    flex-basis: 100%;
    width: 100%;
  }

  body.page-main .site-header__nav.site-header__nav--open {
    display: block;
  }

  body.page-main .site-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-card);
  }

  body.page-main .site-header__nav-link {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --page: #ffffff;
    --surface: #ffffff;
    --surface-alt: #ffffff;
    --ink: #000000;
    --muted: #222222;
    --accent: #000000;
    --accent-strong: #000000;
    --accent-soft: #ffffff;
    --rule: #777777;
    --shadow-card: none;
    --shadow-lift: none;
  }

  @page {
    margin: 18mm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body {
    padding: 0 !important;
  }

  body::before,
  .site-header,
  .site-footer,
  .theme-control-wrap,
  .theme-control,
  .nav-toggle,
  .site-header__nav,
  .sidebar-main,
  .widget-area {
    display: none !important;
  }

  main,
  .site-content,
  .ast-container,
  .content-area,
  .site-main,
  article,
  .entry-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  :where(.hero, .section-block, .service-card, .blog-card, .publication-card, .timeline-card, .quote-callout, figure, blockquote, tr) {
    break-inside: avoid;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .entry-content a[href^="http"]:not([href*="thomaslancaster.co.uk"])::after,
  main a[href^="http"]:not([href*="thomaslancaster.co.uk"])::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 400;
  }
}
