/* ============================================================
   Shashank Kashyap — "The Journey, Plotted"
   Palette: ink night / warm amber / electric cyan
   ============================================================ */

:root {
  --ink: #0a0e14;
  --ink-2: #0d1220;
  --ink-3: #121828;
  --line: rgba(232, 230, 224, 0.09);
  --line-soft: rgba(232, 230, 224, 0.05);
  --text: #e8e6e0;
  --text-dim: #9aa0ac;
  --amber: #f2b53d;
  --amber-soft: rgba(242, 181, 61, 0.14);
  --cyan: #55d6e4;
  --cyan-soft: rgba(85, 214, 228, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hindi: "Tiro Devanagari Hindi", serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.88 0 0 0 0 0.85 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--ink); }

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

em { font-style: italic; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 1001;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0.5rem; }

/* ============================================================
   SQL intro overlay
   ============================================================ */
.intro { display: none; }
html.js .intro.on {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #05070c;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .intro.on.done {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.intro__screen {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  line-height: 1.9;
  color: var(--text-dim);
  white-space: pre-wrap;
  max-width: 44rem;
  width: 100%;
}
.intro__screen .c-kw { color: var(--cyan); }
.intro__screen .c-str { color: var(--amber); }
.intro__screen .c-cmt { color: #5a6272; }
.intro__screen .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.intro__skip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.intro__skip:hover { color: var(--amber); border-color: var(--amber); }
body.no-scroll { overflow: hidden; }

/* ============================================================
   Scroll progress
   ============================================================ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
}

/* ============================================================
   Spotlight cards
   ============================================================ */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(242, 181, 61, 0.13), transparent 65%);
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }

/* ============================================================
   Reveal animation
   ============================================================ */
/* hidden state only when JS is running, so content never disappears without it */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
              border-color 0.25s ease, color 0.25s ease;
}
.btn--primary {
  background: var(--amber);
  color: var(--ink);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242, 181, 61, 0.35);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--text-dim);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* LinkedIn button */
.btn--ghost[href*="linkedin"] {
  border-color: #0A66C2;
  color: #fff;
  background: #0A66C2;
}
.btn--ghost[href*="linkedin"]:hover {
  border-color: #0A66C2;
  color: #fff;
  background: #084e99;
}
.btn--lg {
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  padding: 1.05rem 2rem;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.65rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--amber);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  letter-spacing: -0.03em;
}
.nav__name {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.nav__links a:not(.nav__cta) {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav__links a:not(.nav__cta):hover { color: var(--amber); }
.nav__cta {
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__cta:hover { background: var(--amber); color: var(--ink); }
.nav__burger {
  display: none;
  background: transparent;
  border: none;
  width: 2.8rem;
  height: 2.8rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0.4rem;
  transition: all 0.3s ease;
}
.nav__burger:hover {
  opacity: 0.8;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--amber);
  transition: transform 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}
.nav__burger[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-46deg);
}
.nav__burger:active {
  transform: scale(0.95);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--pad) 4rem;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 78% 18%, rgba(242, 181, 61, 0.07), transparent 60%),
    radial-gradient(50rem 34rem at 12% 85%, rgba(85, 214, 228, 0.06), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__portrait {
  margin: 0;
  display: flex;
  align-items: flex-start;
}
.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* ============================================================
   Learn Section with Image + Cards
   ============================================================ */
.learn-container {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.learn-image {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
}

.learn-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}

.learn-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.learn-content .cards--offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cards--offers .card {
  padding: 1.2rem;
}

.cards--offers .card__title {
  font-size: 1.1rem;
}

.cards--offers .card__text {
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .learn-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .learn-image {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: auto;
  }

  .learn-image img {
    width: 100%;
    height: auto;
  }

  .learn-content .cards--offers {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 768px) {
  .learn-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .learn-image {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: auto;
  }

  .learn-image img {
    width: 100%;
    height: auto;
  }

  .learn-content .cards--offers {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero__title em {
  color: var(--amber);
  font-weight: 400;
}
.hero__roles {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  color: var(--text-dim);
  margin-top: 1.4rem;
  min-height: 1.8em;
}
.hero__word {
  color: var(--cyan);
  display: inline-block;
}
.hero__word.swap { animation: word-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.6em); }
  to { opacity: 1; transform: none; }
}
.hero__lede {
  max-width: 36rem;
  margin-top: 1.6rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.3vw, 1.15rem);
}
.hero__lede em { color: var(--text); font-family: var(--serif); font-size: 1.06em; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero__actions .btn {
  flex: 1;
  min-width: 12rem;
  justify-content: center;
}
.hero__scrollhint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(var(--amber), transparent);
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   Ticker
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--ink-2);
  position: relative;
}
.ticker__track {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  width: max-content;
  animation: scroll-ticker 28s linear infinite;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  will-change: transform;
}
.ticker__track span {
  margin: 0;
  padding: 0;
}
@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.3333%);
  }
}

