/* ==========================================================
   Divya Paul — Bold Minimal Design System
   Shared stylesheet for homepage + case study pages
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-dark: #0a0a0f;
  --ink: #111111;
  --ink-soft: #666666;
  --ink-faint: #999999;
  --line: #f0f0f0;
  --line-dark: rgba(255,255,255,0.08);
  --card-dark: rgba(255,255,255,0.05);
  --grad-start: #6366f1;
  --grad-end: #ec4899;
  --avail: #22c55e;

  --accent: #111111;
  --accent-ink: #111111;
  --tint: #f0f0f0;

  --wrap: 1120px;
  --r: 20px;
  --r-sm: 16px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--bg-dark); color: #fff; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; margin: 0; }
h2.big { font-size: clamp(28px, 4vw, 44px); }
h3.mid { font-size: clamp(22px, 3vw, 32px); }

.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 14px; display: block;
}
.section--dark .kicker { color: var(--grad-start); }

.gradient {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.muted { color: var(--ink-soft); }
.measure { max-width: 62ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav__brand {
  font-weight: 900; font-size: 18px; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 8px;
}
.nav__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); display: inline-block; }
.nav__links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink); color: #fff; padding: 8px 18px;
  border-radius: 100px; font-weight: 700; font-size: 12px;
}
.nav__cta:hover { background: #333; }
.nav__back {
  font-size: 13px; font-weight: 600; display: inline-flex;
  align-items: center; gap: 8px; color: var(--ink-faint);
}
.nav__back:hover { color: var(--ink); }
.nav__back svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #333; }
.btn--ghost { background: transparent; border-color: #ddd; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--accent { background: var(--accent); color: #fff; }
.btn svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 60px; }
.hero__grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 56px; align-items: center;
}
.hero__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.hero__kicker .avail-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--avail);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2); display: inline-block;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 72px); letter-spacing: -0.045em; line-height: 0.95;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 16px; color: var(--ink-soft); max-width: 420px;
  line-height: 1.65; margin-bottom: 28px;
}
.hero__btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 36px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.stat__n { font-size: 36px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat__l { font-size: 11px; color: var(--ink-faint); margin-top: 4px; font-weight: 600; }

.hero__photo { position: relative; }
.hero__img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 24px; filter: grayscale(100%);
}
.hero__badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: var(--r-sm); font-size: 12px; font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.3);
}
.hero__badge span { color: var(--grad-start); }

/* ---------- bento grid ---------- */
.bento {
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: auto auto; gap: 14px; margin-top: 36px;
}
.bento__card {
  border-radius: var(--r); padding: 64px 28px 28px; display: flex;
  flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform 0.3s ease; min-height: 140px;
}
.bento__card--hero { grid-row: span 2; min-height: 340px; }
.bento__card--wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 28px; }
.bento__badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(4px);
  position: absolute; top: 16px; left: 16px;
}
.bento__title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 900;
  letter-spacing: -0.03em; margin-bottom: 4px;
}
.bento__sub { font-size: 12px; opacity: 0.7; margin-bottom: 10px; }
.bento__idx {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 6px;
}
.bento__arrow {
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.bento__arrow svg { width: 14px; height: 14px; transition: transform 0.2s; }
.bento__card:hover .bento__arrow svg { transform: translateX(4px); }

/* ---------- eyebrow row ---------- */
.eyebrow-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

/* ---------- about split ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start; margin-top: 32px;
}
.about-text { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.about-text p + p { margin-top: 14px; }

/* ---------- skills cards ---------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 32px;
}
.skill-card {
  background: var(--card-dark); border: 1px solid var(--line-dark);
  border-radius: var(--r); padding: 24px;
}
.skill-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.skill-card p { font-size: 13px; color: #888; line-height: 1.6; }

/* ---------- process steps ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-top: 32px;
}
.proc-step {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 22px 18px;
}
.proc-step__n {
  font-size: 12px; font-weight: 800; color: var(--grad-start); margin-bottom: 20px;
}
.proc-step__t { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.proc-step__d { font-size: 12px; color: var(--ink-faint); line-height: 1.5; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 28px; margin-top: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: #e0e0e0;
}
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -24px; top: 8px;
  width: 10px; height: 10px; background: var(--ink);
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ink);
}
.tl-item h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.tl-date { font-size: 12px; color: var(--ink-faint); font-weight: 600; margin-top: 2px; }
.tl-item p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }

/* ---------- education cards ---------- */
.edu-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 32px;
}
.edu-card {
  background: var(--card-dark); border: 1px solid var(--line-dark);
  border-radius: var(--r); padding: 24px;
}
.edu-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.edu-card .tl-date { color: #888; }
.edu-card p { font-size: 13px; color: #888; margin-top: 10px; line-height: 1.55; }

/* ---------- contact ---------- */
.contact-cta {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1; margin: 20px 0 32px;
}
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-links a {
  padding: 12px 24px; border: 1px solid #ddd;
  border-radius: 100px; font-size: 14px; font-weight: 700;
  transition: all 0.2s;
}
.contact-links a:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer__in {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-faint); flex-wrap: wrap; gap: 12px;
}

/* ---------- resume FAB ---------- */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ink); color: #fff; width: 52px; height: 52px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3); z-index: 40;
  cursor: pointer; transition: all 0.3s ease; overflow: hidden;
  text-decoration: none;
}
.fab:hover { width: auto; border-radius: 26px; padding: 0 20px 0 0; }
.fab__icon {
  width: 52px; height: 52px; display: flex; align-items: center;
  justify-content: center; flex: none;
}
.fab__icon svg { width: 18px; height: 18px; }
.fab__text {
  opacity: 0; max-width: 0; white-space: nowrap;
  font-size: 13px; font-weight: 700; overflow: hidden; transition: all 0.3s;
}
.fab:hover .fab__text { opacity: 1; max-width: 200px; margin-left: 4px; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1),
              transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- case study shared ---------- */
