@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap');

:root {
  --navy: #0c2548;
  --navy-soft: #173a61;
  --olive: #737b53;
  --olive-dark: #5e6642;
  --paper: #faf9f5;
  --white: #ffffff;
  --mist: #f1f3f2;
  --line: rgba(12, 37, 72, 0.13);
  --line-dark: rgba(255, 255, 255, 0.18);
  --sans: 'DM Sans', sans-serif;
  --serif: 'Libre Caslon Display', Georgia, serif;
  --shell: 1180px;
  --section-space: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--navy); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
.site-header, .site-footer { display: none !important; }
.kinwell-site { isolation: isolate; }
.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.section, .challenge, .operating { padding-block: var(--section-space); }
.band { background: linear-gradient(100deg, #edf0f0, #f8f8f4); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h2 { max-width: 16ch; font-size: clamp(2.65rem, 4.2vw, 3.65rem); }
h3, p, dl, dd { margin-top: 0; }
p, dd { text-wrap: pretty; }
a:focus-visible, button:focus-visible { outline: 2px solid #6f8cc1; outline-offset: 3px; }
.center { max-width: none; text-align: center; }

.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--olive); border-radius: 6px; background: var(--olive); color: var(--white); font-weight: 500; text-decoration: none; box-shadow: 0 9px 24px rgba(29, 44, 24, 0.15); transition: transform 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 40px; padding-inline: 16px; border-color: rgba(115, 123, 83, 0.5); background: rgba(115, 123, 83, 0.1); color: var(--olive-dark); box-shadow: none; font-size: 0.86rem; }
.button-light { border-color: rgba(255, 255, 255, 0.65); background: transparent; box-shadow: none; }

/* Header */
.nav { position: relative; z-index: 20; display: flex; height: 112px; align-items: center; justify-content: space-between; }
.nav::before { content: ''; position: absolute; z-index: -1; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-bottom: 1px solid rgba(12, 37, 72, 0.08); background: var(--white); }
.brand { display: flex; flex-shrink: 0; align-items: center; }
.brand img { width: 116px; height: 88px; flex-shrink: 0; object-fit: contain; background: var(--white); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links > a:not(.button) { position: relative; color: var(--navy); font-size: 0.88rem; font-weight: 500; text-decoration: none; }
.nav-links > a:not(.button)::after { content: ''; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.nav-links > a:not(.button):hover::after, .nav-links > a:not(.button):focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 740px; overflow: hidden; background: #f7f5ef; }
.hero-image { position: absolute; z-index: 0; inset: 112px 0 0; overflow: hidden; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,249,245,.98) 0%, rgba(250,249,245,.80) 31%, rgba(250,249,245,.05) 61%); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: relative; z-index: 2; padding-top: 72px; }
.hero h1 { max-width: 13ch; font-size: clamp(3.7rem, 6.2vw, 5.75rem); }
.hero-copy p { max-width: 57ch; margin: 30px 0 34px; font-size: 1.08rem; }
.thread { position: absolute; border: 2px solid var(--olive); border-width: 0 0 2px 2px; border-radius: 0 0 0 180px; }
.thread-hero { left: -30px; bottom: -42px; width: 380px; height: 200px; transform: rotate(12deg); opacity: 0.82; }

/* Shared feature language */
.feature-list { margin-bottom: 0; }
.feature-list > div { min-width: 0; }
.feature-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; margin-bottom: 24px; opacity: 0.72; filter: invert(45%) sepia(12%) saturate(856%) hue-rotate(29deg) brightness(94%); }
.feature-list dt { margin-bottom: 8px; font-size: 0.93rem; font-weight: 600; letter-spacing: 0.01em; }
.feature-list dd { margin-left: 0; color: rgba(12, 37, 72, 0.76); font-size: 0.94rem; line-height: 1.65; }

/* Challenge */
.challenge-grid { display: grid; grid-template-columns: 7fr 13fr; gap: 72px; align-items: start; }
.challenge-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.challenge-list > div { padding-inline: 34px; border-left: 1px solid var(--line); }
.challenge-list > div:first-child { padding-left: 0; border-left: 0; }
.challenge-list > div:last-child { padding-right: 0; }

