/* ===========================================
   MARGIN ARCHITECTURE — DESIGN SYSTEM
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bone:          #F5F2E9;
  --surface:       #FCFBF8;
  --charcoal-deep: #0D0D0D;
  --charcoal:      #1C1E21;
  --bone-light:    #F5F3EF;
  --gold:          #C2A46F;
  --navy:          #1F2A44;
  --text-primary:  #EAEAEA;
  --text-muted:    #A8A8A8;
  --text-dark:     #1A1A1A;
  --steel:         #6B7280;
  --line:          rgba(107, 114, 128, 0.15);
  --line-strong:   rgba(107, 114, 128, 0.28);
  --line-dark:     rgba(245, 243, 239, 0.10);
  --max:   1200px;
  --pad:   64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bone);
  background-image:
    linear-gradient(rgba(107, 114, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 114, 128, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}

p { color: var(--steel); }


/* ===========================================
   HEADER — STATIC
   =========================================== */

.header {
  border-bottom: 1px solid var(--line);
  background: var(--bone);
  background-image: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img { height: 24px; width: auto; }

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

.menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
  transition: color 200ms;
}

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

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang a {
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  padding: 2px 6px;
  transition: color 200ms;
}

.lang a.active { color: var(--text-dark); font-weight: 600; }
.lang a:hover  { color: var(--text-dark); }

.lang-sep {
  color: var(--line-strong);
  font-size: 11px;
  user-select: none;
}


/* ===========================================
   SCROLL REVEAL
   =========================================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

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

.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }
.reveal-d5 { transition-delay: 400ms; }


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

/* Hero is a flex column: engagement strip at top, content below */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

/* ── Engagement sequence strip ────────────── */
.hero-top {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background-image: none;
}

.seq-strip {
  display: flex;
  align-items: center;
  gap: 0;
}

.seq-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Connecting line between seq items */
.seq-item:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  margin-left: 10px;
  opacity: 0.6;
}

.seq-num {
  font-size: 10px;
  font-weight: 500;
  color: var(--steel);
  opacity: 0.45;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.seq-abbr {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.38;
  flex: 0 0 auto;
}

/* ── Hero content (bottom zone) ────────────── */
.hero-bottom {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-bottom > .container { width: 100%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

/* Optional: thin structural dividing line between columns */
.hero-inner::before {
  content: '';
  position: absolute;
  left: calc(50% - 2px);
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: rgba(107, 114, 128, 0.10);
  pointer-events: none;
}

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.hero h1 .break {
  display: block;
  margin-top: 10px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--steel);
  margin-bottom: 40px;
  max-width: 44ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
}

.btn-primary {
  background: var(--navy);
  color: var(--bone-light);
  border: 1px solid var(--navy);
}

.btn-primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--bone-light);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}


/* ===========================================
   SECTIONS
   =========================================== */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-final {
  padding: 128px 0;
  border-bottom: none;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section h2 {
  font-size: 36px;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 22ch;
}

.section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--steel);
}

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.accent-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
}

.statement-box {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  padding: 32px;
}

.statement-box p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.statement-box p:last-child { margin-bottom: 0; }

.callout {
  border-left: 2px solid var(--gold);
  padding: 14px 0 14px 24px;
  margin-top: 28px;
}

.callout p {
  font-size: 15px;
  color: var(--steel);
  font-style: italic;
  line-height: 1.65;
}

.p-gap { margin-top: 16px; }


/* ===========================================
   FIRM SECTIONS (2–4)
   =========================================== */

.premise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 80px;
  align-items: start;
}

.not-yes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.not-yes-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.not-yes-col p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--steel);
}


/* ===========================================
   ENGAGEMENT ARCHITECTURE — PHASES (Section 5)
   THE MAIN EVENT
   =========================================== */

.phases-wrapper {
  margin-top: 48px;
  position: relative;
}

/* ── Rail: numbered nodes + connecting gold line ── */
.phases-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  padding-bottom: 0;
}

/* The gold horizontal line connecting all dots */
.phases-rail::before {
  content: '';
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 164, 111, 0.5) 80%, transparent);
  top: 21px; /* center of 42px dots */
  left: 10%;  /* center of first 1fr column */
  right: 10%; /* center of last 1fr column */
  z-index: 0;
}

.rail-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Arrow indicator between columns (on the gold line) */
.rail-col:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -9px;
  top: 10px;
  font-size: 20px;
  font-weight: 300;
  color: var(--gold);
  z-index: 3;
  line-height: 1;
}

.rail-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bone-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--gold);
  position: relative;
  z-index: 2;
  transition: background 200ms, transform 200ms;
}

/* Vertical stem connecting dot to card */
.rail-stem {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, var(--gold), var(--line));
}

/* ── Phase cards ── */
.phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-top: none;
}

.phase-item {
  padding: 28px 20px 32px;
  border-right: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--bone);
  transition: background 200ms, border-top-color 200ms;
  position: relative;
}

.phase-item:last-child { border-right: none; }

.phase-item:hover {
  background: rgba(255, 255, 255, 0.75);
  border-top-color: var(--navy);
}