.case-hero { padding: 56px 0 0; }
.case-hero h1 {
  font-size: clamp(48px, 10vw, 128px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 0.92;
}
.lede {
  font-size: clamp(16px, 2vw, 20px); line-height: 1.6;
  color: var(--ink-soft); max-width: 54ch;
}

/* case study meta grid */
.meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.meta > div { background: var(--bg); padding: 22px 24px; }
.meta dt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px;
}
.meta dd { margin: 0; font-size: 16px; font-weight: 600; }

/* split columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.twocol { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

/* problem / goal cards */
.col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.col-head .tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 100px;
}
.tag--prob { background: #fdeceb; color: #c2362e; }
.tag--goal { background: var(--tint); color: var(--accent-ink); }
.pglist { display: flex; flex-direction: column; gap: 14px; }
.pgitem {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.pgitem b { display: block; margin-bottom: 5px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.pgitem span { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* persona */
.persona {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 0; overflow: hidden;
}
.persona__aside {
  background: var(--tint); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.persona__photo {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--bg);
}
.persona__name { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.persona__role { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.persona__body {
  padding: 32px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 28px;
}
.subhead {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.nlist {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.nlist li {
  position: relative; padding-left: 20px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.nlist li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.nlist--pain li::before { background: #d8473d; }

/* empathy map */
.empathy {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.equad { background: var(--bg); padding: 28px; }
.equad h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px;
}
.equad ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.equad li { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.equad--feel { background: var(--tint); }

/* color swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.swatch__chip { height: 120px; }
.swatch__meta { padding: 12px 14px; background: var(--bg); }
.swatch__hex { font-weight: 700; font-size: 15px; }
.swatch__pct { font-size: 12px; color: var(--ink-faint); }

/* type specimen */
.specimen { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 38px; }
.specimen__name { font-size: clamp(34px, 6vw, 62px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; }
.specimen__row {
  font-size: 22px; padding: 14px 0; border-top: 1px solid var(--line);
  display: flex; gap: 20px; align-items: baseline;
}
.specimen__row small {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); min-width: 90px;
}

/* figures / galleries */
.figure { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.figure img { width: 100%; }
.figcap { font-size: 13px; color: var(--ink-faint); margin-top: 12px; }
.gallery { display: grid; gap: 22px; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }

/* panels */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.shadow-soft { box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 18px 50px -24px rgba(0,0,0,0.15); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
}

/* stat row */
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }

/* case study footer */
.foot { border-top: 1px solid var(--line); padding: 70px 0 50px; }
.foot__cta {
  font-weight: 900; font-size: clamp(32px, 6vw, 64px);
  letter-spacing: -0.03em; line-height: 1;
}
.foot__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-top: 40px;
}
.foot__links { display: flex; gap: 22px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--hero { min-height: 240px; grid-row: span 1; }
  .bento__card--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; padding-top: 64px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .about-grid, .split, .twocol, .edu-grid, .gallery--2 { grid-template-columns: 1fr; }
  .persona { grid-template-columns: 1fr; }
  .persona__body { grid-template-columns: 1fr; }
  .empathy, .gallery--3 { grid-template-columns: 1fr; }
  .meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .hero__stats { gap: 24px; }
  .skills-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .fab:hover { width: 52px; border-radius: 50%; padding: 0; }
  .fab:hover .fab__text { opacity: 0; max-width: 0; margin-left: 0; }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .persona__body { grid-template-columns: 1fr; }
}

/* ---------- print protection ---------- */
@media print {
  body * { display: none !important; }
  body::after {
    content: "Please visit divyapaul.me to view this content.";
    display: block !important; text-align: center;
    font-size: 20px; padding: 40px;
  }
}
