:root {
  --bg: #07110d;
  --bg-2: #0c1a14;
  --bg-3: #12231b;
  --ink: #f4f7f2;
  --muted: #9aada1;
  --line: rgba(244, 247, 242, 0.12);
  --accent: #2fe08a;
  --accent-ink: #04150c;
  --warm: #f0d9b0;
  --shell: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Instrument Sans", sans-serif;
  --serif: "Instrument Serif", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.display {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 12ch;
}

.display em,
.hero h1 em {
  font-style: italic;
  color: var(--warm);
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34ch;
  line-height: 1.6;
}

.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
}

.btn-primary:hover {
  background: #59eba4;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: rgba(7, 17, 13, 0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(244, 247, 242, 0.35);
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.text-link:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 1rem 0;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 17, 13, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a:not(.btn) {
  color: rgba(244, 247, 242, 0.78);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-links.is-open {
  display: flex;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1rem;
  left: 1rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(12, 26, 20, 0.96);
  border: 1px solid var(--line);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
}

.nav-links.is-open a {
  padding: 0.75rem;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-links,
  .nav-links.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: none;
    border: 0;
  }

  .nav-links.is-open a {
    padding: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero.jpg") right 20% center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 8s var(--ease) both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.94) 0%, rgba(7, 17, 13, 0.82) 34%, rgba(7, 17, 13, 0.35) 58%, transparent 78%),
    linear-gradient(180deg, rgba(7, 17, 13, 0.45) 0%, transparent 28%, rgba(7, 17, 13, 0.55) 100%),
    radial-gradient(ellipse 40% 45% at 78% 40%, rgba(47, 224, 138, 0.14), transparent 60%);
}

.hero-inner {
  width: min(100% - 2rem, var(--shell));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
}

.hero-copy {
  max-width: 34rem;
  text-align: left;
}

.hero-brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin-bottom: 1rem;
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 18ch;
  margin-bottom: 0.9rem;
}

.hero-lead {
  color: rgba(244, 247, 242, 0.78);
  max-width: 32ch;
  margin-bottom: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scroll-cue {
  position: absolute;
  right: 1.5rem;
  bottom: 1.75rem;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  animation: floatY 2.4s ease-in-out infinite;
}

@media (max-width: 720px) {
  .hero {
    align-items: end;
  }

  .hero-media {
    background-position: 70% center;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(7, 17, 13, 0.2) 0%, rgba(7, 17, 13, 0.55) 35%, rgba(7, 17, 13, 0.96) 72%),
      linear-gradient(90deg, rgba(7, 17, 13, 0.7), transparent 70%);
  }

  .hero-inner {
    padding: 5.5rem 0 3.25rem;
  }

  .scroll-cue {
    display: none;
  }
}

/* Promise */
.promise {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(47, 224, 138, 0.08), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.promise-grid {
  display: grid;
  gap: 2rem;
}

.promise .display {
  max-width: 16ch;
}

.promise-rail {
  display: grid;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.promise-rail div {
  display: grid;
  gap: 0.35rem;
}

.promise-rail strong {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.promise-rail span {
  color: var(--muted);
  font-size: 1.05rem;
}

@media (min-width: 800px) {
  .promise-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Services */
.services {
  padding: 5.5rem 0 5rem;
  background: var(--bg-2);
}

.services-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.services-head .display {
  max-width: 14ch;
}

@media (min-width: 900px) {
  .services-head {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

.service-board {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  gap: 0.55rem 1.25rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.3s var(--ease);
}

.service:hover {
  padding-left: 0.5rem;
}

.service-index {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1;
}

.service h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.service p {
  color: var(--muted);
  max-width: 48ch;
  font-size: 0.98rem;
}

@media (min-width: 800px) {
  .service {
    grid-template-columns: 3.25rem 0.85fr 1.35fr;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.65rem 0;
  }

  .service h3 {
    font-size: 1.5rem;
  }

  .service p {
    margin: 0;
  }
}

/* System */
.system {
  padding: 6rem 0;
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg)),
    var(--bg);
  border-block: 1px solid var(--line);
}

.system-head {
  margin-bottom: 2.75rem;
  display: grid;
  gap: 1rem;
}

.flow-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

.flow-title span:not(.flow-arrow) {
  color: var(--ink);
}

.flow-arrow {
  color: var(--accent);
  font-size: 0.85em;
  padding: 0 0.15rem;
}

.system-head .lede {
  max-width: 42ch;
}

.system-track {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .system-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .phase + .phase {
    border-left: 1px solid var(--line);
  }
}

.phase {
  padding: 1.75rem 0 0;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: auto;
}

@media (min-width: 860px) {
  .phase {
    padding: 1.75rem 1.5rem 0;
  }

  .phase:first-child {
    padding-left: 0;
  }

  .phase:last-child {
    padding-right: 0;
  }
}

.phase-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.phase-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.phase-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  white-space: nowrap;
}

.phase h3 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-top: 0.25rem;
}

.phase p {
  color: var(--muted);
  max-width: 30ch;
  font-size: 0.98rem;
}

@media (max-width: 859px) {
  .phase {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-title {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    gap: 0.35rem;
  }
}

/* About */
.about {
  display: grid;
  min-height: 70svh;
}

.about-media {
  min-height: 340px;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
  transform: scale(1.04);
}

.about-copy {
  padding: 3.5rem 1.5rem;
  background: var(--bg);
  display: grid;
  align-content: center;
}

.about-copy .display {
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.about-copy p {
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 0.9rem;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .about-media,
  .about-media img {
    min-height: 100%;
  }

  .about-copy {
    padding: 4.5rem 3.5rem;
  }
}

/* Contact */
.contact {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(47, 224, 138, 0.1), transparent 55%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.contact-wrap {
  display: grid;
  gap: 2.5rem;
}

.contact-wrap .display {
  max-width: 12ch;
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-block {
  background: var(--bg);
  padding: 1.75rem 1.4rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 180px;
  transition: background 0.3s ease;
}

a.contact-block:hover {
  background: #0f1f18;
}

.contact-block span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.contact-block strong {
  font-weight: 550;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.contact-block .btn {
  margin-top: 0.5rem;
  justify-self: start;
}

/* Inner pages */
.page-hero {
  padding: 9rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 45% 55% at 90% 0%, rgba(47, 224, 138, 0.12), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 42ch;
}

.legal {
  padding: 3.5rem 0 5rem;
}

.legal article {
  max-width: 720px;
  display: grid;
  gap: 1.6rem;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.legal a {
  color: var(--accent);
}

.contact-panel {
  margin-top: 2rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .contact-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-panel > div {
  background: var(--bg-2);
  padding: 1.5rem;
}

.contact-panel h3 {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.contact-panel p,
.contact-panel address {
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: #050c09;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer .logo {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer address,
.site-footer a,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer address {
  margin-top: 1rem;
  max-width: 34ch;
  line-height: 1.55;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer h4 {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-media,
  .scroll-cue {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
