:root {
  --bg: #e7eef3;
  --bg-deep: #d3e0e8;
  --ink: #102029;
  --ink-soft: #3a4f5e;
  --muted: #5f7382;
  --line: rgba(16, 32, 41, 0.12);
  --accent: #0f7a6c;
  --accent-strong: #0a5c52;
  --surface: rgba(255, 255, 255, 0.62);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --page-pad: clamp(1rem, 4vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 80% -5%, #c9e2dc 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 10%, #c4d4e3 0%, transparent 50%),
    linear-gradient(180deg, #eaf0f4 0%, #f4f7f9 50%, #d9e4ec 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--page-pad);
  z-index: 20;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--accent-strong) !important;
  font-weight: 700 !important;
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.65rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(231, 238, 243, 0.15) 0%, rgba(231, 238, 243, 0.82) 72%, #eaf0f4 100%),
    linear-gradient(120deg, #123846 0%, #0f7a6c 48%, #1d4f63 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 35%, black 10%, transparent 68%);
  animation: gridDrift 18s linear infinite;
}

.hero-glow {
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 620px;
  max-height: 620px;
  right: 4%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 255, 249, 0.35) 0%, rgba(232, 255, 249, 0) 70%);
  animation: pulse 5s var(--ease) infinite;
}

.hero-orbit {
  position: absolute;
  right: 6%;
  top: 12%;
  width: min(42vw, 460px);
  aspect-ratio: 1;
}

.ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: spin 32s linear infinite;
}

.r1 {
  inset: 0;
  border-style: dashed;
  animation-duration: 48s;
}

.r2 {
  inset: 16%;
  animation-direction: reverse;
  animation-duration: 28s;
}

.r3 {
  inset: 32%;
  border-color: rgba(255, 255, 255, 0.18);
  animation-duration: 20s;
}

.node {
  position: absolute;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.45rem;
  background: rgba(16, 32, 41, 0.28);
  backdrop-filter: blur(10px);
  color: #eef8f5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  animation: float 5.8s var(--ease) infinite;
}

.n1 { top: 4%; left: 40%; }
.n2 { top: 24%; right: 0; animation-delay: 0.5s; }
.n3 { bottom: 28%; right: 6%; animation-delay: 1s; }
.n4 { bottom: 6%; left: 28%; animation-delay: 1.5s; }
.n5 { top: 36%; left: 2%; animation-delay: 2s; }
.n6 { top: 58%; left: 16%; animation-delay: 2.4s; }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 5rem var(--page-pad) 4rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: #102029;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #f4fffc;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(16, 32, 41, 0.28);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 4.5rem) var(--page-pad);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-head h2,
.approach-panel h2,
.contact-wrap h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-head p,
.approach-panel p,
.contact-wrap > p {
  margin: 0;
  color: var(--ink-soft);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.service-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.service-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.service-list p {
  margin: 0;
  max-width: 52rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  overflow-wrap: break-word;
}

.approach {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.approach-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(18, 56, 70, 0.96), rgba(15, 122, 108, 0.9));
  color: #eef8f5;
}

.approach-panel h2 {
  color: #fff;
  max-width: 18ch;
}

.approach-panel p {
  max-width: 52rem;
  color: rgba(238, 248, 245, 0.88);
  font-size: clamp(1rem, 2.5vw, 1.08rem);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stack-block {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--accent);
}

.stack-block h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stack-block p {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.contact {
  padding-bottom: 5rem;
}

.contact-wrap {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.contact-links a {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
  transition: color 0.25s var(--ease);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-links a:hover {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  overflow-wrap: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-stage {
    background:
      linear-gradient(180deg, rgba(18, 56, 70, 0.55) 0%, rgba(231, 238, 243, 0.72) 42%, #eaf0f4 68%),
      linear-gradient(140deg, #123846 0%, #0f7a6c 55%, #1d4f63 100%);
  }

  .hero-orbit {
    left: 50%;
    right: auto;
    top: 1.25rem;
    width: min(70vw, 280px);
    transform: translateX(-50%);
    opacity: 0.9;
  }

  .hero-glow {
    right: auto;
    left: 50%;
    top: 0;
    width: 80vw;
    height: 80vw;
    transform: translateX(-50%);
  }

  .hero-grid {
    mask-image: radial-gradient(circle at 50% 18%, black 8%, transparent 55%);
  }

  .hero-copy {
    padding-top: 13.5rem;
    padding-bottom: 3rem;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: var(--page-pad);
    left: var(--page-pad);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(16, 32, 41, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 30;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.9rem 1rem;
  }

  .brand {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    max-width: 100%;
  }

  .hero h1 {
    max-width: none;
    font-size: 1.15rem;
  }

  .hero-lead {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 3.15rem;
  }

  .n5,
  .n6 {
    display: none;
  }

  .node {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }

  .service-list li {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.35rem 0;
  }

  .service-index {
    font-size: 1rem;
  }

  .approach-panel h2 {
    max-width: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 2.2rem;
    letter-spacing: -0.04em;
  }

  .hero-copy {
    padding-top: 12rem;
  }

  .hero-orbit {
    width: min(78vw, 240px);
  }

  .contact-links a {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring,
  .node,
  .hero-glow,
  .hero-grid,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
