/* =============================================================
   DIRECTION 88 — SITE-WIDE CHROME
   Shared across all pages: nav, footer, base, buttons, eyebrow,
   editorial section primitives.
   ============================================================= */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #000000;
  color: rgba(250, 248, 244, 0.92);
  overflow-x: hidden;
}

:root {
  --surface-0: #000000;
  --surface-1: #050505;
  --surface-2: #0B0B0B;
  --on-dark-1: rgba(250, 248, 244, 0.96);
  --on-dark-2: rgba(250, 248, 244, 0.74);
  --on-dark-3: rgba(250, 248, 244, 0.50);
  --on-dark-4: rgba(250, 248, 244, 0.20);
  --on-dark-hairline: rgba(255, 255, 255, 0.08);
}
body {
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Eyebrow / heading utility classes ------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.3px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  line-height: 1;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
  border-radius: 9999px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.btn .ico { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-standard); }
.btn:hover .ico { transform: translate(2px, -2px); }

.btn--solid-light { background: var(--paper-50); color: var(--ink-1000); }
.btn--solid-dark  { background: var(--ink-1000);  color: var(--paper-50); }
.btn--ghost-light {
  background: transparent;
  color: var(--paper-50);
  box-shadow: 0 0 0 1px rgba(250,248,244,0.30) inset;
}
.btn--ghost-dark {
  background: transparent;
  color: var(--ink-1000);
  box-shadow: 0 0 0 1px rgba(10,10,10,0.18) inset;
}
.btn--glass {
  background: rgba(255,255,255,0.10);
  color: var(--paper-50);
  backdrop-filter: blur(40px) saturate(140%);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.40) inset,
    0 0 0 1px rgba(255,255,255,0.22) inset,
    0 18px 48px rgba(0,0,0,0.30);
}

/* =============================================================
   NAV — Liquid Glass
   ============================================================= */
.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 24px;
}
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 -1px 0 rgba(0, 0, 0, 0.30) inset,
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.30);
  transition: box-shadow var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
/* Black Liquid Glass — when nav is over a light surface (#FAF8F4 etc.) */
.nav.nav--on-light .nav__inner {
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 18px 48px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.18);
}
.nav.nav--on-light.is-scrolled .nav__inner {
  background: rgba(10, 10, 10, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.20) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.6) inset,
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.nav.is-scrolled .nav__inner {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.30) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 10px;
  cursor: pointer;
  border-radius: 9999px;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.nav__brand:hover { opacity: 0.85; }
.nav__brand img {
  height: 32px;
  display: block;
  filter: invert(1) brightness(1.05);
}

.nav__items { display: flex; gap: 2px; align-items: center; }
.nav__item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--on-dark-2);
  padding: 10px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}
.nav__item:hover { color: var(--on-dark-1); background: rgba(255,255,255,0.06); }
.nav__item.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-dark-1);
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.nav__cta {
  margin-left: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(255, 127, 0, 0.32);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 9999px;
  cursor: pointer;
  border: 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 200, 140, 0.65) inset,
    0 0 0 1px rgba(255, 160, 80, 0.45) inset,
    0 -1px 0 rgba(120, 50, 0, 0.30) inset,
    0 8px 24px rgba(255, 127, 0, 0.25);
  transition: background var(--dur-fast) var(--ease-standard),
              opacity var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}
.nav__cta:hover { background: rgba(255, 127, 0, 0.45); }
.nav__cta:active { transform: scale(0.97); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  cursor: pointer;
  color: var(--on-dark-1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .ico-close { display: none; }
.nav.is-open .nav__toggle .ico-open { display: none; }
.nav.is-open .nav__toggle .ico-close { display: block; }
.nav__sheet { display: none; }

@media (max-width: 880px) {
  .nav { top: 12px; padding: 0 12px; }
  .nav__inner {
    width: 100%;
    justify-content: space-between;
    padding: 6px;
  }
  .nav__items { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__brand img { height: 28px; }

  .nav__sheet {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 88px 24px 32px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    transform: translateY(-110%);
    transition: transform var(--dur-base) var(--ease-standard);
    pointer-events: none;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .nav.is-open ~ .nav__sheet,
  .nav__sheet.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__sheet a {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.4;
    color: var(--on-dark-1);
    padding: 12px 4px;
    border-bottom: 1px solid var(--on-dark-hairline);
    cursor: pointer;
  }
  .nav__sheet .nav__sheet-cta {
    margin-top: 24px;
    align-self: flex-start;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 14px;
    letter-spacing: 0.04em;
    font-weight: 500;
    background: var(--paper-50);
    color: var(--ink-1000);
    padding: 14px 22px;
    border-radius: 9999px;
    border: 0;
  }
}

/* =============================================================
   PAGE HEADER (used on inner pages — replaces video hero)
   ============================================================= */
.pageHero {
  position: relative;
  padding: 200px 80px 120px;
  background: #000000;
  color: var(--on-dark-1);
  overflow: hidden;
  isolation: isolate;
}
.pageHero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.pageHero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16.4px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  line-height: 1;
}
.pageHero__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(60px, 9vw, 156px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--on-dark-1);
  margin: 0;
  text-wrap: balance;
}
.pageHero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 56ch;
}
.pageHero__bottom-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,1) 100%);
}

