﻿:root {
  --bg: #f4efe7;
  --bg-alt: #e9decd;
  --panel: rgba(255, 250, 242, 0.9);
  --panel-solid: #fff9f1;
  --text: #1b2838;
  --muted: #5a6675;
  --line: rgba(22, 38, 58, 0.18);
  --line-soft: rgba(22, 38, 58, 0.1);
  --brand: #0f8f77;
  --brand-deep: #0a6656;
  --accent: #f07a2f;
  --ink: #17314f;
  --shadow: 0 26px 64px rgba(17, 28, 44, 0.14);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html[data-theme="dark"] {
  --bg: #0f1724;
  --bg-alt: #162235;
  --panel: rgba(17, 27, 41, 0.9);
  --panel-solid: #101b2b;
  --text: #e7f0fd;
  --muted: #9dafc5;
  --line: rgba(231, 240, 253, 0.2);
  --line-soft: rgba(231, 240, 253, 0.12);
  --brand: #26baa0;
  --brand-deep: #13917a;
  --accent: #ff9a54;
  --ink: #1e3f62;
  --shadow: 0 28px 72px rgba(2, 7, 15, 0.52);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", sans-serif;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 122, 47, 0.2), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(15, 143, 119, 0.25), transparent 34%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.55;
  animation: drift 12s ease-in-out infinite alternate;
}

.orbit-one {
  width: 320px;
  height: 320px;
  top: -90px;
  left: -40px;
  background: rgba(240, 122, 47, 0.35);
}

.orbit-two {
  width: 360px;
  height: 360px;
  top: 10%;
  right: -130px;
  background: rgba(15, 143, 119, 0.33);
  animation-delay: 2s;
}

.orbit-three {
  width: 280px;
  height: 280px;
  bottom: -100px;
  right: 20%;
  background: rgba(23, 49, 79, 0.23);
  animation-delay: 4s;
}

.mesh {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 34px 34px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 88%);
}

.site-header,
main,
.site-footer {
  width: min(1200px, 94vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding-top: 18px;
}

.nav-shell {
  position: sticky;
  top: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  box-shadow: 0 10px 26px rgba(14, 22, 33, 0.11);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 96px;
  height: 38px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.admin-link {
  border: 1px solid rgba(15, 143, 119, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 143, 119, 0.12);
  color: var(--brand-deep);
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  order: 3;
}

.mode-btn,
.menu-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  background: var(--panel-solid);
  transition: transform 0.2s ease;
}

.mode-btn:hover,
.menu-btn:hover {
  transform: translateY(-1px);
}

.mode-btn {
  padding: 8px 12px;
  font-size: 0.79rem;
  font-weight: 700;
}

.menu-btn {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
}

.hero {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.08fr 0.92fr;
}

.hero-copy,
.hero-panel,
.section,
.trust-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(24px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 143, 119, 0.3);
  background: rgba(15, 143, 119, 0.12);
  color: var(--brand-deep);
  padding: 8px 12px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.hero-copy h1 {
  margin-top: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.8px;
  max-width: 18ch;
}

.hero-copy .lead {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.78;
  max-width: 60ch;
  font-size: 0.96rem;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 11px 16px;
  transition: transform 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-solid);
}

.hero-metrics {
  margin-top: 22px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics li {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--panel-solid);
  padding: 12px;
}

.hero-metrics strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

.hero-panel {
  padding: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(240, 122, 47, 0.2), transparent 34%),
    radial-gradient(circle at 4% 95%, rgba(15, 143, 119, 0.23), transparent 30%),
    var(--panel);
}

.panel-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-headline p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.panel-headline span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pulse-list {
  display: grid;
  gap: 10px;
}

.pulse-list article {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--panel-solid);
  padding: 12px;
}

.pulse-list h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.pulse-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.83rem;
}

.pulse-bar {
  margin-top: 10px;
  height: 9px;
  border-radius: 999px;
  background: rgba(19, 145, 122, 0.14);
  overflow: hidden;
}

