:root {
  color-scheme: light;
  --ink: #111827;
  --text: #243044;
  --muted: #647084;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --line: #dce3ed;
  --blue: #2459d6;
  --green: #08735f;
  --gold: #a86813;
  --plum: #69395f;
  --shadow: 0 18px 52px rgba(17, 24, 39, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 251, 0.94);
  border-bottom: 1px solid rgba(220, 227, 237, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.project-links,
.tag-row,
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.78rem;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration: none;
}

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

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

h1 {
  margin-bottom: 18px;
  max-width: 980px;
  font-size: clamp(3.35rem, 8vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero,
.page-hero,
.case-hero,
.tool-hero {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.professional-hero,
.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(82svh - 76px);
  background:
    linear-gradient(120deg, rgba(36, 89, 214, 0.08), transparent 44%),
    linear-gradient(0deg, rgba(8, 115, 95, 0.08), transparent 42%),
    #f7f8fb;
}

.hero-subtitle,
.tool-subtitle,
.page-hero p,
.case-hero p {
  max-width: 840px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.58;
}

.button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.button.secondary,
.filter-button {
  color: var(--ink);
  background: #fff;
}

.button.secondary.on-dark {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.compact,
.filter-button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 0.86rem;
}

.button.ghost {
  color: var(--muted);
  background: #f3f6fa;
}

.filter-button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.signal-panel,
.estimator-form,
.estimate-output,
.metric-card,
.project-card,
.capability-grid > article,
.education-grid > article,
.timeline > article,
.contact-grid > article,
.case-main,
.case-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.07);
}

.signal-panel {
  padding: 28px;
}

.signal-panel h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.panel-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li,
.tag-row span {
  padding: 7px 9px;
  color: #253149;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 740;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 28px;
}

.positioning-section,
.experience-section,
.education-section,
.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.positioning-copy p,
.rich-copy p,
.timeline p,
.capability-grid p,
.education-grid p,
.education-grid span,
.contact-grid p,
.case-main p,
.case-list,
.coming-soon {
  color: var(--muted);
  line-height: 1.62;
}

.impact-section,
.capability-section {
  background: #eef3f8;
}

.impact-group {
  margin-top: 28px;
}

.impact-group-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.impact-group-heading span,
.contact-grid span {
  color: var(--gold);
  font-weight: 860;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
}

.metric-card strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.45;
}

.capability-grid,
.education-grid,
.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.capability-grid > article,
.education-grid > article,
.contact-grid > article {
  padding: 22px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline > article {
  padding: 24px;
}

.timeline span,
.project-meta span:first-child,
.status-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 830;
  text-transform: uppercase;
}

.timeline ul,
.case-list {
  padding-left: 20px;
}

.timeline li {
  margin-bottom: 8px;
  color: var(--muted);
}

.project-card {
  overflow: hidden;
}

.project-content {
  padding: 24px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.status-label {
  margin: 0;
  padding: 6px 8px;
  border-radius: 999px;
}

.status-label.live {
  color: #065f46;
  background: #dff7ed;
}

.status-label.soon {
  color: #7c4a03;
  background: #fff2d7;
}

.project-content p {
  color: var(--muted);
  line-height: 1.58;
}

.project-outcome {
  color: var(--text) !important;
  font-weight: 720;
}

.contact-section {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px);
  color: #fff;
  background: #111827;
}

.contact-section .eyebrow,
.contact-section p {
  color: #b9efe0;
}

.contact-section h2,
.contact-section p {
  max-width: 820px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

footer a {
  font-weight: 740;
  text-decoration: none;
}

.page-hero,
.case-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.case-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.9rem, 7vw, 6.8rem);
}

.project-gallery-section {
  padding-top: 34px;
}

.filter-bar {
  margin-bottom: 24px;
}

.case-layout,
.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.case-main,
.case-side {
  padding: 26px;
}

.case-main h2 {
  margin-top: 26px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.case-main h2:first-of-type {
  margin-top: 0;
}

.case-side {
  display: grid;
  gap: 16px;
}

.placeholder-case {
  display: grid;
  gap: 24px;
}

.coming-soon {
  max-width: 720px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-hero {
  min-height: auto;
}

.tool-hero h1 {
  font-size: clamp(3.1rem, 8vw, 6.8rem);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-strip div {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 820;
}

.metric-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.estimator-form,
.estimate-output {
  box-shadow: var(--shadow);
}

.estimator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.form-section-title {
  grid-column: 1 / -1;
}

.form-section-title h2 {
  margin-bottom: 4px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.estimator-form label {
  display: grid;
  gap: 7px;
  color: #2d374b;
  font-size: 0.88rem;
  font-weight: 760;
}

.estimator-form input,
.estimator-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.switch-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.switch-row input {
  width: 20px;
  min-height: 20px;
}

.estimate-button {
  grid-column: 1 / -1;
  border: 0;
}

.estimate-output {
  overflow: hidden;
}

.result-band,
.confidence-panel {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.result-band {
  color: #fff;
  background: #111827;
}

.result-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-band .result-label {
  color: #b9efe0;
}

.result-price {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 860;
  line-height: 1;
}

.result-range,
.muted {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.result-band .result-range {
  color: #d8e4f1;
}

.confidence-panel {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  align-items: center;
}

.confidence-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.confidence-ring {
  --score-angle: 0deg;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background:
    radial-gradient(#fff 58%, transparent 60%),
    conic-gradient(var(--green) var(--score-angle), #e6edf4 0);
  border-radius: 50%;
}

.confidence-ring span {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 850;
}

.plot-panel {
  margin: 0;
}

.plot-panel img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plot-panel figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .professional-hero,
  .tool-hero,
  .positioning-section,
  .experience-section,
  .education-section,
  .two-column-section,
  .case-layout,
  .estimator-layout,
  .metric-grid,
  .capability-grid,
  .education-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .professional-hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .estimator-form,
  .metric-strip,
  .confidence-panel {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
