/* ==========================================================================
   EP Advisors — Ecstasis Place Advisors
   Design system: brutalist architectural. Black + steel blue + Archivo.
   ========================================================================== */

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

:root {
  /* Color */
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --text: #e8e8e6;
  --text-muted: rgba(232, 232, 230, 0.65);
  --text-subtle: rgba(232, 232, 230, 0.45);
  --accent: #6b8caa;
  --accent-dim: rgba(107, 140, 170, 0.5);
  --border: rgba(232, 232, 230, 0.15);
  --border-strong: rgba(232, 232, 230, 0.25);

  /* Typography */
  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* Type scale */
  --display: clamp(2.5rem, 6vw, 4.5rem);
  --h1: clamp(2rem, 4.5vw, 3.5rem);
  --h2: clamp(1.5rem, 3vw, 2.25rem);
  --h3: clamp(1.125rem, 2vw, 1.375rem);
  --eyebrow: 0.6875rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ----- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
main { flex: 1; }

/* ----- Top nav ----------------------------------------------------------- */
.site-nav {
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}
.site-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.site-nav__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.site-nav__wordmark {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}
.site-nav__brand:hover .site-nav__monogram {
  background: var(--accent);
  color: var(--bg);
}
@media (max-width: 560px) {
  .site-nav__monogram { width: 1.875rem; height: 1.875rem; font-size: 0.8125rem; }
  .site-nav__wordmark { font-size: 0.5625rem; letter-spacing: 0.16em; }
}
.site-nav__links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.site-nav__links a { transition: color 0.2s; }
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] { color: var(--text); }

@media (max-width: 560px) {
  .site-nav__links { gap: 1rem; font-size: 0.625rem; }
}

/* ----- Eyebrow / labels -------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: var(--eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

/* ----- Hero (home only) -------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: clamp(440px, 62vh, 620px);
  border-bottom: 0.5px solid var(--border);
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
}
.hero__content {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hero__title {
  font-size: var(--display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
}
.hero__title em { color: var(--accent); font-style: normal; }
.hero__lede {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 30em;
  line-height: 1.55;
}
.hero__skyline {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.hero__skyline svg { width: 100%; height: 100%; }

/* ----- Page header (subpages) ------------------------------------------- */
.page-header {
  border-bottom: 0.5px solid var(--border);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.page-header__title {
  font-size: var(--h1);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-top: 1.5rem;
  max-width: 14ch;
}
.page-header__title em { color: var(--accent); font-style: normal; }
.page-header__lede {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 38em;
  line-height: 1.6;
}

/* ----- Section ----------------------------------------------------------- */
.section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.section__title {
  font-size: var(--h1);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-top: 1.25rem;
  max-width: 18ch;
}
.section__lede {
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 36em;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ----- Tier (services page) --------------------------------------------- */
.tier {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.tier:first-of-type { border-top: 0.5px solid var(--border); }
@media (max-width: 768px) { .tier { grid-template-columns: 1fr; } }

.tier__meta { display: flex; flex-direction: column; gap: 0.75rem; }
.tier__index {
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}
.tier__name {
  font-size: var(--h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.tier__price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
}
.tier__body { display: flex; flex-direction: column; gap: 1.25rem; }
.tier__body p { color: var(--text-muted); line-height: 1.7; font-size: 1.0625rem; }
.tier__list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.tier__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.tier__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}
.tier__fit {
  font-style: italic;
  color: var(--text-subtle);
  font-size: 0.9375rem;
  border-left: 1px solid var(--accent);
  padding-left: 1rem;
  line-height: 1.5;
}

/* ----- Tier preview (home) ---------------------------------------------- */
.tier-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
@media (max-width: 768px) { .tier-preview { grid-template-columns: 1fr; } }
.tier-preview__card {
  background: var(--bg);
  padding: 2rem clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}
.tier-preview__card:hover { background: var(--surface); }
.tier-preview__index {
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}
.tier-preview__name { font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.tier-preview__desc { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.tier-preview__more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 1rem;
}

/* ----- Examples placeholder --------------------------------------------- */
.example {
  padding: 2.25rem 0;
  border-bottom: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.example:first-of-type { border-top: 0.5px solid var(--border); }
@media (max-width: 768px) { .example { grid-template-columns: 1fr; } }
.example__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  text-transform: uppercase;
}
.example__title {
  font-size: var(--h3);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.example__body { color: var(--text-muted); line-height: 1.7; }

/* ----- Prose ------------------------------------------------------------- */
.prose { max-width: 38em; }
.prose p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 1.0625rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 500; }
.prose em { color: var(--accent); font-style: italic; }
.prose .lede {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.prose h2,
.prose h3 {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* ----- Stats row --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 1.75rem 0;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  text-transform: uppercase;
}
.stat__value {
  font-size: 1.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
}
.stat__value em { color: var(--accent); font-style: normal; }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85em 1.4em;
  border: 0.5px solid var(--accent);
  border-radius: 2px;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-sans);
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--accent); color: var(--bg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent);
  padding-bottom: 0.25rem;
}
.link-arrow:hover { color: var(--text); }

/* ----- Contact details --------------------------------------------------- */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--border);
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.contact-details dd {
  font-size: 1rem;
  color: var(--text);
}
.contact-details dd a { color: var(--accent); border-bottom: 0.5px solid var(--accent-dim); }
.contact-details dd a:hover { border-bottom-color: var(--accent); }

/* ----- Footer ------------------------------------------------------------ */
.site-foot {
  border-top: 0.5px solid var(--border);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.site-foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}
.site-foot__inner a { color: var(--text-muted); }
.site-foot__inner a:hover { color: var(--text); }
