/* ═══════════════════════════════════════════
   ABHI PRAKASH — Executive Portfolio
   Design System: Obsidian · Warm White · Red
   ═══════════════════════════════════════════ */

/* ── 1. Variables & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --midnight:   #111827;
  --graphite:   #1E2530;
  --off-white:  #F3F0E8;
  --white:      #FFFFFF;
  --red:        #C41E3A;  /* Cardinal Red — vibrant, premium; 5.3:1 on off-white, 6.0:1 on white */
  --red-hover:  #A5182F;  /* darker for hover/active states */
  --red-dark:   #E5677C;  /* accessible red for dark backgrounds — 5.6:1 on midnight, 4.8:1 on graphite */
  --steel:      #324A5F;

  --gray-100:   #E8E5DC;
  --gray-300:   #9A968F; /* was #B8B4A8 — darkened for better contrast */
  --gray-500:   #6B6762; /* was #7A7670 — now passes 4.5:1 on white and off-white */
  --gray-700:   #3A3830;

  --font-display:    'Inter Tight', 'Helvetica Neue', 'Arial Black', sans-serif;
  --font-body:       'Inter', system-ui, -apple-system, sans-serif;
  --font-signature:  'Great Vibes', cursive;

  --nav-h: 68px;
  --container: 1200px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── 2. Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ── 3. Eyebrow Labels ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.eyebrow__line {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}
.eyebrow__text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light .eyebrow__text { color: rgba(255,255,255,.6); } /* was .4 — now passes 4.5:1 on dark backgrounds */
.eyebrow--light .eyebrow__line { background: var(--red); }

/* ── 4. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.05); }
.btn--full { width: 100%; justify-content: center; }

/* ── 5. Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,.06);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--white);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav__logo:hover { color: rgba(255,255,255,.7); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav__link--accent { color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.25s;
}
.nav__toggle.open span:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:last-child  { transform: translateY(-7.5px) rotate(-45deg); }

.nav__drawer {
  display: none;
  flex-direction: column;
  background: rgba(17,24,39,.98);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 40px 28px;
}
.nav__drawer.open { display: flex; }
.nav__drawer-link {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color 0.2s;
}
.nav__drawer-link:last-child { border-bottom: none; }
.nav__drawer-link:hover { color: var(--white); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { padding: 0 24px; }
  .nav__drawer { padding: 16px 24px 28px; }
}

/* ── 6. Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--midnight);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 40px 100px;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s var(--ease) forwards;
}
.hero__eyebrow span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.hero__eyebrow-sep {
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,.2) !important;
  letter-spacing: 0 !important;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.25rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}
.hero__descriptor {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55); /* was .35 — improved readability */
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s var(--ease) forwards;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s var(--ease) forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.8s 1.2s var(--ease) forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(196,30,58,.6), transparent);
  animation: scrollPulse 2.5s 1.5s ease-in-out infinite;
}
.hero__scroll-label {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}

@media (max-width: 768px) {
  .hero__inner { padding: calc(var(--nav-h) + 40px) 24px 80px; }
  .hero__eyebrow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__eyebrow-sep { display: none !important; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
}

/* ── 7. Manifesto Band ── */
.manifesto {
  background: var(--graphite);
  padding: 100px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.manifesto__quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  opacity: 0.92;
}
@media (max-width: 768px) { .manifesto { padding: 72px 24px; } }

/* ── 8. Story ── */
.story {
  background: var(--off-white);
  padding: 120px 0;
}
.story__layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: start;
}
.story__photo-frame {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
}
.story__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s var(--ease);
}
.story__photo-frame:hover .story__photo { transform: scale(1.02); }
.story__caption {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 14px;
}
.story__badges {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.story__badge--flag {
  display: block;
  height: 26px;
  width: auto;
  border-radius: 3px;
}
.story__badge--seal {
  display: block;
  height: 52px;
  width: 52px;
  object-fit: contain;
}
.story__photo-sig {
  display: block;
  width: 220px;
  margin-top: 20px;
  mix-blend-mode: multiply; /* removes white bg — ink sits on off-white naturally */
  opacity: 0.82;
}
.story__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--midnight);
  margin-bottom: 40px;
}
.story__bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.story__bio p:last-child { margin-bottom: 0; }
.story__signature {
  margin-top: 40px;
}
.story__signature__text {
  font-family: var(--font-signature);
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--midnight);
  display: block;
  letter-spacing: 0;
}
.story__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
}
.story__stat-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.story__stat-l {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500); /* was gray-300 — stat labels are meaningful content, need better contrast */
}