.pulse-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(100deg, var(--brand), var(--accent));
  animation: grow 1.3s ease;
}

.mini-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid article {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--panel-solid);
  padding: 11px;
}

.mini-grid strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
}

.mini-grid span {
  font-size: 0.76rem;
  color: var(--muted);
}

.trust-strip {
  margin-top: 12px;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trust-strip span {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel-solid);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip i {
  color: var(--brand-deep);
}

main {
  padding-top: 14px;
}

.section {
  margin-top: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.section-head {
  max-width: 70ch;
}

.section-head.compact {
  max-width: none;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(240, 122, 47, 0.35);
  background: rgba(240, 122, 47, 0.12);
  color: #b44c14;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 11px;
}

.section-head h2 {
  margin-top: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.56rem, 4.1vw, 2.9rem);
  line-height: 1.08;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.74;
}

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

.service-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(15, 143, 119, 0.16), transparent 70%);
  pointer-events: none;
}

.service-card i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--ink), #2e547d);
  color: #ffffff;
  margin-bottom: 9px;
}

.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  margin-bottom: 7px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.86rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
}

.section-copy {
  display: grid;
  align-content: start;
}

.spotlight-card {
  margin-top: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #15385a, #1f537f);
  color: #eff5ff;
  padding: 18px;
}

.spotlight-card small {
  font-size: 0.73rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(230, 242, 255, 0.86);
}

.spotlight-card h3 {
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.33rem;
  line-height: 1.2;
}

.spotlight-card p {
  margin-top: 9px;
  color: rgba(234, 243, 255, 0.88);
  line-height: 1.7;
  font-size: 0.89rem;
}

.spotlight-card a {
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #8cf7db;
  font-weight: 700;
  font-size: 0.86rem;
}

.project-stack {
  display: grid;
  gap: 10px;
}

.project-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  padding: 14px;
}

.project-card small {
  font-size: 0.72rem;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.project-card h3 {
  margin-top: 7px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.project-card p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.85rem;
}

.logo-track-wrap {
  margin-top: 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 10px;
  background: var(--panel-solid);
}

.logo-track {
  width: max-content;
  display: flex;
  gap: 10px;
  animation: marquee 34s linear infinite;
}

.logo-track img {
  width: 104px;
  height: 64px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #ffffff;
}

.process-grid {
  margin-top: 18px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.process-grid li {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  padding: 14px;
}

.process-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 143, 119, 0.15);
  color: var(--brand-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

.process-grid h3 {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.01rem;
}

.process-grid p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.67;
}

.contact .contact-card {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 20%, rgba(240, 122, 47, 0.21), transparent 40%),
    radial-gradient(circle at 12% 90%, rgba(15, 143, 119, 0.2), transparent 36%),
    var(--panel-solid);
  padding: clamp(18px, 3vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-card h2 {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.08;
  max-width: 20ch;
}

.contact-card p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.72;
  max-width: 55ch;
}

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

.site-footer {
  margin-top: 18px;
  margin-bottom: 24px;
  text-align: center;
}

.site-footer p {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
}

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

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(18px) scale(1.05);
  }
}

@keyframes grow {
  from {
    width: 0;
  }

  to {
    width: var(--w);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
  }

  .brand img {
    width: 84px;
    height: 34px;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    width: min(280px, 84vw);
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-shell {
    border-radius: 18px;
  }

  .mode-btn {
    padding-inline: 10px;
  }

  .brand-text small {
    display: none;
  }
}

@media (max-width: 640px) {
  .service-grid,
  .process-grid,
  .hero-metrics,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 9.5vw, 3rem);
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .mode-btn {
    width: auto;
  }

  .nav-shell {
    gap: 8px;
    border-radius: 16px;
    padding: 8px 10px;
  }

  .brand img {
    width: 72px;
    height: 30px;
  }

  .brand-text strong {
    display: none;
  }

  .menu-btn {
    width: 36px;
    height: 36px;
  }

  .site-footer p {
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .mode-btn {
    padding-inline: 9px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
