:root {
  --ink: #0b1733;
  --ink-soft: #3b4860;
  --paper: #fafaf7;
  --stone: #eeeae3;
  --line: #d8d5ce;
  --teal: #009f9b;
  --blue: #2878ff;
  --night: #07111f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
.section-shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; top: 8px;
  width: auto; z-index: 100000; background: #fff; color: var(--ink); padding: 12px 16px;
}

.site-header {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(250,250,247,.96);
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; width: max-content; flex-direction: column; line-height: 1; }
.brand .custom-logo-link { display: block; line-height: 0; }
.brand .custom-logo { width: auto; max-width: 240px; height: 56px; object-fit: contain; }
.brand-main {
  font-size: 27px;
  font-weight: 620;
  letter-spacing: .24em;
  white-space: nowrap;
}
.brand-a {
  display: inline-block;
  color: var(--blue);
  transform: scaleX(.82);
  margin: 0 .03em;
}
.brand-sub {
  margin-top: 7px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .52em;
  text-transform: uppercase;
}
.desktop-nav ul { display: flex; gap: 44px; padding: 0; margin: 0; list-style: none; font-size: 15px; font-weight: 600; }
.desktop-nav a, .header-cta { transition: color .2s ease; }
.desktop-nav a:hover { color: var(--teal); }
.header-cta {
  justify-self: end;
  border: 1px solid var(--ink);
  padding: 13px 18px;
  border-radius: 4px;
  font-weight: 650;
  font-size: 14px;
}
.header-cta span { color: var(--blue); margin-left: 10px; }
.header-cta:hover { color: var(--blue); border-color: var(--blue); }

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 53% 47%;
  overflow: hidden;
}
.hero-copy {
  padding: 74px clamp(48px, 6vw, 104px) 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  border-bottom-right-radius: 100px;
  position: relative;
  z-index: 2;
  margin-right: -88px;
}
.kicker {
  margin: 0 0 24px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1, h2 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 560;
  letter-spacing: -.045em;
}
.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(54px, 5vw, 82px);
  line-height: .98;
}
.teal-rule { width: 62px; height: 4px; background: var(--teal); margin: 28px 0 20px; border-radius: 10px; }
.hero-intro { max-width: 610px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 18px; margin-top: 28px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  border-radius: 5px;
  font-weight: 720;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: white; box-shadow: 0 12px 28px rgba(0,159,155,.18); }