@media (max-width: 1024px) {
  .story__layout { grid-template-columns: 340px 1fr; gap: 56px; }
}
@media (max-width: 768px) {
  .story { padding: 80px 0; }
  .story__layout { grid-template-columns: 1fr; gap: 40px; }
  .story__photo-frame { aspect-ratio: 4/3; }
  .story__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── 9. Ventures ── */
.ventures {
  background: var(--midnight);
  padding: 120px 0;
}
.ventures__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 72px;
}
.ventures__list { position: relative; }

.venture-item {
  display: grid;
  grid-template-columns: 160px 1fr 140px;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  transition: background 0.25s var(--ease);
  cursor: default;
}
.venture-item:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.venture-item::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--red);
  transition: width 0.45s var(--ease);
}
.venture-item:hover::before { width: 100%; }
.venture-item:hover .venture-name { color: var(--white); }

.venture-cat {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-dark); /* was var(--red) — #6E1F28 on midnight is only 1.35:1; red-dark passes 5.76:1 */
}
.venture-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.venture-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.55); /* was .35 — improved readability on midnight */
  line-height: 1.65;
}
.venture-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color 0.2s;
  justify-content: flex-end;
}
.venture-link:hover { color: var(--white); }
.venture-arrow { transition: transform 0.2s var(--ease); }
.venture-link:hover .venture-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .venture-item { grid-template-columns: 140px 1fr; grid-template-rows: auto auto; }
  .venture-item__right { grid-column: 2; justify-content: flex-start; }
  .venture-link { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ventures { padding: 72px 0; }
  .venture-item { grid-template-columns: 1fr; gap: 0; padding: 20px 0; }
  .venture-item__left { display: none; } /* category label is redundant on mobile without the number */
  .venture-item__right { display: none; }
}

/* ── 10. Thinking ── */

/* Featured article card */
.article-featured {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  background: var(--white);
  margin-bottom: 2px;
  text-decoration: none;
  position: relative;
  border-top: 2px solid transparent;
  transition: border-top-color 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}
.article-featured:hover { border-top-color: var(--red); transform: translateY(-3px); }
.article-featured__left {
  padding: 40px 44px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--gray-100);
}
.article-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-featured__sep {
  width: 1px;
  height: 12px;
  background: var(--gray-300);
}
.article-featured__time {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500); /* was gray-300 — better contrast on white card */
}
.article-featured__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--midnight);
}
.article-featured__excerpt {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}
.article-featured__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.article-featured__read {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  transition: color 0.2s;
}
.article-featured__arrow {
  color: var(--red);
  font-size: 0.875rem;
  transition: transform 0.2s var(--ease);
}
.article-featured:hover .article-featured__arrow { transform: translateX(4px); }
.article-featured__right {
  background: var(--midnight);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.article-featured__badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 5px 12px;
  align-self: flex-start;
}
.article-featured__pull {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(255,255,255,.85);
  font-style: italic;
}
.article-featured__date {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45); /* was .25 — improved readability */
}

@media (max-width: 900px) {
  .article-featured { grid-template-columns: 1fr; }
  .article-featured__left { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 32px 28px; }
  .article-featured__right { padding: 28px; min-height: 160px; }
}
@media (max-width: 640px) {
  .article-featured__right { display: none; }
  .article-featured__left { padding: 28px 24px; }
}


