:root {
  --bg: #07111d;
  --bg-soft: #0b1727;
  --panel: rgba(9, 20, 35, 0.78);
  --panel-strong: #0e2033;
  --surface: #101f31;
  --surface-alt: #0d1928;
  --line: rgba(148, 163, 184, 0.18);
  --text: #eef4fb;
  --muted: #a7b7c9;
  --accent: #55e68d;
  --accent-strong: #24c86b;
  --accent-wash: rgba(85, 230, 141, 0.12);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --radius: 26px;
  --header-h: 88px;
  --container: 1200px;
  --section-space: clamp(30px, 4vw, 48px);
  --section-space-tight: clamp(10px, 2vw, 22px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(85, 230, 141, 0.15), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(36, 200, 107, 0.12), transparent 20%),
    linear-gradient(180deg, #06101a 0%, #07111d 30%, #08131f 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section-shell {
  position: relative;
  padding: var(--section-space) 0;
}

main section[id],
#top {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading h2,
.split-intro h2,
.growth-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header-h) + env(safe-area-inset-top));
  backdrop-filter: blur(18px);
  background: rgba(5, 12, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-navigation a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.site-navigation a:hover,
.site-navigation a.is-active {
  color: var(--text);
}

.site-navigation a:hover::after,
.site-navigation a.is-active::after {
  transform: scaleX(1);
}

.site-navigation .nav-cta {
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #041018;
}

.site-navigation .nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding-top: clamp(8px, 1.8vw, 18px);
  padding-bottom: clamp(20px, 3vw, 34px);
  min-height: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 3vw, 34px);
  align-items: start;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(3rem, 6vw, 6.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-lead,
.intro-copy p,
.service-body p,
.growth-copy p,
.process-list p,
.about-copy p,
.about-principles p,
.contact-copy p,
.contact-detail p,
.footer-branding p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.78;
}

.hero-lead {
  max-width: 650px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7df2aa 100%);
  color: #051018;
  box-shadow: 0 20px 40px rgba(85, 230, 141, 0.18);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.tooling-list span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.media-frame img,
.hero-aside {
  will-change: transform;
}

.media-frame img {
  --parallax-y: 0px;
  --hover-scale: 1;
  transform: translate3d(0, var(--parallax-y), 0) scale(var(--hover-scale));
  transform-origin: center center;
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.media-frame:hover img {
  --hover-scale: 1.05;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(85, 230, 141, 0.15), transparent 55%),
    linear-gradient(0deg, rgba(4, 16, 24, 0.38), transparent 46%);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

.hero-aside {
  position: absolute;
  left: -24px;
  bottom: -28px;
  width: min(340px, calc(100% - 24px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(7, 17, 29, 0.92);
  box-shadow: var(--shadow);
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.hero-aside-label,
.detail-label,
.service-number {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-aside p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.positioning {
  padding-top: 0;
  padding-bottom: clamp(14px, 2vw, 24px);
}

.services,
.growth,
.process,
.about,
.contact {
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(24px, 3vw, 36px);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}

.split-intro > .section-heading {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.service-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background-color 260ms ease;
}

.service-row:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 230, 141, 0.28);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.service-row:nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.service-row:nth-child(even) .service-media {
  order: 2;
}

.service-row:nth-child(even) .service-body {
  order: 1;
}

.service-media {
  overflow: hidden;
  border-radius: 22px;
  min-height: 280px;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 6px;
}

.service-body h3,
.growth-copy h3,
.process-list h3,
.about-principles h3,
.footer-links h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.tooling-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(85, 230, 141, 0.08), rgba(12, 26, 41, 0.76));
}

.tooling-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.tooling-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.growth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(22px, 3vw, 30px);
  align-items: stretch;
}

.growth-visual {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.growth-visual img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.growth-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(14, 32, 51, 0.92), rgba(10, 22, 36, 0.92));
}

.growth-columns {
  display: grid;
  gap: 18px;
  margin: 16px 0 20px;
}

