/* ============================================================
   EDITORIAL — styles-v4.css
   Tony Peralta | Agentic AI Engineer & Federal IT Leader
   Design: Editorial gravitas. Light, typographic, no gimmicks.
   ============================================================ */

:root {
  --bg:         #F6F3EE;
  --bg-alt:     #EDE9E0;
  --bg-navy:    #1A2E4A;
  --ink:        #111111;
  --ink-2:      #454545;
  --ink-3:      #888888;
  --rule:       #C9C4BB;
  --navy:       #1A2E4A;
  --navy-hover: #243E60;
  --gold:       #7A5800;
  --navy-tint:  rgba(26, 46, 74, 0.06);

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --mono:    'DM Mono', 'Fira Mono', monospace;

  --max-w:       1100px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --section-v:   clamp(4rem, 8vw, 7rem);
  --radius:      3px;
  --transition:  0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-hover); }
img { max-width: 100%; display: block; }
ol, ul { list-style: none; }
em { font-style: italic; }

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

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 243, 238, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-brand:hover { color: var(--navy); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-list a:hover { color: var(--navy); }

.nav-contact {
  color: var(--navy) !important;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding-top: 60px; }

.hero-image-wrapper {
  width: 100%;
  height: clamp(220px, 42vh, 500px);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-content {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 5rem;
  align-items: start;
}

.hero-overline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.action-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.action-link:hover { color: var(--navy-hover); }

.action-link--muted {
  color: var(--ink-3);
}
.action-link--muted:hover { color: var(--navy); }

.action-link-icon {
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
  transition: color var(--transition);
}
.action-link-icon:hover { color: var(--navy); }

/* Hero right column stats */
.hero-right { padding-top: 0.5rem; }

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 0;
}

.hstat-num {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.hstat-label {
  font-size: 0.77rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.hero-stat-rule {
  height: 1px;
  background: var(--rule);
}

/* ── Pull Quote ─────────────────────────────────────────── */
.insight-section {
  background: var(--bg-navy);
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}

.insight-quote {
  max-width: 820px;
  margin: 0 auto;
  border: none;
  padding: 0;
}

.insight-quote p {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: #F0ECE4;
  margin-bottom: 1.5rem;
}

.insight-attr {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(240, 236, 228, 0.5);
  letter-spacing: 0.04em;
}

/* ── Section Shell ───────────────────────────────────────── */
.section {
  padding: var(--section-v) var(--gutter);
  background: var(--bg);
}
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.section-num {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--rule);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.3rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 580px;
  line-height: 1.7;
}

.subsection-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

/* ── Expertise ───────────────────────────────────────────── */
.expertise-table {
  display: flex;
  flex-direction: column;
}

.exp-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.exp-row:first-child { border-top: 1px solid var(--rule); }

.exp-category {
  font-size: 0.77rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
  line-height: 1.5;
}

.exp-skills {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.9;
}

/* ── Leadership ──────────────────────────────────────────── */
.leadership-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.body-large {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.body-text {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.body-text em {
  color: var(--navy);
  font-style: normal;
  font-weight: 500;
}

.leadership-note {
  background: var(--navy-tint);
  border-left: 2px solid var(--navy);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.note-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.note-text {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.leadership-stats-col {
  display: flex;
  flex-direction: column;
}

.lstat {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.lstat:first-child { border-top: 1px solid var(--rule); }

.lstat-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.lstat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.lstat-detail {
  font-size: 0.71rem;
  color: var(--ink-3);
  font-family: var(--mono);
  line-height: 1.5;
}

.discipline-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.disc-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--rule);
}
.disc-item:last-child { border-right: none; }
.disc-item:first-child { padding-left: 0; }

.disc-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.disc-desc {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ── AWS Expertise ───────────────────────────────────────── */
.aws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.aws-item {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.aws-item:nth-child(3n) { border-right: none; }
.aws-item:first-child { padding-left: 0; }
.aws-item:nth-child(4) { padding-left: 0; }

.aws-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.aws-level {
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--navy-tint);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.aws-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.aws-desc {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ── Case Studies ────────────────────────────────────────── */
.case-list { display: flex; flex-direction: column; }

.case-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.case-item:first-child { border-top: 1px solid var(--rule); }

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.case-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.case-client {
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--navy);
}

.case-period {
  font-size: 0.78rem;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.case-col-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}

.case-col p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.75;
}

.case-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.result { display: flex; flex-direction: column; gap: 0.15rem; }

.result-val {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.result-label {
  font-size: 0.68rem;
  color: var(--ink-3);
  line-height: 1.3;
}

.case-stack {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ── Projects ────────────────────────────────────────────── */
.project-filters {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.3rem 0.8rem;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); }

.project-list { display: flex; flex-direction: column; }

.project-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.project-item:first-child { border-top: 1px solid var(--rule); }
.project-item.hidden { display: none; }

.project-num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--rule);
  font-weight: 400;
  padding-top: 0.2rem;
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.project-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.project-cat {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--navy-tint);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-desc {
  font-size: 0.87rem;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ── Media ───────────────────────────────────────────────── */
.media-featured { margin-bottom: 3rem; }

.media-featured-link {
  display: block;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 2rem;
  transition: border-color var(--transition);
  max-width: 520px;
}
.media-featured-link:hover { border-color: var(--navy); }

.media-featured-label {
  font-size: 0.69rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.media-featured-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color var(--transition);
}
.media-featured-link:hover .media-featured-title { color: var(--navy); }

.media-featured-desc {
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.media-featured-cta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.media-filters {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.media-filter-btn {
  padding: 0.3rem 0.8rem;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}
.media-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.media-filter-btn.active { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); }

.media-list { display: flex; flex-direction: column; }

.media-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.media-item:first-child { border-top: 1px solid var(--rule); }
.media-item.hidden { display: none; }

.media-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.media-type {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--navy-tint);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.media-source {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.media-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.media-quote {
  border-left: 2px solid var(--gold);
  padding-left: 0.85rem;
  margin: 0.75rem 0;
}

.media-quote blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  line-height: 1.55;
}

.media-desc {
  font-size: 0.83rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.media-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transition);
}
.media-link:hover { color: var(--navy-hover); }

/* ── Photo Gallery ───────────────────────────────────────── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.photo-item:hover img { opacity: 0.85; transform: scale(1.03); }

.photo-overlay { position: absolute; inset: 0; }
.photo-zoom { display: none; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.97);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem; right: 0;
  color: rgba(240, 236, 228, 0.55);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #F0ECE4; }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: -3.5rem; right: -3.5rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-nav button {
  pointer-events: all;
  background: transparent;
  border: 1px solid rgba(240, 236, 228, 0.3);
  color: rgba(240, 236, 228, 0.65);
  font-size: 1.5rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.lightbox-nav button:hover { border-color: #F0ECE4; color: #F0ECE4; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-navy);
  padding: 2rem var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer p {
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(240, 236, 228, 0.4);
}

.site-footer a {
  color: rgba(240, 236, 228, 0.65);
  border-bottom: 1px solid rgba(240, 236, 228, 0.2);
  padding-bottom: 1px;
  transition: all var(--transition);
}
.site-footer a:hover { color: #F0ECE4; border-bottom-color: rgba(240, 236, 228, 0.6); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right {
    display: flex;
    gap: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
  }
  .hero-stat {
    flex: 1;
    border-right: 1px solid var(--rule);
    padding: 0 1.5rem;
  }
  .hero-stat:first-child { padding-left: 0; }
  .hero-stat:last-child { border-right: none; }
  .hero-stat-rule { display: none; }

  .leadership-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .case-body { grid-template-columns: 1fr 1fr; }
  .case-col--results { grid-column: span 2; }
  .aws-grid { grid-template-columns: 1fr 1fr; }
  .aws-item:nth-child(3n) { border-right: 1px solid var(--rule); }
  .aws-item:nth-child(2n) { border-right: none; }
  .aws-item:nth-child(4) { padding-left: 1.5rem; }
  .discipline-strip { grid-template-columns: 1fr 1fr; }
  .disc-item:nth-child(2) { border-right: none; }
  .disc-item:nth-child(3) { padding-left: 0; border-right: 1px solid var(--rule); }
  .disc-item:nth-child(4) { border-right: none; }
}

@media (max-width: 640px) {
  .nav-list { display: none; }

  .hero-right { flex-direction: column; border-top: none; }
  .hero-stat { border-right: none; padding: 0; border-bottom: 1px solid var(--rule); }
  .hero-stat:last-child { border-bottom: none; }

  .exp-row { grid-template-columns: 1fr; gap: 0.4rem; }

  .case-body { grid-template-columns: 1fr; }
  .case-col--results { grid-column: span 1; }

  .aws-grid { grid-template-columns: 1fr; }
  .aws-item { border-right: none !important; padding-left: 0 !important; }

  .discipline-strip { grid-template-columns: 1fr; }
  .disc-item { border-right: none !important; padding-left: 0 !important; }

  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox-nav { left: -1rem; right: -1rem; }

  .section-head { flex-direction: column; gap: 0.4rem; }
}
