:root {
  --ink: #10231c;
  --ink-soft: #2a4037;
  --muted: #5c7268;
  --paper: #f3f6f2;
  --paper-deep: #e6ece6;
  --line: #cfd9d2;
  --accent: #0f766e;
  --accent-deep: #115e59;
  --accent-soft: #ccfbf1;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 35, 28, 0.08);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(15, 118, 110, 0.16), transparent 60%),
    radial-gradient(700px 420px at 100% 8%, rgba(16, 35, 28, 0.08), transparent 55%),
    linear-gradient(180deg, #f7faf7 0%, var(--paper) 45%, #eef3ee 100%);
  background-attachment: fixed;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 35, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  max-width: 16ch;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.eyebrow.light {
  color: #99f6e4;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-lead.narrow {
  max-width: 34rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 242, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 242, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.2rem;
  background: linear-gradient(145deg, var(--accent), var(--ink));
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  padding: 0.65rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 242, 0.98);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  font-weight: 600;
  padding: 0.35rem 0;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  min-height: calc(100vh - 4.25rem);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.brand-lockup {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--accent-deep);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--white);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.flow-art {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow));
}

.flow-art .node {
  fill: rgba(255, 255, 255, 0.92);
  stroke: var(--line);
  stroke-width: 1.5;
}

.flow-art .node-b {
  fill: var(--accent-soft);
  stroke: rgba(15, 118, 110, 0.35);
}

.flow-art .path {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 6 8;
  animation: dash 18s linear infinite;
}

.flow-art .dot {
  fill: var(--accent-deep);
}

.flow-art .label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

@keyframes dash {
  to {
    stroke-dashoffset: -220;
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(230, 236, 230, 0.7));
  border-block: 1px solid var(--line);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row p {
  color: var(--muted);
  margin: 0;
  max-width: 48rem;
}

.service-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  padding-top: 0.15rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pillars li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.pillars strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.pillars span {
  color: var(--muted);
  font-size: 0.98rem;
}

.profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile > div {
  background: var(--white);
  padding: 1.15rem 1.25rem;
}

.profile-wide {
  grid-column: 1 / -1;
}

.profile dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.profile dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.section-contact {
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  background: linear-gradient(145deg, #0f2a22 0%, #134e4a 55%, #0f766e 100%);
  color: var(--white);
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}

.contact-panel h2 {
  color: var(--white);
  max-width: 14ch;
}

.contact-line {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.contact-line:hover {
  border-bottom-color: #fff;
}

.contact-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .platform-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  h1 {
    max-width: 12ch;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .service-row {
    grid-template-columns: 3rem 1fr;
  }

  .profile {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flow-art .path,
  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
