:root {
  --teal: #14967d;
  --teal-bright: #2cc4a4;
  --teal-dark: #0f7a65;
  --green: #175953;
  --bg: #08090a;
  --surface: #101214;
  --surface-2: #15181b;
  --text: #ecefee;
  --muted: #98a2a0;
  --faint: #5f6866;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-bright); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(44, 196, 164, 0.3); color: #fff; }

:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 9, 10, 0.88);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.brand img { display: block; }

.site-header nav { display: flex; align-items: center; gap: 28px; }

.site-header nav a {
  position: relative;
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

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

.site-header nav a.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.site-header nav a.nav-cta:hover { border-color: var(--teal-bright); background: rgba(44, 196, 164, 0.08); }

/* ---------- Layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

section + section { border-top: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero-wrap {
  position: relative;
  isolation: isolate;
}

.hero-wrap::before {                /* faint grid that fades out toward the edges */
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
  padding: 104px 0 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #a9b3b1);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 40px;
  max-width: 470px;
  font-size: 1.08rem;
  color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; }

.hero-art::before {                 /* brand glow behind the image */
  content: "";
  position: absolute;
  inset: 5% 0;
  background: radial-gradient(closest-side, rgba(20, 150, 125, 0.35), transparent);
  filter: blur(40px);
  z-index: -1;
}

/* "Engraved" look: invert the white-background illustration so the white turns black
   and blends away (screen), desaturate it into a faint etched relief, and fade the edges */
.hero-frame img {
  display: block;
  width: 100%;
  filter: invert(1) hue-rotate(180deg) grayscale(0.55) contrast(1.15) brightness(0.9);
  mix-blend-mode: screen;
  opacity: 0.65;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 45%, transparent 100%);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  background: #17a88c;
  border-color: #17a88c;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 30px -6px rgba(20, 150, 125, 0.55);
}

.button .arrow { transition: transform 0.2s; }
.button:hover .arrow { transform: translateX(3px); }

.button.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: none;
}

.button.ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }

/* ---------- Sections ---------- */
.section-head { margin-bottom: 48px; }

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

#about .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0 48px;
  align-items: center;              /* paragraph lines up with the heading, not the label above it */
}

#about .eyebrow { grid-column: 1 / -1; }
#about .about-grid > p:not(.eyebrow) { margin: 0; font-size: 1.08rem; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cards article {
  position: relative;
  padding: 36px 32px 40px;
  background: var(--surface);
}

/* once a card has finished fading in (.settled), switch to quick hover transitions */
.cards article.settled { transition: background 0.3s; transition-delay: 0ms; }
.cards article.settled:hover { background: var(--surface-2); }

.cards article::before {            /* teal line that grows in on hover */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-bright), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cards article:hover::before { transform: scaleX(1); }

.card-num {
  display: block;
  margin-bottom: 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.cards h3 { margin: 0 0 10px; font-size: 1.12rem; font-weight: 600; color: var(--text); }
.cards p { margin: 0; color: var(--muted); }

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 50%; top: -60%;
  width: 720px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20, 150, 125, 0.28), transparent);
  pointer-events: none;
}

.contact-card > * { position: relative; }
.contact-card .eyebrow { justify-content: center; }
.contact-card h2 { margin-bottom: 16px; }
.contact-card p { max-width: 460px; margin: 0 auto 32px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  color: var(--faint);
  border-top: 1px solid var(--border);
}

.site-footer img { display: block; }
.site-footer p { margin: 0; font-size: 0.84rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 72px; }
  .hero-art { order: -1; }
  #about .about-grid { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 72px 0; }
  .site-header nav { gap: 20px; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .site-header nav a:not(.nav-cta) { display: none; }
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .button, .cards article, .cards article::before { transition: none; }
}
