/* ============================================
   WH4 CORE PILLARS — BRAND STYLESHEET
   Colors: Navy #102E5E · Ink #191C1F · White #FFFFFF · Fog #F4F4F4
   Fonts: Playfair Display · Archivo · JetBrains Mono
   ============================================ */

:root {
  --navy:       #102E5E;
  --navy-deep:  #0A1E3F;
  --navy-mid:   #1A3F72;
  --ink:        #191C1F;
  --ink-soft:   #3A3D42;
  --ink-muted:  #6B6F75;
  --fog:        #F4F4F4;
  --fog-dark:   #EAEAEA;
  --white:      #FFFFFF;
  --gold:       #B8960C;
  --gold-light: #D4AF37;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Archivo', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max-w: 1200px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 46, 94, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(16, 46, 94, 0.08);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav__logo-wh { color: var(--ink); }
.nav__logo-4  {
  color: var(--navy);
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav__link:hover { color: var(--navy); }

.nav__cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  padding: 10px 22px;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(16,46,94,0) 0%, rgba(10,30,63,0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 60px;
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: 28px;
}

.hero__eyebrow .mono {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 800px;
}

.hero__headline em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__scroll .mono {
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
}

.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  animation: scanline 2s ease-in-out infinite;
}

@keyframes scanline {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.hero__stat-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 40px;
  width: 100%;
  gap: 0;
}

.hero__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 32px;
}

.hero__stat:first-child { padding-left: 0; }

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__stat-plus {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ============================================
   INTRO
   ============================================ */

.intro {
  padding: 120px 0;
  background: var(--white);
  border-bottom: 1px solid var(--fog-dark);
}

.intro__inner {
  max-width: 760px;
}

.intro__label {
  margin-bottom: 24px;
}

.intro__label .mono {
  color: var(--navy);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.intro__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--navy);
  padding-left: 28px;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.intro__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ============================================
   PILLARS
   ============================================ */

.pillars {
  padding: 80px 0 120px;
  background: var(--white);
}

.pillar {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 0 48px;
  padding: 80px 0;
  border-bottom: 1px solid var(--fog-dark);
  align-items: start;
  position: relative;
}

.pillar:last-child { border-bottom: none; }

.pillar--alt {
  background: var(--fog);
  margin: 0 -40px;
  padding: 80px 40px;
  border-bottom: none;
  border-top: 1px solid var(--fog-dark);
  border-bottom: 1px solid var(--fog-dark);
}

/* Number column */
.pillar__number-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
  gap: 16px;
}

.pillar__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.pillar__num-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, var(--navy), transparent);
  opacity: 0.2;
}

/* Content */
.pillar__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(16,46,94,0.2);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 560px;
}

.pillar__body {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 580px;
}

/* Highlight box */
.pillar__highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(16,46,94,0.04);
  border-left: 3px solid var(--navy);
  padding: 18px 20px;
  margin-top: 28px;
  max-width: 560px;
}

.pillar__highlight--dark {
  background: var(--navy-deep);
  border-left-color: rgba(255,255,255,0.3);
}

.pillar__highlight--dark p {
  color: rgba(255,255,255,0.85);
}

.pillar__highlight-icon {
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar__highlight--dark .pillar__highlight-icon {
  color: rgba(255,255,255,0.6);
}

.pillar__highlight p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
}

/* Checklist */
.pillar__checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  max-width: 480px;
}

.pillar__check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pillar__check-item svg {
  color: var(--navy);
  flex-shrink: 0;
}

/* Tech grid */
.pillar__tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 32px;
  max-width: 560px;
  border: 1px solid var(--fog-dark);
  background: var(--fog-dark);
}

.pillar__tech-item {
  background: var(--white);
  padding: 20px;
}

.pillar--alt .pillar__tech-item {
  background: var(--fog);
}

