/* =================================================================
   Varun Vashisht — Editorial / Professional Portfolio
   Light cream backdrop · deep navy · steel + muted gold accents
   ================================================================= */

:root {
  /* Surfaces */
  --bg: #121212;          /* neutral true dark */
  --bg-2: #1e1e1e;        /* card surface */
  --bg-3: #181818;        /* subtle alt */
  --bg-dark: #0a0a0a;     /* darkest neutral */

  /* Text */
  --text: #ffffff;        /* pure white */
  --text-soft: #a3a3a3;   /* medium gray */
  --text-mute: #737373;   /* darker gray */
  --text-quiet: #525252;
  --on-dark: #ffffff;     /* text on dark */
  --on-dark-soft: #d4d4d4;

  /* Accents */
  --accent: #10b981;      /* emerald green */
  --accent-soft: #34d399;
  --gold: #10b981;        /* emerald (mapped from gold for compatibility) */
  --gold-soft: #34d399;   /* soft emerald */

  /* Borders */
  --border: #262626;
  --border-strong: #404040;
  --hairline: rgba(255, 255, 255, 0.05);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 22px 48px -16px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --maxw: 1200px;

  --t: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv02", "cv11";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--t); }

::selection { background: rgba(184, 150, 90, 0.3); color: var(--text); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 16px;
  font-feature-settings: "ss01";
}
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 500; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; font-family: "Inter", sans-serif; letter-spacing: -0.01em; }
p  { margin: 0 0 16px; color: var(--text-soft); }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 1px;
  background: var(--gold);
}
.eyebrow.center { padding-left: 0; }
.eyebrow.center::before { display: none; }
.eyebrow.on-dark { color: var(--gold-soft); }
.eyebrow.on-dark::before { background: var(--gold-soft); }

.center { text-align: center; display: block; margin-left: auto; margin-right: auto; }
.section { padding: 120px 0; position: relative; }
.section-title { margin-bottom: 14px; }
.section-sub {
  color: var(--text-mute);
  max-width: 640px;
  margin: 0 auto 64px;
  font-size: 17px;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--t);
  /* Subtle scrim so nav text is always readable over hero image */
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, transparent 100%);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg-dark);
  border-radius: 6px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.brand-text {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active:not(.nav-cta) { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--t);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.active:not(.nav-cta)::after { width: 100%; }

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s var(--t);
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  cursor: pointer;
  padding: 9px;
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--t), opacity 0.3s var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--t);
  }
  .nav-links.open { transform: scale(1); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 12px; width: 100%; }
  .nav-cta { text-align: center; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--t);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary svg { transition: transform 0.3s var(--t); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost-light {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(245, 240, 227, 0.3);
}
.btn-ghost-light:hover {
  border-color: var(--on-dark);
  background: rgba(245, 240, 227, 0.08);
}

.btn.full { width: 100%; justify-content: center; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--bg-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.55);
  animation: heroPan 14s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.15) translate(-2%, -2%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.9) 100%),
    radial-gradient(60% 80% at 30% 50%, rgba(10, 10, 10, 0.4), transparent);
}
.hero-person {
  position: absolute;
  bottom: 0;
  right: 5%;
  height: 90%;
  max-width: 50%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.hero-content .eyebrow { color: var(--gold-soft); }

.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  color: var(--on-dark);
  margin: 0 0 24px;
  max-width: 12ch;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 1s var(--t) 0.2s forwards;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-dark-soft);
  max-width: 640px;
  margin: 0 0 36px;
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 1s var(--t) 0.4s forwards;
}
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 1s var(--t) 0.6s forwards;
}

.hero-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 0;
  margin: 0;
  border-top: 1px solid rgba(245, 240, 227, 0.2);
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 1s var(--t) 0.8s forwards;
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta span {
  font-family: "Fraunces", serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: -0.02em;
}
.hero-meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

@media (max-width: 700px) {
  .hero { padding: 130px 0 80px; min-height: auto; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-person {
    opacity: 0.35;
    right: -15%;
    height: 70%;
  }
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s var(--t);
  animation: heroScrollBounce 2s ease-in-out 2s infinite;
}
.hero-scroll:hover { color: rgba(255,255,255,0.85); }
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* CV download button */
.btn-cv {
  font-size: 14px;
  padding: 12px 20px;
}
.btn-cv svg { flex-shrink: 0; }

/* Back to top */
.back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s var(--t), transform 0.3s var(--t), box-shadow 0.3s var(--t);
  opacity: 1;
}
.back-top[hidden] { display: none; }
.back-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.back-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* LinkedIn CTA in contact */
.btn-li-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

