:root {
  --ink: #142028;
  --ink-soft: #3a4a55;
  --paper: #f3f6f8;
  --paper-deep: #e4ebef;
  --teal: #0f6a6a;
  --teal-deep: #0a4f4f;
  --copper: #c56a2d;
  --line: rgba(20, 32, 40, 0.12);
  --white: #ffffff;
  --header-h: 4.25rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 106, 106, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(197, 106, 45, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

h1,
h2,
h3,
.brand-mark,
.logo,
.footer-brand,
.step {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  margin: 0.35rem 0 1rem;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  margin: 0 0 1rem;
  max-width: 22ch;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-copy {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(243, 246, 248, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 248, 0.94);
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  margin-right: auto;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a,
.nav-cta {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-cta {
  display: none;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

body.nav-open .nav,
body.nav-open .nav-cta {
  display: flex;
}

body.nav-open .nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  flex-direction: column;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

body.nav-open .nav-cta {
  position: fixed;
  top: calc(var(--header-h) + 13.5rem);
  left: clamp(1.25rem, 4vw, 3rem);
}

@media (min-width: 860px) {
  .nav,
  .nav-cta {
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 28, 0.88) 0%, rgba(10, 22, 28, 0.55) 48%, rgba(10, 22, 28, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 22, 28, 0.72) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.brand-mark {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  margin: 0;
  color: #d8ecec;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.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.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: #a85622;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.about {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 40%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(20, 32, 40, 0.035) 47px,
      rgba(20, 32, 40, 0.035) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(20, 32, 40, 0.035) 47px,
      rgba(20, 32, 40, 0.035) 48px
    );
}

.capability-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .capability-list li {
    grid-template-columns: minmax(12rem, 0.45fr) 1fr;
    align-items: baseline;
    gap: 2rem;
  }

  .capability-list h3 {
    margin: 0;
  }

  .capability-list p {
    margin: 0;
  }
}

.capability-list p {
  color: var(--ink-soft);
}

.industries {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(15, 106, 106, 0.35), transparent 55%),
    radial-gradient(700px 420px at 100% 100%, rgba(197, 106, 45, 0.18), transparent 50%),
    linear-gradient(165deg, #0d171d 0%, #142830 48%, #0f1c22 100%);
  overflow: hidden;
}

.industries::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 71px,
      rgba(255, 255, 255, 0.035) 71px,
      rgba(255, 255, 255, 0.035) 72px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 71px,
      rgba(255, 255, 255, 0.035) 71px,
      rgba(255, 255, 255, 0.035) 72px
    );
  pointer-events: none;
}

.industries .section-inner {
  position: relative;
  z-index: 1;
}

.industries .eyebrow {
  color: #7ec8c8;
}

.industries .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.industries-intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.industry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.industry-grid li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: padding-left 0.35s var(--ease), background 0.35s var(--ease);
}

.industry-grid li:hover {
  padding-left: 0.5rem;
}

.industry-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--copper);
  padding-top: 0.35rem;
}

.industry-grid h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--white);
}

.industry-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  max-width: 36ch;
  font-size: 0.98rem;
}

@media (min-width: 800px) {
  .industry-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    border-top: 0;
  }

  .industry-grid li {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    padding: 1.6rem 0 1.5rem;
  }

  .industry-grid li:nth-child(-n + 2) {
    border-top: 0;
    padding-top: 0;
  }
}

.industry-grid li[data-reveal]:nth-child(1) { transition-delay: 0.04s; }
.industry-grid li[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.industry-grid li[data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.industry-grid li[data-reveal]:nth-child(4) { transition-delay: 0.16s; }
.industry-grid li[data-reveal]:nth-child(5) { transition-delay: 0.2s; }
.industry-grid li[data-reveal]:nth-child(6) { transition-delay: 0.24s; }
.industry-grid li[data-reveal]:nth-child(7) { transition-delay: 0.28s; }
.industry-grid li[data-reveal]:nth-child(8) { transition-delay: 0.32s; }

.approach {
  background: linear-gradient(180deg, rgba(15, 106, 106, 0.08), rgba(15, 106, 106, 0.02));
}

.process {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

.process li {
  display: grid;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 2px solid var(--teal);
}

.step {
  font-size: 0.95rem;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.process p {
  color: var(--ink-soft);
  margin: 0;
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact .eyebrow {
  color: #7ec8c8;
}

.contact .section-copy {
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-details a {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-details a:hover {
  border-bottom-color: var(--copper);
  color: #fff;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-mail a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-mail a:hover {
  border-bottom-color: var(--copper);
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 0.75rem 0.85rem;
  font: inherit;
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 0.35rem;
}

.site-footer {
  background: #0d161c;
  color: rgba(255, 255, 255, 0.7);
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.footer-brand {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.footer-legal {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  max-width: 42rem;
}

.footer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.92rem;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--white);
}

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero [data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}
.hero [data-reveal]:nth-child(2) {
  transition-delay: 0.18s;
}
.hero [data-reveal]:nth-child(3) {
  transition-delay: 0.3s;
}
.hero [data-reveal]:nth-child(4) {
  transition-delay: 0.42s;
}

.capability-list li[data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.capability-list li[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.capability-list li[data-reveal]:nth-child(3) { transition-delay: 0.15s; }
.capability-list li[data-reveal]:nth-child(4) { transition-delay: 0.2s; }
.capability-list li[data-reveal]:nth-child(5) { transition-delay: 0.25s; }
.capability-list li[data-reveal]:nth-child(6) { transition-delay: 0.3s; }
.capability-list li[data-reveal]:nth-child(7) { transition-delay: 0.35s; }

.process li[data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.process li[data-reveal]:nth-child(2) { transition-delay: 0.12s; }
.process li[data-reveal]:nth-child(3) { transition-delay: 0.19s; }
.process li[data-reveal]:nth-child(4) { transition-delay: 0.26s; }

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img {
    animation: none;
    transform: none;
  }
}
