/* ============================================================
   ECHELON MEDIA CONSULTING — shared stylesheet
   Palette: near-black / warm paper white, single hairline accent
   Type: Fraunces (display), Inter (body), JetBrains Mono (labels)
   Motif: staggered diagonal "echelon" formation
   ============================================================ */

:root {
  --ink: #14130f;
  --paper: #f7f5f0;
  --paper-dim: #eeece4;
  --line: #d9d5c9;
  --stone: #6b6656;
  --accent: #14130f;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-label: 'JetBrains Mono', ui-monospace, monospace;

  --step: 6deg; /* the echelon stagger angle */
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 440; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { max-width: 62ch; color: var(--ink); }
p.lede { font-size: 1.2rem; color: var(--stone); max-width: 46ch; }

.label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--stone);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

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

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; max-width: var(--max); margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span { color: var(--stone); font-style: italic; }
nav.links { display: flex; gap: 34px; }
nav.links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
nav.links a[aria-current="page"] { color: var(--ink); }
nav.links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
}
nav.links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--stone);
}
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* ---------- echelon diagonal cluster (hero + portfolio) ---------- */
.echelon-cluster {
  position: relative;
  height: 420px;
}
.echelon-cluster .tile {
  position: absolute;
  background: var(--ink);
  overflow: hidden;
}
.echelon-cluster .tile img { width: 100%; height: 100%; object-fit: cover; }
.echelon-cluster .tile:nth-child(1) {
  width: 46%; height: 78%; left: 0; top: 6%;
  transform: rotate(calc(var(--step) * -1));
  z-index: 3;
}
.echelon-cluster .tile:nth-child(2) {
  width: 40%; height: 62%; left: 32%; top: 26%;
  transform: rotate(var(--step));
  z-index: 2;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.9;
}
.echelon-cluster .tile:nth-child(3) {
  width: 34%; height: 46%; left: 60%; top: 4%;
  transform: rotate(calc(var(--step) * -0.6));
  z-index: 1;
  background: var(--paper-dim);
  border: 1px solid var(--line);
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 100px; border-top: none; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- staggered grid (services / work / packages) ---------- */
.stagger-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.stagger-grid > * { transition: transform 0.25s ease; }
.stagger-grid > *:nth-child(2) { transform: translateY(28px); }
.stagger-grid > *:nth-child(3n+1) { transform: translateY(-10px); }
.stagger-grid > *:hover { transform: translateY(-4px); }

.card {
  border: 1px solid var(--line);
  padding: 34px 28px;
  background: var(--paper);
}
.card .num { font-family: var(--font-label); font-size: 0.8rem; color: var(--stone); }
.card h3 { margin-top: 14px; }
.card p { font-size: 0.98rem; color: var(--stone); margin-top: 10px; }

/* ---------- work grid ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-item { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--ink); }
.work-item:nth-child(3n+2) { transform: rotate(-1.4deg); }
.work-item:nth-child(3n) { transform: rotate(1.4deg); margin-top: 26px; }
.work-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.work-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(20,19,15,0.82), transparent);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: 0.78rem;
}

/* ---------- pricing ---------- */
.price-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.price-tier {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 30px;
  position: relative;
}
.price-tier.signature { background: var(--ink); color: var(--paper); }
.price-tier.signature .label { color: #c9c5b6; }
.price-tier .amount { font-family: var(--font-display); font-size: 2.4rem; margin: 18px 0 22px; }
.price-tier ul { list-style: none; padding: 0; margin: 0 0 28px; }
.price-tier li {
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 0.94rem; color: var(--stone);
}
.price-tier.signature li { border-top-color: #333228; color: #d8d5c8; }
.price-tier:first-of-type li:first-child,
.price-tier li:first-child { border-top: none; }

/* ---------- process ---------- */
.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.process-item .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--stone); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 30px;
}
.footer-grid nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-grid nav a { text-decoration: none; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-label); font-size: 0.75rem; color: var(--stone);
}

/* ---------- contact form ---------- */
.form-grid { display: grid; gap: 22px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-label); font-size: 0.78rem; color: var(--stone); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--ink); outline-offset: 1px;
}
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info .item { margin-bottom: 26px; }
.contact-info .item .label { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  nav.links { display: none; }
  .hero-grid, .contact-split { grid-template-columns: 1fr; }
  .stagger-grid, .work-grid, .price-row { grid-template-columns: 1fr; }
  .stagger-grid > *, .work-item, .work-item:nth-child(3n+2), .work-item:nth-child(3n) {
    transform: none; margin-top: 0;
  }
  .echelon-cluster { height: 320px; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