/* Footer enhancements */
.footer-copy a { color: var(--text-mute); }
.footer-copy a:hover { color: var(--text); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
}
.footer-social:hover { color: var(--accent); }

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.05);
}
.about-card {
  position: absolute;
  bottom: -28px; right: -28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 240px;
}
.about-card-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.about-card strong {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
}
.about-card em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-mute);
}

.about-text h2 { margin-bottom: 24px; max-width: 18ch; }
.about-text p { font-size: 16px; max-width: 56ch; }
.about-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.about-bullets li {
  position: relative;
  padding: 4px 0 4px 26px;
  color: var(--text-soft);
  font-size: 15px;
}
.about-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 1px;
  background: var(--gold);
}

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-card { right: 16px; bottom: -20px; }
}

/* ========== STATS ========== */
.stats { padding: 60px 0 100px; }
.stats-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 56px 0;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  text-align: left;
  padding: 16px 28px;
  border-right: 1px solid var(--border);
}
.stat:nth-child(3n) { border-right: none; }
.stat:nth-child(n+4) { padding-top: 36px; }
.stat:nth-child(-n+3) { padding-bottom: 36px; }

.stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}
.stat-num sup {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--gold);
}
.stat-label {
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 10px;
  max-width: 24ch;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 32px 0; }
  .stat { padding: 24px 18px !important; }
  .stat:nth-child(3n) { border-right: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: none; }
}

/* ========== EXPERIENCE TIMELINE ========== */
.experience { background: var(--bg-3); }
.timeline { position: relative; padding: 32px 0; max-width: 920px; margin: 0 auto; }
.tl-line {
  position: absolute;
  left: 24px; top: 32px; bottom: 32px;
  width: 1px;
  background: var(--border-strong);
}
.tl-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: 36px;
}
.tl-dot {
  position: absolute;
  left: 18px; top: 28px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--bg-3);
}
.tl-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--t);
}
.tl-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tl-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 10px; }
.tl-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  font-family: "Fraunces", serif;
  letter-spacing: -0.01em;
}
.tl-org {
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}
.tl-date {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  margin-left: auto;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tl-card p { font-size: 15px; }
.tl-card ul { margin: 12px 0 0; padding-left: 0; list-style: none; }
.tl-card ul li {
  padding-left: 22px;
  position: relative;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.6;
}
.tl-card ul li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 12px; height: 1px;
  background: var(--gold);
}

@media (max-width: 600px) {
  .tl-line { left: 12px; }
  .tl-item { padding-left: 44px; }
  .tl-dot { left: 6px; }
  .tl-date { margin-left: 0; }
  .tl-card { padding: 20px; }
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.skill-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s var(--t);
}
.skill-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.skill-card.highlight {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}
.skill-card.highlight h3 { color: var(--on-dark); }
.skill-card.highlight .chips span {
  background: rgba(245, 240, 227, 0.06);
  border-color: rgba(245, 240, 227, 0.18);
  color: var(--on-dark-soft);
}
.skill-card.highlight .chips span:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}
.skill-card h3 {
  margin: 0 0 18px;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips span {
  font-size: 13px;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  transition: all 0.2s var(--t);
}
.chips span:hover {
  border-color: var(--gold);
  color: var(--accent);
  background: var(--bg-2);
}

/* ========== CASES ========== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.case {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.5s var(--t);
  display: flex;
  flex-direction: column;
}
.case:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.case-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-dark);
}
.case-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--t);
}
.case:hover .case-img img { transform: scale(1.05); }
.case-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.case-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 500;
  font-family: "Fraunces", serif;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.case-body p { color: var(--text-soft); font-size: 15px; flex: 1; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.case-meta span {
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mute);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.case-result {
  font-size: 14px;
  color: var(--text-soft);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.case-result strong {
  color: var(--accent);
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ========== CERTS ========== */
.certs { background: var(--bg-3); }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.cert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--t);
}
.cert:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cert-mark {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
  border-radius: var(--radius-sm);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.cert h4 { font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.cert span {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ========== INSIGHTS ========== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.post {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--t);
}
.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--t);
}
.post:hover .post-img img { transform: scale(1.04); }
.post-body { padding: 24px 28px; }
.post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}
.post h3 {
  font-size: 19px;
  font-weight: 500;
  font-family: "Fraunces", serif;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.post p { font-size: 14px; color: var(--text-soft); margin: 0 0 14px; }
.post-meta {
  display: block;
  font-size: 12px;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
}

/* ========== CONTACT ========== */
.contact { background: var(--bg-dark); color: var(--on-dark); }
.contact h2, .contact .section-title { color: var(--on-dark); }
.contact .eyebrow { color: var(--gold-soft); }
.contact .eyebrow::before { background: var(--gold-soft); }
.contact .section-sub { color: var(--on-dark-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(245, 240, 227, 0.16);
  border-radius: var(--radius);
  background: rgba(245, 240, 227, 0.04);
  transition: all 0.3s var(--t);
}
.contact-list li:hover {
  border-color: var(--gold-soft);
  background: rgba(245, 240, 227, 0.08);
  transform: translateX(2px);
}
.contact-list .ci {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(184, 150, 90, 0.16);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 16px;
  flex: 0 0 40px;
  font-style: normal;
}
.contact-list a, .contact-list span:not(.ci) {
  color: var(--on-dark);
  font-size: 15px;
}
.contact-list a:hover { color: var(--gold-soft); }

.contact-form {
  background: var(--bg-2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: all 0.3s var(--t);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.12);
}
.contact-form .btn-primary { background: var(--text); color: var(--bg); }
.contact-form .btn-primary:hover { background: var(--accent); }
.form-note { margin: 0; font-size: 13px; color: var(--text-mute); text-align: center; }
.form-note.success { color: var(--accent); }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-mute); }
.footer-links a:hover { color: var(--text); }

