/* =========================================================
   SHAIVY BHATIA — About page
   Rides on styles.css tokens. Adds page-specific layouts.
   ========================================================= */

/* ---------- Page rhythm ---------- */
.about-main { padding-top: 96px; }
.about-sec { padding-block: clamp(28px, 3.5vw, 48px); }
.about-sec--tight { padding-block: clamp(22px, 3vw, 40px); }

/* ---------------------------------------------------------
   TYPE SCALE (About) — only these sizes, no in-betweens
   12px  uppercase eyebrows / labels
   13px  micro meta (badges, pills, captions)
   14px  small body (card descriptions, dates)
   16px  body copy
   18px  lead / card titles
   20px+ display, via clamp()
   --------------------------------------------------------- */

/* Back button, fixed top-left, aligned with nav bar */
.about-back { position: fixed; top: 18px; left: 24px; z-index: 999; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); text-decoration: none; padding: 6px 8px; pointer-events: auto; }
.about-back .arr svg { width: 15px; height: 15px; }
.about-back:hover { color: var(--accent); }

/* Remove doubled-up gap before footer on this page */
.about-main + .footer { margin-top: 0; }

/* Soft accent wash behind alternating sections */
.about-wash { position: relative; }
.about-wash::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 480px at 88% 8%, rgba(168,111,214,0.09), transparent 62%),
    radial-gradient(620px 420px at 4% 96%, rgba(168,111,214,0.05), transparent 60%);
  pointer-events: none; z-index: 0;
}

/* =========================================================
   HERO — portrait forward, big editorial statement
   ========================================================= */
.ah {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
}
.ah__text--center { text-align: center; max-width: 1120px; }
.ah__text--center .ah__lead { margin-left: auto; margin-right: auto; }
.ah__eyebrow { margin-bottom: 26px; }
.ah__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 90px);
  line-height: 1.0;
  letter-spacing: -0.022em;
}
.ah__title em { font-style: italic; color: var(--accent); }
.ah__lead {
  margin-top: 30px;
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.62;
  text-wrap: pretty;
}
.ah__lead b { color: var(--text); font-weight: 600; }
.ah__meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 34px;
}
.ah__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 0.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,0.02);
  transition: border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.ah__chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.ah__chip svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* Portrait block */
.ah__portrait { position: relative; justify-self: center; width: 100%; max-width: 900px; margin-top: 6px; }
.ah__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 0.5px solid var(--line-strong);
  aspect-ratio: 4 / 5;
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(0,0,0,0.5);
}
.ah__frame image-slot { width: 100%; height: 100%; }