.pillar__tech-label {
  display: block;
  color: var(--navy);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.pillar__tech-item p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Fee model */
.pillar__fee-model {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  max-width: 580px;
}

.pillar__fee-item {
  flex: 1;
  padding: 20px;
  border: 1px solid var(--fog-dark);
  background: var(--fog);
}

.pillar__fee-item--success {
  border-color: var(--navy);
  background: rgba(16,46,94,0.04);
}

.pillar__fee-step {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 6px;
}

.pillar__fee-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.pillar__fee-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.pillar__fee-arrow {
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* Visual column */
.pillar__visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.pillar__visual-inner {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(16,46,94,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pillar--alt .pillar__visual-inner {
  background: var(--fog);
}

.pillar__visual-inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--navy);
  border-left: 2px solid var(--navy);
}

.pillar__visual-inner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
}

.pillar__visual-inner:hover {
  border-color: rgba(16,46,94,0.3);
  box-shadow: 0 8px 32px rgba(16,46,94,0.08);
}

.pillar__visual-icon {
  color: var(--navy);
  opacity: 0.7;
}

.pillar__visual-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  padding: 0 16px;
  line-height: 1.3;
}

.pillar__visual-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 0 16px;
}

/* ============================================
   WHY WH4
   ============================================ */

.why {
  padding: 120px 0;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.why__inner {
  position: relative;
  z-index: 1;
}

.why__label {
  margin-bottom: 20px;
}

.why__label .mono {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.why__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 64px;
  max-width: 640px;
}

.why__title em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.why__card {
  background: rgba(255,255,255,0.03);
  padding: 40px 36px;
  transition: background 0.3s;
}

.why__card:hover {
  background: rgba(255,255,255,0.06);
}

.why__card-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.why__card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.why__card-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 120px 0;
  background: var(--white);
  border-top: 1px solid var(--fog-dark);
}

.cta__inner {
  max-width: 680px;
}

.cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
  display: block;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.cta__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 40px;
}

.cta__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  padding: 16px 36px;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-bottom: 36px;
}

.cta__btn:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,46,94,0.2);
}

.cta__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.cta__dot {
  color: var(--fog-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--ink);
  padding: 48px 0 40px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer__logo .nav__logo-wh { color: var(--white); }
.footer__logo .nav__logo-4  {
  color: rgba(255,255,255,0.4);
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
  font-weight: 700;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.footer__links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover { color: rgba(255,255,255,0.7); }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__legal p {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
}

/* ============================================
   M.A.S.I.E BADGE
   ============================================ */

.pillar__masie-badge {
  margin: 28px 0 32px;
  max-width: 560px;
}

.pillar__masie-inner {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.pillar__masie-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-mid), rgba(255,255,255,0.15), var(--navy-mid));
}

.pillar__masie-inner::after {
  content: 'M.A.S.I.E';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.pillar__masie-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.pillar__masie-m {
  color: var(--white);
}

.pillar__masie-dot {
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
}

.pillar__masie-full {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.pillar__masie-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .pillar {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }

  .pillar__visual {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 40px;
  }

  .pillar__visual-inner {
    width: 180px;
    height: 180px;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .pillar__fee-model {
    flex-direction: column;
    align-items: stretch;
  }

  .pillar__fee-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav__inner { padding: 0 24px; }

  .nav__links { gap: 16px; }

  .nav__link { display: none; }

  .hero__content { padding: 60px 24px 40px; }

  .hero__stat-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }

  .hero__stat { padding: 0; }
  .hero__stat-divider { width: 40px; height: 1px; }

  .pillar {
    grid-template-columns: 1fr;
    padding: 60px 0;
  }

  .pillar--alt {
    margin: 0 -24px;
    padding: 60px 24px;
  }

  .pillar__number-col {
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
  }

  .pillar__num {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .pillar__num-line {
    width: 40px;
    height: 1px;
    min-height: unset;
    background: linear-gradient(to right, var(--navy), transparent);
  }

  .pillar__visual { display: none; }

  .pillar__tech-grid { grid-template-columns: 1fr; }

  .why__grid { grid-template-columns: 1fr; }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__links { flex-wrap: wrap; }

  .cta__contact { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta__dot { display: none; }

  .intro { padding: 80px 0; }
  .why { padding: 80px 0; }
  .cta { padding: 80px 0; }
}