:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --ink-soft: #171717;
  --navy: #0a0a0a;
  --navy-deep: #0a0a0a;
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --sky: #f5f5f5;
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --surface: #ffffff;
  --text: #171717;
  --text-muted: #737373;
  --border: #e5e5e5;
  --header-bg: rgba(255, 255, 255, 0.8);
  --btn-primary-bg: #0a0a0a;
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: #262626;
  --footer-bg: #0a0a0a;
  --footer-text: rgba(255, 255, 255, 0.65);
  --footer-heading: rgba(255, 255, 255, 0.45);
  --footer-link: rgba(255, 255, 255, 0.82);
  --footer-border: rgba(255, 255, 255, 0.1);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --hero-glow-a: rgba(13, 148, 136, 0.14);
  --hero-glow-b: rgba(10, 10, 10, 0.06);
  --radius: 10px;
  --max: 1120px;
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --ease: 160ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fafafa;
  --ink-soft: #e5e5e5;
  --navy: #fafafa;
  --navy-deep: #050505;
  --teal: #2dd4bf;
  --teal-hover: #5eead4;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --sky: #141414;
  --bg: #0a0a0a;
  --bg-muted: #111111;
  --surface: #141414;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --border: #262626;
  --header-bg: rgba(10, 10, 10, 0.8);
  --btn-primary-bg: #fafafa;
  --btn-primary-fg: #0a0a0a;
  --btn-primary-hover: #e5e5e5;
  --footer-bg: #050505;
  --footer-text: rgba(255, 255, 255, 0.65);
  --footer-heading: rgba(255, 255, 255, 0.45);
  --footer-link: rgba(255, 255, 255, 0.82);
  --footer-border: rgba(255, 255, 255, 0.1);
  --on-dark: #fafafa;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --hero-glow-a: rgba(45, 212, 191, 0.16);
  --hero-glow-b: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 19rem;
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: 5rem;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ease);
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: var(--radius);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--ease), background var(--ease);
}

.theme-toggle:hover {
  border-color: var(--text-muted);
  background: var(--bg-muted);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle .theme-icon-moon {
  display: block;
}

.theme-toggle .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: block;
}

.logo img.logo-mark-dark {
  display: none;
}

[data-theme="dark"] .logo img.logo-mark-light {
  display: none;
}

[data-theme="dark"] .logo img.logo-mark-dark {
  display: block;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
}

.logo img,
.footer-logo img {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  align-self: center;
}

.footer-logo img {
  width: 1.85rem;
  height: 1.85rem;
}

.logo span,
.footer-logo span {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: inherit;
}

.logo span {
  font-size: 1.2rem;
}

.footer-logo span {
  font-size: 1.05rem;
}

.nav {
  display: none;
  gap: 0.25rem 1.35rem;
  align-items: center;
}

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

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

.nav-cta {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-fg) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 560 !important;
}

.nav-cta:hover {
  background: var(--btn-primary-hover) !important;
  color: var(--btn-primary-fg) !important;
}

.nav-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 1.25rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    margin-left: auto;
  }

  .header-actions {
    margin-left: 0;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 5.5rem 0 5rem;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 70% at 15% 40%, var(--hero-glow-a), transparent 70%),
    radial-gradient(ellipse 45% 60% at 85% 20%, var(--hero-glow-b), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 1.35rem;
  max-width: 14ch;
  font-weight: 600;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 560;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-fg);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--ink);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-muted {
  background: var(--bg-muted);
}

.section-sky {
  background: var(--bg);
}

.section-dark {
  background: var(--navy-deep);
  color: var(--on-dark);
}

.section-dark a {
  color: var(--accent);
}

.section-dark a:hover {
  color: var(--accent-hover);
}

[data-theme="dark"] .section-dark {
  background: #050505;
  border-block: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.section-dark .eyebrow {
  color: var(--accent);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  font-weight: 600;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 2.25rem;
  font-size: 1.08rem;
}

.section-dark .section-intro {
  color: var(--on-dark-muted);
}

.narrow {
  max-width: 44rem;
}

.muted {
  color: var(--text-muted);
}

/* Solution cards */
.solution-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solution-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  transition: border-color var(--ease), background var(--ease);
}

.solution-card:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.section-muted .solution-card {
  background: var(--surface);
}

.solution-card p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
  font-size: 0.98rem;
}

.link-arrow {
  font-weight: 560;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 0.35rem;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow::after {
  content: " →";
}

/* Capability pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
}

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Split feature blocks */
.feature-stack {
  display: grid;
  gap: 2.5rem;
}

.feature-block {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.feature-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 900px) {
  .feature-block {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.feature-block h2 {
  margin-top: 0;
}

.feature-block p:first-child {
  margin-top: 0;
}

.bullet-list {
  margin: 0;
  padding-left: 1.15rem;
}

.bullet-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Stats */
.stat-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  text-align: left;
}

.stat-card strong {
  display: block;
  font-size: 1.65rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-dark .stat-card strong {
  color: var(--on-dark);
}

.section-dark .stat-card span {
  color: var(--on-dark-muted);
}

.section-dark h3 {
  color: var(--on-dark);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 1.75rem;
}

.track-record-block h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.founder-block {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .founder-block {
    gap: 2rem 2.5rem;
  }
}

.founder-photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 700px) {
  .founder-photo {
    width: 11rem;
    height: 11rem;
  }
}

.founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.founder-bio {
  min-width: 0;
  align-self: center;
}

@media (min-width: 700px) {
  .founder-bio {
    align-self: start;
  }
}

.founder-bio p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 40rem;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

.track-record-block {
  padding-top: 0;
  border-top: none;
}

.track-record-block .founder-block {
  margin-top: 0;
}

.track-record-block .eyebrow {
  margin-bottom: 0.75rem;
}

/* Audience columns */
.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  max-width: 36rem;
  margin-inline: auto;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 560;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: var(--bg);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.form-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
}

.form-status.success {
  color: #15803d;
}

.form-status.error {
  color: #b91c1c;
}

.fine-print {
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

/* Solution page hero */
.page-hero {
  background: var(--bg);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  max-width: 22ch;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.1;
}

.page-hero .hero-lead {
  color: var(--text-muted);
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer .footer-logo {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: var(--footer-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  font-weight: 560;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.tagline {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer-logo {
  margin: 0 0 0.85rem;
}

.prose h1 {
  margin-top: 0;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

/* Client stories */
.story-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--ease);
}

.story-card:hover {
  border-color: var(--text-muted);
}

.story-card-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #171717 0%, #0d9488 100%);
  position: relative;
  overflow: hidden;
}

.story-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.story-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.story-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.story-meta {
  font-size: 0.75rem;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.story-hero {
  padding: 3rem 0;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.story-hero .story-meta {
  margin-bottom: 0.75rem;
}

.story-content {
  max-width: 40rem;
}

.story-content p {
  color: var(--text-muted);
}

.story-facts {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--sky);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.story-facts dt {
  font-weight: 560;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.story-facts dd {
  margin: 0.2rem 0 0.75rem;
  color: var(--text-muted);
}

/* Contact page */
.contact-page-hero {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: 3.5rem 0;
}

.contact-page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  font-weight: 600;
}

.contact-page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-aside {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-aside h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.contact-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.contact-aside li {
  margin-bottom: 0.5rem;
}

.contact-detail {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.contact-detail strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}
