:root {
  --background-primary: #08080c;
  --background-secondary: #11111a;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --purple-primary: #059669;
  --purple-light: #34d399;
  --blue-violet: #10b981;
  --line-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(5, 150, 105, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 0%, rgba(16, 185, 129, 0.12), transparent 26rem),
    var(--background-primary);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line-border);
  background: rgba(8, 8, 12, 0.76);
  backdrop-filter: blur(18px);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  width: auto;
  height: 36px;
}

.brand-word {
  display: none;
  width: auto;
  height: 32px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a,
.mobile-menu a {
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  color: #d4d4d8;
  font-size: 0.92rem;
  font-weight: 650;
  transition: 180ms ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  color: #d4d4d8;
  font-size: 0.78rem;
  font-weight: 800;
}

.lang-toggle span {
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
}

.lang-toggle .active {
  background: #fff;
  color: #08080c;
}

.menu-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-border);
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

.mobile-menu {
  display: none;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line-border);
  background: rgba(8, 8, 12, 0.96);
}

.mobile-menu.open {
  display: grid;
  gap: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 850;
  transition: 180ms ease;
}

.btn-light {
  background: #fff;
  color: #08080c;
}

.btn-light:hover {
  background: #e4e4e7;
}

.btn-dark {
  border: 1px solid var(--line-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn-dark:hover {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(5, 150, 105, 0.15);
}

.compact {
  display: none;
  min-height: 38px;
  padding: 0.55rem 1rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 94svh;
  overflow: hidden;
  padding-top: 80px;
}

.particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.photo-particle-field {
  position: absolute;
  z-index: 0;
  inset: -3rem;
  width: calc(100% + 6rem);
  height: calc(100% + 6rem);
  pointer-events: none;
  opacity: 0.82;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 8, 12, 0.98), rgba(8, 8, 12, 0.86) 52%, rgba(8, 8, 12, 0.45));
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 3.5rem;
}

.hero-mobile-logo {
  width: 140px;
  margin-bottom: 2rem;
}

.eyebrow {
  color: var(--purple-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1,
.blog-hero h1,
.post-shell h1 {
  margin-top: 1.25rem;
  max-width: 900px;
  color: #fff;
  font-size: clamp(2.35rem, 4.4vw, 4.05rem);
  line-height: 1.1;
  font-weight: 680;
  letter-spacing: 0;
}

.hero-subtitle,
.section-header p,
.body-copy,
.soft-card p,
.project-card p,
.blog-hero p,
.blog-card p,
.prose,
.contact-options p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 740px;
  margin-top: 1.7rem;
  color: #d4d4d8;
  font-size: 1.12rem;
}

.cta-row,
.badges,
.context-strip,
.tag-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-row {
  margin-top: 2.2rem;
}

.badges {
  margin-top: 2rem;
}

.badges span,
.context-strip span,
.tag-row span,
.filter,
.card-kicker span {
  border: 1px solid var(--line-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.75rem;
  color: #d4d4d8;
  font-size: 0.78rem;
  font-weight: 750;
}

.portrait-wrap {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
}

.portrait-glow {
  position: absolute;
  inset: -2rem;
  border-radius: 2rem;
  background: rgba(16, 185, 129, 0.16);
  filter: blur(44px);
}

.portrait {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.45rem;
  background: var(--background-secondary);
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.2);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  filter: saturate(0.92) contrast(1.06);
}

.section {
  padding-block: 6rem;
}

.three-grid,
.expertise-grid,
.project-grid,
.service-grid,
.contact-grid,
.stats {
  display: grid;
  gap: 1rem;
}

.soft-card,
.project-card,
.testimonial,
.blog-card,
.contact-form {
  border: 1px solid var(--line-border);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 1.45rem;
}

.soft-card h2,
.soft-card h3,
.project-card h3,
.blog-card h2,
.contact-options h3,
.form-title {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 720;
}

.icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.55rem;
  border: 1px solid var(--line-border);
  background: rgba(5, 150, 105, 0.14);
  color: var(--purple-light);
}

.icon.small {
  width: 2.5rem;
  height: 2.5rem;
}

.icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.split {
  display: grid;
  gap: 3rem;
}

