/* Page layout and component styles */
/* ---- page-level ---- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--erede-gold); color: var(--erede-navy); }

/* slow page-load fade for hero */
@keyframes eredeRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.e-rise { animation: eredeRise 1100ms ease both; }
.e-rise.d1 { animation-delay: 80ms; }
.e-rise.d2 { animation-delay: 240ms; }
.e-rise.d3 { animation-delay: 420ms; }
.e-rise.d4 { animation-delay: 600ms; }
.e-rise.d5 { animation-delay: 760ms; }

/* layout helpers */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--margin-desktop); }
@media (max-width: 720px) {
  .wrap { padding: 0 var(--margin-mobile); }
}

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--erede-cream);
  border-bottom: 1px solid var(--erede-navy-08);
}
.nav-inner {
  position: relative;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  display: block;
  width: auto;
  height: 32px;
  transform: translateY(5px);
}
.nav-links {
  display: flex; align-items: center; gap: 48px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 11px; letter-spacing: var(--tracking-medium);
  text-transform: uppercase; color: var(--erede-navy);
  transition: color 220ms ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--erede-gold); border-bottom-color: var(--erede-gold); }
.nav-toggle {
  display: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  background: var(--erede-navy);
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav-cta {
  font-family: var(--font-sans);
  font-weight: 400; font-size: 11px;
  letter-spacing: var(--tracking-medium); text-transform: uppercase;
  color: var(--erede-navy);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--erede-gold);
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px 0 28px;
    background: var(--erede-cream);
    border-top: 1px solid var(--erede-navy-08);
    border-bottom: 1px solid var(--erede-navy-08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }
  .nav[data-open="true"] .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-left: 24px;
  }
  .nav-links a {
    display: inline-block;
    padding: 4px 0;
  }
  .nav[data-open="true"] .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav[data-open="true"] .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav[data-open="true"] .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--erede-cream);
  padding: 120px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--tracking-medium);
  text-transform: uppercase;
  color: var(--erede-navy);
  margin-bottom: 40px;
}
.hero-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--erede-navy);
  margin: 0 auto;
  max-width: 14ch;
}
.hero-display em {
  font-style: italic;
  font-weight: 300;
  color: var(--erede-navy);
}
.hero-rule {
  width: 48px; height: 1px;
  background: var(--erede-gold);
  margin: 56px auto 32px;
  border: 0;
}
.hero-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--erede-slate);
  max-width: 56ch;
  margin: 0 auto 48px;
}
.hero-cta-row { display: inline-flex; gap: 32px; align-items: center; }
.hero-meta {
  margin-top: 96px;
  display: flex; justify-content: center; gap: 56px;
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: var(--tracking-medium);
  text-transform: uppercase;
  color: var(--erede-gray);
  flex-wrap: wrap;
}
.hero-meta span::before {
  content: "—"; color: var(--erede-gold);
  margin-right: 12px;
}

/* ---------- Section header pattern (italic gold number + tracked eyebrow) ---------- */
.sect {
  background: var(--erede-cream);
  padding: 128px 0;
}
.sect.alt { background: var(--erede-white); }
.sect.dark { background: var(--erede-navy); color: var(--erede-cream); }
.sect.dark .sect-eyebrow { color: var(--erede-cream-on-navy-70); }

.sect-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}
.sect-meta { display: flex; flex-direction: column; gap: 16px; }
.sect-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--erede-gold);
}
.sect-eyebrow {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: var(--tracking-medium);
  text-transform: uppercase; color: var(--erede-navy);
}
.sect-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1; letter-spacing: -0.01em;
  color: inherit;
  max-width: 22ch;
}
.sect.dark .sect-title { color: var(--erede-cream); }
.sect-title em { font-style: italic; color: inherit; }
@media (max-width: 720px) {
  .sect { padding: 96px 0; }
  .sect-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
}
.sect-header--flush { margin-bottom: 0; }

/* ---------- Thinking section — long-form prose with pull-out ---------- */
.think {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
.think-side { font-family: var(--font-sans); font-size: 11px; letter-spacing: var(--tracking-medium); text-transform: uppercase; color: var(--erede-gray); }
.think-body p {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 19px; line-height: 1.75; color: var(--erede-slate);
  margin: 0 0 24px; max-width: 60ch;
}
.think-pull {
  margin: 64px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--erede-navy-10);
  font-family: var(--font-serif); font-style: italic;
  font-weight: 300; font-size: 32px; line-height: 1.4;
  letter-spacing: -0.005em; color: var(--erede-navy);
  max-width: 24ch;
}
@media (max-width: 720px) { .think { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Services list ---------- */
.services {
  border-top: 1px solid var(--erede-navy-10);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 64px;
  padding: 56px 0;
  border-bottom: 1px solid var(--erede-navy-10);
  align-items: start;
  transition: background-color 220ms ease;
}
.service:hover { background: rgba(15, 42, 68, 0.02); }
.service-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--erede-gold); padding-top: 8px;
}
.service-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.2;
  color: var(--erede-navy); margin: 0;
}
.service-body {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 16px; line-height: 1.75; color: var(--erede-slate);
  max-width: 52ch; margin: 0;
}
@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .service-num { padding-top: 0; }
}