/* ========== REVEAL ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--t), transform 0.9s var(--t);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-img { animation: none; }
  /* Ensure hero text is visible even if animations don't fire */
  .hero-title, .hero-sub, .hero-cta, .hero-meta {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .container { padding: 0 22px; }
  .stats { padding: 30px 0 60px; }
}

/* ========== METHODOLOGY ========== */
.methodology { background: var(--bg); }
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.method-step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all 0.4s var(--t);
  display: flex;
  flex-direction: column;
}
.method-step:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}
.method-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
  z-index: 1;
  padding-right: 56px;
}
.method-step p {
  font-size: 14.5px;
  color: var(--text-soft);
  z-index: 1;
  margin: 0;
}

/* ========== GALLERY ========== */
.gallery { background: var(--bg-3); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--t);
  background: var(--bg-dark);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--t), filter 0.6s var(--t);
  filter: brightness(0.85);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.9));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--t);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========== STAT SOURCE ========== */
.stat-source {
  display: block;
  font-size: 11px;
  color: var(--text-quiet);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* ========== CASE DETAIL BUTTON ========== */
.btn-case-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: gap 0.2s var(--t), opacity 0.2s var(--t);
}
.btn-case-detail:hover {
  gap: 10px;
  opacity: 0.8;
}

/* ========== MODALS ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-box {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  animation: modalIn 0.3s var(--t) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px -16px auto;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s var(--t);
  z-index: 2;
}
.modal-close:hover {
  background: var(--border-strong);
  color: var(--text);
}

.modal-content {
  padding: 32px 36px 40px;
  clear: both;
}
.modal-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.modal-meta span {
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mute);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.modal-section {
  margin-bottom: 28px;
}
.modal-section h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.modal-section p {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.modal-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.modal-section ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}
.modal-section ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 1px;
  background: var(--gold);
}

.modal-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.modal-result-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-result-item strong {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.modal-result-item span {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .modal { padding: 12px; }
  .modal-content { padding: 24px 20px 32px; }
}

/* ========== BLOG POST PAGE ========== */
.blog-post-page {
  padding-top: 80px;
  min-height: 100vh;
}

.blog-hero {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--bg-dark);
}

.blog-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(0.7);
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}

.blog-container {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.2s var(--t);
}

.blog-back:hover { color: var(--accent); }

.blog-post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.blog-post-title {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.blog-post-desc {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-post-meta {
  font-size: 13px;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
}

/* Prose content styles */
.blog-content.prose {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.blog-content.prose h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  color: var(--text);
  margin: 48px 0 20px;
  letter-spacing: -0.015em;
}

.blog-content.prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 14px;
}

.blog-content.prose h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}

