:root {
  --ink: #0F2A2E;
  --teal: #0E5C56;
  --teal-dark: #0A4440;
  --mint: #3FBFAD;
  --sun: #F5B942;
  --cloud: #F7FAF9;
  --paper: #FFFFFF;
  --slate: #55696A;
  --line: #DCE6E4;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(15, 42, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 42, 46, 0.12);

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.2vw + 1rem, 4rem); }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }

p { margin: 0 0 1em; color: var(--slate); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sun);
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.section-tight { padding: 48px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
}

.btn-sun:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--mint) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 10px;
  background: rgba(255, 255, 255, 0.55);
  top: 30%;
  left: -50%;
  transform: rotate(-30deg);
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 100px;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(14, 92, 86, 0.09);
  color: var(--teal);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sweep divider - signature element */
.sweep {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--mint) 45%, var(--sun) 100%);
  background-size: 220% 100%;
  animation: sweep-shift 6s ease-in-out infinite;
}

@keyframes sweep-shift {
  0% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* Hero */
.hero {
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 span {
  background: linear-gradient(90deg, var(--teal), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--teal);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--slate);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--teal) 0%, var(--teal-dark) 100%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(63,191,173,0.35), transparent 45%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 180%;
  height: 60px;
  background: rgba(255, 255, 255, 0.14);
  top: 22%;
  left: -40%;
  transform: rotate(-18deg);
  animation: streak 4.5s ease-in-out infinite;
}

@keyframes streak {
  0%, 100% { transform: rotate(-18deg) translateX(0); opacity: 0.6; }
  50% { transform: rotate(-18deg) translateX(60px); opacity: 1; }
}

.hero-visual-label {
  position: absolute;
  bottom: 26px;
  left: 26px;
  right: 26px;
  color: #fff;
}

.hero-visual-label .eyebrow { color: var(--sun); }
.hero-visual-label .eyebrow::before { background: #fff; }
.hero-visual-label p { color: rgba(255,255,255,0.82); margin: 0; }

/* Service cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(63,191,173,0.16) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: 120% 0;
  transition: background-position 0.6s ease;
  pointer-events: none;
}

.card:hover::before {
  background-position: -20% 0;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(14, 92, 86, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

/* Section headers */
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Band / alt background sections */
.band {
  background: var(--ink);
  color: #fff;
}

.band .eyebrow { color: var(--sun); }
.band .eyebrow::before { background: var(--mint); }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.72); }

.band-soft {
  background: linear-gradient(180deg, rgba(63,191,173,0.08), transparent);
}

/* Team */
.team-card {
  text-align: center;
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.avatar span { position: relative; z-index: 2; font-size: 2.6rem; }

.avatar::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 40px;
  background: rgba(255,255,255,0.18);
  top: 30%;
  left: -50%;
  transform: rotate(-22deg);
}

.avatar-1 { background: linear-gradient(150deg, var(--teal), var(--teal-dark)); }
.avatar-2 { background: linear-gradient(150deg, var(--mint), var(--teal)); }
.avatar-3 { background: linear-gradient(150deg, var(--sun), #d99a2b); }

.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 6px;
  display: block;
}

/* Timeline (about) */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  padding-left: 28px;
  margin-left: 6px;
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--cloud);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-item h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

/* Forms */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .form-card { padding: 26px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.field .req { color: var(--sun); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cloud);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 92, 86, 0.14);
}

.field small.hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--slate);
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 16px;
}

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.show { display: block; }

.form-status.success {
  background: rgba(63, 191, 173, 0.14);
  border: 1px solid var(--mint);
  color: var(--teal-dark);
}

.form-status.error {
  background: rgba(217, 90, 60, 0.1);
  border: 1px solid #d95a3c;
  color: #a8402a;
}

/* Contact info list */
.info-list {
  display: grid;
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(14, 92, 86, 0.09);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.info-item p { margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

@media (max-width: 640px) {
  .cta-band { padding: 34px 26px; text-align: center; justify-content: center; }
}

/* Legal pages */
.legal-content h2 {
  margin-top: 2em;
  font-size: 1.4rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content ul { color: var(--slate); padding-left: 1.2em; }
.legal-content li { margin-bottom: 0.5em; }

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 40px;
}

/* Breadcrumb / page header */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow { margin-bottom: 14px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 320px; margin-top: 14px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.84rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(245, 185, 66, 0.18);
  color: #9a6b0f;
  margin-bottom: 14px;
}

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

/* ===== SPA-specific ===== */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

#app {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#app.view-enter {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  #app { transition: none; }
  #app.view-enter { opacity: 1; transform: none; }
}

#app:focus { outline: none; }

.route-loading {
  padding: 140px 0;
  text-align: center;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.not-found {
  padding: 110px 0;
  text-align: center;
}

.not-found .not-found-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--mint);
  display: block;
  margin-bottom: 10px;
}

.main-nav a[aria-current="page"] {
  background: rgba(14, 92, 86, 0.09);
  color: var(--teal);
}
