/* ===== SELF-HOSTED FONTS ===== */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-roman-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-roman-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-roman-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}

/* ============================================
   MAUPIN MEDIA — HOMEPAGE V4.2
   Refinement of V4.1
   Focus: pacing, industries, process, mobile, portfolio
   ============================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds — luminance stacking */
  --bg-base: #0d1117;
  --bg-panel: #161b22;
  --bg-elevated: #1c232d;
  --bg-hover: #242c38;
  --bg-deepest: #080b0f;

  /* Text — near-white with teal undertone */
  --text-primary: #f0f5f4;
  --text-secondary: #8a9f9c;
  --text-tertiary: #7d8893;
  --text-quaternary: #5a6b6a;

  /* Accent — single chromatic color */
  --accent: #3d9b9b;
  --accent-hover: #4dbfbf;
  --accent-deep: #2a7a7a;
  --accent-glow: rgba(61, 155, 155, 0.15);
  --accent-glow-strong: rgba(61, 155, 155, 0.3);

  /* Borders — semi-transparent on dark */
  --border-standard: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(61, 155, 155, 0.3);

  /* Shadows — teal-tinted */
  --shadow-card: rgba(255, 255, 255, 0.08) 0px 0px 0px 1px,
                 rgba(0, 0, 0, 0.04) 0px 2px 4px,
                 rgba(0, 0, 0, 0.04) 0px 8px 16px -8px;
  --shadow-elevated: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px,
                     rgba(0, 0, 0, 0.1) 0px 4px 8px,
                     rgba(0, 0, 0, 0.06) 0px 16px 32px -8px;
  --shadow-far: rgba(20, 60, 55, 0.25) 0px 30px 60px -30px,
                rgba(0, 0, 0, 0.15) 0px 18px 36px -18px;

  /* Radii */
  --radius-button: 9999px;
  --radius-card: 8px;
  --radius-panel: 12px;
  --radius-input: 6px;

  /* Fonts */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 100px;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0, 0, 1, 1);
  --transition-base: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv01", "ss03";
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: var(--bg-base);
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
  color: var(--bg-base);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.text-accent {
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition-base);
}

.text-link:hover {
  color: var(--accent-hover);
}

/* ===== SECTION VARIATIONS — Visual rhythm through varied backgrounds ===== */
.section-why {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-panel) 100%);
}

.section-industries {
  background: var(--bg-panel);
}

.section-work {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-base) 100%);
}

/* V4.2: Process gets darker background for visual variety and journey feel */
.section-process {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deepest) 50%, var(--bg-base) 100%);
}

.section-pricing {
  background: var(--bg-panel);
}

.pricing-context {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-context-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* V4.2: Covenant — tightened, contained, intentional structure (no empty void) */
.section-covenant {
  background: linear-gradient(180deg, var(--bg-panel) 0%, #0f1419 100%);
  border-top: 1px solid var(--border-subtle);
  padding-top: 72px;
  padding-bottom: 64px;
}

.section-contact {
  background: linear-gradient(180deg, #0f1419 0%, var(--bg-deepest) 100%);
  padding-top: 72px;
  padding-bottom: 64px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  max-width: 700px;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: 0 0 20px rgba(61, 155, 155, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-base);
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(61, 155, 155, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-standard);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

/* ===== NAVIGATION ===== */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 17, 23, 0.72);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav-header.scrolled {
  background: rgba(13, 17, 23, 0.92);
  box-shadow: 0 1px 0 var(--border-standard);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-base);
}

.nav-logo:hover {
  opacity: 0.85;
  color: var(--text-primary);
}

.nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ===== FOOTER ===== */
.footer {
  background: var(--bg-deepest);
  border-top: 1px solid var(--border-standard);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-contact-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-contact-link:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-sdg {
  font-family: var(--font-heading);
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ===== REVEAL ANIMATIONS (Progressive Enhancement) ===== */
/* Content visible by default. JS adds .js-enabled, then reveal styles apply. */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-enabled .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within groups */
.js-enabled .why-supporting .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .why-supporting .reveal:nth-child(2) { transition-delay: 0.15s; }
.js-enabled .why-supporting .reveal:nth-child(3) { transition-delay: 0.25s; }

.js-enabled .covenant-promises .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .covenant-promises .reveal:nth-child(2) { transition-delay: 0.2s; }
.js-enabled .covenant-promises .reveal:nth-child(3) { transition-delay: 0.35s; }

.js-enabled .process-steps .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .process-steps .reveal:nth-child(2) { transition-delay: 0.15s; }
.js-enabled .process-steps .reveal:nth-child(3) { transition-delay: 0.25s; }
.js-enabled .process-steps .reveal:nth-child(4) { transition-delay: 0.35s; }

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-panel);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin: 16px 0 0;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-eyebrow-dot {
    animation: none;
  }
}

/* ===== PRINT ===== */
@media print {
  .nav-header,
  .nav-toggle,
  .skip-link {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    background: white !important;
  }
}

/* ===== NOSCRIPT FALLBACK ===== */
/* When JS is disabled, nav should be visible on mobile */
@media (max-width: 768px) {
  .no-js .nav-links {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    flex-direction: column;
    padding: 16px 0;
    box-shadow: none;
  }
  
  .no-js .nav-toggle {
    display: none;
  }
}