.button-primary:hover { box-shadow: 0 16px 32px rgba(0,159,155,.26); }
.button-secondary { border: 1px solid var(--blue); color: var(--blue); background: transparent; }
.trust-row { display: flex; gap: 28px; margin-top: 38px; }
.trust-row > div { display: flex; gap: 12px; align-items: center; min-width: 0; }
.trust-row > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.trust-icon {
  width: 38px; height: 38px; border: 1px solid var(--teal); border-radius: 50%;
  display: grid; place-items: center; color: var(--teal); font-size: 11px; font-weight: 800;
}
.trust-row p { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.trust-row strong { font-weight: 750; }
.trust-row small { color: #687286; font-size: 10px; }
.hero-visual {
  min-height: 720px;
  background: url("../images/kairos-hero.png") 55% center / cover no-repeat;
  position: relative;
}
.visual-note {
  position: absolute; right: 26px; bottom: 24px; padding: 10px 14px;
  background: rgba(250,250,247,.88); backdrop-filter: blur(12px);
  border-radius: 3px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.service-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; padding-top: 120px; padding-bottom: 56px; }
h2 { font-size: clamp(42px, 5vw, 66px); line-height: 1.04; margin: 0; }
.service-intro > p { margin: 0 0 8px; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); margin-bottom: 120px; }
.service-card { min-height: 490px; padding: 48px; position: relative; }
.service-card:nth-child(odd) { border-right: 1px solid var(--line); }
.service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.service-number { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.card-eyebrow { margin: 54px 0 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: #70798a; font-weight: 750; }
.service-card h3, .insights h3 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.service-card > p:not(.card-eyebrow) { color: var(--ink-soft); line-height: 1.75; max-width: 570px; }
.service-card ul { list-style: none; padding: 0; margin: 24px 0 42px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card li { background: var(--stone); padding: 8px 11px; font-size: 11px; border-radius: 3px; }
.service-card a, .insights a { font-size: 13px; font-weight: 750; color: var(--blue); }
.service-card a span, .insights a span { margin-left: 8px; }

.process { background: var(--night); color: #f4f7fb; padding: 116px 0; }
.process-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 120px; }
.kicker-light { color: #53c8c4; }
.process ol { list-style: none; margin: 0; padding: 0; }
.process li { display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 25px 0; border-top: 1px solid #314059; }
.process li:last-child { border-bottom: 1px solid #314059; }
.process li > span { color: #53c8c4; font-size: 11px; letter-spacing: .16em; font-weight: 800; }
.process strong { display: block; font-size: 19px; margin-bottom: 7px; }
.process li p { color: #aab6c8; margin: 0; line-height: 1.6; font-size: 14px; }

.about { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 64px; padding-top: 120px; padding-bottom: 120px; align-items: start; }
.about-mark {
  width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid var(--blue);
  color: var(--blue); font-size: 52px; font-weight: 500; transform: skewX(-8deg);
}
.about-copy { padding-top: 42px; }
.about-copy p { color: var(--ink-soft); line-height: 1.85; font-size: 16px; margin: 0 0 22px; }

.insights { padding-top: 110px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 430px; gap: 80px; align-items: end; margin-bottom: 52px; }
.section-heading > p { color: var(--ink-soft); font-size: 17px; line-height: 1.7; margin: 0; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.insights article { padding: 32px; min-height: 340px; background: white; border: 1px solid var(--line); display: flex; flex-direction: column; }
.insights article > span { color: var(--teal); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.insights h3 { font-size: 25px; margin-top: 52px; }
.insights article p { color: var(--ink-soft); line-height: 1.7; font-size: 14px; }
.insights article a { margin-top: auto; }

.contact { background: var(--teal); color: white; text-align: center; padding: 110px 0; }
.contact-inner { max-width: 850px; }
.contact .kicker { color: #d8fffd; }
.contact h2 { max-width: 740px; margin-inline: auto; }
.contact p { max-width: 620px; margin: 26px auto; line-height: 1.8; color: #eaffff; }
.button-light { background: white; color: var(--ink); margin: 6px 0 26px; }
.contact small { display: block; color: #d8fffd; }
.site-footer { background: var(--night); color: white; padding: 54px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 28px; }
.brand-footer .brand-sub { color: #74a4ff; }
.footer-inner > p { margin: 0; color: #9eabc0; font-size: 11px; }
.footer-inner > p:last-child { text-align: right; }

.menu-toggle {
  display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line);
  background: transparent; border-radius: 4px; cursor: pointer;
}
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }
.content-shell, .article-shell { padding-top: 100px; padding-bottom: 120px; min-height: 65vh; }
.archive-heading, .article-shell article > header { max-width: 900px; margin-bottom: 56px; }
.archive-heading h1, .article-shell h1 { margin: 0; font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(48px, 6vw, 78px); line-height: 1.02; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 28px; border: 1px solid var(--line); background: white; }
.post-card img { display: block; width: 100%; height: 220px; object-fit: cover; margin-bottom: 24px; }
.post-card h2 { font-family: "DM Sans", Arial, sans-serif; font-size: 27px; line-height: 1.15; }
.post-meta { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.post-card > p:not(.post-meta), .entry-content { color: var(--ink-soft); line-height: 1.85; }
.text-link { color: var(--blue); font-weight: 700; }
.article-shell { max-width: 900px; }
.article-image img { width: 100%; height: auto; }
.entry-content { font-size: 18px; }
.entry-content > * { max-width: 760px; }
.entry-content img, .entry-content .alignwide { max-width: 100%; height: auto; }
.contact-phone { display: block; width: max-content; margin: 0 auto 18px; color: white; font-weight: 700; }
.error-page > p { color: var(--ink-soft); font-size: 18px; line-height: 1.7; max-width: 680px; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; justify-self: end; }
  .desktop-nav {
    display: none; position: absolute; top: 92px; left: 0; right: 0; padding: 24px 48px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(7,17,31,.08);
  }
  .desktop-nav.is-open { display: block; }
  .desktop-nav ul { flex-direction: column; gap: 20px; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { margin-right: 0; border-radius: 0; }
  .hero-visual { min-height: 580px; background-position: 57% center; }
  .service-intro, .process-grid { gap: 60px; }
  .about { grid-template-columns: 100px 1fr; }
  .about-copy { grid-column: 2; padding-top: 0; }
  .trust-row { flex-wrap: wrap; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section-shell { width: min(100% - 40px, 1280px); }
  .site-header { height: 78px; padding: 0 20px; gap: 16px; }
  .brand-main { font-size: 18px; }
  .brand-sub { font-size: 7px; letter-spacing: .35em; }
  .desktop-nav { top: 78px; padding: 24px 20px; }
  .hero { min-height: auto; }
  .hero-copy { padding: 64px 20px 50px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-intro { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .trust-row { display: grid; grid-template-columns: 1fr; }
  .trust-row > div + div { border-left: 0; padding-left: 0; }
  .hero-visual { min-height: 460px; }
  .service-intro, .process-grid, .section-heading { grid-template-columns: 1fr; gap: 30px; }
  .service-intro { padding-top: 80px; }
  .services-grid, .insights-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 34px 28px; border-bottom: 1px solid var(--line) !important; border-right: 0 !important; }
  .card-eyebrow { margin-top: 36px; }
  .process { padding: 80px 0; }
  .about { grid-template-columns: 1fr; gap: 28px; padding-block: 80px; }
  .about-copy { grid-column: auto; }
  .insights { padding-block: 80px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-inner > p:last-child { text-align: left; }
  .post-grid { grid-template-columns: 1fr; }
  .content-shell, .article-shell { padding-top: 70px; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
