:root {
  --ink: #131821;
  --ink-soft: #1c2633;
  --teal: #166c8c;
  --teal-bright: #1f8aaf;
  --paper: #f4f7fa;
  --muted: #5c6b7a;
  --line: rgba(19, 24, 33, 0.1);
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8eef3 0%, var(--paper) 35%, #dfe8ef 100%);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(22, 108, 140, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 108, 140, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 2.4rem);
  background: rgba(244, 247, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark img {
  height: 68px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--teal);
  color: white !important;
  font-weight: 600;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  align-content: center;
  gap: clamp(2rem, 5vh, 3.5rem);
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.2rem, 4vw, 2.4rem) 4rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
}

.hero-brand {
  max-width: min(100%, 520px);
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(19, 24, 33, 0.12));
  animation: rise 1s var(--ease) both;
}

.hero-copy h1 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
  animation: rise 1s var(--ease) 0.08s both;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  animation: rise 1s var(--ease) 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
  animation: rise 1s var(--ease) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--teal);
  color: #fff;
}

.btn.primary:hover {
  background: var(--teal-bright);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.services,
.approach,
.ventures,
.contact {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.2rem, 4vw, 2.4rem);
}

.section-label {
  margin: 0 0 0.55rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

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

.service-grid article {
  padding: 1.4rem 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}

.service-grid article:hover {
  border-color: rgba(22, 108, 140, 0.35);
  transform: translateY(-3px);
}

.service-grid h3 {
  margin: 0 0 0.55rem;
  font-family: Sora, sans-serif;
  font-size: 1.1rem;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.approach {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.approach p {
  color: var(--muted);
  margin: 1rem 0 0;
}

.approach ul {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.approach li {
  padding-left: 1.1rem;
  position: relative;
  font-weight: 600;
}

.approach li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--teal);
}

.approach-visual {
  padding: 1.75rem;
  border-radius: 1.1rem;
  background: var(--ink);
  color: #d7e2ea;
  box-shadow: 0 24px 50px rgba(19, 24, 33, 0.18);
}

.bit-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.bit-row span {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bit-row span.on {
  background: var(--teal-bright);
  border-color: transparent;
  animation: bit 2.8s ease-in-out infinite;
}

.bit-row:nth-child(2) span.on {
  animation-delay: 0.2s;
}

.bit-row:nth-child(3) span.on {
  animation-delay: 0.4s;
}

.approach-visual p {
  margin: 1.1rem 0 0;
  color: rgba(215, 226, 234, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.ventures {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--teal);
  font-weight: 700;
  font-family: Sora, sans-serif;
}

.text-link:hover {
  color: var(--teal-bright);
}

.contact {
  text-align: center;
}

.contact p {
  margin: 0.85rem auto 1.6rem;
  color: var(--muted);
  max-width: 28rem;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.4rem) 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer img {
  height: 26px;
  width: auto;
  opacity: 0.9;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bit {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 860px) {
  .service-grid,
  .approach {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  nav a:not(.nav-cta) {
    display: none;
  }
}
