/* AltaPath Inc — site styles
   Brand: Deep Teal #134E4A · Light Teal #5EEAD4 · Off-White #F8FAFC · Charcoal #111827
   Type:  Inter (UI/headings/body) · Source Serif 4 (editorial) · JetBrains Mono (data/labels)
   Locked: editorial / dark hero / subtle hex motif / compact density
*/

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --teal-900: #134E4A;
  --teal-800: #155E58;
  --teal-700: #1F7A73;
  --teal-300: #5EEAD4;
  --teal-50:  #ECFDF7;

  --off-white: #F8FAFC;
  --bone:      #F2EFE8;
  --paper:     #FAFAF7;
  --charcoal:  #111827;

  --ink-70:  rgba(17, 24, 39, 0.70);
  --ink-55:  rgba(17, 24, 39, 0.55);
  --ink-40:  rgba(17, 24, 39, 0.40);
  --ink-15:  rgba(17, 24, 39, 0.15);
  --ink-08:  rgba(17, 24, 39, 0.08);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", Consolas, "Courier New", monospace;

  --container: 1240px;
  --gutter: 32px;

  /* Density — compact (locked default) */
  --section-y: 88px;
  --row-gap: 20px;
}

/* Density overrides (in case query string / future expansion) */
[data-density="regular"] { --section-y: 120px; --row-gap: 28px; }
[data-density="comfy"]   { --section-y: 152px; --row-gap: 36px; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p  { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }

/* ── Layout primitives ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section--bone  { background: var(--bone); }
.section--paper { background: var(--paper); }
.section--ink   { background: var(--teal-900); color: var(--off-white); }

.section--ink .eyebrow,
.section--ink .text-muted { color: rgba(248, 250, 252, 0.72); }

/* Make section content sit above bg-hex-tile */
.section > .container { position: relative; z-index: 1; }

/* ── Type system ───────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-900);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section--ink .eyebrow { color: var(--teal-300); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  color: var(--teal-900);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--off-white); }

h1 { font-size: clamp(40px, 5.6vw, 76px);  font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 50px); }
h3 { font-size: clamp(20px, 1.8vw, 24px);  font-weight: 600; }

.serif    { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 56ch;
}
.section--ink .lede  { color: rgba(248, 250, 252, 0.78); }
.hero--dark   .lede  { color: rgba(248, 250, 252, 0.82); }

.text-muted { color: var(--ink-55); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  background: transparent;
  color: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--teal-900);
  color: var(--off-white);
  border-color: var(--teal-900);
}
.btn--primary:hover { background: #0F3F3C; border-color: #0F3F3C; }

.btn--ghost {
  background: transparent;
  color: var(--teal-900);
  border-color: var(--ink-15);
}
.btn--ghost:hover { border-color: var(--teal-900); background: rgba(19, 78, 74, 0.04); }

.section--ink .btn--primary {
  background: var(--teal-300);
  color: var(--teal-900);
  border-color: var(--teal-300);
}
.section--ink .btn--primary:hover { background: #84F1DE; border-color: #84F1DE; }
.section--ink .btn--ghost {
  color: var(--off-white);
  border-color: rgba(248, 250, 252, 0.25);
}
.section--ink .btn--ghost:hover {
  border-color: var(--teal-300);
  background: rgba(94, 234, 212, 0.06);
}

/* Buttons in dark hero */
.hero--dark .btn--ghost {
  color: var(--off-white);
  border-color: rgba(248, 250, 252, 0.28);
}
.hero--dark .btn--ghost:hover {
  border-color: var(--teal-300);
  background: rgba(94, 234, 212, 0.06);
}
.hero--dark .btn--primary {
  background: var(--teal-300);
  color: var(--teal-900);
  border-color: var(--teal-300);
}
.hero--dark .btn--primary:hover { background: #84F1DE; border-color: #84F1DE; }

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ink-08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__logo {
  height: 44px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70);
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--teal-900); }

@media (max-width: 800px) {
  .nav__links { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
}
.hero--light { background: var(--off-white); }
.hero--dark  { background: var(--teal-900); color: var(--off-white); }
.hero--dark h1,
.hero--dark h2,
.hero--dark h3 { color: var(--off-white); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
}

.hero__title {
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--teal-900);
  margin-top: 28px;
}
.hero--dark .hero__title { color: var(--off-white); }

.hero__title em.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-700);
  letter-spacing: -0.02em;
}
.hero--dark .hero__title em.serif { color: var(--teal-300); }

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 6px;
}

.hero__cta {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Hex backdrop */
.hero__hex {
  position: absolute;
  right: -120px;
  top: -100px;
  width: 720px;
  height: 720px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero__hex--subtle { opacity: 0.10; }
.hero__hex--strong { opacity: 0.18; }
.hero--dark .hero__hex--subtle { opacity: 0.08; }
.hero--dark .hero__hex--strong { opacity: 0.14; }

/* ── Facts strip ────────────────────────────────────────────────────── */
.facts {
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
  background: var(--paper);
}
.facts__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.facts__cell {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--ink-08);
}
.facts__cell:last-child  { border-right: none; padding-right: 0; }
.facts__cell:first-child { padding-left: 0; }
.facts__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 10px;
}
.facts__value {
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--teal-900);
  line-height: 1.2;
}
@media (max-width: 800px) {
  .facts__row { grid-template-columns: repeat(2, 1fr); }
  .facts__cell { border-right: none; border-bottom: 1px solid var(--ink-08); }
  .facts__cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── Section header ─────────────────────────────────────────────────── */
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 64px;
  margin-bottom: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}
