:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #202227;
  --muted: #626873;
  --border: #e6e8ec;
  --accent: #2ea8ff;
  --accent-strong: #1584de;
  --accent-soft: rgba(46, 168, 255, 0.11);
  --shadow: 0 10px 24px rgba(25, 32, 45, 0.04);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100vw - 56px));
  --reading-width: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 84px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before,
.brand::after {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  content: "[";
}

.brand::after {
  content: "]";
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

main {
  display: grid;
  gap: 0;
}

.hero {
  padding: 6px 0 42px;
}

.section {
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  text-wrap: balance;
}

h1 {
  max-width: 100%;
  font-size: clamp(2.15rem, 3.8vw, 3.55rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.05em;
}

h2 {
  max-width: 14ch;
  font-size: clamp(1.8rem, 2.8vw, 2.62rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.section-label {
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-lede,
.hero-support,
.section-intro,
.subsection p,
.surface-card p,
.case-card dd,
.workflow-list p,
.closing-note,
.email-line {
  color: var(--muted);
  font-size: 1rem;
}

.hero-lede {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--text);
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.hero-support {
  max-width: 35rem;
  margin-top: 14px;
  font-size: 1rem;
}

.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.proof-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.proof-chips li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(32, 34, 39, 0.18);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.accent-underline {
  text-decoration-line: underline;
  text-decoration-color: rgba(46, 168, 255, 0.9);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.accent-underline-soft {
  text-decoration-color: rgba(46, 168, 255, 0.52);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(21, 132, 222, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0f74c5;
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.section-intro {
  max-width: var(--reading-width);
}

.subsection {
  max-width: 100%;
}

.principles {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.hero-grid,
.impact-grid,
.case-list,
.workflow-grid,
.workflow-layout {
  display: grid;
  gap: 18px;
}

.hero-grid {
  align-items: center;
}

.impact-grid,
.case-list,
.workflow-grid,
.workflow-layout {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.hero-copy {
  max-width: 38rem;
}

#hero-title {
  max-width: 12ch;
  text-wrap: pretty;
}

#about .section-heading {
  max-width: 46rem;
}

#about .section-heading h2 {
  max-width: 15ch;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.surface-card h3 {
  margin-bottom: 8px;
}

.subsection-compact {
  display: grid;
  gap: 14px;
}

.subsection-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.principles-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.principle-card {
  position: relative;
  padding-top: 20px;
}

.principle-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(46, 168, 255, 0.82);
}

.principle-card h4 {
  margin-bottom: 8px;
}

.workflow-list {
  display: grid;
  gap: 14px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow-step;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.workflow-list li {
  position: relative;
  padding: 18px 18px 16px 56px;
}

.workflow-list li::before {
  counter-increment: workflow-step;
  content: counter(workflow-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.workflow-list h3 {
  margin-bottom: 5px;
}

.workflow-main {
  display: grid;
  gap: 18px;
}

.workflow-section-heading h2 {
  max-width: none;
  font-size: clamp(1.68rem, 2.1vw, 2.18rem);
}

.agent-note {
  height: fit-content;
  background: linear-gradient(180deg, rgba(46, 168, 255, 0.05) 0%, #ffffff 100%);
}

.agent-note-label {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card h3 {
  margin-bottom: 8px;
}

.case-result {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.case-card dl {
  display: grid;
  gap: 12px;
}

.case-card dt {
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card dd {
  margin: 0;
}

.email-line {
  margin-top: 18px;
}

.email-line a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hero-photo-card {
  margin: 0;
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 760px) {
  .page-shell {
    padding-top: 34px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
    gap: 40px;
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: start;
  }

  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, auto);
    gap: 28px;
    align-items: start;
  }
}

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

  .site-nav {
    gap: 14px;
    justify-content: flex-start;
  }
}

@media (max-width: 719px) {
  .site-nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    padding-bottom: 36px;
  }

  .hero-photo-card {
    justify-self: center;
    width: min(100%, 320px);
  }
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 512px);
    gap: 48px;
  }

  .hero-photo-card {
    justify-self: end;
    width: min(100%, 512px);
  }

  .case-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .page-shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 20px;
    padding-bottom: 54px;
  }

  .site-header {
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 34px;
    margin-top: 34px;
  }

  h1 {
    font-size: clamp(1.92rem, 9.8vw, 2.72rem);
  }

  h2 {
    font-size: clamp(1.5rem, 7.4vw, 2.04rem);
  }

  #hero-title {
    max-width: 100%;
  }

  .hero-lede {
    max-width: 100%;
    font-size: clamp(0.98rem, 4.85vw, 1.12rem);
  }

  .proof-chips {
    gap: 8px 14px;
  }

  .workflow-list li {
    padding-left: 52px;
  }

  .workflow-list li::before {
    width: 28px;
    height: 28px;
  }

  .contact-panel {
    padding: 22px 18px;
  }

  .contact-actions {
    display: grid;
    gap: 14px;
  }

  .contact-cta-row {
    margin-top: 0;
  }

  .email-line {
    margin-top: 0;
  }
}

.contact-panel {
  background: linear-gradient(180deg, rgba(46, 168, 255, 0.08) 0%, #ffffff 100%);
  border-color: rgba(46, 168, 255, 0.26);
  display: grid;
  gap: 22px;
}

.contact-panel h2 {
  max-width: none;
  text-wrap: pretty;
}

.contact-copy {
  display: grid;
  gap: 12px;
  max-width: 40rem;
}

.contact-actions {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
}

.contact-cta-row {
  margin-top: 0;
}