.growth-columns div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.growth-columns h3 {
  font-size: 1.2rem;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.about-layout {
  display: grid;
  gap: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.about-copy,
.about-principles {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
}

.about-principles {
  display: grid;
  gap: 22px;
}

.about-principles div + div {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-principles h3 {
  font-size: 1.2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  gap: 16px;
  align-items: stretch;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(14, 32, 51, 0.92), rgba(10, 22, 36, 0.92));
  box-shadow: var(--shadow);
}

.contact-detail p {
  margin: 0;
}

.contact-detail a {
  color: var(--text);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #041018;
}

footer {
  padding: 56px 0 28px;
  background: rgba(4, 10, 18, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-branding .brand-name {
  color: var(--accent);
}

.footer-links h3 {
  margin-bottom: 14px;
  font-size: 1.12rem;
  color: var(--accent);
}

.footer-company {
  padding-left: clamp(40px, 4.2vw, 74px);
}

.footer-links ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #7df2aa);
  color: #041018;
  box-shadow: 0 18px 38px rgba(85, 230, 141, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  --reveal-x: 0px;
  --reveal-y: 28px;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 560ms cubic-bezier(0.2, 0.9, 0.3, 1),
    filter 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-left {
  --reveal-x: -44px;
  --reveal-y: 14px;
}

.reveal-right {
  --reveal-x: 44px;
  --reveal-y: 14px;
}

.reveal-rise {
  --reveal-y: 44px;
}

.reveal-delay-1 {
  transition-delay: 70ms;
}

.reveal-delay-2 {
  transition-delay: 130ms;
}

.reveal-delay-3 {
  transition-delay: 190ms;
}

.reveal-delay-4 {
  transition-delay: 250ms;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-intro,
  .growth-layout,
  .about-grid,
  .contact-layout,
  .tooling-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-branding {
    grid-column: 1 / -1;
  }

  .footer-links:last-child {
    grid-column: 1 / -1;
    max-width: 240px;
    justify-self: center;
  }

  .hero {
    min-height: auto;
  }

  .footer-company {
    padding-left: 0;
  }

  .hero-aside {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin-top: 18px;
  }

  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(even) .service-media,
  .service-row:nth-child(even) .service-body {
    order: initial;
  }

  .service-media {
    min-height: 240px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 76px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(6, 14, 24, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 180ms ease;
  }

  .site-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-navigation a::after {
    display: none;
  }

  .site-navigation .nav-cta {
    margin-top: 4px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 10vw, 4.25rem);
  }
}

@media (max-width: 640px) {
  .section-shell {
    padding: clamp(24px, 6vw, 36px) 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero-frame,
  .service-media,
  .growth-visual,
  .hero-aside {
    max-width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-branding,
  .footer-links {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

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

  .process-list span {
    width: 64px;
    height: 64px;
  }

  .tooling-list {
    gap: 8px;
  }

  .tooling-list span {
    width: 100%;
    border-radius: 18px;
  }

  .social-links {
    justify-content: center;
  }

  .contact-follow .detail-label {
    text-align: center;
  }

  .media-frame img,
  .hero-aside {
    --parallax-y: 0px;
    transform: none;
  }

  .footer-grid {
    gap: 20px 14px;
  }

  .footer-grid > .footer-company {
    order: 1;
  }

  .footer-grid > .footer-links:nth-child(3) {
    order: 2;
  }

  .footer-grid > .footer-links:nth-child(4) {
    order: 3;
  }

  .footer-grid > .footer-branding {
    order: 4;
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer-branding .social-links {
    gap: 14px;
    margin-top: 18px;
  }

  .footer-links ul {
    gap: 8px;
  }

  .footer-links:last-child {
    max-width: none;
  }

  .copyright {
    margin-top: 24px;
    padding-top: 18px;
    font-size: 0.92rem;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .social-links a,
  .site-navigation a::after,
  .back-to-top,
  .reveal,
  .menu-toggle span {
    transition: none;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
