:root {
  --ink: #0b2948;
  --ink-soft: #344a60;
  --paper: #f3f0e8;
  --paper-deep: #e7e2d7;
  --white: #fffefa;
  --accent: #8195a8;
  --accent-bright: #d8e1e8;
  --line: rgba(11, 41, 72, 0.16);
  --radius: 3px;
  --shadow: 0 18px 60px rgba(11, 41, 72, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  z-index: 100;
}

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

.site-header {
  width: min(1240px, calc(100% - 3rem));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 235px;
  height: auto;
  mix-blend-mode: multiply;
}

nav { display: flex; align-items: center; gap: 2rem; }
nav a { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-decoration: none; }
nav a:not(.nav-cta) { opacity: 0.66; transition: opacity 180ms ease; }
nav a:not(.nav-cta):hover { opacity: 1; }
.nav-cta { padding: 0.66rem 1rem; border: 1px solid var(--ink); }

.hero {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: clamp(4rem, 9vw, 8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: #5d7891;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  margin-bottom: 1.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(4rem, 8vw, 7.5rem); }
h1 em { color: #5d7891; font-weight: 400; }
h2 { font-size: clamp(3rem, 5.4vw, 5.25rem); }

.hero-lede {
  max-width: 610px;
  margin-bottom: 2.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.27rem);
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #173e63; }
.text-link { font-size: 0.78rem; font-weight: 700; text-underline-offset: 5px; }

.hero-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  width: min(94%, 490px);
  aspect-ratio: 1.16;
  position: absolute;
  border: 1px solid rgba(11, 41, 72, 0.19);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 44%, rgba(216, 225, 232, 0.88), rgba(216, 225, 232, 0) 66%);
  z-index: -2;
}

.project-motion {
  width: min(98%, 540px);
  display: block;
  overflow: visible;
}

.motion-grid path {
  fill: none;
  stroke: rgba(11, 41, 72, 0.095);
  stroke-width: 1;
}

.motion-bars rect { fill: rgba(93, 120, 145, 0.18); }

.motion-trail {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-trail-back { stroke: rgba(129, 149, 168, 0.46); stroke-width: 2; }
.motion-trail-mid { stroke: rgba(93, 120, 145, 0.48); stroke-width: 2; stroke-dasharray: 4 10; }
.motion-trail-main {
  stroke: url(#path-gradient);
  stroke-width: 4;
  stroke-dasharray: 12 8;
  animation: projectFlow 8s linear infinite;
}

.project-motion marker path { fill: var(--ink); }

.motion-milestones circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: milestonePulse 3.2s ease-in-out infinite;
}

.motion-milestones circle:nth-child(2) { animation-delay: 0.35s; }
.motion-milestones circle:nth-child(3) { animation-delay: 0.7s; }
.motion-milestones circle:nth-child(4) { animation-delay: 1.05s; }

.motion-cards rect {
  fill: rgba(243, 240, 232, 0.92);
  stroke: rgba(11, 41, 72, 0.18);
}

.motion-cards path {
  fill: none;
  stroke: rgba(11, 41, 72, 0.46);
  stroke-width: 2;
  stroke-linecap: round;
}

.motion-key {
  position: absolute;
  bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  color: #718294;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.motion-key span { display: flex; align-items: center; gap: 0.42rem; }
.motion-key span::before { content: ""; width: 4px; height: 4px; background: #718294; border-radius: 50%; }

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-strip > div { padding: 1.55rem 1.5rem; border-right: 1px solid var(--line); }
.credibility-strip > div:last-child { border-right: 0; }
.credibility-strip strong { display: block; margin-bottom: 0.25rem; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 400; }
.credibility-strip span { color: #5f6f7f; font-size: 0.72rem; letter-spacing: 0.02em; }

.expertise-section {
  margin-top: clamp(5rem, 11vw, 10rem);
  padding: clamp(5rem, 9vw, 8rem) max(1.5rem, calc((100% - 1240px) / 2));
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: 4.5rem;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 410px; margin-bottom: 0.6rem; color: #526679; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 455px; padding: 1.6rem 1.6rem 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: background 220ms ease, transform 220ms ease; }
.service-card:hover { background: #f5f6f1; transform: translateY(-4px); }
.service-number { align-self: flex-end; color: #71869a; font-family: Georgia, serif; font-size: 0.78rem; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 3rem 0 2rem; background: var(--paper); border-radius: 50%; }
.service-icon svg { width: 25px; fill: none; stroke: #4f6c87; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 0.85rem; font-family: Georgia, serif; font-size: 1.62rem; font-weight: 400; line-height: 1.2; }
.service-card > p { color: #5a6966; font-size: 0.9rem; line-height: 1.7; }
.service-card ul { margin: auto 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.service-card li { position: relative; padding-left: 0.9rem; color: #62716e; font-size: 0.74rem; line-height: 1.85; }
.service-card li::before { content: ""; width: 3px; height: 3px; position: absolute; left: 0; top: 0.68rem; background: #5d7891; border-radius: 50%; }

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: clamp(5rem, 10vw, 9rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.about-statement blockquote { max-width: 580px; margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 3.5vw, 3.75rem); line-height: 1.15; letter-spacing: -0.035em; }
.about-copy { padding-top: 3.25rem; }
.about-copy > p { color: #4b5c59; font-size: 1rem; line-height: 1.85; }
.tool-list { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; }
.tool-list span { padding: 0.42rem 0.7rem; border: 1px solid var(--line); color: #536965; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; }

.fit-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(500px, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - 1240px) / 2));
  background: var(--ink);
  color: var(--white);
}
.fit-intro { position: sticky; top: 3rem; align-self: start; }
.fit-intro .eyebrow { color: #a9bdce; }
.fit-intro > p:not(.eyebrow, .fit-helper) { max-width: 360px; color: rgba(255,255,255,0.64); }
.fit-helper { display: flex; align-items: center; gap: 0.6rem; margin-top: 2rem; color: rgba(255,255,255,0.5); font-size: 0.74rem; }
.fit-helper span { width: 7px; height: 7px; background: #a9bdce; border-radius: 50%; box-shadow: 0 0 0 5px rgba(169,189,206,0.12); }

.fit-tool { border-top: 1px solid rgba(255,255,255,0.16); }
.fit-step { padding: 2.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.16); transition: opacity 180ms ease; }
.fit-step.is-locked { opacity: 0.4; }
.fit-question-row { display: flex; gap: 1.2rem; margin-bottom: 1.5rem; }
.fit-question-row > span { color: #a9bdce; font-family: Georgia, serif; font-size: 0.8rem; }
.fit-question-row p { margin: 0; font-size: 1.05rem; font-weight: 650; }
.fit-question-row small { color: rgba(255,255,255,0.45); font-size: 0.67rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.choice, .stage-choice {
  min-height: 58px;
  padding: 0.8rem 1rem;
  color: rgba(255,255,255,0.76);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-size: 0.79rem;
  transition: border 160ms ease, background 160ms ease, color 160ms ease;
}
.choice:hover, .stage-choice:hover:not(:disabled) { color: var(--white); border-color: rgba(255,255,255,0.48); }
.choice[aria-checked="true"], .stage-choice[aria-checked="true"] { color: var(--ink); background: var(--accent-bright); border-color: var(--accent-bright); }
.stage-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.stage-choice:disabled { cursor: not-allowed; }

.fit-result { margin-top: 1.1rem; padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--accent-bright); color: var(--ink); box-shadow: var(--shadow); }
.fit-result.is-entering { animation: resultIn 420ms ease both; }
.result-topline { display: flex; justify-content: space-between; margin-bottom: 1.8rem; color: #4d657a; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.fit-result h3 { margin-bottom: 0.7rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.05; }
.fit-result > p { max-width: 620px; color: #405652; line-height: 1.7; }
.result-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.8rem; }
.button-light { background: var(--white); color: var(--ink); }
.reset-button { padding: 0.5rem 0; color: #314946; background: transparent; border: 0; border-bottom: 1px solid rgba(19,38,38,0.35); cursor: pointer; font-size: 0.74rem; font-weight: 700; }
.copy-status { min-height: 1.4em; margin: 0.65rem 0 0; font-size: 0.72rem; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem max(1.5rem, calc((100% - 1240px) / 2));
  background: var(--white);
  color: #5f6f7f;
  border-top: 1px solid var(--line);
}
.brand-footer .brand-logo { width: 215px; }
footer p { margin: 0; font-size: 0.68rem; letter-spacing: 0.04em; }
.footer-note { text-align: right; color: #8693a0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes resultIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes projectFlow { to { stroke-dashoffset: -80; } }
@keyframes milestonePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 360px; }
  .project-motion { width: min(82%, 500px); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-section { grid-template-columns: 1fr; }
  .fit-intro { position: static; }
  .fit-intro > p:not(.eyebrow, .fit-helper) { max-width: 580px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > p:nth-child(2) { display: none; }
}

@media (max-width: 700px) {
  .site-header { width: min(100% - 2rem, 1240px); height: 76px; }
  .brand-logo { width: 168px; }
  nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0.55rem 0.7rem; }
  .hero { width: min(100% - 2rem, 1240px); padding-top: 4rem; }
  h1 { font-size: clamp(3.55rem, 18vw, 5rem); }
  .hero-visual { min-height: 320px; }
  .project-motion { width: min(100%, 420px); }
  .motion-key { bottom: -0.25rem; gap: 0.8rem; font-size: 0.56rem; }
  .credibility-strip { grid-template-columns: repeat(2, 1fr); }
  .credibility-strip > div:nth-child(2) { border-right: 0; }
  .credibility-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .about-panel { grid-template-columns: 1fr; gap: 2rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 390px; }
  .about-copy { padding-top: 0; }
  .choice-grid, .stage-options { grid-template-columns: 1fr; }
  .choice, .stage-choice { min-height: 52px; }
  .fit-section { padding-left: 1rem; padding-right: 1rem; }
  .result-actions { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; }
  .footer-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