.section__head .eyebrow { margin-bottom: 14px; }
.section__head h2       { margin-bottom: 0; }
.section__head .lede    { padding-top: 6px; }

/* ── Platform ───────────────────────────────────────────────────────── */
.platform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .platform__grid { grid-template-columns: 1fr; gap: 36px; }
}

.platform__copy p {
  color: var(--ink-70);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 60ch;
}
.platform__copy p:last-child { margin-bottom: 0; }
.platform__copy p strong     { color: var(--teal-900); font-weight: 600; }

.platform__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.platform__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.platform__placeholder {
  border: 1px solid var(--ink-15);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(19, 78, 74, 0.06) 12px 13px),
    var(--paper);
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
}
.platform__placeholder__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  background: var(--off-white);
  padding: 6px 10px;
  border: 1px solid var(--ink-15);
}

.subsidiary-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--teal-300);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.55;
  max-width: 60ch;
}

/* ── Approach pillars ───────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-08);
  border: 1px solid var(--ink-08);
}
.pillar {
  background: var(--bone);
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}
.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-55);
}
.pillar h3  { margin-top: 4px; }
.pillar p   { color: var(--ink-70); font-size: 15px; line-height: 1.55; }
.pillar__hex { margin-top: auto; padding-top: 20px; }

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

/* ── Audiences ──────────────────────────────────────────────────────── */
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
}
.audiences > * {
  padding: 56px 40px;
}
.audiences > * + * {
  border-left: 1px solid var(--ink-08);
}
@media (max-width: 900px) {
  .audiences { grid-template-columns: 1fr; }
  .audiences > * { padding: 56px 0; }
  .audiences > * + * { border-left: none; border-top: 1px solid var(--ink-08); }
}

.aud {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aud__intro   { display: flex; flex-direction: column; gap: 18px; flex: 1 0 auto; }
.aud__form-wrap { margin-top: auto; }

.aud h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.aud ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aud li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.5;
}
.aud li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--teal-300);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ── Inquiry form ───────────────────────────────────────────────────── */
.inquiry {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 480px;
}
.inquiry__field           { display: flex; flex-direction: column; gap: 6px; }
.inquiry__field--full     { grid-column: span 2; }
.inquiry__field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.inquiry__field input {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--ink-15);
  border-radius: 4px;
  background: var(--off-white);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.inquiry__field input:focus {
  border-color: var(--teal-900);
  background: white;
}
.inquiry__field input::placeholder { color: var(--ink-40); }
.inquiry__submit { margin-top: 6px; grid-column: span 2; }

.inquiry__success {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal-900);
  background: var(--teal-50);
  border: 1px solid rgba(19, 78, 74, 0.15);
  border-radius: 4px;
  padding: 14px 16px;
  max-width: 480px;
  line-height: 1.55;
}

/* ── Leadership strip ───────────────────────────────────────────────── */
.leadership {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-08);
  border: 1px solid var(--ink-08);
}
.lead {
  background: var(--bone);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  color: var(--teal-900);
  letter-spacing: -0.015em;
}
.lead__title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-55);
}
@media (max-width: 700px) {
  .leadership { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--teal-900);
  color: var(--off-white);
  padding: 80px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer__logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}
.footer__about {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.72);
  max-width: 36ch;
  line-height: 1.55;
}
.footer__col h4 {
  color: var(--teal-300);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col li { font-size: 14px; color: rgba(248, 250, 252, 0.78); }
.footer__col a:hover { color: var(--teal-300); }

.footer__rule {
  margin: 56px 0 22px;
  height: 1px;
  background: rgba(248, 250, 252, 0.14);
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.55);
}
@media (max-width: 600px) {
  .footer__legal { flex-direction: column; gap: 8px; }
}

/* ── Hex tile background motif ──────────────────────────────────────── */
.bg-hex-tile {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background-image: url("assets/hex-tile.svg");
  background-size: 96px 110px;
  background-repeat: repeat;
}
[data-hex-motif="subtle"] .bg-hex-tile { opacity: 0.04; }
[data-hex-motif="strong"] .bg-hex-tile { opacity: 0.08; }

/* ── Utility ────────────────────────────────────────────────────────── */
.divider-line { height: 1px; background: var(--ink-08); margin: 0; }

/* ── Direction: editorial (default — no overrides needed) ───────────── */
/* ── Direction: scientific ──────────────────────────────────────────── */
[data-direction="scientific"] body { letter-spacing: -0.003em; }
[data-direction="scientific"] h1   { letter-spacing: -0.025em; }
[data-direction="scientific"] .hero__title em.serif {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 300;
}
[data-direction="scientific"] .lede { font-size: 16px; }

/* ── Direction: corporate ───────────────────────────────────────────── */
[data-direction="corporate"] body { letter-spacing: 0; }
[data-direction="corporate"] .hero__title em.serif {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--teal-700);
}

/* ── Serif accents off ──────────────────────────────────────────────── */
[data-serif="off"] .serif,
[data-serif="off"] .hero__title em.serif {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
}