/* ---------- Process — vertical step list ---------- */
.process { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid rgba(245,243,239,0.15);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid rgba(245,243,239,0.15); }
.step-num {
  font-family: var(--font-serif); font-style: italic;
  color: var(--erede-gold); font-size: 14px;
}
.step-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 32px; line-height: 1.2;
  color: var(--erede-cream); margin: 0;
}
.step-body {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 16px; line-height: 1.75;
  color: var(--erede-cream-on-navy-70);
  margin: 0; max-width: 44ch;
}
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
}

/* ---------- Trust section — narrative + small caption block ---------- */
.trust { display: grid; grid-template-columns: 200px 1fr; gap: 64px; }
.trust-body p {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 18px; line-height: 1.75; color: var(--erede-slate);
  margin: 0 0 24px; max-width: 58ch;
}
.trust-stats {
  grid-column: 1 / -1;
  margin-top: 24px; padding-top: 48px;
  border-top: 1px solid var(--erede-navy-10);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px;
}
.trust-stat { min-width: 0; }
.stat-num {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 56px; line-height: 1; color: var(--erede-navy);
  letter-spacing: -0.02em;
}
.stat-rule { width: 24px; height: 1px; background: var(--erede-gold); margin: 16px 0; border: 0; }
.stat-label {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 14px; line-height: 1.6; color: var(--erede-slate);
  max-width: 34ch;
}
@media (max-width: 920px) {
  .trust-stats { gap: 32px; }
  .stat-num { font-size: clamp(36px, 6vw, 56px); }
}
@media (max-width: 720px) {
  .trust { grid-template-columns: 1fr; gap: 32px; }
  .trust-stats { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Emotional / inverse section ---------- */
.feel {
  background: var(--erede-navy);
  color: var(--erede-cream);
  padding: 160px 0;
  text-align: center;
}
.feel-mark {
  display: block;
  width: auto;
  height: 240px;
  margin: 0 auto;
}
.feel-rule { width: 48px; height: 1px; background: var(--erede-gold); margin: 56px auto; border: 0; }
.feel-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--erede-cream); margin: 0 auto;
  max-width: 22ch;
}
.feel-h em { font-style: italic; color: var(--erede-gold); }
.feel-sub {
  margin: 48px auto 0;
  font-family: var(--font-sans); font-weight: 300;
  font-size: 18px; line-height: 1.75;
  color: var(--erede-cream-on-navy-70);
  max-width: 52ch;
}
@media (max-width: 720px) {
  .feel { padding: 96px 0; }
  .feel-mark { height: 120px; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--erede-cream);
  padding: 160px 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; }
.contact-grid--offset { margin-top: 64px; }
.contact-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--erede-navy); margin: 0;
  max-width: 14ch;
  transform: translateY(-24px);
}
.contact-h em { font-style: italic; }
.contact-side p {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 16px; line-height: 1.75; color: var(--erede-slate);
  max-width: 38ch; margin: 0 0 32px;
}
.contact-list {
  list-style: none; padding: 0; margin: 32px 0 0;
  border-top: 1px solid var(--erede-navy-10);
}
.contact-list li {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 24px; padding: 20px 0;
  border-bottom: 1px solid var(--erede-navy-10);
  font-family: var(--font-sans); font-weight: 300;
  font-size: 14px; color: var(--erede-slate);
}
.contact-list li span:first-child {
  font-size: 11px; letter-spacing: var(--tracking-medium);
  text-transform: uppercase; color: var(--erede-gray);
}
.contact-list a:hover { color: var(--erede-gold); }
.contact-cta {
  margin-top: 48px;
  display: inline-block;
  font-family: var(--font-sans); font-weight: 400;
  font-size: 11px; letter-spacing: var(--tracking-medium);
  text-transform: uppercase; color: var(--erede-navy);
  padding: 14px 32px;
  border: 1px solid var(--erede-navy);
  border-radius: 4px;
  transition: background-color 220ms ease, color 220ms ease;
}
.contact-cta:hover { background: var(--erede-navy); color: var(--erede-cream); }
@media (max-width: 720px) {
  .contact { padding: 96px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-h { transform: none; }
}

/* ---------- Footer ---------- */
footer.foot {
  background: var(--erede-cream);
  border-top: 1px solid var(--erede-navy-10);
  padding: 56px 0 48px;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.foot-mark {
  font-family: var(--font-serif); font-size: 18px;
  letter-spacing: var(--tracking-wide); color: var(--erede-navy);
}
.foot-meta {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 11px; letter-spacing: 0.05em;
  color: var(--erede-gray);
}
.foot-links { display: flex; gap: 32px; }
.foot-links a {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: var(--tracking-medium); text-transform: uppercase;
  color: var(--erede-navy);
  transition: color 220ms ease;
}
.foot-links a:hover { color: var(--erede-gold); }
@media (max-width: 920px) {
  .foot-links { display: none; }
}

/* Current editorial scale */
.hero-display,
.sect-title,
.feel-h,
.contact-h { font-size: clamp(40px, 6vw, 72px); }
.think-body p,
.trust-body p { font-size: 16px; }

/* Hero illustration */
.hero-illo {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 64px;
  display: flex; align-items: stretch; justify-content: center;
}
.hero-illo img { width: 100%; height: auto; display: block; }