/* ============================================================
   Sections (shared)
   ============================================================ */
.section {
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
}
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.section__title em { color: var(--amber); }
.section__sub {
  color: var(--text-dim);
  max-width: 34rem;
  margin-top: 1.3rem;
}

/* ============================================================
   Journey chart
   ============================================================ */
.journey { max-width: 88rem; }

.chart {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(15rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.chart__frame {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  min-width: 0;
}
.chart__scroll {
  overflow-x: auto;
  overflow-y: hidden;
}
.chart__scroll svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 100%;
}

/* svg internals */
.grid-line { stroke: var(--line-soft); stroke-width: 1; }
.axis-label {
  font-family: var(--mono);
  font-size: 13px;
  fill: var(--text-dim);
  opacity: 0.75;
}
.journey-area { opacity: 0; transition: opacity 1.2s ease 0.9s; }
.chart.drawn .journey-area { opacity: 1; }
.end-label {
  font-family: var(--mono);
  font-size: 14px;
  fill: var(--amber);
  opacity: 0;
  transition: opacity 0.8s ease 2s;
}
.chart.drawn .end-label { opacity: 1; }
.journey-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(242, 181, 61, 0.5));
}
.chart.drawn .journey-line { animation: draw 2.4s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.marker { cursor: pointer; outline: none; }
.marker__dot {
  fill: var(--ink);
  stroke: var(--cyan);
  stroke-width: 2.5;
  transition: r 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}
.marker__hit { fill: transparent; }
.marker__pulse {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  opacity: 0;
}
.marker:hover .marker__dot,
.marker:focus-visible .marker__dot { fill: var(--cyan); }
.marker.active .marker__dot { fill: var(--amber); stroke: var(--amber); }
.marker.active .marker__pulse { animation: pulse 2s ease-out infinite; stroke: var(--amber); }
.marker:focus-visible .marker__pulse { opacity: 1; }
@keyframes pulse {
  0% { opacity: 0.8; r: 8; }
  100% { opacity: 0; r: 22; }
}
.chart .marker { opacity: 0; transition: opacity 0.5s ease; }
.chart.drawn .marker { opacity: 1; }
.chart.drawn .marker { transition-delay: var(--d, 0s); }

.chart__story {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
}
.chart__story-year {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
}
.chart__story-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: 0.6rem;
  color: var(--amber);
}
.chart__story-text {
  color: var(--text-dim);
  margin-top: 0.9rem;
  font-size: 0.98rem;
  flex: 1;
}
.chart__story-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.chart__story-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chart__story-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.chart__footnote {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 1.2rem;
}

/* ============================================================
   Impact dashboard (KPI tiles)
   ============================================================ */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.1rem;
}
.kpi {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  min-height: 13rem;
}
.kpi__value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--amber);
  line-height: 1;
}
.kpi__value--text { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; }
.kpi__label {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 0.7rem;
}
.kpi__sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  flex: 1;
}
.kpi__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 3rem;
  margin-top: 1rem;
}
.kpi__bars i {
  flex: 1;
  height: var(--h, 40%);
  background: linear-gradient(180deg, rgba(85, 214, 228, 0.55), rgba(85, 214, 228, 0.08));
  border-radius: 3px 3px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .kpi.in .kpi__bars i { transform: scaleY(1); }
html.js .kpi.in .kpi__bars i:nth-child(2) { transition-delay: 0.08s; }
html.js .kpi.in .kpi__bars i:nth-child(3) { transition-delay: 0.16s; }
html.js .kpi.in .kpi__bars i:nth-child(4) { transition-delay: 0.24s; }
html.js .kpi.in .kpi__bars i:nth-child(5) { transition-delay: 0.32s; }
html.js .kpi.in .kpi__bars i:nth-child(6) { transition-delay: 0.4s; }
html:not(.js) .kpi__bars i { transform: none; }

/* ============================================================
   Wall of love
   ============================================================ */
.loves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
}
.love-card {
  border: 1px dashed rgba(232, 230, 224, 0.18);
  border-radius: 16px;
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
}
.love-card__quote {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 0.6;
  color: var(--amber);
  opacity: 0.7;
}
.love-card__text {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-top: 0.9rem;
  flex: 1;
}
.love-card__who {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-top: 1.2rem;
}