.thinking {
  background: var(--off-white);
  padding: 120px 0;
}
.thinking__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}
.thinking__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 3.5vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--midnight);
}
.thinking__sub {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 380px;
}
.thinking__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.article-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.3s var(--ease);
  border-top: 2px solid transparent;
}
.article-card:hover { border-top-color: var(--red); transform: translateY(-4px); }
.article-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-cat {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.article-status {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
  background: var(--gray-100);
  padding: 3px 10px;
}
.article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--midnight);
  flex: 1;
}
.article-excerpt {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.article-card__footer { margin-top: auto; }
.article-time {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--gray-300);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .thinking__header { grid-template-columns: 1fr; }
  .thinking__grid { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) { .thinking { padding: 80px 0; } }

/* ── 11. Speaking ── */
.speaking {
  background: var(--graphite);
  padding: 120px 0;
}
.speaking__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 3.5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 72px;
}
.speaking__list { margin-bottom: 64px; }
.speaking-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  transition: border-top-color 0.2s;
}
.speaking-item:last-child { border-bottom: 1px solid rgba(255,255,255,.07); }
.speaking-item:hover { border-top-color: var(--red); }
.speaking-type {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-dark); /* was var(--red) — #6E1F28 on graphite is only 1.35:1; red-dark passes 4.91:1 */
}
.speaking-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
}
.speaking-info p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5); /* was .3 — improved readability on graphite */
  letter-spacing: 0.02em;
}
.speaking__cta {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.speaking__cta p {
  font-size: 1rem;
  color: rgba(255,255,255,.65); /* was .4 — improved readability */
  line-height: 1.5;
}

@media (max-width: 640px) {
  .speaking { padding: 80px 0; }
  .speaking-item { grid-template-columns: 1fr; gap: 8px; }
  .speaking__cta { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── 12. Contact ── */
.contact {
  background: var(--midnight);
  padding: 120px 0;
}
.contact__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 72px;
}
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact__intro {
  font-size: 1rem;
  color: rgba(255,255,255,.7); /* was .45 — contact intro is meaningful body text, needs better contrast */
  line-height: 1.8;
  margin-bottom: 48px;
}
.contact__links { display: flex; flex-direction: column; gap: 0; }
.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: border-bottom-color 0.2s;
}
.contact__link:first-child { border-top: 1px solid rgba(255,255,255,.06); }
.contact__link:hover { border-bottom-color: var(--red); }
.contact__link-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45); /* was .25 — improved readability */
  flex-shrink: 0;
  width: 80px;
}
.contact__link-value {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.8); /* was .65 — contact links are primary interaction elements */
  transition: color 0.2s;
}
.contact__link:hover .contact__link-value { color: var(--white); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5); /* was .25 — form labels must be readable */
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.2); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.3);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.form-note {
  font-size: 0.875rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  min-height: 20px;
}
.form-note.success { color: #5aab6e; font-weight: 500; }

@media (max-width: 900px) { .contact__layout { grid-template-columns: 1fr; gap: 64px; } }
@media (max-width: 640px) {
  .contact { padding: 80px 0; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── 13. Footer ── */
.footer {
  background: var(--graphite);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.04);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__left { display: flex; align-items: center; gap: 18px; }
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer__tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,.2);
  letter-spacing: 0.06em;
}
.footer__copy {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.18);
  letter-spacing: 0.04em;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.3);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__left { flex-direction: column; gap: 6px; }
}

/* ── 14. Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.9; }
}

/* ── 15. Reveal Utility ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── 16. Skip Navigation ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ── 17. Focus Styles ── */
/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
/* On dark backgrounds, use a lighter ring */
.nav :focus-visible,
.ventures :focus-visible,
.speaking :focus-visible,
.contact :focus-visible,
.hero :focus-visible,
.manifesto :focus-visible,
.article-hero :focus-visible,
.article-footer-band :focus-visible,
.footer :focus-visible {
  outline-color: var(--red-dark);
}
/* Form focus: border glow instead of outline */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 3px rgba(217,114,127,.2);
}
/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── 18. Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
  /* Make hero content immediately visible */
  .hero__eyebrow,
  .hero__headline,
  .hero__descriptor,
  .hero__actions,
  .hero__scroll {
    opacity: 1;
    animation: none;
  }
  /* Make reveal elements immediately visible */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* Disable scroll pulse */
  .hero__scroll-line {
    animation: none;
    opacity: 0.5;
  }
}

/* ── 19. Article page accessibility overrides ── */
/* These use higher specificity (2 classes) to override per-page inline style blocks (1 class),
   fixing contrast issues without touching each HTML file individually.             */

/* Article hero: red category label on midnight background — was var(--red) at ~1.35:1 */
.article-hero .article-hero__cat  { color: var(--red-dark); }

/* Article hero: time, date, and subtitle — opacity values in inline styles were too low */
.article-hero .article-hero__time,
.article-hero .article-hero__date { color: rgba(255,255,255,.55); }
.article-hero .article-hero__sub  { color: rgba(255,255,255,.6); }
.article-hero .article-hero__back { color: rgba(255,255,255,.5); }

/* Article footer band "Written by" label — was .25 across all pages */
.article-footer-band .article-footer-band__label { color: rgba(255,255,255,.5); }

/* Stats band labels in cloud-secret.html and fusion-energy.html — was .3 */
.stats-band .stat-block__l { color: rgba(255,255,255,.5); }

/* Lightside Creed eyebrow — var(--red) on midnight is ~1.35:1 */
.creed .creed__eyebrow { color: var(--red-dark); }

/* Lightside Creed closing line — was .45 on midnight */
.creed .creed__close p { color: rgba(255,255,255,.65); }

/* ── 20. Reading progress bar (article pages) ── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--red);
  z-index: 300;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
}

/* ── 21. Coming-soon article cards ── */
.article-card--coming-soon {
  opacity: 0.55;
  pointer-events: none;
}
.article-card--coming-soon:hover {
  transform: none;
  border-top-color: transparent;
}

/* ── 22. Page fade-in transition ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageFadeIn 0.38s var(--ease) both; }
}
