/* ---------- design tokens (logo-aligned palette) ---------- */
:root {
  --navy:        #0E2A47;        /* deep navy — wordmark */
  --navy-deep:   #081B30;
  --navy-soft:   #173E66;
  --blue-mid:    #1B4A7E;        /* darker blue from V "E" */
  --accent:      #3B7FBC;        /* medium blue from V outer — primary accent */
  --accent-soft: #9EC5E3;        /* light blue — for inverse contexts */
  --bg:          #F5F7FA;        /* cool off-white */
  --bg-tinted:   #E8EEF5;
  --ink:         #14202E;
  --ink-soft:    #4A586B;
  --line:        #D6DEE8;
  --white:       #ffffff;

  --maxw: 1180px;
  --gut:  clamp(20px, 4vw, 56px);
  --radius: 6px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

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

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(214, 222, 232, 0.7);
}
.topbar-inner {
  padding: 16px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.brand, .topbar nav { flex-shrink: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  height: 56px;
  width: auto;
  display: block;
  /* If/when V.jpg is replaced with a transparent PNG, this can come out: */
  mix-blend-mode: multiply;
}
.brand-wordmark {
  font-family: 'Mulish', 'Avenir Next', 'Avenir', 'Helvetica Neue', system-ui, sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1.2px;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand-divider {
  margin: 0 14px;
  color: var(--accent);
  font-weight: 300;
}

.topbar nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.topbar nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.topbar nav a:hover { color: var(--navy); }
.topbar nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
}
.topbar nav a.nav-cta:hover { background: var(--navy-soft); color: var(--white); }

@media (max-width: 980px) {
  .brand-wordmark { font-size: 19px; letter-spacing: 0.5px; white-space: normal; }
  .brand-mark { height: 48px; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px var(--gut); }
  .topbar nav { gap: 14px; flex-wrap: wrap; }
  .topbar nav a { font-size: 13px; }
  .brand-mark { height: 40px; }
  .brand-wordmark { font-size: 16px; }
  .brand-divider { margin: 0 8px; }
}
@media (max-width: 480px) {
  .brand-wordmark { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--navy-deep);
  background-image: url('assets/photos/smolyan-aerial-1.jpg');
  background-size: cover;
  background-position: center;
}
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(8, 27, 48, 0.78) 0%, rgba(8, 27, 48, 0.30) 60%, rgba(8, 27, 48, 0.55) 100%);
}
.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gut);
  align-self: center;
  color: var(--white);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px 0;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--blue-mid); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px 0;
}
.eyebrow-light { color: var(--accent-soft); }

/* ---------- stats strip ---------- */
.stats {
  background: var(--navy);
  color: var(--white);
}
.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gut);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-unit {
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 4px;
  color: var(--accent-soft);
}
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.3px;
}

/* ---------- generic sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .lede { color: rgba(255, 255, 255, 0.78); }
.section-tinted { background: var(--bg-tinted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 0 0 18px 0;
  max-width: 24ch;
}
.section-dark h2 { color: var(--white); }
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 40px 0;
  line-height: 1.55;
}

.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}
.col-text p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px 0; max-width: 56ch; }

.col-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.col-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--navy);
}
.col-card h3 + p, .col-card h3 + ul { margin-bottom: 20px; }
.col-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Smolyan project section ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin: 36px 0 48px 0;
}
.project-grid .wide { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
}
.project-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  aspect-ratio: 16 / 9;
}
.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0 0 48px 0;
}
@media (max-width: 720px) { .project-facts { grid-template-columns: 1fr; gap: 0; } }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
}
.fact-k { color: var(--accent-soft); font-weight: 500; }
.fact-v { color: var(--white); text-align: right; }

.project-narrative h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 14px 0;
  color: var(--white);
}
.project-narrative p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 70ch;
  margin: 0 0 14px 0;
}

/* ---------- portfolio table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.track-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.track-table thead th {
  text-align: left;
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 13px;
  text-transform: uppercase;
}
.track-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.track-table tbody tr:last-child td { border-bottom: none; }
.track-table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.02); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.tag-op { background: #DDEAF5; color: #1B4A7E; }
.tag-dev { background: #E8EEF5; color: #4A586B; }

.footnote {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 80ch;
}

/* ---------- approach grid ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.approach-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: var(--navy);
}
.approach-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
  line-height: 1.55;
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: var(--navy);
}
.team-card .role {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.2px;
}
.team-card .loc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 14px 0;
}
.team-card p:last-child {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ---------- news ---------- */
.news-card {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
}
.news-card:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .news-card { grid-template-columns: 1fr; gap: 8px; }
}
.news-card.featured h3 { font-size: 26px; }
.news-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
}
.news-date { font-size: 13px; color: var(--ink-soft); }

.news-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: var(--navy);
}
.news-summary {
  color: var(--ink-soft);
  margin: 0 0 12px 0;
  max-width: 72ch;
}
.news-body summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  list-style: none;
}
.news-body summary::-webkit-details-marker { display: none; }
.news-body summary::after { content: " →"; }
.news-body[open] summary::after { content: " ↑"; }
.news-body[open] summary { margin-bottom: 14px; }
.news-body p { color: var(--ink-soft); margin: 0 0 14px 0; max-width: 72ch; }
.news-body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-tinted);
  font-style: italic;
  color: var(--ink);
  max-width: 72ch;
}
.news-body blockquote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 10px;
}
.draft-note {
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 26px 28px;
  color: var(--white);
  transition: background 0.15s, transform 0.15s;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px 0;
  color: var(--white);
}
.contact-card .role {
  font-size: 13px;
  color: var(--accent-soft);
  margin: 0 0 14px 0;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.contact-card .email {
  font-size: 15px;
  color: var(--white);
  margin: 0;
  word-break: break-all;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 36px 0;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  margin: 0 0 4px 0;
  font-size: 16px;
}
.footer-tag { margin: 0; font-size: 13px; }
.site-footer p { margin: 0 0 6px 0; }
.footer-links { font-size: 13px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent-soft); }
