:root {
  --bg: #edf1f4;
  --bg-strong: #dfe6eb;
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(237, 242, 247, 0.78));
  --panel-strong: #ffffff;
  --text: #141414;
  --muted: #525866;
  --line: rgba(20, 20, 20, 0.09);
  --brand: #0e7bf2;
  --brand-deep: #005ac8;
  --shadow: 0 24px 64px rgba(7, 18, 31, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI Variable Text", "Aptos", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 123, 242, 0.22), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.65), transparent 20%),
    radial-gradient(circle at 70% 35%, rgba(180, 194, 210, 0.18), transparent 28%),
    linear-gradient(135deg, #eef2f5 0%, #dfe6eb 34%, #f8fafc 60%, #e4ebf1 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Aptos Display", "Franklin Gothic Medium", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  max-width: none;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: none;
}

h3 {
  font-size: 1.35rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.site-shell {
  width: calc(100vw - 8px);
  max-width: none;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.topbar,
.footer,
.panel,
.trust-strip {
  backdrop-filter: blur(20px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 34px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 238, 244, 0.72)),
    linear-gradient(135deg, rgba(14, 123, 242, 0.05), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Segoe UI Variable Display", "Aptos Display", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 164px;
  height: auto;
  object-fit: contain;
}

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

.nav a {
  color: #5f6878;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
  background: rgba(14, 123, 242, 0.1);
}

.nav a:hover {
  color: var(--brand);
  background: rgba(14, 123, 242, 0.1);
  transform: translateY(-1px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav a.nav-cta {
  padding: 12px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #1490ff 0%, #0e7bf2 44%, #005ac8 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 36px rgba(14, 123, 242, 0.28);
}

.button {
  padding: 14px 22px;
  font-weight: 600;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #1490ff 0%, #0e7bf2 44%, #005ac8 100%);
  color: #fff;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 36px rgba(14, 123, 242, 0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 238, 244, 0.74));
  color: var(--text);
}

main {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.panel,
.trust-strip {
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(30px, 3vw, 54px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.panel::before,
.trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(210deg, rgba(14, 123, 242, 0.05), transparent 30%);
  pointer-events: none;
}

.panel > *,
.trust-strip > * {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  min-height: 78vh;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.contact-card,
.card,
.project-card,
.timeline article,
.credentials-grid article {
  border-radius: var(--radius-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-section h2,
.footer-cta h2 {
  max-width: none;
}

.eyebrow,
.card-kicker,
.card-label,
.contact-note {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #5b6373;
}

.lead {
  max-width: 64ch;
  font-size: 1.12rem;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-stats li,
.metrics-band article {
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(233, 239, 244, 0.72));
}

.hero-stats strong,
.metrics-band strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
}

.hero-card {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.98), rgba(22, 28, 36, 0.92)),
    linear-gradient(135deg, rgba(14, 123, 242, 0.38), transparent 48%),
    linear-gradient(210deg, rgba(255, 255, 255, 0.08), transparent 26%);
  color: #f5f8ff;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 123, 242, 0.48) 0%, rgba(14, 123, 242, 0) 74%);
}

.hero-card p,
.hero-card h2 {
  color: inherit;
  position: relative;
}

.service-mini-list {
  display: grid;
  gap: 18px;
}

.service-mini-list article {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.service-mini-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.trust-strip {
  padding: 18px 28px;
  border-radius: 999px;
  text-align: center;
}

.trust-strip p {
  margin: 0;
  color: #313849;
}

.section-grid,
.split-section,
.contact-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: start;
}

.founder-section {
  display: grid;
  grid-template-columns: 0.75fr 1.15fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.split-section-rich {
  grid-template-columns: 0.8fr 1fr 0.8fr;
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.founder-copy {
  display: grid;
  gap: 14px;
}

.founder-copy p {
  margin: 0;
}

.founder-evidence {
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.98), rgba(22, 28, 36, 0.93)),
    linear-gradient(135deg, rgba(14, 123, 242, 0.34), transparent 46%),
    linear-gradient(210deg, rgba(255, 255, 255, 0.08), transparent 26%);
  color: #f5f8ff;
}

.founder-evidence p,
.founder-evidence strong {
  color: inherit;
}

.evidence-stack {
  display: grid;
  gap: 14px;
}

.evidence-stack article {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.evidence-stack article:first-child {
  padding-top: 0;
  border-top: 0;
}

.evidence-stack strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.source-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: rgba(245, 248, 255, 0.72);
}

.section-heading p:last-child {
  max-width: 62ch;
}

.summary-section,
.info-list-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 239, 244, 0.76));
  border: 1px solid var(--line);
}

.mini-stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mini-stat-list article {
  display: grid;
  gap: 4px;
  padding-top: 0;
  padding-left: 16px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.mini-stat-list article:first-child {
  padding-top: 0;
  padding-left: 0;
  border-left: 0;
}

.mini-stat-list strong {
  color: var(--text);
  font-size: 1.05rem;
}

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

.wide-overview {
  display: grid;
  gap: 26px;
}

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

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

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

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.card,
.project-card,
.contact-card,
.timeline article,
.credentials-grid article {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 239, 244, 0.76));
  border: 1px solid var(--line);
}

.project-card h3,
.card h3,
.card h2 {
  margin-bottom: 12px;
}

.nav-card {
  min-height: 100%;
}

.card,
.case-card,
.project-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover,
.case-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 123, 242, 0.22);
  box-shadow: 0 24px 48px rgba(7, 18, 31, 0.08);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--brand-deep);
  font-weight: 700;
}