/* Domains */
.domains { background: var(--paper); }
.domains h2 { margin-inline: auto; }
.domain-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 68px; }
.domain-line > div { padding-top: 28px; border-top: 1px solid var(--line); }
.domain-line dt { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.domain-line dd { max-width: 31ch; }

/* Operating layer */
.operating-grid { display: grid; grid-template-columns: 7fr 13fr; gap: 72px; align-items: start; }
.operating-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.operating-list > div { padding-inline: 34px; border-left: 1px solid var(--line); }
.operating-list > div:first-child { padding-left: 0; border-left: 0; }
.operating-list > div:last-child { padding-right: 0; }

/* Process */
.process-grid { display: grid; grid-template-columns: 7fr 13fr; gap: 72px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps::before { content: ''; position: absolute; top: 24px; right: 11%; left: 11%; height: 1px; background: var(--line); }
.steps article { position: relative; min-width: 0; }
.steps b { position: relative; z-index: 1; display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--olive); color: var(--white); font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 8px; font-size: 1.08rem; font-weight: 600; }
.steps p { margin-bottom: 0; color: rgba(12, 37, 72, 0.74); font-size: 0.92rem; line-height: 1.65; }

/* Editorial image */
.continuity { display: grid; grid-template-columns: 11fr 9fr; min-height: 560px; background: var(--white); }
.continuity-photo { overflow: hidden; }
.continuity-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.continuity-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px max(48px, 8vw) 72px 72px; }
.continuity-copy h2 { max-width: 15ch; }
.continuity-copy i { width: 48px; height: 1px; margin: 28px 0; background: var(--olive); }
.continuity-copy p { max-width: 48ch; margin-bottom: 0; color: rgba(12, 37, 72, 0.78); }