.section-header {
  max-width: 760px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header.wide {
  max-width: 850px;
}

.section-header h2 {
  margin-top: 0.8rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 720;
}

.section-header p {
  margin-top: 1.15rem;
  font-size: 1.05rem;
}

.body-copy {
  display: grid;
  gap: 1.15rem;
  color: #d4d4d8;
}

.stats {
  margin-top: 2rem;
}

.stat {
  border: 1px solid var(--line-border);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 1.15rem;
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 1.6rem;
}

.stat span {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.expertise-grid {
  margin-top: 3rem;
}

.project-grid {
  margin-top: 3rem;
}

.project-card {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  transition: 180ms ease;
}

.project-card:hover,
.blog-card:hover,
.soft-card:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(255, 255, 255, 0.055);
}

.card-kicker {
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card .value {
  margin-top: 1rem;
  border-left: 1px solid rgba(52, 211, 153, 0.55);
  padding-left: 1rem;
  color: #d4d4d8;
}

.project-card a,
.blog-card a,
.prose a {
  margin-top: auto;
  padding-top: 1.25rem;
  color: #fff;
  font-weight: 800;
}

.project-card a:hover,
.blog-card a:hover,
.prose a:hover {
  color: var(--purple-light);
}

.dap-section,
.contact-section {
  border-block: 1px solid var(--line-border);
  background: rgba(17, 17, 26, 0.65);
}

.dap-logo {
  width: 210px;
  margin-bottom: 1.5rem;
}

.context-strip {
  justify-content: center;
  margin: 2.5rem auto 3rem;
  max-width: 900px;
}

.testimonial blockquote {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.65;
}

.testimonial figcaption {
  margin-top: 2rem;
  color: var(--text-secondary);
}

.testimonial strong,
.testimonial span {
  display: block;
}

.contact-grid {
  margin-top: 3rem;
}

.contact-options {
  display: grid;
  gap: 1rem;
}

.form-title {
  margin: 0 0 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: #e4e4e7;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.search-field input {
  width: 100%;
  border: 1px solid var(--line-border);
  border-radius: 0.55rem;
  background: rgba(8, 8, 12, 0.82);
  padding: 0.9rem 1rem;
  color: #fff;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.consent {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

.consent input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--purple-primary);
}

.honeypot {
  display: none;
}

.form-status {
  color: var(--purple-light);
  min-height: 1.3rem;
}

.footer {
  border-top: 1px solid var(--line-border);
  padding-block: 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  width: 140px;
}

.footer p {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: #d4d4d8;
  font-weight: 750;
}

.copyright {
  color: #71717a !important;
}

.blog-main,
.post-main {
  min-height: 100vh;
  padding-top: 96px;
}

.blog-hero {
  padding-block: 3rem;
}

.blog-hero h1,
.post-shell h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

.blog-hero p {
  max-width: 760px;
  margin-top: 1.35rem;
  font-size: 1.08rem;
}

.blog-tools {
  padding-bottom: 5rem;
}

.search-field {
  display: block;
}

.filter-row {
  margin-block: 1rem 2rem;
}

.filter {
  cursor: pointer;
}

.filter.active {
  border-color: #fff;
  background: #fff;
  color: #08080c;
}

.blog-grid {
  display: grid;
  gap: 1rem;
}

.blog-card {
  display: grid;
}

.blog-card h2 {
  font-size: 1.5rem;
}

.tag-row {
  margin-top: 1rem;
}

.empty-state {
  border: 1px solid var(--line-border);
  border-radius: 0.55rem;
  padding: 1.5rem;
  color: var(--text-secondary);
}

.post-shell {
  max-width: 820px;
  padding-block: 3rem 6rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
  color: var(--text-secondary);
}

.post-meta span {
  border: 1px solid var(--line-border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.prose {
  margin-top: 3rem;
  color: #d4d4d8;
  font-size: 1.05rem;
  line-height: 1.9;
}

.prose p,
.prose ul {
  margin-top: 1.3rem;
}

.prose h2 {
  margin-top: 2.5rem;
  color: #fff;
  font-size: 1.8rem;
}

@media (min-width: 640px) {
  .brand-mark {
    display: none;
  }

  .brand-word {
    display: block;
  }

  .compact {
    display: inline-flex;
  }

  .form-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 0.92fr 0.9fr;
    gap: 3.5rem;
  }

  .hero-mobile-logo {
    display: none;
  }

  .split,
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .expertise-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portrait-wrap {
    width: min(100%, 500px);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