/* =============================================================
   EDITORIAL SECTIONS (reused from homepage)
   ============================================================= */
.ed {
  padding: 144px 80px;
  background: var(--surface-0);
  color: var(--on-dark-1);
}
.ed--alt { background: var(--surface-1); }
.ed--dark { background: var(--surface-0); color: var(--on-dark-1); }
.ed__inner { max-width: 1280px; margin: 0 auto; }
.ed__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.3px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  line-height: 1;
  margin-bottom: 56px;
  display: block;
}
.ed--dark .ed__label { color: var(--on-dark-3); }
.ed__label--signal { color: var(--signal); }

.ed__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: start;
}
.ed__head--single { grid-template-columns: 1fr; max-width: 980px; }
.ed__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34.2px, 4.86vw, 75.6px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--on-dark-1);
  margin: 0;
  text-wrap: balance;
}
.ed--dark .ed__title { color: var(--on-dark-1); }
.ed__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 64ch;
}
.ed__body p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-2);
  margin: 0;
  text-wrap: pretty;
}

/* Editorial — bone variant (cream surface for breaks) */
.ed--bone {
  background: #E7E3DA;
  color: #0A0A0A;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ed--bone .ed__label { color: rgba(10,10,10,0.55); }
.ed--bone .ed__title { color: #0A0A0A; }
.ed--bone .ed__body p { color: #2B2B2B; }

/* Bone with textured slate fades top/bottom (continues the homepage rhythm) */
.ed--bone-slate {
  background: #E7E3DA;
  color: #0A0A0A;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ed--bone-slate .ed__inner { position: relative; z-index: 3; }
.ed__slate-top, .ed__slate-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  background-image: url('../assets/section5-bg.jpg');
  background-size: cover;
}
.ed__slate-top { top: 0; mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.55) 50%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.55) 50%, transparent 100%); }
.ed__slate-bottom { bottom: 0; mask-image: linear-gradient(0deg, black 0%, rgba(0,0,0,0.55) 50%, transparent 100%); -webkit-mask-image: linear-gradient(0deg, black 0%, rgba(0,0,0,0.55) 50%, transparent 100%); }

/* Inline CTA link (used inside editorial sections) */
.ed__cta {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--on-dark-1);
  cursor: pointer;
  border-bottom: 1px solid var(--on-dark-1);
  padding-bottom: 4px;
  align-self: flex-start;
  width: fit-content;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.ed--bone .ed__cta { color: #0A0A0A; border-bottom-color: #0A0A0A; }
.ed__cta:hover { opacity: 0.7; }
.ed__cta .arrow { transition: transform var(--dur-base) var(--ease-standard); }
.ed__cta:hover .arrow { transform: translateX(4px); }

/* =============================================================
   CLOSING CTA (reused from homepage)
   ============================================================= */
.closing {
  position: relative;
  padding: 200px 80px;
  background: #000000;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/closing-cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.closing__bg-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
}
.closing__fade-top, .closing__fade-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 220px;
  z-index: 2;
  pointer-events: none;
}
.closing__fade-top { top: 0; background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0) 100%); }
.closing__fade-bottom { bottom: 0; background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0) 100%); }
.closing__inner {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.closing__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(43.2px, 6.3vw, 100.8px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.closing__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 23px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 28ch;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.closing .btn--glass-cta {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(255, 255, 255, 0.30) inset,
    0 -1px 0 rgba(0, 0, 0, 0.20) inset,
    0 12px 32px rgba(0, 0, 0, 0.30);
  transition: background var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.closing .btn--glass-cta:hover { background: rgba(255, 255, 255, 0.26); }
.closing .btn { margin-top: 16px; padding: 18px 32px; font-size: 15px; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: #000000;
  color: var(--on-dark-1);
  padding: 64px 80px 32px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--on-dark-hairline);
}
.footer__brand img { height: 96px; display: block; }
.footer__center { text-align: center; }
.footer__center a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--on-dark-1);
  letter-spacing: 0.01em;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.footer__center a:hover { opacity: 0.7; }
.footer__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.footer__copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--on-dark-2);
  letter-spacing: 0.04em;
}
.footer__social { display: flex; align-items: center; gap: 8px; }
.footer__social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.20); }
.footer__social a:active { transform: scale(0.95); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

@media (max-width: 1080px) {
  .pageHero { padding: 160px 32px 80px; }
  .ed { padding: 96px 32px; }
  .ed__head { grid-template-columns: 1fr; gap: 32px; }
  .closing { padding: 120px 32px; }
}
@media (max-width: 880px) {
  .pageHero { padding: 140px 20px 64px; }
  .ed { padding: 80px 20px; }
  .closing { padding: 96px 20px; }
  .footer { padding: 64px 20px 28px; }
  .footer__row { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer__brand { display: flex; justify-content: center; }
  .footer__right { justify-content: center; }
}
