/* ================================================== */
/* Endura Systems — single-page site                    */
/* ================================================== */

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

:root {
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --paper: #f5f3ee;
  --paper-warm: #faf8f3;
  --bg: #ffffff;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-strong: rgba(0, 0, 0, 0.16);
  --rule-light: rgba(255, 255, 255, 0.12);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1480px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

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

body {
  margin: 0;
  position: relative;
  display: flow-root;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* ================================================== */
/* Tree-ring backdrop — sits behind header + hero      */
/* ================================================== */
.page-rings {
  position: absolute;
  top: 0;
  right: 0;
  width: min(800px, 65%);
  height: min(800px, 110vh);
  pointer-events: none;
  z-index: 0;
}
.page-rings svg { width: 100%; height: 100%; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--ink); color: var(--paper); }

/* ================================================== */
/* Eyebrow / section labels                             */
/* ================================================== */
.eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 2rem;
}
.eyebrow-rule {
  width: 40px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.6); }
.eyebrow-light .eyebrow-rule { background: rgba(255, 255, 255, 0.85); }

/* ================================================== */
/* Section primitives — used by every section          */
/* ================================================== */
.section {
  position: relative;
  padding: clamp(6rem, 12vh, 9rem) var(--gutter);
}
.section--paper { background: var(--paper-warm); border-top: 1px solid var(--rule); }
.section--ink { background: var(--ink); color: #fff; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 3rem;
  max-width: 22ch;
}
.section-title--light { color: #fff; }

.section-body {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}
.section-body--light { color: rgba(255, 255, 255, 0.78); }

/* ================================================== */
/* Header                                               */
/* ================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 16px;
  padding: 1.25rem var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, margin-top 0.25s ease;
}
.site-header.is-stuck {
  margin-top: 0;
  background: #ffffff;
  border-bottom-color: var(--rule);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { flex-shrink: 0; border-radius: 8px; }
.brand-wordmark {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 2.25rem;
}
.site-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  font-weight: 500;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ================================================== */
/* Hero                                                 */
/* ================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(6rem, 14vh, 11rem) var(--gutter) clamp(5rem, 10vh, 8rem);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
  max-width: 18ch;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 2rem;
}

/* ================================================== */
/* Approach                                             */
/* ================================================== */
.approach {
  padding: clamp(6rem, 12vh, 9rem) var(--gutter);
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
}

.approach-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.approach-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 4rem;
  max-width: 22ch;
}

.approach-body {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 70ch;
}
.approach-body h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin: 3rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.approach-body h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.approach-body p { color: #333; max-width: 65ch; }

/* ================================================== */
/* Principles                                           */
/* ================================================== */
.principles {
  padding: clamp(6rem, 12vh, 9rem) var(--gutter);
  background: var(--ink);
  color: #fff;
}

.principles-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.principles-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 4rem;
  max-width: 22ch;
  color: #fff;
}

.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.principles-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule-light);
  align-items: baseline;
}
.principles-list li:last-child { border-bottom: 1px solid var(--rule-light); }

.principle-num {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  padding-top: 0.5rem;
}
.principles-list h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: #fff;
}
.principles-list p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}

/* ================================================== */
/* Values                                               */
/* ================================================== */
.values {
  padding: clamp(6rem, 12vh, 9rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.values-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.values-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 4rem;
  max-width: 22ch;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.value {
  padding: 2.5rem 2.5rem 0 0;
  border-right: 1px solid var(--rule);
}
.value:last-child { border-right: none; padding-right: 0; }
.value:not(:first-child) { padding-left: 2.5rem; }

.value h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  line-height: 1;
}
.value-lede {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.value-detail {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
}

/* ================================================== */
/* Map                                                  */
/* ================================================== */
.map {
  position: relative;
  background: #141414;
  color: #fff;
  border-top: 1px solid var(--rule);
}
.map-canvas {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #141414;
}
.map-canvas svg {
  width: 100%;
  height: 100%;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.map-pin svg {
  width: clamp(36px, 4.2vw, 64px);
  height: clamp(36px, 4.2vw, 64px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6));
  border-radius: clamp(8px, 1vw, 14px);
}
.map-pin-label {
  background: #f5f3ee;
  color: var(--ink);
  font-size: clamp(9px, 0.85vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
}
.map-caption {
  padding: clamp(4rem, 8vh, 6rem) var(--gutter);
}
.map-caption-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.map-caption .eyebrow { margin-bottom: 2rem; }
.map-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 22ch;
  margin: 0;
}

/* ================================================== */
/* Contact                                              */
/* ================================================== */
.contact {
  padding: clamp(7rem, 14vh, 10rem) var(--gutter);
  text-align: left;
  border-top: 1px solid var(--rule);
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 1.75rem;
  max-width: 18ch;
}
.contact-lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 0 2.5rem;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.contact-email:hover { opacity: 0.65; transform: translateX(4px); }

/* ================================================== */
/* Footer                                               */
/* ================================================== */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vh, 6rem) var(--gutter) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto 4.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule-light);
}
.footer-brand svg { border-radius: 8px; }
.footer-statement {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40ch;
  margin: 0;
}
.footer-statement em { font-style: italic; font-weight: 500; }

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1.25rem;
}
.footer-col p, .footer-col li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-col p { margin: 0 0 0.75rem; }
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-col a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

/* ================================================== */
/* Responsive                                           */
/* ================================================== */
@media (max-width: 880px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .value {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 2rem 0 !important;
  }
  .value:last-child { border-bottom: none; }

  .principles-list li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .principle-num { padding-top: 0; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
  }
  .footer-statement {
    font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 720px) {
  .brand-wordmark { display: none; }
}

@media (max-width: 560px) {
  .site-header { padding: 1rem 1.25rem; }
  .site-nav { gap: 1.25rem; }
  .site-nav a { font-size: 13px; }
  .page-rings { width: 90%; }
  .footer-grid { grid-template-columns: 1fr; }
  .eyebrow-rule { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
