/* ==========================================================================
   ratnadeepverma.com
   Design modelled on client/references/hero-reference.png:
   cream ground, heavy black display type, hard-bordered frames with offset
   colour blocks, floating geometric confetti, stat cards over frame edges.
   No web fonts, no frameworks, no CDN. System stack only.
   ========================================================================== */

:root {
  --cream: #f7f1e4;
  --cream-2: #efe6d4;
  --paper: #fffdf8;
  --ink: #14110e;
  --ink-2: #4a443c;
  --ink-3: #7d766b;
  --line: #14110e;

  --purple: #7b61ff;
  --yellow: #f5c542;
  --pink: #f58fb0;
  --blue: #3e7bfa;
  --teal: #12b39a;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--purple); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: -0.02em; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  flex: none;
}

.brand span { font-weight: 500; color: var(--ink-2); }

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--ink);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav .btn { border-bottom: none; }

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  padding: 15px 24px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }

.btn-wa { background: var(--teal); color: #05231e; border-color: var(--line); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.arrow { font-size: 1.05em; line-height: 1; }

/* ---------- Decorative confetti --------------------------------------- */

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.dot { border-radius: 50%; }
.dot-purple { background: var(--purple); }
.dot-yellow { background: var(--yellow); }
.dot-pink { background: var(--pink); }
.dot-blue { background: var(--blue); }

.diamond { background: var(--purple); transform: rotate(45deg); }

.ring {
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.slab {
  background: var(--purple);
  border: 2px solid var(--ink);
  transform: rotate(-12deg);
}

/* ---------- Hero ------------------------------------------------------ */

.hero {
  position: relative;
  padding: 74px 0 84px;
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 8px 14px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.hero h1 { margin-bottom: 22px; }

.hero h1 .mark {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.28em;
  background: var(--yellow);
  z-index: -1;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 26px;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* Framed portrait block, modelled on the reference */

.frame {
  position: relative;
  border: 3px solid var(--line);
  background: var(--paper);
  z-index: 1;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--yellow);
  border: 3px solid var(--line);
  z-index: -1;
}

.frame-purple::before { background: var(--purple); }
.frame-teal::before { background: var(--teal); }
.frame-pink::before { background: var(--pink); }

.frame-media {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      var(--cream-2) 0 12px,
      var(--paper) 12px 24px
    );
  color: var(--ink-3);
  text-align: center;
  padding: 24px;
}

.frame-media .ph-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.frame-caption {
  background: var(--ink);
  color: var(--cream);
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.frame-caption b {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.frame-caption span { font-size: 0.84rem; color: #cfc9bd; }

/* Floating stat card */

.stat-card {
  position: absolute;
  right: -34px;
  bottom: 62px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
}

.donut {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--blue) 0 95%, var(--cream-2) 95% 100%);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--display);
}

.donut::after {
  content: attr(data-pct);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
}

.stat-card b {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
}

.stat-card small { font-size: 0.78rem; color: var(--ink-2); }

/* ---------- Sections -------------------------------------------------- */

.section {
  position: relative;
  padding: 78px 0;
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}

.section-alt { background: var(--cream-2); }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink h2, .section-ink h3 { color: var(--cream); }
.section-ink a { color: var(--cream); }

.section-head { max-width: 62ch; margin-bottom: 44px; position: relative; z-index: 1; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; margin-bottom: 0; }
.section-ink .section-head p { color: #cfc9bd; }

.kicker {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: block;
}

.section-ink .kicker { color: var(--yellow); }

/* Answer block, the quotable 40 to 60 word opener */

.answer {
  border-left: 5px solid var(--purple);
  background: var(--paper);
  padding: 20px 24px;
  margin: 0 0 34px;
  font-size: 1.08rem;
  max-width: 70ch;
}

.answer p { margin: 0; }
.section-ink .answer { background: #211d18; border-left-color: var(--yellow); }

/* ---------- Cards ----------------------------------------------------- */

.grid { display: grid; gap: 22px; position: relative; z-index: 1; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

a.card { text-decoration: none; }
a.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }

.card-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  margin-bottom: 16px;
}

.card-num.c1 { background: var(--yellow); }
.card-num.c2 { background: var(--purple); color: #fff; }
.card-num.c3 { background: var(--pink); }
.card-num.c4 { background: var(--teal); }
.card-num.c5 { background: var(--blue); color: #fff; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

.card-link {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.93rem;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

/* Stat strip */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }

.stat {
  padding: 30px 22px;
  border: 2px solid var(--line);
  margin-left: -2px;
  background: var(--paper);
}

.stats .stat:first-child { margin-left: 0; }

.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span { font-size: 0.9rem; color: var(--ink-2); }

/* Client name strip */

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.client-chip {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  padding: 14px 20px;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
}

/* ---------- Founder block --------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.credentials { list-style: none; padding: 0; margin: 22px 0 0; }

.credentials li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-2);
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border: 2px solid var(--ink);
}

/* ---------- Process --------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 0; position: relative; z-index: 1; }

.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border-top: 2px solid var(--line);
  align-items: start;
}

.step:last-child { border-bottom: 2px solid var(--line); }

.step-n {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink-3);
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); margin-bottom: 0; }

/* ---------- FAQ ------------------------------------------------------- */

.faq { max-width: 78ch; position: relative; z-index: 1; }

.faq details {
  border: 2px solid var(--line);
  background: var(--paper);
  margin-bottom: 14px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 2px solid var(--line); }
.faq .faq-body { padding: 18px 22px 4px; }
.faq .faq-body p { color: var(--ink-2); }

/* ---------- Article --------------------------------------------------- */

.article { padding: 56px 0 80px; }

.article-head { max-width: 74ch; margin-bottom: 40px; }

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  margin: 26px 0 0;
  font-size: 0.92rem;
}

.byline-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--purple);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  color: #fff;
  font-size: 0.95rem;
}

.byline b { display: block; font-family: var(--display); letter-spacing: -0.02em; }
.byline span { color: var(--ink-2); }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p { color: #26221d; }
.prose li { color: #26221d; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 5px solid var(--teal);
  background: var(--paper);
}

.prose blockquote p { margin: 0; }

.toc {
  border: 2px solid var(--line);
  background: var(--paper);
  padding: 22px 26px;
  margin-bottom: 36px;
}

.toc h2 { font-size: 1.05rem; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; font-size: 0.96rem; }

.sources { font-size: 0.92rem; color: var(--ink-2); }
.sources li { margin-bottom: 8px; }

/* Post cards on the blog index */

.post-card { padding: 0; overflow: hidden; }

.post-card .post-band {
  height: 10px;
  border-bottom: 2px solid var(--line);
}

.post-card .post-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 10px; }

/* ---------- Contact / form -------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  position: relative;
  z-index: 1;
}

.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { margin-bottom: 18px; }
.contact-list .lbl {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.contact-list a { font-size: 1.1rem; font-weight: 600; }

form { background: var(--paper); border: 2px solid var(--line); padding: 28px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.87rem;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--purple);
  outline-offset: 1px;
}

.field .err {
  display: none;
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 600;
}

.field.invalid .err { display: block; }
.field.invalid input,
.field.invalid textarea { border-color: #b3261e; }

.form-status {
  display: none;
  border: 2px solid var(--line);
  padding: 16px 18px;
  margin-bottom: 18px;
  font-weight: 600;
}

.form-status.ok { display: block; background: var(--teal); color: #05231e; }
.form-status.bad { display: block; background: var(--pink); color: #3b0d1c; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA band -------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 58ch; margin-left: auto; margin-right: auto; color: #cfc9bd; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }
.cta-band .btn-ghost { color: var(--cream); border-color: var(--cream); }
.cta-band .btn-ghost:hover { background: #211d18; }
.cta-band .btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Footer ---------------------------------------------------- */

.site-footer { background: var(--ink); color: #cfc9bd; padding: 58px 0 30px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.94rem; }
.site-footer .brand { color: var(--cream); margin-bottom: 14px; }
.site-footer .brand-mark { background: var(--cream); color: var(--ink); }
.site-footer .brand span { color: #cfc9bd; }
.site-footer .foot-note { font-size: 0.92rem; max-width: 34ch; }

.footer-base {
  border-top: 1px solid #3a352d;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.86rem;
}

/* ---------- Breadcrumbs ----------------------------------------------- */

.crumbs { font-size: 0.86rem; color: var(--ink-2); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--ink-3); }
.crumbs li:last-child::after { content: ""; }

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-media { max-width: 420px; }
  .founder { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { margin-left: -2px; margin-top: -2px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--line);
    padding: 10px var(--gutter) 20px;
  }

  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--cream-2); }
  .nav .btn { margin-top: 14px; justify-content: center; }

  .hero { padding: 50px 0 62px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 54px minmax(0, 1fr); gap: 16px; }
  .step-n { font-size: 1.8rem; }
  .stat-card { right: -10px; bottom: 40px; }
  .deco { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .deco, .cta-band { display: none; }
  body { background: #fff; }
}