/* CTA */
.closing { padding-block: 104px; color: var(--white); background: radial-gradient(circle at 50% 0, #173d69, #081e3b 72%); text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.closing .eyebrow { margin: 0; color: rgba(255,255,255,.68); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.closing h2 { max-width: 18ch; color: var(--white); font-size: clamp(2.8rem, 4.5vw, 4rem); }

/* Footer */
.kinwell-footer { padding: 72px 0 26px; background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 3fr 1fr 2fr; gap: 80px; padding-bottom: 64px; }
.footer-brand > a { display: inline-flex; }
.footer-brand img { display: block; width: 112px; height: 96px; object-fit: contain; background: var(--white); }
.footer-brand > p { max-width: 43ch; margin: 22px 0 0; color: rgba(12, 37, 72, 0.68); font-size: 0.92rem; }
.footer-nav, .footer-contact { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-nav > p, .footer-contact > p { margin: 0 0 9px; color: rgba(12, 37, 72, 0.48); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; }
.footer-nav a, .footer-contact a, .footer-bottom a { color: var(--navy); font-size: 0.9rem; font-weight: 400; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--olive-dark); }
.footer-contact a { display: inline-flex; max-width: 100%; align-items: baseline; gap: 5px; overflow-wrap: anywhere; }
.footer-contact a img { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.68; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: rgba(12, 37, 72, 0.56); font-size: 0.8rem; }
.footer-bottom a { font-size: 0.8rem; }

@media (max-width: 1000px) {
  .nav-links { gap: 22px; }
  .challenge-grid, .operating-grid, .process-grid { gap: 48px; }
  .challenge-list > div, .operating-list > div { padding-inline: 24px; }
}

@media (max-width: 900px) {
  :root { --section-space: 88px; }
  .shell { width: min(var(--shell), calc(100% - 40px)); }
  .nav { height: 96px; }
  .nav::before { box-shadow: 0 6px 22px rgba(12, 37, 72, 0.06); }
  .brand img { width: 96px; height: 78px; }
  .menu-toggle { position: relative; z-index: 22; display: block; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(12,37,72,.16); border-radius: 50%; background: var(--white); cursor: pointer; }
  .menu-toggle span { position: absolute; left: 13px; width: 20px; height: 1.5px; background: var(--navy); transition: top .22s ease, transform .22s ease; }
  .menu-toggle span:first-child { top: 18px; }
  .menu-toggle span:last-child { top: 27px; }
  .menu-toggle.is-open { border-color: var(--olive); background: #f3f3ed; }
  .menu-toggle.is-open span:first-child, .menu-toggle.is-open span:last-child { top: 23px; }
  .menu-toggle.is-open span:first-child { transform: rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: rotate(-45deg); }
  .nav-links { position: fixed; z-index: 19; top: 96px; right: 0; left: 0; display: flex; max-height: calc(100dvh - 96px); overflow: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(12,37,72,.08); border-radius: 0 0 20px 20px; background: var(--white); box-shadow: 0 26px 46px rgba(12,37,72,.18); opacity: 0; visibility: hidden; transform: translateY(-14px); pointer-events: none; transition: opacity .2s ease, transform .25s ease, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-links > a:not(.button) { display: flex; min-height: 58px; align-items: center; padding-inline: 4px; border-bottom: 1px solid rgba(12,37,72,.09); font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
  .nav-links > a:not(.button)::after { content: '→'; position: static; width: auto; height: auto; margin-left: auto; background: none; color: var(--olive); font-family: var(--sans); font-size: 1rem; transform: none; }
  .nav-links .button-small { width: 100%; min-height: 54px; margin-top: 20px; font-size: 1rem; }
  .hero { min-height: 720px; }
  .hero-image { inset: 96px 0 0; }
  .hero-image::after { background: linear-gradient(180deg, rgba(250,249,245,.98) 0%, rgba(250,249,245,.78) 45%, rgba(250,249,245,.08) 76%); }
  .hero-image img { object-position: 62% center; }
  .hero-copy { padding-top: 66px; }
  .hero h1 { max-width: 12ch; font-size: 3.55rem; }
  .hero-copy p { max-width: 54ch; font-size: 1rem; }
  .challenge-grid, .operating-grid, .process-grid { grid-template-columns: 1fr; gap: 52px; }
  .challenge-list, .operating-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .continuity { grid-template-columns: 1fr; }
  .continuity-photo { height: 470px; }
  .continuity-copy { padding: 72px 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  :root { --section-space: 72px; }
  .shell { width: min(var(--shell), calc(100% - 36px)); }
  h2 { font-size: 2.55rem; }
  .nav { height: 88px; }
  .brand img { width: 88px; height: 72px; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle span { left: 12px; }
  .menu-toggle span:first-child { top: 16px; }
  .menu-toggle span:last-child { top: 25px; }
  .menu-toggle.is-open span:first-child, .menu-toggle.is-open span:last-child { top: 21px; }
  .nav-links { top: 88px; max-height: calc(100dvh - 88px); padding-inline: 20px; }
  .hero { min-height: 700px; }
  .hero-image { inset: 88px 0 0; }
  .hero-copy { padding-top: 70px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-copy p { margin-block: 28px 32px; font-size: 1rem; line-height: 1.65; }
  .challenge-list, .operating-list, .domain-line { grid-template-columns: 1fr; gap: 0; }
  .challenge-list > div, .operating-list > div, .domain-line > div { padding: 28px 0; border-top: 1px solid var(--line); border-left: 0; }
  .challenge-list > div:first-child, .operating-list > div:first-child { padding-top: 28px; border-top: 1px solid var(--line); }
  .feature-icon { margin-bottom: 18px; }
  .feature-list dt { font-size: 1rem; }
  .feature-list dd { font-size: 1rem; }
  .domain-line { margin-top: 48px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 24px; bottom: 24px; left: 24px; width: 1px; height: auto; }
  .steps article { min-height: 132px; padding: 0 0 36px 76px; }
  .steps b { position: absolute; top: 0; left: 0; }
  .steps h3 { font-size: 1.12rem; }
  .steps p { font-size: 1rem; }
  .continuity-photo { height: 340px; }
  .continuity-copy { padding: 64px 24px; }
  .closing { padding-block: 82px; }
  .closing-inner { gap: 22px; }
  .closing h2 { font-size: 2.65rem; }
  .kinwell-footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 42px; padding-bottom: 46px; }
  .footer-brand img { width: 104px; height: 88px; }
  .footer-brand > p { margin-top: 18px; font-size: 1rem; }
  .footer-nav, .footer-contact { gap: 13px; padding-top: 30px; border-top: 1px solid var(--line); }
  .footer-nav a, .footer-contact a { font-size: 1rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