.split-copy {
  display: grid;
  gap: 12px;
}

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

.contact-card ul,
.service-list {
  display: grid;
  gap: 10px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-list {
  margin-top: 16px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: #2d3442;
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(231, 237, 243, 0.82));
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(14, 123, 242, 0.45);
  box-shadow: 0 0 0 4px rgba(14, 123, 242, 0.12);
}

.bot-field {
  display: none;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.form-status.is-error {
  color: #bb2f1d;
}

.h-captcha {
  margin-top: 6px;
}

.card-toggle {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.card-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fit-contact {
  margin-top: 22px;
  padding: 22px 24px 0;
  border-top: 1px solid var(--line);
}

.page-hero {
  min-height: 28vh;
  display: flex;
  align-items: end;
}

.process-panel .timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.timeline span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 123, 242, 0.12);
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 18px;
}

.credentials-grid,
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

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

.case-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 239, 244, 0.76));
  border: 1px solid var(--line);
}

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

.case-card.is-hidden {
  display: none;
}

.work-filter-panel {
  display: grid;
  gap: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 238, 244, 0.78));
  color: #3e4657;
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 123, 242, 0.28);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-color: transparent;
  color: #ffffff;
}

.footer {
  display: grid;
  gap: 28px;
  padding: 22px 10px 6px;
}

.footer-cta {
  display: grid;
  gap: 16px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.footer-cta h2 {
  max-width: none;
}

.footer-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #5b6373;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  text-align: center;
}

.footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.9rem;
  color: #6a7282;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero,
  .founder-section,
  .section-grid,
  .split-section,
  .split-section-rich,
  .contact-panel,
  .process-panel .timeline,
  .overview-grid,
  .case-grid,
  .three-up,
  .four-up,
  .metrics-band {
    grid-template-columns: 1fr;
  }

  .two-up,
  .credentials-grid,
  .fit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-shell {
    width: calc(100vw - 10px);
  }

  .topbar {
    padding: 16px 22px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: calc(100vw - 8px);
    padding-top: 8px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 16px;
    position: static;
  }

  .brand {
    justify-content: center;
  }

  .brand img {
    width: 138px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .nav a {
    font-size: 0.94rem;
  }

  .nav a.nav-cta {
    width: 100%;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .founder-portrait img {
    min-height: 320px;
    border-radius: 22px;
  }

  .hero {
    min-height: auto;
  }

  .hero-stats,
  .two-up,
  .credentials-grid,
  .fit-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .mini-stat-list {
    grid-template-columns: 1fr;
  }

  .mini-stat-list article {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mini-stat-list article:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .footer {
    padding-bottom: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
