/* ============================================================
   Portfolio — shared styles
   Change the accent color in one place below (--accent).
   ============================================================ */

:root {
  --ink: #14110f;
  --muted: #6b6560;
  --line: #e7e3de;
  --bg: #ffffff;
  --bg-soft: #f6f3ef;
  --accent: #e89600;      /* main accent (extracted from photo) — change this to recolor the whole site */
  --accent-dark: #c07d00;
  --max: 1180px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display, .brand, .cert-title, .stat-num, .kpi-value, .campaign-stat {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-size: 22px;
  letter-spacing: 0.06em;
}
.brand .brand-last { color: var(--accent); }
/* Small raised trademark mark trailing the wordmark. */
.brand-tm {
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: super;
  margin-left: 3px;
  color: var(--muted);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: all 0.2s ease;
}
.nav-link:hover { background: var(--ink); color: #fff; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  transition: all 0.2s ease;
}
.icon-btn:hover { border-color: var(--accent); background: var(--accent); }
.icon-btn:hover svg { fill: #fff; }
.icon-btn svg { width: 20px; height: 20px; fill: var(--ink); transition: fill 0.2s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; stroke: #fff; }
.btn-sm { font-size: 14px; padding: 11px 20px; margin-top: 18px; }
.btn-sm svg { width: 16px; height: 16px; }

/* Outline variant: yellow rule and yellow label on a clear fill. */
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline svg { stroke: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline:hover svg { stroke: #fff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  font-size: 15px;
}
.btn-ghost svg { width: 16px; height: 16px; stroke: var(--accent); transition: transform 0.2s ease; }

/* ---------- Hero (two equal columns: text | portrait) ---------- */
/* Nav is 72px; leaving ~28px means the strip below is only just peeking
   at the bottom of the window, so the page invites a small scroll. */
.hero {
  background: var(--bg);
  /* Weighted low: the block is vertically centred, so the lighter top
     padding lifts it and trims the gap under the nav. */
  padding: clamp(20px, 2.4vw, 36px) 0 clamp(64px, 8vw, 128px);
  min-height: calc(100svh - 100px);
  display: flex;
  align-items: center;
}
.hero > .wrap { width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two equal columns */
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-text { min-width: 0; color: var(--ink); }
.hero-media { min-width: 0; display: flex; justify-content: center; }
/* Circular portrait that floats in its own column — capped by the column
   width, a max size, and the viewport height, so it can never outgrow either. */
.hero-media img {
  display: block;
  width: min(100%, 500px, 66svh);
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
/* One continuous headline, set like .statement-line: the greeting drops to a
   lighter weight for contrast while the name carries the full Archivo 900. */
.hero-name {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: clamp(22px, 2.6vw, 40px);
  animation: heroRise 1s cubic-bezier(.16, 1, .3, 1) both;
}
/* Own line for the greeting, so the headline always breaks as
   "Hi there, I'm" / "Santa Singh" rather than wrapping wherever it lands. */
.hero-name .lite { display: block; font-weight: 400; letter-spacing: -0.02em; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-desc {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---------- Section headers ---------- */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
/* No width cap here, so long headings like "MY ACCOMPLISHMENTS" stay on one
   line. The readable-measure cap lives on the paragraph instead. */
.section-head { margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(24px, 4.4vw, 60px); letter-spacing: -0.045em; line-height: 0.94; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); max-width: 620px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; margin-bottom: 80px; text-align: center; }

/* ---------- Category cards ---------- */
#work { padding-top: clamp(96px, 10vw, 160px); }
.cards {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.card {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.6vw, 40px);
  background: var(--bg);
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(24px, 3.4vw, 44px) clamp(16px, 2.2vw, 34px);
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: border-color .3s ease, background .3s ease, padding-left .35s cubic-bezier(.16,1,.3,1);
}
.card::after {
  content: "\2197";
  position: absolute; top: 50%; right: clamp(16px, 2.2vw, 34px);
  font-size: 24px;
  opacity: 0; transform: translate(-8px, -50%);
  transition: opacity .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.card h3 { font-size: clamp(22px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1.02; margin: 0; transition: transform .35s cubic-bezier(.16,1,.3,1); }
/* Leading index, matched to the heading's size so the two read as one unit. */
.card-cat {
  flex: none;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.card:hover { border-color: var(--accent); background: var(--bg-soft); padding-left: calc(clamp(16px, 2.2vw, 34px) + 14px); }
.card:hover .card-cat { color: var(--accent); }
.card:hover::after { opacity: 1; transform: translate(0, -50%); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.card p { font-size: 15px; color: var(--muted); }

/* ---------- Certifications (carousel) ---------- */
#certifications { padding-bottom: clamp(104px, 11vw, 168px); }
.cert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.cert-head .section-head { margin-bottom: 0; }
.cert-nav { display: flex; gap: 12px; flex-shrink: 0; }
.cert-arrow {
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cert-arrow svg { width: 22px; height: 22px; stroke: var(--ink); transition: stroke 0.2s ease; }
.cert-arrow:hover { background: var(--accent); border-color: var(--accent); }
.cert-arrow:hover svg { stroke: #fff; }

.cert-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.cert-track::-webkit-scrollbar { display: none; }

.cert-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 18px 40px -22px rgba(20,17,15,0.18);
}
.cert-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}
.cert-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-image-ph {
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  text-align: center; padding: 10px;
  font-size: 14px; color: var(--muted);
}
.cert-info { display: flex; flex-direction: column; justify-content: center; }
.cert-title { font-size: clamp(23px, 3vw, 38px); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 10px; }
.cert-org { font-size: 16px; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.cert-desc { font-size: 17px; color: var(--muted); line-height: 1.6; }

/* ---------- Skills ---------- */
.skills-wrap { display: flex; flex-direction: column; gap: 40px; }
.skill-group h3 {
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}
.skill-list { display: flex; flex-wrap: wrap; gap: 12px; }
/* Single-line variant: tighter chips so all of them fit across one row.
   The row needs ~970px, so nowrap only kicks in once the card is comfortably
   wider; below that the chips wrap rather than pushing the page sideways. */
.skill-list.one-row { gap: 8px; }
.skill-list.one-row .chip { padding: 10px 15px; font-size: 14px; white-space: nowrap; }
@media (min-width: 1120px) {
  .skill-list.one-row { flex-wrap: nowrap; }
}
.chip {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Moving skills strip ---------- */
.strip {
  border-top: 1px solid var(--accent-dark);
  border-bottom: 1px solid var(--accent-dark);
  padding: clamp(12px, 1.6vw, 20px) 0;
  overflow: hidden;
  background: var(--accent);
}
.strip-track { display: flex; width: max-content; animation: strip 34s linear infinite; }
.strip-set {
  padding-right: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 3.2vw, 42px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

/* ---------- Statement + numbers band ---------- */
/* Extra top padding (rather than a margin under .strip) so the breathing room
   below the yellow strip is filled with this band's own colour. */
.statement {
  background: var(--bg-soft);
  padding-top: clamp(84px, 9vw, 144px);
  padding-bottom: clamp(84px, 9vw, 144px);
}
.statement-line {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(25px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 22ch;
  margin: 0 0 clamp(34px, 5vw, 70px);
  text-wrap: balance;
}
.statement-line em { color: var(--accent); font-style: normal; }
.statement-line .lite { font-weight: 400; letter-spacing: -0.02em; }
/* Separated by whitespace rather than rules — no top border, no dividers. */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  padding-top: clamp(8px, 1.6vw, 22px);
}
/* Each stat sits on its own tile, lifted off the cream band.
   container-type lets the number size itself against the tile (cqw) rather
   than the viewport, so it can never outgrow its own tile. */
.figure {
  container-type: inline-size;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 36px);
  box-shadow: 0 18px 40px -26px rgba(20, 17, 15, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.figure-num {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 32cqw, 76px);
  line-height: .86;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figure-legend {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #cfc9c3;
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.footer a.icon-btn { border-color: rgba(255,255,255,0.25); }
.footer a.icon-btn svg { fill: #fff; }
.footer a.icon-btn:hover { background: var(--accent); border-color: var(--accent); }
.footer-links { display: flex; gap: 14px; align-items: center; }
.footer-copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 36px; padding-top: 24px; font-size: 13px; }

/* ---------- Sub-page (category) hero ---------- */
.subhero { padding: 60px 0 40px; }
/* Outlined pill so the way back is an obvious control, not a faint text link. */
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  padding: 12px 24px;
  border-radius: 999px;
  margin-bottom: 34px;
  transition: background .25s ease, color .25s ease, border-color .25s ease,
              transform .3s cubic-bezier(.16,1,.3,1);
}
.back-link svg {
  width: 17px; height: 17px; stroke: currentColor;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.back-link:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-2px);
}
.back-link:hover svg { transform: translateX(-4px); }
.back-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.subhero h1 { font-size: clamp(40px, 8.8vw, 116px); letter-spacing: -0.05em; line-height: 0.84; margin-bottom: 18px; }
.subhero p { font-size: 19px; color: var(--muted); max-width: 640px; }

/* Work entries on category pages — one self-contained tile per project,
   using the same card language as the certification and stat tiles. */
.entries { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.entry {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -26px rgba(20, 17, 15, 0.18);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.entry:hover {
  border-color: var(--accent);
  box-shadow: 0 26px 56px -28px rgba(20, 17, 15, 0.26);
  transform: translateY(-3px);
}
.entry-body { padding: clamp(26px, 3vw, 44px); }
.entry-body h3 { font-size: clamp(19px, 2.3vw, 29px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; }
.entry-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.entry-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.entry-meta { font-weight: 600; color: var(--ink) !important; font-size: 14.5px; margin-top: -4px; margin-bottom: 16px; }
.entry-body p strong { color: var(--ink); font-weight: 700; }
.entry-body ul { margin-left: 18px; color: var(--muted); font-size: 15px; }
.entry-body li { margin-bottom: 6px; }

/* ---------- Collapsible channel sections (Digital Marketing) ----------
   Native <details>/<summary>, so it works with no JavaScript and stays
   keyboard-accessible. Each closed section reads as a single tile. */
.accordions { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.accordion {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -26px rgba(20, 17, 15, 0.18);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.accordion:hover { border-color: var(--accent); }
.accordion[open] {
  border-color: var(--accent);
  box-shadow: 0 26px 56px -28px rgba(20, 17, 15, 0.26);
}
.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.8vw, 40px);
  cursor: pointer;
  list-style: none;                       /* hide the default triangle */
  transition: background .25s ease;
}
.accordion-head::-webkit-details-marker { display: none; }
.accordion-head:hover { background: var(--bg-soft); }
.accordion-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.accordion-head h2 {
  font-size: clamp(22px, 3vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  transition: color .25s ease;
}
.accordion[open] .accordion-head h2 { color: var(--accent); }
.accordion-icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .25s ease, border-color .25s ease;
}
.accordion-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--ink); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .25s ease;
}
.accordion[open] .accordion-icon {
  transform: rotate(180deg);
  background: var(--accent);
  border-color: var(--accent);
}
.accordion[open] .accordion-icon svg { stroke: #fff; }
.accordion-body {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);             /* lets the white inner cards read as tiles */
  padding: clamp(24px, 3vw, 40px);
}
.accordion-body > :last-child { margin-bottom: 0; }

/* ---------- Categorized achievements (Digital Marketing) ---------- */
.cat-group { margin-bottom: 70px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-title {
  font-size: clamp(26px, 4.4vw, 60px);
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
}
.campaigns { display: grid; gap: 22px; }
.campaign {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: 0 14px 32px -26px rgba(20,17,15,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}
.campaign:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -26px rgba(20,17,15,0.28);
}
/* Title, then the headline stat, then the copy — all stacked and left aligned. */
.campaign-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.campaign-head h3 { font-size: clamp(19px, 2.3vw, 29px); letter-spacing: -0.03em; line-height: 1.05; }
/* Sits below the title in the hierarchy — lighter and smaller than the
   heading above it, so the title still leads the tile. */
.campaign-stat {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--accent);
}
.campaign p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.campaign-sub { font-weight: 600; color: var(--ink) !important; margin-top: 16px; margin-bottom: 12px; }

.mentions-title {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--muted);
  margin: 44px 0 18px;
}
.mentions { display: grid; gap: 12px; }
.mention {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 16px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mention-name { font-weight: 700; color: var(--ink); font-size: 16px; }
.mention-stats { color: var(--muted); font-size: 14px; }

/* Social media platform cards */
.platforms { display: grid; gap: 24px; }
.platform {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 14px 32px -26px rgba(20,17,15,0.22);
}
.platform-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.platform-top h3 { font-size: clamp(19px, 2.3vw, 29px); letter-spacing: -0.03em; line-height: 1.05; }
.platform-badge {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #fff3e0;
  border: 1px solid #f5d9ac;
  padding: 6px 14px;
  border-radius: 999px;
}
.platform > p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 26px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 0.9;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  line-height: 1.4;
}
.stat-delta {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #2f8a4c;
  margin-top: 2px;
}
.cat-intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 8px;
}
.stat-grid.boxed {
  /* Four year-over-year figures, kept on a single row. */
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  border-top: 1px solid var(--line);
}

/* ---------- Creatives — still-graphics gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 14px 34px -22px rgba(20, 17, 15, 0.45);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Creatives — carousels ---------- */
.crevs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: start; }
.crev { max-width: 560px; }
.crev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.crev-head h3 { font-size: 22px; }
.crev-arrows { display: flex; gap: 10px; flex: none; }
.crev-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.crev-arrow svg { width: 20px; height: 20px; }
.crev-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.crev-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(20, 17, 15, 0.45);
}
.crev-track { display: flex; transition: transform 0.45s ease; }
.crev-slide { flex: 0 0 100%; }
.crev-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.crev-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.crev-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.crev-dot:hover { background: var(--accent-dark); }
.crev-dot.active { background: var(--accent); transform: scale(1.3); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(20, 17, 15, 0.9);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- Graphics / Videos toggle ---------- */
.toggle {
  display: inline-flex;
  gap: 6px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.toggle-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 26px;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.toggle-btn:hover { color: var(--ink); }
.toggle-btn.active { background: var(--accent); color: #fff; }
.panel { display: none; }
.panel.active { display: block; }

/* ---------- Videos — Facebook reel embeds ---------- */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px 18px;
}
.video-card { width: 260px; }
.video-frame {
  width: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 14px 34px -22px rgba(20, 17, 15, 0.45);
  line-height: 0;
}
.video-frame iframe {
  display: block;
  width: 260px;
  height: 462px;
  border: 0;
}

/* ---------- Sample dashboard ---------- */
.dash-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.dash-range { display: inline-flex; gap: 6px; }
.range-btn {
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.range-btn:hover { color: var(--ink); }
.range-btn.active { background: var(--dash-accent, var(--accent)); border-color: var(--dash-accent, var(--accent)); color: #fff; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}
.dash-hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.kpi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -26px rgba(20,17,15,0.35); }
.kpi-card.active {
  border-color: var(--dash-accent, var(--accent));
  box-shadow: 0 0 0 1px var(--dash-accent, var(--accent)) inset;
}
.kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.4; color: var(--muted); }
.kpi-value { font-family: 'Archivo', sans-serif; font-size: clamp(28px, 3.6vw, 52px); font-weight: 900; letter-spacing: -0.04em; color: var(--ink); line-height: 0.9; }
.kpi-delta { font-size: 13px; font-weight: 600; }
.kpi-delta.up { color: #1f8a4c; }
.kpi-delta.down { color: #c0392b; }

.dash-panels {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.dash-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.dash-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dash-card-head h3 { font-size: 20px; }
.dash-card-sub { font-size: 13px; color: var(--muted); }
.chart-area { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.chart-yaxis { position: relative; width: 46px; height: 240px; }
.axis-y-label {
  position: absolute; right: 0; transform: translateY(-50%);
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.chart-plot { min-width: 0; }
.chart-wrap { width: 100%; position: relative; }
.chart-svg { width: 100%; height: 240px; position: relative; z-index: 1; }
.line-chart { width: 100%; height: 240px; display: block; }
.chart-grid { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.axis-gridline {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line); transform: translateY(-0.5px);
}
.chart-xaxis { position: relative; height: 18px; margin-top: 8px; }
.axis-x-label {
  position: absolute; transform: translateX(-50%);
  font-size: 11px; color: var(--muted); white-space: nowrap;
}

/* Hover crosshair, dot + tooltip (hidden until hovering) */
.chart-cursor {
  position: absolute; top: 0; bottom: 0; width: 1px; z-index: 2;
  background: var(--dash-accent, var(--accent));
  opacity: 0; transform: translateX(-0.5px); pointer-events: none;
  transition: opacity .15s ease;
}
.chart-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; z-index: 3;
  background: #fff; border: 3px solid var(--dash-accent, var(--accent));
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.chart-tip {
  position: absolute; transform: translate(-50%, -140%); z-index: 4;
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: 7px 11px; font-size: 12px; line-height: 1.35; text-align: center;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s ease; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
}
.chart-tip strong { display: block; font-size: 15px; font-family: 'Archivo', sans-serif; font-weight: 900; }
.chart-tip span { color: rgba(255,255,255,.7); font-size: 11px; }
.chart-wrap.hovering .chart-cursor,
.chart-wrap.hovering .chart-dot,
.chart-wrap.hovering .chart-tip { opacity: 1; }

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  transition: opacity .2s ease;
}
.bar-row:last-child { margin-bottom: 0; }
#breakChart:hover .bar-row { opacity: 0.42; }
#breakChart:hover .bar-row:hover { opacity: 1; }
.bar-row:hover .bar-fill { filter: brightness(1.08) saturate(1.1); }
.bar-name { font-size: 14px; color: var(--ink); }
.bar-track { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .7s cubic-bezier(.22,1,.36,1); }
.bar-pct { font-size: 14px; font-weight: 600; color: var(--muted); text-align: right; }

/* Placeholder highlight — delete .ph rule once real content is in */
.ph { background: #fff5cc; border-radius: 3px; padding: 0 3px; box-decoration-break: clone; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(20px, 4vw, 36px); }
  /* Portrait moves above the text, with a clear break before the intro. */
  .hero-media { order: -1; margin-bottom: clamp(16px, 5vw, 30px); }
  .hero-media img { width: min(100%, 300px, 38svh); }
  .hero-name { font-size: clamp(34px, 8.4vw, 68px); }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .cert-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .skills-wrap { gap: 30px; }
  .campaigns > *, .platforms > *, .mentions > * { min-width: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  /* Needs its own rule: .stat-grid.boxed outranks the line above. */
  .stat-grid.boxed { grid-template-columns: repeat(2, 1fr); }
  .stat { min-width: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .crevs { grid-template-columns: 1fr; gap: 60px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-panels { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .nav-link { padding: 9px 14px; font-size: 14px; }
  .section { padding: 56px 0; }
  .subhero { padding: 44px 0 30px; }

  /* Body copy sits at 16px+ so it stays comfortable on a phone. */
  .hero-desc { font-size: 17px; margin-bottom: 28px; }
  .subhero p { font-size: 17px; }
  .cert-desc { font-size: 16px; }
  .campaign p, .platform p, .entry-body p, .entry-body ul { font-size: 16px; }
  .mention-stats { font-size: 14.5px; }
  .bar-name, .bar-pct { font-size: 14.5px; }
  .dash-hint { font-size: 14px; }

  /* Micro-labels: 11px is too small to read on a phone, and the wide
     tracking pushed them onto extra lines — both are eased off here. */
  .eyebrow,
  .figure-legend,
  .stat-label,
  .kpi-label,
  .mentions-title { font-size: 12.5px; letter-spacing: 0.1em; }
  .skill-group h3 { font-size: 14px; letter-spacing: 0.1em; }
  .stat-delta, .kpi-delta, .dash-card-sub { font-size: 13px; }
  .axis-y-label, .axis-x-label { font-size: 12px; }

  /* Cards nest inside cards here, so inner padding is trimmed to give the
     text column back the width the stacked padding was eating. */
  .cert-card { padding: 24px 20px; }
  .accordion-head { padding: 20px 18px; }
  .accordion-body { padding: 18px 14px; }
  .campaign { padding: 22px 18px; }
  .platform { padding: 22px 18px; }
  .entry-body { padding: 24px 20px; }
  .stat-grid.boxed { padding: 22px 18px; }
  .mention { padding: 14px 16px; }
  .dash-card { padding: 22px 18px; }
  .kpi-card { padding: 18px 16px; }

  /* Controls sized for thumbs. */
  .toggle-btn { font-size: 14px; padding: 14px 22px; }
  .range-btn { font-size: 13px; padding: 14px 14px; }
  .back-link { padding: 13px 22px; }

  /* Carousel dots keep their 9px look but get a finger-sized hit area,
     drawn on a pseudo-element so the button itself can grow. */
  .crev-dots { gap: 2px; margin-top: 6px; }
  .crev-dot {
    width: 34px; height: 34px;
    background: none;
    transform: none;
    display: grid;
    place-items: center;
  }
  .crev-dot::after {
    content: "";
    width: 9px; height: 9px;
    border-radius: 999px;
    background: var(--line);
    transition: background .2s, transform .2s;
  }
  .crev-dot.active { background: none; transform: none; }
  .crev-dot.active::after { background: var(--accent); transform: scale(1.3); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dash-controls { flex-direction: column; align-items: stretch; }
  .bar-row { grid-template-columns: 92px 1fr 40px; gap: 10px; }
  .chart-yaxis { width: 34px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
