:root {
  --paper: #f3f0e7;
  --paper-deep: #e7e2d5;
  --ink: #0f3d49;
  --ink-soft: #47626a;
  --orange: #ef7700;
  --orange-dark: #bd5700;
  --route: #779d8e;
  --dark: #083744;
  --line: rgba(15, 61, 73, .22);
  --focus: #006bd6;
  --max: 1440px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 5.5vw, 5.8rem); font-weight: 650; }
h2 { font-size: clamp(2.4rem, 4.2vw, 4.8rem); font-weight: 650; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 600; }

.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; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--ink); color: #fff; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 231, .96);
}
.brand { width: 205px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; justify-content: center; gap: clamp(1.25rem, 3vw, 3.5rem); }
.site-nav a { font-size: .92rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--orange-dark); }
.header-action { padding: .68rem 1.05rem; border: 1px solid var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.header-action:hover { color: #fff; background: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(500px, .96fr);
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before, .diagnostic::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220' viewBox='0 0 420 220'%3E%3Cpath d='M-20 130C55 30 159 43 210 119s147 83 230-12M-35 167C52 69 143 73 201 145s147 69 238-2M-20 199C66 114 144 123 203 180s130 52 226 2' fill='none' stroke='%230f3d49' stroke-opacity='.07'/%3E%3C/svg%3E");
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 6rem); }
.hero-copy h1 { max-width: 13ch; margin-bottom: 1.5rem; font-size: clamp(3.2rem, 4.05vw, 4.15rem); }
.hero-copy h1 span { color: var(--orange-dark); }
.hero-copy > p { max-width: 43ch; margin-bottom: 2rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-soft); }
.hero-copy small { display: block; margin-top: .75rem; color: var(--ink-soft); }
.primary-action, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 54px;
  padding: .9rem 1.2rem;
  border: 1px solid var(--orange);
  border-radius: 3px;
  color: #fff;
  background: var(--orange);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease-out);
}
.primary-action:hover, .primary-button:hover { border-color: var(--orange-dark); background: var(--orange-dark); transform: translateY(-2px); }

