:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --text: #eaeaea;
  --muted: #8b8b8b;
  --sage: #74806b;
  --steel: #5e6b76;
  --line: rgba(255, 255, 255, 0.05);
  --line-hover: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.015);
  --card-hover: rgba(255, 255, 255, 0.03);
  --radius: 18px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  pointer-events: auto;
  animation: splash-dismiss 5900ms linear forwards;
}

.splash-same-site-nav .splash {
  display: none;
}

.splash.is-flying {
  background: transparent;
}

.splash.is-enhanced {
  animation: none;
}

.splash-word,
.splash-final {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.splash-word {
  padding: 0 1rem;
  font-size: 7rem;
  font-weight: 840;
  line-height: 0.95;
  text-align: center;
  animation: splash-word-frame 1200ms ease both;
}

.splash-word:nth-child(1) {
  animation-delay: 0ms;
}

.splash-word:nth-child(2) {
  animation-delay: 1200ms;
}

.splash-word:nth-child(3) {
  animation-delay: 2400ms;
}

.splash-final {
  align-content: center;
  gap: 1.1rem;
  animation: splash-final-frame 1900ms ease 3600ms both;
}

.splash-mark {
  width: clamp(140px, 28vw, 340px);
  height: clamp(140px, 28vw, 340px);
  transform-origin: center;
  will-change: transform;
}

.splash-name {
  font-size: 4.6rem;
  font-weight: 860;
  line-height: 1;
  letter-spacing: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  animation: splash-name-frame 1900ms ease 3600ms both;
  will-change: opacity;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1120px, calc(100% - 2rem));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.05rem 0;
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.72rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 760;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: url("/assets/icons/favicon-1024.png") center / contain no-repeat;
}

.site-nav {
  gap: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a[aria-current="page"] {
  color: rgba(234, 234, 234, 0.92);
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.hero,
.page-hero {
  width: min(900px, calc(100% - 2rem));
  display: grid;
  align-content: center;
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 72px);
  padding: 7rem 0 6rem;
}

.page-hero {
  min-height: 54svh;
  padding: 7rem 0 3rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: rgba(116, 128, 107, 0.72);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 820;
  line-height: 0.97;
}

h2 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 780;
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  font-weight: 720;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-lede {
  max-width: 660px;
  color: rgba(234, 234, 234, 0.68);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
}

.hero-title {
  transition-delay: 0ms;
}

.hero-subtitle {
  transition-delay: 200ms;
}

.section {
  width: min(900px, calc(100% - 2rem));
  display: grid;
  gap: 1.6rem;
  margin: 0 auto;
  padding: 5.7rem 0;
}

.section-heading {
  max-width: 840px;
}

.section-heading p {
  max-width: 700px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.service-rail,
.problem-rail,
.contact-rail {
  display: flex;
  gap: 0;
  width: 100%;
  padding: 0 0 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: rgba(234, 234, 234, 0.18) transparent;
  scrollbar-width: thin;
}

.service-rail::-webkit-scrollbar,
.problem-rail::-webkit-scrollbar,
.contact-rail::-webkit-scrollbar {
  height: 6px;
}

.service-rail::-webkit-scrollbar-track,
.problem-rail::-webkit-scrollbar-track,
.contact-rail::-webkit-scrollbar-track {
  background: transparent;
}

.service-rail::-webkit-scrollbar-thumb,
.problem-rail::-webkit-scrollbar-thumb,
.contact-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(234, 234, 234, 0.16);
}

.service-rail .soft-card,
.contact-rail .soft-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.rail-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.rail-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(234, 234, 234, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.rail-dot.is-active {
  background: rgba(234, 234, 234, 0.74);
  transform: scale(1.18);
}

.rail-dot:hover {
  background: rgba(234, 234, 234, 0.42);
}

.rail-dot:focus-visible {
  outline: 2px solid rgba(234, 234, 234, 0.48);
  outline-offset: 4px;
}

.soft-card,
.soft-panel,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
}

.soft-card {
  min-height: 220px;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.soft-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
  background: var(--card-hover);
}

.soft-card span {
  display: inline-flex;
  margin-bottom: 2.2rem;
  color: rgba(94, 107, 118, 0.86);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 760;
}

.soft-card h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  line-height: 1.12;
}

