:root {
  --navy: #1E2459;
  --slate: #2E2E31;
  --accent: #4D6B8C;
  --gray: #6B6E73;
  --rule: #E4E5EB;
  --bg: #101223;
  --bg-alt: #171a33;
  --text: #F4F5F7;
  --text-dim: #C7CAD3;
  --max-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

h1, h2, h3, h4 { font-weight: 700; margin: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 18, 35, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(228, 229, 235, 0.1);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name { font-weight: 700; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  height: 140%;
  background-image: url("../images/skyline.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(16 18 35 / var(--overlay-a, 0.55)) 0%, rgb(16 18 35 / var(--overlay-b, 0.85)) 65%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}
.hero-sub {
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.hero-stats {
  max-width: 56ch;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}
.hero-back { margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5b7ea3; }
.btn-ghost { border: 1px solid rgba(244,245,247,0.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.lede { max-width: 62ch; color: var(--text-dim); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; }

/* Phases */
.phases { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.phase { display: flex; gap: 1rem; align-items: flex-start; }
.phase-num {
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.phase h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.phase p { margin: 0; color: var(--text-dim); font-size: 1.05rem; line-height: 1.65; }

/* Differentiators */
.diffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(228,229,235,0.12);
}
.diff h4 { font-size: 1rem; color: var(--text); margin-bottom: 0.4rem; }
.diff p { margin: 0; color: var(--text-dim); font-size: 1rem; line-height: 1.6; }

.tool-stack { color: var(--text-dim); font-size: 1rem; }
.tool-stack strong { color: var(--text); }

/* AEO/GEO phase line */
.phase-line {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

/* Client outcomes */
.stat {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.outcome-context {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.outcome:hover { transform: none; cursor: default; }

/* Portfolio grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.grid-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.grid-supporting {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  display: block;
  background: rgba(244,245,247,0.03);
  border: 1px solid rgba(228,229,235,0.12);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text); }
.card p { color: var(--text-dim); font-size: 1rem; line-height: 1.6; margin: 0 0 1rem; }
.card-link { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.card-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card-featured {
  padding: 2rem;
  background: rgba(77,107,140,0.08);
  border-color: rgba(77,107,140,0.35);
}
.card-featured h3 { font-size: 1.25rem; }
.card-featured p { font-size: 1.05rem; }

@media (max-width: 720px) {
  .grid-featured, .grid-supporting { grid-template-columns: 1fr; }
}

/* Footer */
.footer { border-top: 1px solid rgba(228,229,235,0.12); padding: 2rem 0; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.footer-inner a { color: var(--text-dim); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

@media (min-width: 640px) {
  .phases { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0.85rem 1.25rem; }
  .nav-name { font-size: 0.85rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
}