.blog-content.prose p {
  margin: 0 0 20px;
  color: var(--text-soft);
}

.blog-content.prose strong {
  color: var(--text);
  font-weight: 600;
}

.blog-content.prose em {
  color: var(--text-soft);
  font-style: italic;
}

.blog-content.prose ul,
.blog-content.prose ol {
  padding-left: 0;
  margin: 0 0 20px;
  list-style: none;
}

.blog-content.prose ul li,
.blog-content.prose ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-soft);
}

.blog-content.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 1px;
  background: var(--gold);
}

.blog-content.prose ol {
  counter-reset: list-counter;
}

.blog-content.prose ol li {
  counter-increment: list-counter;
}

.blog-content.prose ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}

.blog-content.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  color: var(--text-mute);
  font-style: italic;
}

.blog-content.prose code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent-soft);
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
}

.blog-content.prose pre {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-content.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.blog-content.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-content.prose a:hover { color: var(--accent-soft); }

.blog-post-footer {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.btn-ghost-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  background: transparent;
  transition: all 0.3s var(--t);
}
.btn-ghost-blog:hover {
  border-color: var(--text-soft);
  color: var(--text);
}

/* ========== BLOG LISTING PAGE ========== */
.blog-listing-page {
  padding-top: 120px;
  min-height: 100vh;
}

.blog-listing-header {
  text-align: center;
  margin-bottom: 64px;
}

.blog-listing-header h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.post-h2 {
  font-size: 19px;
  font-weight: 500;
  font-family: "Fraunces", serif;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-h2 a {
  color: var(--text);
  transition: color 0.2s var(--t);
}

.post-h2 a:hover { color: var(--accent); }

/* ========== AVAILABILITY BAND ========== */
.avail-band {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.avail-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
}
.avail-text {
  margin: 0;
  font-size: 14px;
  color: var(--on-dark-soft);
  flex: 1;
}
.avail-text strong { color: var(--on-dark); }
.avail-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.avail-pills span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.avail-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.2s var(--t);
}
.avail-cta:hover { color: var(--accent-soft); }
@media (max-width: 600px) {
  .avail-inner { gap: 10px; }
  .avail-text { font-size: 13px; flex-basis: 100%; }
}

/* ========== INDUSTRIES ========== */
.industries { padding: 64px 0; background: var(--bg-3); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.industry-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s var(--t);
}
.industry-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.industry-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.industry-item strong {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  display: block;
}
.industry-item span {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.5;
}
@media (max-width: 860px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .industries-grid { grid-template-columns: 1fr; }
}

/* ========== PROJECTS ========== */
.projects { background: var(--bg-3); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s var(--t);
}
.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.project-top { flex: 1; }
.project-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-soft);
}
.project-status[data-status="PoC Validated"] {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.25);
  color: #fbbf24;
}
.project-status[data-status="Delivered"] {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}
.project-status[data-status="Template"] {
  background: rgba(156, 163, 175, 0.1);
  border-color: rgba(156, 163, 175, 0.25);
  color: var(--text-mute);
}
.project-top h3 {
  font-size: 19px;
  font-family: "Fraunces", serif;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.project-top p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.65;
}
.project-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-chips span { font-size: 12px; padding: 4px 10px; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s var(--t);
}
.project-link:hover { gap: 9px; color: var(--accent-soft); }

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--bg-dark); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s var(--t);
}
.testimonial:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.quote-mark {
  color: var(--accent);
  opacity: 0.25;
  flex-shrink: 0;
}
.testimonial-quote {
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--on-dark-soft);
  margin: 0;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: grid; place-items: center;
  font-family: "Fraunces", serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 2px;
}
.testimonial-author span {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
}
.testimonial-author em {
  display: block;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

/* ========== SKILLS KEY CHIPS ========== */
.chips span.key {
  border-color: var(--border-strong);
  color: var(--text);
  font-weight: 600;
  background: var(--bg-3);
}
.chips span.key:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-2);
}
.skill-card.highlight .chips span.key {
  background: rgba(245, 240, 227, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--on-dark);
}

/* ========== GALLERY ENHANCEMENTS ========== */
.gallery-item { cursor: pointer; }
.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.gallery-zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--t);
  pointer-events: none;
}
.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lbIn 0.25s var(--t) forwards;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
#lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
#lb-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 2;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--t);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ========== MOBILE HERO — 3-button fix ========== */
@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .btn-cv { order: 3; }
}