/* Pocket / wallet-style peeking cards */
.ah-pocket { position: relative; width: 100%; padding-inline: 40px; }
.ah-pocket__peek { position: relative; height: 340px; display: flex; align-items: flex-start; justify-content: center; z-index: 2; }
.ah-peek { border: 3px solid var(--bg); box-sizing: border-box; position: relative; flex: 1 1 0; max-width: 230px; height: 340px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,0.45); transform: translateX(var(--stack-x, 0px)) rotate(0deg) scale(0.85); opacity: 0; transition: transform 1s var(--ease), opacity .7s var(--ease), box-shadow .4s var(--ease); background: var(--surface); }
.ah-peek:nth-child(1) { --stack-x: 220px; }
.ah-peek:nth-child(2) { --stack-x: 74px; }
.ah-peek:nth-child(3) { --stack-x: -74px; }
.ah-peek:nth-child(4) { --stack-x: -220px; }
.ah__portrait.reveal.in .ah-peek { opacity: 1; transform: translateX(0) rotate(var(--r, 0deg)) scale(1); }
.ah-peek:nth-child(1) { transition-delay: .05s; }
.ah-peek:nth-child(2) { transition-delay: .16s; }
.ah-peek:nth-child(3) { transition-delay: .27s; }
.ah-peek:nth-child(4) { transition-delay: .38s; }
.ah-peek:hover { transform: translateX(0) translateY(-18px) scale(1.08) rotate(0deg) !important; z-index: 10 !important; box-shadow: 0 34px 64px rgba(0,0,0,0.55); transition: transform .35s var(--ease), box-shadow .35s var(--ease) !important; transition-delay: 0s !important; }
.ah-peek + .ah-peek { margin-left: -34px; }
.ah-peek--photo img, .ah-peek--photo image-slot { width: 100%; height: 100%; display: block; }
.ah-peek--photo { background: #f2efe8; }
.ah-peek--card { z-index: 5; padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--gc, #A86FD6) 25%, transparent), transparent 60%), var(--surface-2); }
.ah-peek__k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gc, var(--accent)); margin-bottom: 8px; }
.ah-peek__t { font-family: var(--serif); font-size: 16px; line-height: 1.28; }
.ah-pocket__bar { position: relative; height: 120px; border-radius: 40px; background: linear-gradient(180deg, #232323, #121212); border: 0.5px solid var(--line-strong); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05); z-index: 1; }
.ah-pocket__bar::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,0.14); border-radius: 32px; pointer-events: none; }
.ah-pocket__label { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.ah-pocket__wing { position: absolute; top: 14px; bottom: 14px; width: 72px; border-radius: 32px; z-index: 0; background: linear-gradient(160deg, #b491e0, #7c56b8); box-shadow: 0 20px 40px rgba(124,86,184,0.35); }
.ah-pocket__wing--l { left: -40px; }
.ah-pocket__wing--r { right: -40px; }
@media (max-width: 640px) { .ah-pocket { padding-inline: 8px; } .ah-pocket__peek { height: 220px; flex-wrap: nowrap; margin-bottom: -40px; } .ah-peek { max-width: 130px; height: 220px; } .ah-peek + .ah-peek { margin-left: -18px; } .ah-pocket__wing { width: 32px; } .ah-pocket__wing--l { left: -16px; } .ah-pocket__wing--r { right: -16px; } }
.ah__ring {
  position: absolute; inset: -16px;
  border: 0.5px solid var(--line);
  border-radius: 34px;
  pointer-events: none;
}
.ah__badge {
  position: absolute;
  left: -22px; bottom: 34px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px;
  border-radius: var(--r-pill);
  background: rgba(17,17,17,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 0.5px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  font-size: 13px; font-weight: 500;
}
.ah__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #43d17f; box-shadow: 0 0 0 4px rgba(67,209,127,0.18); }
.ah__spark {
  position: absolute; top: -14px; right: 20px;
  font-family: var(--serif); font-size: 30px; color: var(--accent);
  animation: ahFloat 5s var(--ease) infinite;
}
@keyframes ahFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(8deg); } }

/* =========================================================
   THE PIVOT STORY — path with a turning point
   ========================================================= */
.path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.path__node {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--r-card);
  padding: 34px 32px;
  transition: border-color .5s var(--ease), transform .5s var(--ease), background .5s var(--ease);
}
.path__node:hover { border-color: var(--line-strong); transform: translateY(-5px); background: var(--surface-2); }
.path__step { font-family: var(--serif); font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.path__t { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; margin-top: 12px; line-height: 1.1; }
.path__t em { font-style: italic; color: var(--accent); }
.path__d { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.path__tag {
  display: inline-block; margin-top: 18px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  border: 0.5px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* Center turning point */
.path__turn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-inline: clamp(18px, 3vw, 40px);
  position: relative;
}
.path__turn-orb {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 46px rgba(168,111,214,0.5);
  animation: turnPulse 3.4s var(--ease) infinite;
}
.path__turn-orb svg { width: 34px; height: 34px; }
@keyframes turnPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.path__turn-cap {
  margin-top: 16px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent);
}
.path__line {
  position: absolute; top: 37px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
  z-index: -1;
}
.path__line--l { left: -18px; right: calc(50% + 46px); }
.path__line--r { right: -18px; left: calc(50% + 46px); }

/* ---- Journey timeline (vertical, alternating) ---- */
.jrny { position: relative; display: flex; flex-direction: column; gap: 64px; padding: 20px 0; }
.jrny__line { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1.5px; background: linear-gradient(180deg, var(--accent), rgba(232,200,134,0.6)); transform: translateX(-50%); }
.jrny__runner { position: absolute; left: 50%; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 3px rgba(232,200,134,0.55); z-index: 2; transform: translate(-50%, -50%); transition: top .25s linear; }
.jrny__step { position: relative; width: calc(50% - 40px); opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.jrny__step.is-active { opacity: 1; transform: none; }
.jrny__step--0 { margin-right: auto; text-align: right; }
.jrny__step--1 { margin-left: auto; text-align: left; }
.jrny__dot { position: absolute; top: 2px; width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); opacity: 0; transform: scale(0.4); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.jrny__step.is-active .jrny__dot { opacity: 1; transform: scale(1); }
.jrny__dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--accent); }
.jrny__label, .jrny__t, .jrny__d { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) .18s, transform .5s var(--ease) .18s; }
.jrny__step.is-active .jrny__label, .jrny__step.is-active .jrny__t, .jrny__step.is-active .jrny__d { opacity: 1; transform: none; }
.jrny__step--0 .jrny__dot { right: -51px; left: auto; }
.jrny__step--1 .jrny__dot { left: -51px; right: auto; }
.jrny__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.jrny__t { font-family: var(--sans); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; margin-top: 10px; line-height: 1.15; letter-spacing: -0.01em; }
.jrny__d { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.jrny__why { margin-top: 40px; max-width: 68ch; }
.jrny__why-lead { color: var(--muted); font-size: 16px; line-height: 1.65; }
.jrny__bullets { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.jrny__bullets li { position: relative; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.jrny__bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.jrny__bullets b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .jrny__line, .jrny__runner { left: 11px; }
  .jrny__step, .jrny__step--0, .jrny__step--1 { width: 100%; margin: 0; text-align: left; padding-left: 40px; }
  .jrny__step--0 .jrny__dot, .jrny__step--1 .jrny__dot { left: 0; right: auto; }
}

/* =========================================================
   WHAT PULLED ME IN — icon chips row
   ========================================================= */
.draw {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.draw__card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px 30px;
  transition: border-color .5s var(--ease), transform .5s var(--ease), background .5s var(--ease);
}
.draw__card:hover { border-color: var(--accent); transform: translateY(-6px); background: var(--surface-2); }
.draw__ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.draw__ic svg { width: 23px; height: 23px; }
.draw__t { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.draw__d { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* =========================================================
   MANIFESTO — big numbered statements
   ========================================================= */
.mani { display: grid; gap: 0; }
.mani__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 0.5px solid var(--line);
}
.mani__row:last-child { border-bottom: 0.5px solid var(--line); }
.mani__no {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--accent);
  line-height: 1;
}
.mani__body { max-width: 62ch; }
.mani__t {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.mani__t em { font-style: italic; color: var(--accent); }
.mani__d { margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.62; }
.mani__row:hover .mani__t { color: #fff; }
.mani__t { transition: color .4s var(--ease); }

/* =========================================================
   LIFE BENTO — hobbies, playful varied tiles
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.tile {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color .5s var(--ease), transform .5s var(--ease), background .5s var(--ease);
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-5px); background: var(--surface-2); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile__k {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  position: relative; z-index: 2;
}
.tile__t {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.12;
  position: relative; z-index: 2;
}
.tile__d { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; position: relative; z-index: 2; max-width: 34ch; }
.tile__emoji {
  position: absolute; top: 22px; right: 24px;
  font-size: 30px; z-index: 2;
  filter: grayscale(0);
  transition: transform .5s var(--ease);
}
.tile:hover .tile__emoji { transform: scale(1.15) rotate(-8deg); }
/* Photo tiles: image slot fills, caption overlays */
.tile--photo { padding: 0; }
.tile--photo image-slot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.tile--photo .tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 20px 22px;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.86));
}
.tile--photo .tile__k { color: #fff; opacity: 0.82; }
.tile--photo .tile__t { color: #fff; }

/* =========================================================
   PHILOSOPHY — big pull quote
   ========================================================= */
.philo { text-align: center; max-width: 22ch; margin-inline: auto; }
.philo__mark { font-family: var(--serif); font-size: 72px; color: var(--accent); line-height: 0.4; height: 40px; }
.philo__q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin: 28px auto 0;
}
.philo__q em { font-style: italic; color: var(--accent); }
.philo__sub {
  margin: 30px auto 0; max-width: 52ch;
  color: var(--muted); font-size: 16px; line-height: 1.62;
}

/* =========================================================
   QUICK FACTS — playful marquee-ish row of pills
   ========================================================= */
.facts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin-inline: auto; }
.fact {
  display: inline-flex; align-items: center; gap: 9px;
  border: 0.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 11px 18px;
  font-size: 14px; color: var(--text);
  background: rgba(255,255,255,0.015);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.fact:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--accent-soft); }
