:root {
  --ink: #0a1c24;
  --muted: #4c6672;
  --paper: #f6fafb;
  --white: #ffffff;
  --teal: #0085ad;
  --teal-deep: #045b77;
  --mist: #e3f1f5;
  --spark: #f5a93b;
  --line: #d9e7ec;
  --display-font: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text-font: "Public Sans", Arial, sans-serif;
  --shadow: 0 24px 60px rgba(6, 34, 46, 0.12);
  --shadow-soft: 0 14px 36px rgba(6, 34, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text-font);
  font-size: 16px;
  line-height: 1.65;
}

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

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

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

/* ─── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 6vw;
  background: rgba(246, 250, 251, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 190px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  color: var(--muted);
  font-family: var(--text-font);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a.lang-switch {
  padding: 0.3rem 0.65rem;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-nav a.lang-switch::after {
  display: none;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* ─── Node eyebrow (recurring structural motif) ─────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: var(--teal);
  font-family: var(--text-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--teal);
  border-radius: 50%;
}

/* ─── Hero ────────────────────────────────────────────────────── */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 5rem 6vw;
  background: radial-gradient(circle at 88% 12%, rgba(0, 133, 173, 0.1), transparent 40%), var(--paper);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
}

h1,
h2 {
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-text {
  max-width: 560px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.1rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--text-font);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-stats strong {
  color: var(--ink);
  font-weight: 600;
}

/* ─── Hero signature graphic (node graph) ───────────────────── */

.hero-graph {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graph svg {
  width: 100%;
  height: auto;
  max-width: 480px;
  overflow: visible;
}

.graph-edge {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.55;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-edge 1.1s ease forwards;
}

.graph-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop-node 0.5s ease forwards;
}

.graph-node circle {
  fill: var(--paper);
  stroke: var(--teal);
  stroke-width: 2;
}

.graph-node.is-hub circle {
  fill: var(--teal);
}

.graph-node.is-out circle {
  fill: var(--spark);
  stroke: var(--spark);
  animation: pulse-glow 2.6s ease-in-out 2.3s infinite;
}

.graph-label {
  fill: var(--muted);
  font-family: var(--text-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-label 0.5s ease forwards;
}

@keyframes fade-label {
  to {
    opacity: 1;
  }
}

.graph-label.is-out {
  fill: var(--ink);
  font-weight: 600;
}

@keyframes draw-edge {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop-node {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(245, 169, 59, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(245, 169, 59, 0.65));
  }
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--text-font);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

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

.button-secondary:hover {
  color: var(--white);
  background: var(--teal);
}

/* ─── Section shell ──────────────────────────────────────────── */

.section {
  padding: 6rem 6vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-heading p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.compact {
  margin-bottom: 0;
}

/* ─── Services (parallel offerings — no numbering) ──────────── */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.2rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-item:hover {
  border-color: var(--spark);
  transform: translateY(-2px);
}

.service-item .node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--mist);
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-item:hover .node-icon {
  border-color: var(--spark);
  background: var(--white);
}

.service-item svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.service-item p,
.pipeline-step p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

/* ─── Founder ─────────────────────────────────────────────────── */

.founder-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 5rem;
  align-items: start;
  background: var(--white);
}

.founder-intro p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.founder-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.founder-card img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--mist);
  border-radius: 50%;
}

.founder-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.founder-credentials {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.92rem;
}

.founder-credentials li {
  position: relative;
  padding-left: 1.35rem;
}

.founder-credentials li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--spark);
  border-radius: 50%;
}

.founder-credentials a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.founder-credentials a:hover {
  color: var(--teal);
}

/* ─── Approach (real sequence — rendered as a pipeline) ─────── */

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  background: var(--mist);
}

.pipeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 22px;
  width: 1.5px;
  background: var(--line);
}

.pipeline-step {
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 4.6rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.pipeline-step .node-marker {
  position: absolute;
  top: 1.5rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--teal);
  border: 3px solid var(--mist);
  border-radius: 50%;
  font-family: var(--text-font);
  font-size: 0.75rem;
  font-weight: 700;
}

.pipeline-step:last-child .node-marker {
  background: var(--spark);
}

/* ─── Expertise (tech stack — mono tags) ─────────────────────── */

.expertise-section {
  background: var(--paper);
}

.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.expertise-grid span {
  padding: 0.7rem 1.1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  font-family: var(--text-font);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ─── Contact ─────────────────────────────────────────────────── */

.contact-section {
  display: flex;
  justify-content: center;
  padding: 6rem 6vw;
  color: var(--white);
  background: var(--teal-deep);
}

.contact-copy {
  width: min(100%, 640px);
  text-align: center;
}

.contact-section h2,
.contact-section .eyebrow {
  justify-content: center;
  color: var(--white);
}

.contact-section .eyebrow::before {
  background: var(--spark);
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  font-family: var(--text-font);
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-details > span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-details svg {
  width: 18px;
  height: 18px;
  color: var(--spark);
}

.contact-cta {
  margin-top: 2.2rem;
  color: var(--teal-deep);
  background: var(--white);
}

.contact-cta:hover {
  background: var(--spark);
}

.contact-form {
  margin-top: 2.2rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--spark);
  outline-offset: 2px;
}

.contact-form .contact-cta {
  width: 100%;
  margin-top: 0.25rem;
  cursor: pointer;
}

.contact-form .contact-cta:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  color: #ffd1d1;
  font-size: 0.9rem;
}

.form-status.is-success {
  color: #bdeed6;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-link {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.contact-link:hover {
  color: var(--spark);
}

/* ─── Footer ──────────────────────────────────────────────────── */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-family: var(--text-font);
  font-size: 0.85rem;
  font-weight: 500;
}

.site-footer a {
  color: var(--teal);
  font-weight: 500;
}

/* ─── Scroll reveal ───────────────────────────────────────────── */

.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-section,
  .split-section,
  .founder-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 3.5rem;
    text-align: left;
  }

  .hero-graph {
    order: -1;
    max-width: 360px;
    margin: 0 auto 1rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 74px;
    padding: 0 1.25rem;
  }

  .brand img {
    width: 160px;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--teal);
    content: "";
  }

  .nav-toggle-label span {
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    position: absolute;
    left: 0;
  }

  .nav-toggle-label span::before {
    top: -7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.lang-switch {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.85rem;
    border-bottom: 1px solid var(--line);
    border-radius: 999px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .hero-section,
  .section,
  .contact-section {
    padding: 3.5rem 1.25rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-item {
    padding: 1.4rem;
  }

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

  .service-item {
    grid-template-columns: 42px 1fr;
  }

  .pipeline-step {
    padding: 1.3rem 1.3rem 1.3rem 4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .founder-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.4rem;
  }

  .founder-card img {
    width: 96px;
  }
}

/* ─── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .graph-edge,
  .graph-node,
  .graph-node.is-out circle,
  .graph-label,
  .scroll-reveal {
    animation: none !important;
    transition: none !important;
  }

  .graph-edge {
    stroke-dashoffset: 0;
  }

  .graph-node,
  .graph-label {
    opacity: 1;
    transform: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