.soft-card .button {
  margin-top: 0.7rem;
}

.soft-panel {
  padding: clamp(1.3rem, 4vw, 2.3rem);
}

.soft-panel p {
  max-width: 730px;
  margin-bottom: 1rem;
  color: rgba(234, 234, 234, 0.72);
  font-size: 1.05rem;
}

.soft-panel p:last-child {
  margin-bottom: 0;
}

.contact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.contact p {
  max-width: 620px;
  margin-bottom: 0;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.018);
  text-decoration: none;
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
  background: rgba(255, 255, 255, 0.035);
}

.text-link {
  color: rgba(234, 234, 234, 0.74);
  text-decoration-color: rgba(234, 234, 234, 0.18);
  text-underline-offset: 0.28em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.text-link:hover {
  color: var(--text);
  text-decoration-color: rgba(234, 234, 234, 0.46);
}

.problem-list,
.process,
.contact-list {
  gap: 1rem;
}

.process-step {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.problem-rail .problem-item {
  flex: 0 0 100%;
  display: grid;
  align-content: start;
  gap: clamp(1rem, 2.4vw, 1.45rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 12%, rgba(116, 128, 107, 0.08), transparent 18rem),
    var(--card);
  backdrop-filter: blur(8px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.problem-rail .problem-item h2 {
  max-width: 760px;
  justify-self: center;
  text-align: center;
}

.problem-item h2,
.process-step h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.problem-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.problem-flow p {
  min-height: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.2rem);
  background: var(--card);
  line-height: 1.58;
}

.problem-flow strong {
  display: block;
  margin-bottom: 0.48rem;
  color: rgba(234, 234, 234, 0.84);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.problem-cta {
  max-width: 760px;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.problem-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.problem-cta p:first-child {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.solution-cta {
  max-width: 760px;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding-top: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.solution-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.14;
}

.solution-cta p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process-step {
  display: grid;
  grid-template-columns: 4.4rem minmax(13rem, 0.42fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.process-step span {
  color: rgba(94, 107, 118, 0.86);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 760;
}

.process-step p {
  max-width: 650px;
  margin-bottom: 0;
  min-width: 0;
}

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

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin: 2rem auto 0;
  padding: 2.2rem 0 3.4rem;
  color: rgba(139, 139, 139, 0.82);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
}

.footer-brand .brand {
  width: fit-content;
}

.footer-brand p {
  max-width: 380px;
  margin: 0;
  color: rgba(234, 234, 234, 0.5);
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.78rem;
  background: rgba(255, 255, 255, 0.012);
  color: rgba(234, 234, 234, 0.62);
}

.footer-links a:hover {
  border-color: var(--line-hover);
  background: rgba(255, 255, 255, 0.024);
}

.reveal,
.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible,
.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes splash-word-frame {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  16.666%,
  83.333% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes splash-final-frame {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  11%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splash-name-frame {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  11%,
  74% {
    opacity: 1;
    transform: translateY(0);
  }
  85%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes splash-dismiss {
  0%,
  92% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

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

  .splash {
    display: none;
  }

}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding: 5rem 0 4rem;
  }

  .page-hero {
    min-height: auto;
    padding: 5rem 0 2.5rem;
  }

  .card-grid,
  .contact,
  .contact-list,
  .problem-flow,
  .process-step {
    grid-template-columns: 1fr;
  }

  .problem-rail .problem-item {
    min-height: auto;
  }

  .contact .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .section {
    padding: 4rem 0;
  }

  .splash-word {
    font-size: 3.35rem;
  }

  .splash-name {
    font-size: 2.55rem;
  }
}

@media (min-width: 1200px) {
  .splash-word {
    font-size: 9rem;
  }

  .splash-name {
    font-size: 6rem;
  }
}
