:root {
  --ink: #13262c;
  --ink-soft: #3d5560;
  --mist: #eef7f8;
  --foam: #f7fbfc;
  --teal-deep: #0b5f6b;
  --teal: #147a88;
  --teal-bright: #1f9bab;
  --sand: #c9b39a;
  --line: rgba(19, 38, 44, 0.12);
  --header-h: 4.5rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 155, 171, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(201, 179, 154, 0.18), transparent 50%),
    linear-gradient(180deg, var(--foam) 0%, var(--mist) 45%, #e5f1f3 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.85rem 1.5rem;
  background: rgba(247, 251, 252, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 251, 252, 0.92);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--teal-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--teal-deep);
  color: var(--teal-deep) !important;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  background: var(--teal-deep);
  color: var(--foam) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--foam);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease-out) forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 34, 0.35) 0%, rgba(8, 28, 34, 0.2) 40%, rgba(8, 28, 34, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 28, 34, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 40rem);
  margin: 0 auto 0 0;
  padding: calc(var(--header-h) + 4rem) 1.5rem 4.5rem;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  color: #f4fbfc;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  max-width: 14ch;
  margin-bottom: 1rem;
  color: rgba(247, 251, 252, 0.95);
}

.hero-lead {
  max-width: 34ch;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(247, 251, 252, 0.86);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease-out) forwards;
}

.reveal.delay-1 {
  animation-delay: 0.15s;
}

.reveal.delay-2 {
  animation-delay: 0.3s;
}

.reveal.delay-3 {
  animation-delay: 0.45s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  to {
    transform: scale(1);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--foam);
  border-color: var(--teal-deep);
}

.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--foam);
}

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border-color: rgba(247, 251, 252, 0.55);
}

.btn-ghost:hover {
  background: rgba(247, 251, 252, 0.12);
  color: var(--foam);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2.75rem;
}

/* Process */
.process {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 20%, rgba(255, 255, 255, 0.55) 80%, transparent);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  counter-reset: none;
}

.process-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.process-step p {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 28ch;
}

/* Systems */
.systems-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.system-feature {
  display: grid;
  gap: 1.25rem;
}

.system-image {
  margin: 0;
  overflow: hidden;
  min-height: 22rem;
}

.system-image img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.system-feature:hover .system-image img {
  transform: scale(1.03);
}

.system-copy h3,
.system-item h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.system-copy p,
.system-item p {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 36ch;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--teal-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  color: var(--teal-bright);
}

.system-stack {
  display: grid;
  gap: 1.25rem;
}

.system-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-stack .system-item + .system-item {
  border-top: 0;
}

/* Promise */
.promise {
  background:
    linear-gradient(135deg, rgba(11, 95, 107, 0.94), rgba(20, 122, 136, 0.9)),
    url("https://images.unsplash.com/photo-1505118380757-91f5f5632de0?auto=format&fit=crop&w=1800&q=70")
      center / cover;
  color: var(--foam);
}

.promise .eyebrow {
  color: var(--sand);
}

.promise-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.promise-copy h2 {
  color: var(--foam);
}

.promise-copy p:last-child {
  max-width: 38ch;
  font-weight: 300;
  color: rgba(247, 251, 252, 0.88);
}

.promise-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.promise-points li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 251, 252, 0.22);
}

.promise-points strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.promise-points span {
  font-weight: 300;
  color: rgba(247, 251, 252, 0.8);
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  margin-top: 1.75rem;
  font-style: normal;
  display: grid;
  gap: 1.15rem;
  color: var(--ink-soft);
}

.contact-details a {
  color: var(--teal-deep);
  font-weight: 500;
}

.contact-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(20, 122, 136, 0.35);
  outline-offset: 1px;
  border-color: var(--teal);
  background: #fff;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.form-status {
  font-size: 0.9rem;
  color: var(--teal-deep);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.5rem;
}

.footer-inner p {
  color: var(--ink-soft);
  font-weight: 300;
}

.footer-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .process-list,
  .systems-layout,
  .promise-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .system-image,
  .system-image img {
    min-height: 16rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    z-index: 50;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(247, 251, 252, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink);
  }

  .nav-cta {
    border: 0;
    padding: 0;
  }

  .nav-cta:hover {
    background: transparent;
    color: var(--teal-deep) !important;
  }

  .hero-content {
    padding-bottom: 3.25rem;
  }

  .brand-mark {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .process-list {
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-media img,
  .process-step {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