.fact span { font-size: 18px; }

/* =========================================================
   BACK-HOME CTA band
   ========================================================= */
.aboutcta { text-align: center; }
.aboutcta__t {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 20ch; margin-inline: auto;
}
.aboutcta__t em { font-style: italic; color: var(--accent); }
.aboutcta__sub { margin: 22px auto 0; max-width: 48ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.aboutcta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
body.home .about-main .contact-sec { padding-block: clamp(15px, 2vw, 25px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; gap: 16px; }
  .path__turn { padding: 8px 0; flex-direction: row; gap: 16px; }
  .path__turn-cap { margin-top: 0; }
  .path__line { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .mani__row { grid-template-columns: 1fr; gap: 8px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .ah__badge { left: 12px; }
}

/* =========================================================
   ART — hands-on, floating interactive gallery
   ========================================================= */
.art-lead { text-align: center; max-width: 62ch; margin-inline: auto; }
.art-lead__title { max-width: none; margin-inline: auto; }
.art-lead__p {
  margin: 26px auto 0; max-width: 58ch;
  color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.66;
}
.art-lead__p b { color: var(--text); font-weight: 600; }
.art-lead__copy { margin: 20px auto 0; max-width: 56ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; text-wrap: pretty; color: rgba(20,17,13,0.68); }
.art-hint {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--accent);
}
.art-hint span { animation: none; }

/* Scroll-driven stack → gallery */
.art-sec { padding: 90px 0; background: var(--bg); }

/* ---- Work experience list ---- */
.xp-list { margin-top: 40px; border-top: 0.5px solid var(--line); }
.xp-row { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 24px; padding: 22px 4px; border-bottom: 0.5px solid var(--line); }
.xp-role { font-weight: 600; font-size: 16px; }
.xp-org { color: var(--muted); font-size: 16px; }
.xp-dates { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .xp-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; } .xp-dates { order: 3; } }

/* ---- Beyond the screen: 2x2 cards, gem-palette panels, inset framed photo ---- */
.life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.life-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 20px 44px rgba(0,0,0,0.4); background: var(--sc); transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .25s ease; }
.life-card:hover { transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) scale(1.02); }
.life-card__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 14px;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: perspective(1200px) rotateX(-72deg);
  transition: transform 0.85s cubic-bezier(0.22,1,0.36,1), opacity 0.6s ease;
  will-change: transform;
}
.life-card__stage.is-in { opacity: 1; transform: perspective(1200px) rotateX(0deg) rotateY(0deg); }
.life-card__img { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; background: rgba(0,0,0,0.12); border-radius: 14px; overflow: hidden; }
.life-card__img image-slot { width: 100%; height: 100%; display: block; }
.life-card__cap { position: relative; flex: 0 0 auto; padding: 14px 4px 0; background: transparent; color: var(--ink, #14110D); }
.life-card__t { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.life-card__d { margin-top: 6px; font-size: 13px; line-height: 1.5; opacity: 0.78; max-width: none; }
@media (prefers-reduced-motion: reduce) { .life-card__stage { transition: opacity 0.4s ease; transform: none !important; } }
@media (max-width: 640px) { .life-grid { grid-template-columns: 1fr; max-width: 400px; } }
.art-scroller {
  position: relative;
  height: 175vh;               /* scroll distance that drives the unstack */
}
.art-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 32px);
  padding: 40px 24px;
  border-radius: 32px;
  background: #fff radial-gradient(circle, rgba(20,17,13,0.14) 1.2px, transparent 1.2px) 0 0/22px 22px;
  width: calc(100% - 48px);
  margin: 0 auto;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5);
}
.art-sticky .art-lead { color: #14110d; }
.art-sticky .eyebrow { color: #14110d; opacity: 0.6; }
.art-sticky .art-hint { color: rgba(20,17,13,0.55); }
.art-deck {
  position: relative;
  width: min(1200px, 92vw);
  height: min(56vh, 460px);
  perspective: 1500px;
  transform-style: preserve-3d;
}
.art-card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--cw, clamp(184px, 20vw, 258px));
  margin: 0; padding: 0; border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center center;
  /* JS drives --st (scroll layout) and --ht (hover tilt); centering stays here */
  transform: translate(-50%, -50%) var(--st, rotate(0deg)) var(--ht, translateZ(0));
  transition: transform var(--tdur, .34s) cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  z-index: 10;
}
.art-card img {
  display: block;
  width: 100%; height: auto;
  border-radius: 9px;
}
.art-card:hover { z-index: 60; }
.art-card:focus-visible { outline: none; z-index: 60; }
.art-card:focus-visible img { box-shadow: 0 0 0 2px var(--accent); }