/* Hover: highlight matching dot */
.phase-item:hover ~ .phases-rail .rail-dot,
.phases-wrapper:hover .rail-dot { /* general state */ }

.abbr-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(194, 164, 111, 0.10);
  border: 1px solid rgba(194, 164, 111, 0.25);
  padding: 3px 8px;
  margin-bottom: 14px;
  border-radius: 2px;
}

.phase-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.phase-item p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel);
}

.sequence-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sequence-note p {
  font-size: 15px;
  color: var(--steel);
  font-style: italic;
}


/* ===========================================
   STANDALONE DIAGNOSTICS
   =========================================== */

.standalone-header { margin-bottom: 0; }

.standalone-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 58ch;
  margin-top: 8px;
}

.standalone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: none;
  margin-top: 48px;
}

.standalone-card {
  padding: 32px 28px 40px;
  border-right: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--bone);
  transition: background 200ms, border-top-color 200ms;
}

.standalone-card:last-child { border-right: none; }

.standalone-card:hover {
  background: rgba(255, 255, 255, 0.78);
  border-top-color: var(--navy);
}

.standalone-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.standalone-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

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


/* ===========================================
   AUTHORITY & EXECUTION — CHARCOAL INVERSION
   ONE INVERSION BLOCK. NO MICRO-GRID.
   =========================================== */

.inversion {
  background: var(--charcoal);
  background-image: none;
  border-top: none;
  border-bottom: none;
}

.inversion .eyebrow  { color: #9CA3AF; }
.inversion h2        { color: var(--bone-light); }
.inversion p         { color: var(--text-muted); }

.inversion .statement-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.inversion .statement-box p { color: rgba(245, 243, 239, 0.72); }

.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.authority-principles {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.principle {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.principle-marker {
  width: 1px;
  min-height: 44px;
  background: var(--gold);
  flex: 0 0 auto;
  margin-top: 4px;
}

.principle p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 243, 239, 0.72);
}


/* ===========================================
   OPERATING MODEL (Section 7)
   =========================================== */

.doctrine-block {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  padding: 40px;
}

.doctrine-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.doctrine-block p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 500;
}


/* ===========================================
   CONTACT (Section 8)
   =========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 36px;
}

.method-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--navy);
  color: var(--bone-light);
  border: 1px solid var(--navy);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
}

.booking-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--bone-light);
}

.contact-email {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 200ms, border-color 200ms;
  width: fit-content;
}

.contact-email:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Contact gateway CTA stack */
.contact-cta-stack {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-thesis p {
  font-size: 17px;
  line-height: 1.7;
}


/* ===========================================
   INTAKE PAGE
   =========================================== */

.intake-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.intake-page main { flex: 1; }

.intake-section {
  padding: 96px 0 128px;
}

.intake-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  transition: color 200ms;
}

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

.intake-intro {
  max-width: 740px;
  margin-bottom: 64px;
}

.intake-intro .eyebrow { margin-bottom: 20px; }

.intake-headline {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.intake-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 62ch;
}

.intake-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
}

.intake-embed {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.intake-embed iframe {
  display: block;
  width: 100%;
  min-height: 1600px;
}

@media (max-width: 640px) {
  .intake-headline { font-size: 32px; }
  .intake-section  { padding: 64px 0 96px; }
  .intake-embed iframe { min-height: 1900px; }
}


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

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--bone);
  background-image: none;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p { font-size: 13px; color: var(--steel); }

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

.footer-links a {
  font-size: 13px;
  color: var(--steel);
  transition: color 200ms;
}

.footer-links a:hover { color: var(--navy); }


/* ===========================================
   RESPONSIVE — TABLET
   =========================================== */

@media (max-width: 1024px) {
  :root { --pad: 40px; }

  .hero { min-height: auto; }
  .hero-bottom { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner::before { display: none; }
  .hero h1 { font-size: 48px; }

  .cols-2,
  .premise-grid,
  .authority-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Rail collapses to 3-col, cards to 3-col too */
  .phases-rail,
  .phases { grid-template-columns: repeat(3, 1fr); }

  /* Hide arrow indicators on tablet since layout shifts */
  .rail-col:not(:last-child)::after { display: none; }

  .phases-rail::before { left: 16.66%; right: 16.66%; }

  .not-yes { grid-template-columns: 1fr; }
}


/* ===========================================
   RESPONSIVE — MOBILE
   =========================================== */

@media (max-width: 640px) {
  :root { --pad: 24px; }

  .hero-bottom { padding: 48px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }

  .seq-item:nth-child(n+4) { display: none; }  /* show only 3 on mobile */

  .section { padding: 64px 0; }
  .section-final { padding: 80px 0; }
  .section h2 { font-size: 28px; }

  .menu { display: none; }

  .phases-rail,
  .phases { grid-template-columns: 1fr 1fr; }

  .phases-rail::before { left: 25%; right: 25%; }

  .contact-email { font-size: 17px; }

  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .phases-rail,
  .phases { grid-template-columns: 1fr; }

  .phases-rail::before { display: none; }

  .cta-row { flex-direction: column; }
  .btn { justify-content: center; }
}