.knowledge-map { position: relative; z-index: 1; align-self: center; padding: 2rem 2rem 2rem 0; color: var(--ink); }
.knowledge-map svg { width: 100%; overflow: visible; }
.mobile-atlas { display: none; }
.map-region path { fill: rgba(255,255,255,.14); stroke: var(--route); stroke-width: 1.4; stroke-dasharray: 5 5; }
.map-region text { fill: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.routes path { stroke: var(--route); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 9; }
.routes .risk-route { stroke: var(--orange); }
.map-node { fill: var(--route); stroke: var(--paper); stroke-width: 3; }
.risk-glow { fill: rgba(239, 119, 0, .24); filter: url(#soft-risk); }
.risk-ring { fill: none; stroke: var(--orange); stroke-width: 2.2; }
.risk-core { fill: var(--orange); stroke: var(--paper); stroke-width: 3; }
.risk-focus text { fill: var(--orange-dark); font-size: 14px; font-weight: 600; }
.map-legend rect { fill: rgba(243,240,231,.88); stroke: var(--line); }
.map-legend line { stroke: var(--route); stroke-width: 3; }
.map-legend text { fill: var(--ink); font-size: 11px; }
.risk-dot { fill: var(--orange); }
.empty-dot { fill: none; stroke: var(--route); stroke-dasharray: 3 3; }
.knowledge-map.is-drawing .routes path { animation: route-draw 1.7s var(--ease-out) both; }
@keyframes route-draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }

.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.method div { display: grid; gap: .25rem; min-height: 150px; align-content: center; padding: 2rem clamp(1rem, 3vw, 3rem); border-right: 1px solid var(--line); }
.method div:last-child { border-right: 0; }
.method strong { font-size: clamp(1.35rem, 2vw, 2rem); }
.method span { max-width: 28ch; color: var(--ink-soft); }

.diagnostic { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 8rem); padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 7vw, 8rem); background: #ebe7dc; }
.diagnostic-intro, .diagnostic-form, .diagnostic-result { position: relative; z-index: 1; }
.diagnostic-intro { align-self: start; position: sticky; top: 125px; }
.diagnostic-intro h2 { max-width: 9ch; margin-bottom: 1.5rem; }
.diagnostic-intro > p { max-width: 48ch; color: var(--ink-soft); }
.note { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .86rem; }
.diagnostic-form { min-height: 560px; padding: clamp(2rem, 4vw, 4rem); border: 1px solid var(--line); background: rgba(243,240,231,.76); }
.form-progress { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin-bottom: 4rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
progress { width: 100%; height: 4px; border: 0; background: var(--paper-deep); }
progress::-webkit-progress-bar { background: var(--paper-deep); }
progress::-webkit-progress-value { background: var(--orange); }
progress::-moz-progress-bar { background: var(--orange); }
.question { padding: 0; border: 0; }
.question legend { max-width: 24ch; margin-bottom: 2.2rem; font-size: clamp(1.55rem, 2.6vw, 2.55rem); font-weight: 600; line-height: 1.18; letter-spacing: -.03em; }
.question label { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.question label:last-child { border-bottom: 1px solid var(--line); }
.question label:hover { color: var(--orange-dark); }
.question input { width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--orange); }
.form-error { margin: 1rem 0 0; color: #a22b1f; font-weight: 600; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.text-action { padding: .7rem 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-weight: 600; cursor: pointer; }
.text-action:disabled { opacity: .38; cursor: not-allowed; }
.diagnostic-result { grid-column: 2; padding: clamp(2rem, 4vw, 4rem); border: 1px solid var(--line); background: var(--paper); }
.result-heading > p:first-child { color: var(--orange-dark); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.result-heading h3 { font-size: clamp(2rem, 4vw, 4rem); }
.result-map { margin: 3rem 0; }
.result-map > div { display: grid; grid-template-columns: 120px 1fr 100px; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
meter { width: 100%; height: 10px; background: var(--paper-deep); }
meter::-webkit-meter-bar { border: 0; background: var(--paper-deep); }
meter::-webkit-meter-optimum-value { background: var(--route); }
.result-map strong { text-align: right; font-size: .85rem; }
.result-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.services, .proof, .resources { padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 7vw, 8rem); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 5rem; }
.section-heading h2 { max-width: 9ch; margin: 0; }
.section-heading p { max-width: 46ch; margin: 0; color: var(--ink-soft); font-size: 1.15rem; }
.service-list { border-top: 1px solid var(--line); }
.service-list article { display: grid; grid-template-columns: minmax(260px, .7fr) 1fr auto; gap: 3rem; align-items: center; padding: 2.3rem 0; border-bottom: 1px solid var(--line); }
.service-list h3, .service-list p { margin: 0; }
.service-list p { max-width: 56ch; color: var(--ink-soft); }
.service-list a, .resource-index a { font-weight: 600; text-decoration: none; }
.service-list a:hover, .resource-index a:hover { color: var(--orange-dark); }

.proof { color: var(--paper); background: var(--dark); }
.proof-heading { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 4rem; }
.proof-heading h2 { max-width: 11ch; }
.featured-quote { display: grid; grid-template-columns: 1.2fr .6fr; gap: 5rem; margin: 0; padding: 4rem 0; border-top: 1px solid rgba(243,240,231,.28); border-bottom: 1px solid rgba(243,240,231,.28); }
.featured-quote blockquote { max-width: 26ch; margin: 0; font-size: clamp(1.8rem, 3vw, 3.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
.featured-quote figcaption { align-self: end; display: grid; gap: .4rem; }
.featured-quote figcaption span { color: #bbcbc8; }
.short-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding-top: 4rem; }
.short-quotes blockquote { margin: 0; color: #d4dfdc; font-size: 1.05rem; }
.short-quotes cite { display: block; margin-top: 1.2rem; color: var(--paper); font-size: .82rem; font-style: normal; font-weight: 600; }

.resource-index { border-top: 1px solid var(--line); }
.resource-index a { display: grid; grid-template-columns: 140px 1fr auto; gap: 2rem; align-items: center; min-height: 104px; border-bottom: 1px solid var(--line); }
.resource-index span { color: var(--orange-dark); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.resource-index strong { font-size: clamp(1.1rem, 2vw, 1.55rem); }
.resource-index i { font-style: normal; font-size: 1.5rem; }

.consultation { display: grid; grid-template-columns: 1fr auto; gap: 5rem; align-items: end; padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 8rem); color: var(--paper); background: var(--orange-dark); }
.consultation h2 { max-width: 13ch; margin-bottom: 1.5rem; }
.consultation p { max-width: 57ch; margin: 0; color: #ffe7d1; }
.light-action { display: inline-flex; gap: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--paper); font-weight: 600; text-decoration: none; }
.light-action:hover { color: var(--orange-dark); background: var(--paper); }

.site-footer { display: grid; grid-template-columns: 260px 1fr auto; gap: 4rem; align-items: center; padding: 3rem clamp(1.5rem, 7vw, 8rem); color: var(--paper); background: #062b34; }
.site-footer img { width: 205px; filter: brightness(1.65); }
.site-footer p { max-width: 52ch; margin: 0; color: #b9cbc7; }
.site-footer div { display: grid; gap: .3rem; text-align: right; font-size: .85rem; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 220px 1fr auto; }
  .site-nav { gap: 1.3rem; }
  .hero { grid-template-columns: .9fr 1.1fr; }
  .hero-copy { padding-right: 1rem; }
  .hero h1 { font-size: clamp(3.1rem, 5.4vw, 4.35rem); }
  .diagnostic { grid-template-columns: 1fr; }
  .diagnostic-intro { position: static; }
  .diagnostic-result { grid-column: 1; }
  .service-list article { grid-template-columns: 1fr 1fr; }
  .service-list article a { grid-column: 2; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 70px; }
  .brand { width: 180px; }
  .menu-toggle { display: grid; gap: 4px; width: 44px; height: 44px; place-content: center; }
  .menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); }
  .site-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .header-action { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 5rem 1.5rem 1rem; }
  .hero-copy h1 { max-width: 11ch; }
  .knowledge-map { margin-top: -1rem; padding: 0 1rem 1.5rem; overflow: hidden; }
  .desktop-atlas { display: none; }
  .knowledge-map .mobile-atlas { display: block; width: min(100%, 390px); margin: 0 auto; overflow: visible; }
  .mobile-region rect { fill: rgba(255,255,255,.12); stroke: var(--route); stroke-width: 1.4; stroke-dasharray: 5 5; }
  .mobile-region text { fill: var(--ink); font-size: 15px; font-weight: 600; }
  .mobile-region circle { fill: var(--route); stroke: var(--paper); stroke-width: 2; }
  .mobile-region path { fill: none; stroke: var(--route); stroke-width: 2; }
  .mobile-route { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 7 8; }
  .mobile-risk circle:first-child { fill: rgba(239,119,0,.12); stroke: var(--orange); stroke-width: 2; }
  .mobile-risk circle:nth-child(2) { fill: var(--orange); stroke: var(--paper); stroke-width: 2; }
  .mobile-risk text { fill: var(--orange-dark); font-size: 11px; font-weight: 600; }
  .mobile-key line { stroke: var(--route); stroke-width: 3; }
  .mobile-key circle { fill: var(--orange); }
  .mobile-key text { fill: var(--ink); font-size: 9px; }
  .method { grid-template-columns: 1fr; }
  .method div { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .method div:last-child { border-bottom: 0; }
  .section-heading, .proof-heading, .featured-quote, .short-quotes, .consultation { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-list article { grid-template-columns: 1fr; gap: 1rem; }
  .service-list article a { grid-column: 1; }
  .resource-index a { grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: 1.2rem 0; }
  .resource-index span { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer div { text-align: left; }
}

@media (max-width: 520px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.6rem; }
  .hero-copy { padding-top: 3.5rem; }
  .primary-action { width: 100%; }
  .knowledge-map .mobile-atlas { width: 100%; margin-left: 0; }
  .diagnostic { padding-right: 1rem; padding-left: 1rem; }
  .diagnostic-form, .diagnostic-result { padding: 1.35rem; }
  .form-progress { grid-template-columns: 1fr; margin-bottom: 3rem; }
  .question legend { font-size: 1.55rem; }
  .form-actions { gap: 1rem; }
  .result-map > div { grid-template-columns: 1fr; gap: .35rem; }
  .result-map strong { text-align: left; }
  .consultation { align-items: start; }
}

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