/* Sunday Sunshine is near-square — give it a touch more width to balance mass */
.art-card:nth-child(2) { --cw: clamp(206px, 22.5vw, 288px); }

@media (prefers-reduced-motion: reduce) {
  .art-card { transition: none; }
}

/* Lightbox */
.art-lb {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  perspective: 1800px;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.art-lb.is-open { opacity: 1; visibility: visible; }
.art-lb__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,6,6,0.86);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.art-lb__figure {
  position: relative; z-index: 2;
  margin: 0; text-align: center;
  max-width: min(88vw, 560px);
  transform-origin: center center;
  transform: rotateY(78deg) translateZ(-60px);
  opacity: 0;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), opacity .4s var(--ease);
}
.art-lb.is-open .art-lb__figure { transform: rotateY(0deg) translateZ(0); opacity: 1; }
.art-lb__img {
  display: block;
  max-width: 100%; max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 50px 120px rgba(0,0,0,0.7);
}
.art-lb.is-swap .art-lb__img { animation: lbSwap .42s var(--ease); }
@keyframes lbSwap { from { opacity: .25; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
.art-lb__cap {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 5px;
}
.art-lb__title {
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400; letter-spacing: -0.01em; color: var(--text);
}
.art-lb__kind {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.art-lb__nav, .art-lb__close {
  position: absolute; z-index: 3;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0.5px solid var(--line-strong);
  background: rgba(17,17,17,0.72);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.art-lb__nav { width: 52px; height: 52px; top: 50%; transform: translateY(-50%); }
.art-lb__nav svg { width: 24px; height: 24px; }
.art-lb__nav--prev { left: clamp(14px, 4vw, 52px); }
.art-lb__nav--next { right: clamp(14px, 4vw, 52px); }
.art-lb__nav:hover { border-color: var(--accent); background: rgba(168,111,214,0.24); transform: translateY(-50%) scale(1.07); }
.art-lb__close { width: 44px; height: 44px; top: clamp(16px, 3vw, 34px); right: clamp(16px, 3vw, 34px); }
.art-lb__close svg { width: 20px; height: 20px; }
.art-lb__close:hover { border-color: var(--accent); background: rgba(168,111,214,0.24); transform: scale(1.07); }

/* Art — responsive: on small screens skip the scroll-stack, use a swipe rail */
@media (max-width: 900px) {
  .art-scroller { height: auto; }
  .art-sticky { position: static; height: auto; display: block; }
  .art-deck {
    width: auto; height: auto;
    perspective: none;
    display: flex; gap: 18px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 30px 4px 26px;
    margin-inline: calc(var(--pad-x, 24px) * -1);
    padding-inline: var(--pad-x, 24px);
  }
  .art-deck::-webkit-scrollbar { display: none; }
  .art-card {
    position: relative; left: auto; top: auto;
    flex: 0 0 64%; width: 64%;
    transform: none !important;
    scroll-snap-align: center;
  }
  .art-card:nth-child(2) { flex-basis: 72%; width: 72%; }
}
@media (max-width: 560px) {
  .art-card { flex-basis: 80%; width: 80%; }
  .art-card:nth-child(2) { flex-basis: 86%; width: 86%; }
  .art-lb__nav { width: 44px; height: 44px; }
}

/* ---- Mobile pass: hero text + wallet cards ---- */
@media (max-width: 760px){
  .ah__title,.ah__title[style],.ah__title em[style]{font-size:clamp(34px,9vw,48px)!important;line-height:1.04!important}
  .ah__lead,.ah__lead[style]{width:auto!important;height:auto!important;max-width:100%!important;font-size:16px!important;margin-top:20px}
  .ah__text--center{padding-inline:2px}
  .art-lead__title,.art-lead__title[style]{font-size:clamp(28px,7.6vw,38px)!important;line-height:1.1!important;width:auto!important;height:auto!important}
}
@media (max-width: 700px){
  .ah-pocket{padding-inline:0}
  .ah-pocket__peek{height:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:0}
  .ah-peek{max-width:none;width:auto;height:auto;min-height:190px;flex:none;margin-left:0!important;transform:none!important;opacity:1;transition:box-shadow .35s var(--ease)}
  .ah__portrait.reveal.in .ah-peek{transform:none!important}
  .ah-peek:hover{transform:none!important;box-shadow:0 24px 50px rgba(0,0,0,0.45)}
  .ah-peek--card{padding:18px 16px}
  .ah-peek__t{font-size:14px}
  .ah-pocket__wing{display:none}
  .ah-pocket__bar{height:84px;border-radius:28px;margin-top:16px}
  .ah-pocket__bar::before{border-radius:22px}
}
@media (max-width: 400px){
  .ah-pocket__peek{grid-template-columns:1fr}
  .ah-peek{min-height:170px}
}

/* ---- Neutralise hard-coded inline sizes on text blocks below desktop ---- */
@media (max-width: 1200px){
  .ah__title[style],.ah__lead[style],.jrny__why-lead[style],.philo__q[style],.philo__sub[style],.aboutcta__t[style],.art-lead__copy[style],.art-lead__title[style],.section-title[style],.xp-row[style],.life-card__d[style]{width:auto!important;height:auto!important;max-width:100%!important}
}
.bg-blobs{overflow:hidden}

@media (max-width: 700px){
  .ah-peek--photo image-slot{--slot-radius:0;width:100%;height:100%}
  .ah-peek--photo{background:var(--surface)}
}

.art-hint__mob{display:none}
@media (max-width:700px){.art-hint__desk{display:none}.art-hint__mob{display:inline}}
