:root {
  color-scheme: light;
  --ink: #111315;
  --muted: #62676d;
  --line: rgba(17, 19, 21, 0.12);
  --paper: #f7f5ef;
  --white: #ffffff;
  --teal: #0f766e;
  --gold: #c4923f;
  --shadow: 0 28px 80px rgba(17, 19, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(15, 118, 110, 0.11), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(196, 146, 63, 0.16), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.arrow-field {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.arrow-field span {
  --arrow-size: 2.6rem;
  --arrow-delay: 0s;
  --arrow-duration: 18s;
  animation: arrow-rise var(--arrow-duration) linear infinite;
  animation-delay: var(--arrow-delay);
  border-right: 2px solid rgba(17, 19, 21, 0.16);
  border-top: 2px solid rgba(17, 19, 21, 0.16);
  height: var(--arrow-size);
  left: var(--arrow-left);
  opacity: 0;
  position: absolute;
  top: 110%;
  transform: rotate(-45deg);
  width: var(--arrow-size);
}

.arrow-field span::before {
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.22));
  content: "";
  height: 2px;
  position: absolute;
  right: -0.15rem;
  top: -1px;
  transform: rotate(-45deg);
  transform-origin: right center;
  width: calc(var(--arrow-size) * 2.5);
}

.arrow-field span:nth-child(1) {
  --arrow-left: 8%;
  --arrow-delay: -2s;
  --arrow-duration: 21s;
}

.arrow-field span:nth-child(2) {
  --arrow-left: 22%;
  --arrow-delay: -13s;
  --arrow-duration: 24s;
  --arrow-size: 1.8rem;
}

.arrow-field span:nth-child(3) {
  --arrow-left: 38%;
  --arrow-delay: -7s;
  --arrow-duration: 19s;
  --arrow-size: 2.2rem;
}

.arrow-field span:nth-child(4) {
  --arrow-left: 54%;
  --arrow-delay: -16s;
  --arrow-duration: 25s;
  --arrow-size: 3rem;
}

.arrow-field span:nth-child(5) {
  --arrow-left: 69%;
  --arrow-delay: -5s;
  --arrow-duration: 22s;
  --arrow-size: 1.7rem;
}

.arrow-field span:nth-child(6) {
  --arrow-left: 82%;
  --arrow-delay: -11s;
  --arrow-duration: 20s;
  --arrow-size: 2.5rem;
}

.arrow-field span:nth-child(7) {
  --arrow-left: 93%;
  --arrow-delay: -18s;
  --arrow-duration: 27s;
  --arrow-size: 2rem;
}

.arrow-field span:nth-child(8) {
  --arrow-left: 14%;
  --arrow-delay: -23s;
  --arrow-duration: 28s;
  --arrow-size: 3.2rem;
}

.nav,
main {
  position: relative;
  z-index: 1;
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  left: 50%;
  max-width: 1120px;
  padding: 0.55rem 0.75rem;
  position: fixed;
  top: 1rem;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 20;
}

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

.brand {
  gap: 0.65rem;
  font-weight: 800;
}

.brand img {
  border-radius: 50%;
  height: 2.3rem;
  object-fit: cover;
  width: 2.3rem;
}

.nav nav {
  gap: 0.25rem;
}

.nav nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.7rem 0.95rem;
  transition: background 220ms ease, color 220ms ease;
}

.nav nav a:hover {
  background: rgba(17, 19, 21, 0.06);
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.78fr);
  min-height: 92vh;
  padding: 8rem max(1.25rem, calc((100vw - 1120px) / 2)) 4rem;
}

.hero-copy {
  max-width: 47rem;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 1.15rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.3rem, 8vw, 7rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 1.35rem;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  max-width: 40rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.2rem;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

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

.button.primary {
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(17, 19, 21, 0.2);
  color: var(--white);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.brand-stage {
  aspect-ratio: 1;
  min-height: 20rem;
  position: relative;
}

.halo {
  animation: breathe 7s ease-in-out infinite;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(196, 146, 63, 0.18)),
    var(--white);
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 50%;
  filter: blur(0.1px);
  inset: 7%;
  position: absolute;
}

.logo-card {
  align-items: center;
  animation: float 5.5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  inset: 17%;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.logo-card img {
  border-radius: 1.4rem;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.signal-grid {
  animation: drift 12s linear infinite;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
  position: absolute;
  right: 1rem;
  top: 4rem;
  width: 7rem;
}

.signal-grid span {
  aspect-ratio: 1;
  border: 1px solid rgba(17, 19, 21, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.5);
}

.proof-strip,
.section,
.cta {
  margin-inline: auto;
  max-width: 1120px;
  width: calc(100% - 2.5rem);
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.4rem 0;
}

.proof-strip div {
  display: grid;
  gap: 0.3rem;
}

.proof-strip strong {
  font-size: 0.95rem;
}

.proof-strip span,
.service-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 7rem 0 0;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.82fr) minmax(14rem, 0.45fr);
  margin-bottom: 2.2rem;
}

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 18rem;
  padding: 1.35rem;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 54px rgba(17, 19, 21, 0.1);
  transform: translateY(-5px);
}

.service-card span,
.timeline span {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 3.5rem;
  text-transform: uppercase;
}

.timeline {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.timeline div {
  border-right: 1px solid var(--line);
  min-height: 17rem;
  padding: 1.4rem 1.2rem 0 0;
}

.timeline div:last-child {
  border-right: 0;
}

.cta {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  margin-top: 7rem;
  min-height: 20rem;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3rem);
  position: relative;
}

.cta::after {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.65), rgba(196, 146, 63, 0.46));
  content: "";
  height: 24rem;
  position: absolute;
  right: -8rem;
  top: -9rem;
  transform: rotate(20deg);
  width: 18rem;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  max-width: 11ch;
}

.cta .eyebrow {
  color: #7fd1c9;
}

.cta .button.primary {
  background: var(--white);
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav[data-reveal] {
  transform: translateX(-50%) translateY(22px);
}

.nav[data-reveal].is-visible {
  transform: translateX(-50%) translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-16px, 20px, 0) rotate(360deg);
  }
}

@keyframes arrow-rise {
  0% {
    opacity: 0;
    transform: translate3d(-2rem, 3rem, 0) rotate(-45deg) scale(0.9);
  }
  12% {
    opacity: 0.46;
  }
  76% {
    opacity: 0.26;
  }
  100% {
    opacity: 0;
    transform: translate3d(3.5rem, -125vh, 0) rotate(-45deg) scale(1.08);
  }
}

@media (max-width: 840px) {
  .nav nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 7rem;
  }

  h1 {
    max-width: 9ch;
  }

  .brand-stage {
    min-height: 18rem;
    order: -1;
  }

  .proof-strip,
  .service-grid,
  .timeline,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .timeline div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: auto;
    padding-bottom: 1.2rem;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .brand-stage {
    min-height: 15rem;
  }

  .logo-card {
    border-radius: 1.3rem;
    inset: 13%;
  }
}

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