/* ============================================================
   Chapters
   ============================================================ */
.chapters {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.chapter {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  max-width: 52rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.chapter:nth-child(even) { margin-left: auto; }
.chapter__num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-style: italic;
  color: var(--amber);
  opacity: 0.55;
  line-height: 1;
}
.chapter__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 0.8rem;
}
.chapter__text { color: var(--text-dim); max-width: 40rem; }
.chapter__text em { color: var(--text); }

/* ============================================================
   Building cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem 1.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 181, 61, 0.45);
  background: var(--ink-3);
}
.card__tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
}
.card__text {
  color: var(--text-dim);
  font-size: 0.95rem;
  flex: 1;
}
.card__link {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--amber);
  margin-top: 0.4rem;
}

/* ============================================================
   Beliefs
   ============================================================ */
.beliefs__list { list-style: none; }
.belief {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.4vw, 2.7rem);
  line-height: 1.25;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.belief:first-child { border-top: 1px solid var(--line); }
.belief:hover { color: var(--amber); padding-left: 0.8rem; }
.belief__num {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--cyan);
  min-width: 2rem;
}

/* ============================================================
   Interlude
   ============================================================ */
.interlude {
  position: relative;
  padding: clamp(6rem, 14vw, 11rem) var(--pad);
  text-align: center;
  background:
    radial-gradient(52rem 30rem at 50% 50%, rgba(242, 181, 61, 0.09), transparent 65%),
    var(--ink-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.interlude__inner { max-width: 50rem; margin-inline: auto; }
.interlude__hindi {
  font-family: var(--hindi);
  font-size: clamp(1.6rem, 4.6vw, 2.9rem);
  line-height: 1.6;
  color: var(--amber);
  text-shadow: 0 0 40px rgba(242, 181, 61, 0.3);
}
.interlude__en {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--text-dim);
  margin-top: 2rem;
}
.interlude__credit {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 1.4rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   Writing
   ============================================================ */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem 1.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.post:hover { transform: translateY(-6px); border-color: rgba(85, 214, 228, 0.45); }
.post__meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.post__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
}
.post__text { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.post__soon {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--amber);
  border: 1px solid var(--amber-soft);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* ============================================================
   Connect
   ============================================================ */
.connect {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem);
}
.connect__inner {
  max-width: 900px;
  margin-inline: auto;
}
.connect__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 1rem;
}
.connect__title em { color: var(--amber); }
.connect__text {
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.connect__actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.socials a:hover {
  color: var(--amber);
  border-color: var(--amber);
  transform: translateY(-3px);
}
.socials svg { width: 1.15rem; height: 1.15rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  text-align: center;
  padding: 3.5rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
}
.footer__rafi {
  font-family: var(--hindi);
  font-size: 1.15rem;
  color: var(--text-dim);
  opacity: 0.8;
}
.footer__meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.6;
  margin-top: 0.9rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .chart { grid-template-columns: 1fr; }
  .chart__frame {
    margin-inline: calc(var(--pad) * -1);
    border-radius: 0;
  }
  .chapter:nth-child(even) { margin-left: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__portrait { justify-content: center; width: 100%; margin-inline: auto; }
  .hero-image { max-width: 100%; width: auto; height: auto; }

  /* Enlarge images on tablet */
  .learn-image { max-width: 90%; width: 100%; margin: 0 auto; }
}

@media (max-width: 720px) {
  .nav__name { display: none; }
  .nav__burger { display: flex; }
  .chart__frame {
    padding: clamp(0.5rem, 1.5vw, 1rem);
  }
  .chart__scroll svg {
    min-width: 100%;
  }
  .chart__story {
    margin-top: 1.5rem;
  }
  .axis-label {
    font-size: 11px;
  }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    font-size: 1.3rem;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav__links.open { opacity: 1; pointer-events: auto; }
  .nav__burger { position: relative; z-index: 101; }
  .chapter { grid-template-columns: 1fr; gap: 0.6rem; }
  .chapter__num { font-size: 2rem; }
  .hero { padding-top: 6rem; }
  .hero__copy { text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { min-width: 14rem; }

  /* Learn section - maximize image and cards */
  .learn-container { gap: 1.5rem; }
  .learn-image { max-width: 100%; width: 100%; aspect-ratio: auto; height: auto; }
  .learn-image img { height: auto; width: 100%; }
  .learn-content .cards--offers { grid-template-columns: 1fr; gap: 1rem; }
}

