/* ============================================================
   Portfolio — two-panel app shell (Figma "Portfolio - 4")
   Rounded floating panels · left nav · swappable right view
   ============================================================ */

:root {
  --page: #ffffff;
  --panel: #fafafb;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #5f5f63;
  --ink-3: #98989d;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.06);
  --radius-panel: 24px;
  --radius-card: 16px;
  --reveal: 640px; /* footer height: statue band sits below the credits; app lifts this + a 48px card foot */
  /* Unified dashed separator: 1px, #ECEDEF, 6px dash / 6px gap */
  --dash-h: repeating-linear-gradient(to right, var(--divider) 0 6px, transparent 6px 12px);
  --dash-v: repeating-linear-gradient(to bottom, var(--divider) 0 6px, transparent 6px 12px);
  /* Ruler + grid background, recreated from paper.design (120px grid tile,
     30px ruler strip with ticks every 10px, longer at 30/120px). */
  --grid: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><line x1='60.25' y1='0' x2='60.25' y2='120' stroke='%23E4E4E4' stroke-width='0.5' stroke-dasharray='7.56 7.56'/><line x1='0' y1='60.25' x2='120' y2='60.25' stroke='%23E4E4E4' stroke-width='0.5'/></svg>");
  --ruler: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='120' viewBox='0 0 30 120'><path d='M29 0.25L2 0.25M16.14 10.25L2 10.25M16.14 20.25L2 20.25M21.73 30.25L2 30.25M16.14 40.25L2 40.25M16.14 50.25L2 50.25M16.14 70.25H2M16.14 80.25H2M21.73 90.25H2M16.14 100.25H2M16.14 110.25H2M29 120.25H2' stroke='%23CFCFCF' stroke-width='0.5' stroke-linecap='round'/></svg>");
  /* Tileable grain (baseFrequency = grain size, feFuncA slope = strength) */
  --noise: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='0.14'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 14px rgba(16, 24, 40, 0.05);

  /* ---- Semantic tokens (dark-mode ready). Light values mirror the literals
     they replace, so light mode is unchanged; overrides live in the dark block. ---- */
  --ink-body: #333333;      /* body copy */
  --ink-muted: #505050;     /* case-study body / muted copy */
  --slate: #475569;         /* chips, captions */
  --slate-2: #64748b;
  --backdrop: #f5f5f5;      /* page area behind the floating app */
  --fill-subtle: #f1f1f1;   /* card / image-card fills */
  --fill-muted: #f1f2f3;    /* subtle highlights (tab pill, gh-tip) */
  --stroke: #c1c1c1;        /* card + image strokes */
  --divider: #ecedef;       /* dashed separators, dividers, app edges, resume line */
  --section-sep: #ecedef;   /* diagonal-hatch section separators */
  --underline: #e7e7e7;     /* underline under bio links */
  --cta-bg: #09090b;        /* primary black button */
  --cta-border: #2f2f32;
  --cta-fg: #ffffff;
  --ok: #27ac45; --ok-bg: #ebffe5; --ok-fg: #117439;  /* "open to work" / green pill */
  --cs-bar: #d9d9d9;   /* case-study accent bars */
  --amber: #934f11; --amber-bg: #e8e6e2;   /* stat badge */
  /* work-project card badges (per card) */
  --badge-amber-bg: #e8e6e2; --badge-amber-fg: #91762e;   /* Thrive — BETA Users */
  --badge-purple-bg: #ebe6fa; --badge-purple-fg: #442fb3; /* Novatr — Controlled Release */
  --link: #003ee3;
  --gh-empty: #ebedf0;      /* GitHub chart empty tile */
  --quote-mark: #ebecef;    /* footer quote glyph */
}

/* ---- Dark theme (opt-in via the toggle; default stays light) ---- */
:root[data-theme="dark"] {
  --page: #0e0e0e;
  --panel: #1a1a1a;
  --surface: #1a1a1a;   /* case-study sheet + status pill — match the panel */
  --ink: #f4f4f4;
  --ink-body: #d6d6d9;
  --ink-2: #a1a1a1;
  --ink-3: #6f6f6f;
  --ink-muted: #b4b4b4;
  --slate: #9a9a9a;
  --slate-2: #696969;   /* year / date / "immediate joiner" meta text */
  --backdrop: #08080a;
  --fill-subtle: #282828;   /* card + chip surface (testimonial, work/playground cards, chips) */
  --fill-muted: #232323;
  --stroke: #2b2b2b;
  --divider: #2b2b2b;
  --section-sep: rgba(43, 43, 43, 0.4);   /* #2B2B2B @ 40% */
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.06);
  /* CTA stays the light-mode black button in dark too (per request) — no override */
  --ok: #34d058; --ok-bg: #12331d; --ok-fg: #7ee29a;   /* green pill text on dark */
  --cs-bar: #4a4a4a;   /* case-study accent bars */
  --amber: #e0a94a; --amber-bg: #3a2e18;
  --badge-amber-bg: #211c13; --badge-amber-fg: #e6bb4b;   /* Thrive — BETA Users */
  --badge-purple-bg: #1a1634; --badge-purple-fg: #e7defe; /* Novatr — Controlled Release */
  --link: #7aa2ff;
  --gh-empty: #282828;   /* empty contribution tile — neutral, matches cards */
  --quote-mark: #2a2a2a;
  --underline: #3f3f3f;  /* subtle underline under bio links */
  --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
  /* dark-stroke variants of the SVG pattern data-URIs (colors can't be var() inside a data URI) */
  --grid: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><line x1='60.25' y1='0' x2='60.25' y2='120' stroke='%23242428' stroke-width='0.5' stroke-dasharray='7.56 7.56'/><line x1='0' y1='60.25' x2='120' y2='60.25' stroke='%23242428' stroke-width='0.5'/></svg>");
  --ruler: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='120' viewBox='0 0 30 120'><path d='M29 0.25L2 0.25M16.14 10.25L2 10.25M16.14 20.25L2 20.25M21.73 30.25L2 30.25M16.14 40.25L2 40.25M16.14 50.25L2 50.25M16.14 70.25H2M16.14 80.25H2M21.73 90.25H2M16.14 100.25H2M16.14 110.25H2M29 120.25H2' stroke='%23343439' stroke-width='0.5' stroke-linecap='round'/></svg>");
}

/* Dark overrides for a few spots that can't route through a single token */
:root[data-theme="dark"] .main-top { background-color: rgba(26, 26, 26, 0.72); }
/* Hide scrollbars everywhere — the page/containers still scroll, just no visible bar */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* selected/hover tab — sidebar nav + playground tabs — #282828 @ 60% */
:root[data-theme="dark"] .nav-highlight,
:root[data-theme="dark"] .tab-highlight { background: rgba(40, 40, 40, 0.6); }
:root[data-theme="dark"] .tt-thumb { background: #45454c; }                 /* sliding toggle knob, visible on the dark track */
/* Copy email (ghost button): dark panel fill, hairline stroke, light label + icon */
:root[data-theme="dark"] .btn.ghost { background: #1a1a1a; border: 0.5px solid var(--stroke); color: #ededed; }
:root[data-theme="dark"] .btn.ghost:hover { background: #202020; }
:root[data-theme="dark"] .main-bottom::after { background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.6) 100%); } /* bottom fade tracks the dark panel */
/* Footer (dark): pure-black bg, white flanking lines + quote, dark statue image */
:root[data-theme="dark"] .thanks-head::before,
:root[data-theme="dark"] .thanks-head::after { background: var(--stroke); }
:root[data-theme="dark"] .quote-text { color: #fff; }
:root[data-theme="dark"] .thanks-head span { color: var(--ink-3); }  /* was blue-gray #7D8695 */
:root[data-theme="dark"] .footer-copy { color: var(--ink-3); }       /* copyright — was #7D8695 */
:root[data-theme="dark"] .footer-inner { background-color: #000; }
/* Themed images: swap to the -dark art in CSS (data-theme is set before paint)
   so there's no light-then-dark flash on refresh. Targets the light src. */
:root[data-theme="dark"] img[src^="logo.png"] { content: url("logo-dark.png?v=1"); }
:root[data-theme="dark"] img[src^="thrive.png?"] { content: url("thrive-dark.png?v=2"); }
:root[data-theme="dark"] img[src^="novatr.png"] { content: url("Novatr-dark.png?v=2"); }
:root[data-theme="dark"] img[src^="internshala.png"] { content: url("IS-dark.png?v=2"); }
:root[data-theme="dark"] img[src^="thrive-hover.png"] { content: url("thrive-hover-dark.png?v=1"); }
:root[data-theme="dark"] img[src^="footer-bg.png"] { content: url("footer-dark.webp?v=2"); }
/* Mobile bottom nav (dark): lift it off the panel — lighter fill, hairline, real shadow */
:root[data-theme="dark"] .bottom-nav { background: #282828; border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); }
:root[data-theme="dark"] .bnav-item.active { background: #3d3d3d; }  /* active pill lighter than the nav */
@media (min-width: 821px) {   /* desktop statue is a bg layer — swap to the dark art */
  :root[data-theme="dark"] .footer-inner {
    background-image: url("footer-dark.webp?v=2"), var(--noise);
    background-repeat: no-repeat, repeat;
    background-position: bottom center, top left;
    background-size: 1120px auto, 140px 140px;
  }
}

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

/* Form controls don't inherit font by default — keep everything on Manrope */
button, input, select, textarea { font-family: inherit; }

html, body { height: 100%; overflow: hidden; } /* only .main scrolls; keeps a URL hash from shifting the shell */

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--backdrop);
  background-image: var(--grid);
  background-size: 120px 120px;
  background-position: 50% 0;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden; /* app-shell owns scrolling (.main); keeps the card foot clipped when closed */
}

/* Ruler strips (paper.design-style ticks) hugging the outer edges of the 1120px app */
body::before,
body::after {
  content: "";
  position: fixed; top: 0; bottom: 0;
  width: 30px; z-index: 0; pointer-events: none;
  background: var(--ruler) repeat-y;
  background-size: 30px 120px;
}
body::before { right: calc(50% + 560px); }               /* left margin, ticks point inward */
body::after { left: calc(50% + 560px); transform: scaleX(-1); } /* right margin, mirrored */
@media (max-width: 1180px) { body::before, body::after { display: none; } } /* no room in the margins */

a { color: inherit; text-decoration: none; }
::selection { background: #d7d7d7; }
:root[data-theme="dark"] ::selection { background: #3d3d3d; }  /* legible highlight for light text in dark */

/* ---------- Custom cursor ---------- */
/* Add class "native-cursor" to <html> to disable it (dev/inspect) — Alt+C or ?cursor=off */
.custom-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.native-cursor) * { cursor: none !important; }
  html:not(.native-cursor) .custom-cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 15px; height: 16px;
    z-index: 1000000; /* above the lightbox overlay (100002) so the cursor stays visible over the carousel */
    pointer-events: none;
    mix-blend-mode: difference; /* auto-inverts against whatever is behind it */
    transform: translate3d(-100px, -100px, 0);
    transform-origin: 0 0; /* scale from the tip so a press doesn't shift it */
    scale: 1;
    transition: opacity .2s ease, scale .12s ease;
    will-change: transform;
  }
  .custom-cursor svg { display: block; }
  .custom-cursor.is-hidden { opacity: 0; }
  .custom-cursor.is-pressed { scale: 0.78; }
}
/* Click feedback — tiny sparks that burst from the click point */
.click-spark {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9998;
}

/* ---------- App shell ---------- */
.app {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  will-change: transform;
}
/* Tablet range (below 1120px, above the mobile breakpoint): narrower sidebar */
@media (min-width: 821px) and (max-width: 1120px) {
  .app { grid-template-columns: 220px 1fr; }
}
/* Card's own bottom — 48px of panel background that lifts up with the card.
   Always present so the seam over the footer stays covered as the app scrubs up;
   sits just below the 100dvh app (off-screen) when at rest. */
.app::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 48px;
  box-sizing: border-box;
  background-color: var(--panel);
  border-left: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
}

/* ---------- Reveal footer (pinned behind the app) ---------- */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 0;
  height: var(--reveal);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
body.footer-open .site-footer { pointer-events: auto; }
.footer-inner {
  width: 1120px;
  max-width: 100%;
  height: 100%;
  background-color: var(--fill-muted);
  /* Decorative statues pinned to the bottom edge, over the noise texture */
  background-image: url("footer-bg.png?v=4"), var(--noise);
  background-repeat: no-repeat, repeat;
  background-position: bottom center, top left;
  background-size: 1120px auto, 140px 140px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Thank-you + quote as the footer statement */
.footer-inner .thanks { margin: 0; }
.footer-inner .thanks-head { margin: 0; } /* keep dashes within the content padding */
.footer-inner .quote { margin: 32px 0; }
.footer-inner .quote-mark { width: 64px; height: 64px; color: var(--quote-mark); }
.footer-inner .quote-text { margin-top: 20px; }

.footer-bottom { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-credit { display: flex; flex-direction: column; gap: 4px; }
.footer-credit-main { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.footer-credit-sub { font-size: 12px; line-height: 16px; font-weight: 400; color: #89898B; }
.footer-copy { font-size: 12px; color: #7D8695; }
.footer-statue { display: none; } /* mobile-only; desktop uses the statue background */

.panel {
  background-color: var(--panel);
}

/* ---------- Left panel ---------- */
.sidebar {
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid var(--divider);
}
/* Dashed divider between sidebar and main (1px, 6px gap) */
.sidebar::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background-image: var(--dash-v);
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.m-actions { display: none; } /* mobile-only header actions (socials + toggle) */
.theme-toggle {
  position: relative;
  flex: none;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: none; border-radius: 999px;
  background: var(--fill-muted); box-shadow: inset 0 0 0 1px var(--line);
}
/* Sliding white indicator: bounces to the active side on click, stretches on hover */
.tt-thumb {
  position: absolute; top: 3px; left: 3px; z-index: 0;
  width: 26px; height: 24px;
  border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transform: translateX(0);  /* explicit so dark<->light interpolates (transition to `none` stalls) */
  transition: transform .34s cubic-bezier(.34, 1.56, .64, 1), width .16s ease;
}
/* Thumb position keyed on data-theme (set before paint by the head script) so
   there's no JS-driven flip/flicker on load. */
:root[data-theme="dark"] .tt-thumb { transform: translateX(28px); }
/* Hover: stretch ~3px toward the side it would switch to */
:root[data-theme="light"] .theme-toggle:hover .tt-thumb { width: 29px; }
:root[data-theme="dark"] .theme-toggle:hover .tt-thumb { width: 29px; transform: translateX(25px); }

.tt-btn {
  position: relative; z-index: 1;
  width: 26px; height: 24px; border: none; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink-3);
  transition: color .15s ease;
}
.tt-btn svg { width: 15px; height: 15px; }
:root[data-theme="light"] .tt-btn[data-mode="light"],
:root[data-theme="dark"] .tt-btn[data-mode="dark"] { color: var(--ink); }
.logo {
  width: 32px; height: 32px;
  display: block;
  object-fit: contain;
}

/* ---------- Gravity collapse layer ---------- */
.gravity-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }

.hi { font-size: 15px; line-height: 24px; font-weight: 500; color: var(--ink); }

.divider {
  border: none;
  height: 1px;
  background-image: var(--dash-h);
  margin: 16px -16px 24px;
}
/* Footer divider (between socials and time/place) — edge-to-edge, flex gap handles vertical spacing */
.divider.foot-div { margin: 8px -16px 16px; }

.nav { display: flex; flex-direction: column; gap: 8px; position: relative; }
/* Shared sliding background — positioned by JS to follow hover/active */
.nav-highlight {
  position: absolute; top: 0; left: 0;
  height: 32px;
  background: var(--fill-muted);
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .22s ease, height .22s ease, opacity .15s ease;
}
.nav a {
  display: block;
  position: relative;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--ink-3);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink-2); }
.nav a.active {
  color: var(--ink);
  font-weight: 500;
}
.nav a.nav-play { display: flex; align-items: center; justify-content: space-between; }
.nav a.nav-play .play-ic { width: 20px; height: 20px; flex: none; transform-origin: 50% 50%; }
.nav a.nav-play .play-ic.spin { animation: play-spin 0.53s linear forwards; }
@keyframes play-spin { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .nav a.nav-play .play-ic.spin { animation: none; } }

.side-foot {
  margin-top: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.socials { display: flex; justify-content: space-between; align-items: center; }
.socials a {
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform .15s ease;
}
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 40px; height: 40px; stroke-width: 1.25; }
.foot-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; line-height: 20px; font-weight: 400; color: var(--slate);
}
.foot-meta .clock { font-variant-numeric: tabular-nums; }

/* ---------- Right panel ---------- */
.main {
  overflow-y: auto;
  padding: 0;
  border-right: 1px solid var(--divider);
  background-color: var(--panel);
}

/* Sticky status bar */
.main-top {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; flex: none;
  padding: 0 32px;
  background-color: rgba(250, 250, 251, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.main-top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background-image: var(--dash-h);
  transform: translateY(100%); /* just outside the bottom edge */
}
/* Progressive frosted fade pinned to the bottom of the main panel (blur ramps 0 -> 20px) */
.main-bottom {
  position: sticky; bottom: 0; z-index: 5;
  height: 72px; margin-top: -72px;
  pointer-events: none;
}
.main-bottom > div { position: absolute; inset: 0; }
/* Two-layer progressive blur (was 6): a light blur fading in up top, ramping to a strong blur at the bottom edge.
   Cut from 6 stacked backdrop-filters to 2 — Chrome re-rasterizes these every scroll frame, so fewer layers = smoother. */
.main-bottom > div:nth-child(1) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 35%, #000 60%, transparent 82%); mask: linear-gradient(to bottom, transparent 0%, #000 35%, #000 60%, transparent 82%); }
.main-bottom > div:nth-child(2) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask: linear-gradient(to bottom, transparent 45%, #000 78%, #000 100%); mask: linear-gradient(to bottom, transparent 45%, #000 78%, #000 100%); }
.main-bottom::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(250, 250, 251, 0.6) 100%);
}
.status { display: flex; align-items: center; gap: 9px; min-width: 0; }
.status-avail {
  color: #27AC45;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.status-sep { color: var(--ink-2); font-weight: 700; font-size: 1.3em; line-height: 0; }
.status-role {
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-role .dim { opacity: 0.5; }

.view-inner { max-width: 620px; padding: 26px 32px 44px; }

.view { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.display {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.display.sm { font-size: 30px; letter-spacing: -0.02em; }
.display .muted-strong { color: var(--ink-3); }

.prose { margin-top: 22px; }
.prose p { color: var(--ink-2); font-size: 15px; line-height: 24px; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Home facts + links ---------- */
.facts {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact .k { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.fact .v { font-size: 13px; color: var(--ink-3); }

.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px 10px 16px;
  border-radius: 32px;
  font-size: 16px; line-height: 18px; font-weight: 400;
  text-rendering: auto; /* match native buttons (the <a> would inherit optimizeLegibility) */
  cursor: pointer; border: none;
  transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--cta-bg); color: #fff;
  border: 1px solid var(--cta-border);
  box-shadow: inset 0 3px 3px rgba(255, 255, 255, 0.1);
}
.btn.primary:hover { background: #000; }
.btn .dl-ic { width: auto; height: 14px; }
.btn.ghost {
  background: linear-gradient(to top, #f0f0f0, rgba(247, 247, 247, 0.9));
  color: var(--ink);
  border: 1px solid #e5e5e5;
  border-radius: 44px;
  padding: 6px 12px 6px 16px;
}
.btn.ghost:hover { background: linear-gradient(to top, #eaeaea, var(--fill-muted)); }
.btn svg { width: 20px; height: 20px; }
/* Copy email: hover tooltip pill showing the email */
#copyEmail { position: relative; }
.ce-tip {
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 24px;
  background: var(--fill-subtle);
  color: var(--ink);
  font-size: 13px; line-height: 16px; font-weight: 400;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 10;
}
#copyEmail:hover .ce-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Copy email: swap to the check icon in the copied state */
#copyEmail .ic-copied { display: none; }
#copyEmail.is-copied .ic-copy { display: none; }
#copyEmail.is-copied .ic-copied { display: block; }

/* ---------- Home view ---------- */
.home-v { padding: 32px; max-width: none; }
/* illustration on the left, name + pointers on the right (same as mobile) */
.hero-head { display: flex; align-items: center; gap: 20px; }
.avatar {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  flex: none; margin-bottom: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.name { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.subline { margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.home-meta { display: none; } /* time + location — mobile only */
.subline .sub-dot { color: var(--ink-2); font-weight: 700; font-size: 1.3em; margin: 0 5px; vertical-align: -0.05em; }

.marker-sep { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.marker-sep .mark { color: var(--ink-3); font-size: 12px; }
.marker-sep::after {
  content: ""; height: 1px; flex: 1;
  background-image: var(--dash-h);
}

.bio p { color: var(--ink); font-size: 15px; line-height: 24px; }
.bio .lnk, .bio .hl {
  color: var(--slate); font-weight: 500;
  /* data-no-fx keeps these out of the char-wrapping effect so a real underline
     (with a precise offset) renders — inline-block spans would suppress it. */
  text-decoration: underline; text-decoration-color: var(--underline);
  text-decoration-thickness: 1.5px; text-underline-offset: 1.5px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.bio .lnk:hover, .bio .hl:hover { color: var(--link); text-decoration-color: var(--link); }

/* Thrive.Club hover preview — mirrors the Copy-email chip's placement + interaction */
.lnk-thrive { position: relative; }
.lnk-tip {
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0; pointer-events: none; line-height: 0;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 10;
}
.lnk-tip img {
  display: block; width: 260px; height: auto;
  border-radius: 8px;
  box-shadow: 0 0 1px rgba(24, 24, 27, 0.18);
}
.lnk-thrive:hover .lnk-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* AI-led design hover chip — a masked ticker of AI-tool logos (20px tall) */
.hl-ai { position: relative; }
.ai-tip {
  position: absolute;
  left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px; border-radius: 999px;
  background: var(--fill-muted); box-shadow: 0 0 1px rgba(24, 24, 27, 0.18);
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 10;
}
.hl-ai:hover .ai-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.ai-ticker {
  display: block; width: 176px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.ai-track {
  display: flex; align-items: center; width: max-content;
  animation: ai-scroll 16s linear infinite;
}
.ai-track img { height: 24px; width: auto; display: block; flex: none; margin-right: 12px; }
@keyframes ai-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ai-track { animation: none; } }

/* "gym" hover — a strip of overlapping gym photos (left photo on top) */
.hl-gym { position: relative; }
.gym-tip {
  position: absolute;
  left: 50%; bottom: 100%;
  transform: translateX(-50%) translateY(4px);
  width: 240px; height: 80px;
  padding-bottom: 6px; /* transparent bridge so the cursor can reach the photos */
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 10;
}
.hl-gym:hover .gym-tip { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* Thumbnails: overlapping strip by default; fan into a semi-circle while previewing */
.gym-thumb {
  position: absolute; left: 50%; bottom: 6px; margin-left: -24px;
  width: 48px; height: 48px; object-fit: cover;
  transform-origin: center bottom;
  transform: translateX(var(--strip-tx));
  transition: transform .26s cubic-bezier(.34, 1.3, .6, 1);
}
.gym-thumb:nth-child(1) { --strip-tx: -56px; --fan-tx: -104px; --fan-ty: 0px;   --fan-rot: -18deg; z-index: 1; }
.gym-thumb:nth-child(2) { --strip-tx: -28px; --fan-tx: -52px;  --fan-ty: -14px; --fan-rot: -9deg;  z-index: 2; }
.gym-thumb:nth-child(3) { --strip-tx: 0px;   --fan-tx: 0px;    --fan-ty: -20px; --fan-rot: 0deg;   z-index: 3; }
.gym-thumb:nth-child(4) { --strip-tx: 28px;  --fan-tx: 52px;   --fan-ty: -14px; --fan-rot: 9deg;   z-index: 4; }
.gym-thumb:nth-child(5) { --strip-tx: 56px;  --fan-tx: 104px;  --fan-ty: 0px;   --fan-rot: 18deg;  z-index: 5; }
/* fan out only while hovering a photo */
.gym-tip.gym-previewing .gym-thumb {
  transform: translateX(var(--fan-tx)) translateY(var(--fan-ty)) rotate(var(--fan-rot));
}

/* Enlarged preview of the hovered photo — appears centered above the fan */
.gym-preview {
  position: absolute; left: 50%; bottom: 74px;
  transform: translateX(-50%) translateY(8px) scale(.92);
  width: 120px; height: 120px; object-fit: cover;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.26);
  opacity: 0; pointer-events: none; z-index: 30;
  transition: opacity .16s ease, transform .2s cubic-bezier(.34, 1.5, .6, 1);
}
.gym-tip.gym-previewing .gym-preview {
  opacity: 1; transform: translateX(-50%) translateY(0) scale(1);
}

/* Mobile: no hover previews; only Thrive.Club stays styled — gym/series/AI-led
   design blend into the paragraph (no hover on touch). */
@media (max-width: 820px) {
  .lnk-tip, .ai-tip, .gym-tip { display: none; }
  .bio .hl, .bio .hl:hover {
    color: inherit; font-weight: inherit; text-decoration: none;
  }
}
.dash { border: none; height: 1px; background-image: var(--dash-h); margin: 20px 0; }
/* Full-width section separator — diagonal var(--divider) band, edge-to-edge of the main panel */
.section-sep {
  height: 16px;
  margin: 40px -32px;
  background-image: repeating-linear-gradient(-45deg, var(--section-sep) 0, var(--section-sep) 1.5px, transparent 1.5px, transparent 9px);
}
.section-sep--flush { margin-bottom: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }

.placeholder-note { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-top: 20px; max-width: 46ch; }

/* ---------- "Where it began" (college) section ---------- */
.college { display: flex; gap: 32px; align-items: center; }
.college-img { width: 320px; height: 364px; flex: none; }
.college-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.college-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.college-text { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.college-h { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--ink); }
.college-p p { font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.college-p p + p { margin-top: 24px; }
.btn.know-more { height: 40px; gap: 0; padding: 0 16px; }

/* ---------- Experience (home) ---------- */
.exp-head { display: flex; align-items: center; gap: 12px; }
.exp-label {
  font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0;
  text-transform: uppercase; color: #89898B;
}
.exp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  background: #27AC45; color: #fff;
  font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; text-transform: uppercase;
  box-shadow:
    inset 0 1.13px 1.13px 0 rgba(255, 255, 255, 0.20),
    inset 0 6.77px 13.54px 0 rgba(255, 255, 255, 0.12),
    0 1.13px 2.26px 0 rgba(8, 8, 8, 0.20),
    0 4.51px 4.51px 0 rgba(8, 8, 8, 0.08);
}
.exp-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; flex: none;
  animation: exp-blink 1.4s ease-in-out infinite;
}
@keyframes exp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .exp-dot { animation: none; } }
.exp-list { margin-top: 20px; display: flex; flex-direction: column; }
.exp-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center; gap: 88px;
  padding: 12px 0;
}
.exp-co { display: inline-flex; align-items: center; gap: 12px; width: 120px; }
.exp-meta { display: contents; } /* transparent on desktop (role + date stay grid items) */
.exp-mob { display: none; }      /* mobile-only role text */
.exp-ico {
  width: 24px; height: 24px; flex: none;
}
.exp-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exp-name { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.exp-ico--ph { border: 1.5px dashed var(--stroke); border-radius: 6px; }
.exp-name--hand { font-family: "Caveat", cursive; font-size: 22px; line-height: 24px; font-weight: 600; }
.exp-role { font-size: 16px; font-weight: 400; color: var(--ink-body); }
.exp-role--hand { font-family: "Caveat", cursive; font-size: 22px; font-weight: 500; color: var(--ink-body); }
.exp-date { font-size: 14px; font-weight: 400; color: var(--slate-2); text-align: right; white-space: nowrap; }

/* ---------- About page ---------- */
.about-v { max-width: none; }               /* let the strip go full-bleed */
.about-head, .about-copy { max-width: 556px; } /* keep text in a readable column */
.about-head { display: flex; flex-direction: column; gap: 8px; }
.about-title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.about-sub { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--slate); }
/* Photo strip: edge-to-edge in the main panel (breaks the view-inner 32px padding) */
.about-strip { margin: 28px -32px 0; padding: 4px 0; overflow: hidden; }
.about-track {
  display: flex; align-items: center; gap: 32px; width: max-content;
  animation: about-scroll 80s linear infinite;
}
.about-strip:hover .about-track { animation-play-state: paused; }
@keyframes about-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .about-track { animation: none; } }
.about-item { position: relative; flex: none; display: block; }
.about-track img { height: 240px; width: auto; display: block; }
/* 6x6 corner marks at each corner (matches testimonial / playground cards) */
.about-item::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background-image:
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke));
  background-size: 6px 6px;
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat;
}
.about-copy { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; }
.about-line { font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.about-em { font-family: "Inclusive Sans", system-ui, sans-serif; font-style: italic; font-weight: 500; }
.about-note { font-family: "Inclusive Sans", system-ui, sans-serif; font-style: italic; font-weight: 500; font-size: 15px; line-height: 24px; color: var(--ink-body); }
.about-story { display: flex; flex-direction: column; gap: 16px; }
.about-role { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.about-role-em { font-family: "Inclusive Sans", system-ui, sans-serif; font-style: italic; font-weight: 500; color: var(--slate); }
.about-body { font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.about-em--ink { color: var(--ink); }
.about-dash { margin: 28px 0; }
/* fandoms grid: stacked images left, title + body right */
.about-grid { display: grid; grid-template-columns: 239px 1fr; gap: 40px; align-items: start; }
.about-grid-media { display: flex; flex-direction: column; gap: 20px; }
.about-grid-media img { width: 239px; height: 132px; object-fit: cover; display: block; }
.about-grid-copy { display: flex; flex-direction: column; gap: 16px; }
.about-grid-title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.about-serif { font-family: "Inclusive Sans", system-ui, sans-serif; font-style: italic; font-weight: 500; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  /* images kept their fixed 239px desktop width in the single mobile column — fill it */
  .about-grid-media img { width: 100%; height: auto; }
}
.about-skills { margin-top: 0; }
/* GitHub contributions — last 90 days */
.gh-activity { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.gh-chart { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: 13px; gap: 4px; width: max-content; }
.gh-cell { width: 13px; height: 13px; border-radius: 3px; background: var(--gh-empty); }
.gh-cell.gh-empty { visibility: hidden; }
.gh-cell[data-level="1"] { background: #9BE9A8; }
.gh-cell[data-level="2"] { background: #40C463; }
.gh-cell[data-level="3"] { background: #30A14E; }
.gh-cell[data-level="4"] { background: #216E39; }
.gh-caption { font-size: 13px; color: var(--slate-2); }
.gh-tip { position: absolute; left: 0; top: 0; padding: 5px 11px; border-radius: 999px; background: var(--fill-muted); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 16px rgba(24, 24, 27, 0.10); font-family: "Manrope", system-ui, sans-serif; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--slate); white-space: nowrap; opacity: 0; pointer-events: none; z-index: 20; transition: opacity .18s ease; }
.gh-tip.is-on { opacity: 1; }
.gh-tip .ch { display: inline-block; white-space: pre; will-change: opacity, filter, transform; transition: opacity .26s ease, filter .26s ease, transform .26s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i) * 9ms); }

/* ---------- Resume ---------- */
.rx-v { max-width: none; }
.rx-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rx-name { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.rx-get { flex: none; }
/* Header "Get resume" — fixed compact size */
.rx-head .rx-get { box-sizing: border-box; height: 32px; padding: 0 8px 0 12px; gap: 6px; white-space: nowrap; font-size: 14px; line-height: 16px; font-weight: 400; }
.rx-head .rx-get .dl-ic { width: 16px; height: 16px; }
.rx-intro { margin-top: 16px; font-size: 15px; line-height: 24px; color: var(--ink-body); }
.rx-skills.chips { margin-top: 24px; gap: 12px; }
.rx-skills .chip { font-size: 14px; line-height: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); background: var(--fill-subtle); padding: 6px 10px; box-shadow: inset 0 0 0 0.5px var(--stroke); }

/* Experience timeline */
.rx-timeline { display: flex; flex-direction: column; }
.rx-item { position: relative; padding-left: 40px; padding-bottom: 28px; }
.rx-item--last { padding-bottom: 0; }
/* connector line running down the icon gutter */
.rx-item::before { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 6px; width: 1px; background: var(--divider); }
.rx-item--last::before { display: none; }

.rx-ico { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; flex: none; }
.rx-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rx-ico--mono { background: var(--mono, #71717A); color: #fff; font-family: "Manrope", system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .02em; }

.rx-co { display: flex; align-items: center; gap: 7px; min-height: 28px; }
.rx-coname { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--slate); }
.rx-type { font-size: 14px; line-height: 16px; font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; color: var(--slate); }
.rx-dot { color: var(--stroke); }
.rx-role { margin-top: 10px; font-size: 18px; line-height: 26px; font-weight: 400; color: var(--ink-body); }
.rx-meta { margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--slate-2); }
.rx-meta .rx-dot { margin: 0 5px; font-weight: 700; color: var(--slate-2); }
.rx-points { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; list-style: none; }
.rx-points li { position: relative; padding-left: 22px; font-size: 15px; line-height: 24px; color: var(--ink-body); }
.rx-points li::before { content: "✦"; position: absolute; left: 2px; top: 0; font-size: 11px; line-height: 24px; color: #A1A1AA; }
.rx-points strong { font-weight: 600; color: var(--ink); }

.rx-outro { font-size: 15px; line-height: 24px; color: var(--ink-body); }
.rx-cta { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Testimonials ticker ---------- */
.ticker {
  margin: 0;
  padding: 6px 0; /* room so the corner marks aren't clipped by overflow */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: flex; align-items: stretch; width: max-content;
  animation: ticker-scroll 55s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Vertical section-sep between cards */
.tsep {
  flex: none; width: 16px; margin: 0 4px; align-self: stretch;
  background-image: repeating-linear-gradient(-45deg, var(--section-sep) 0, var(--section-sep) 1.5px, transparent 1.5px, transparent 9px);
}

.tcard {
  position: relative;
  flex: none; box-sizing: border-box;
  width: 360px; min-height: 220px;
  padding: 16px; background: var(--fill-subtle); border: 0.5px solid var(--stroke);
  display: flex; flex-direction: column; gap: 16px;
}
/* 4x4 corner marks, centered on each corner tip (mirrored to the right via box-shadow) */
.tcard::before,
.tcard::after {
  content: ""; position: absolute; left: -3.5px;
  width: 6px; height: 6px; background: var(--stroke);
  box-shadow: 360px 0 0 var(--stroke); /* right corner, = card width apart */
}
.tcard::before { top: -3.5px; }
.tcard::after { bottom: -3.5px; }
.tcard-mark { width: 30px; height: 30px; flex: none; display: block; }
.tcard-mark path { fill: #D6D8DD; }
.tcard-quote { flex: 1; margin: 0; font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.tcard-person { display: flex; align-items: center; gap: 12px; }
.tcard-avatar {
  position: relative;
  width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: #B59EFD; color: #fff; font-size: 13px; font-weight: 600;
}
/* With a photo loaded, drop the purple chip + initials so they don't peek through
   the photo's transparent edges; both return if the image is removed on error. */
.tcard-avatar.has-img { background: transparent; color: transparent; }
.tcard-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tcard-name { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.tcard-role { font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* ---------- Playground: selected-work showcase (shadcn-style horizontal tabs) ---------- */
.pg-v { max-width: none; padding-top: 32px; }
.showcase { margin-top: 0; }
.tabs-list {
  position: relative;
  display: flex; flex-wrap: nowrap; gap: 8px;
  max-width: 100%;
  /* single strip — scroll sideways instead of wrapping to a second row */
  overflow-x: auto;
  overflow-y: hidden;                 /* unambiguous horizontal-only scroller */
  touch-action: pan-x;                /* claim the horizontal swipe so the page's vertical scroll can't steal it on mobile */
  overscroll-behavior-x: contain;     /* don't chain the swipe to the page once the strip hits its end */
  scrollbar-width: none;              /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.tabs-list::-webkit-scrollbar { display: none; } /* WebKit */
.tab-highlight {
  position: absolute; top: 0; left: 0;
  background: var(--fill-muted); border-radius: 8px;
  z-index: 0; pointer-events: none; opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .22s ease, height .22s ease, opacity .15s ease;
}
.tab-trigger {
  position: relative; z-index: 1; flex: none;
  padding: 6px 10px; border: none; background: none; cursor: pointer;
  border-radius: 8px;
  font-size: 16px; line-height: 20px; font-weight: 400; color: var(--ink-3);
  white-space: nowrap;
  transition: color .15s ease;
}
.tab-trigger:hover { color: var(--ink-2); }
.tab-trigger.is-active { color: var(--ink); font-weight: 500; }

.pg-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 380px);
  grid-auto-flow: dense;
  gap: 16px; /* the diagonal-hatch shows through the gaps as dividers */
  background-image: repeating-linear-gradient(-45deg, var(--divider) 0, var(--divider) 1.5px, transparent 1.5px, transparent 9px);
}
.pg-card {
  position: relative;
  width: 380px; height: 360px;
  background: var(--fill-subtle);
  border: 0.5px solid var(--stroke);
}
/* Web projects span the full width */
.pg-card[data-cat="Web"] { grid-column: 1 / -1; width: 776px; }

/* Image cards (3D explorations, mobile shots) — 380x328 matches the 1520x1312 art so it fits edge-to-edge */
.pg-shot { height: 328px; }
.pg-shot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Full-width image card (e.g. the wide components dashboard, 3104x1456 -> 776x364) */
.pg-card.pg-wide { grid-column: 1 / -1; width: 776px; height: 364px; }

/* Work Projects — full-width cards stacked with section-sep dividers (no grid, no hatch gap) */
.pg-grid--full { margin-top: 0; }
.pg-grid--full .pg-card { width: 776px; height: 328px; display: flex; align-items: stretch; }
.view[data-panel="projects"] .view-inner { padding-top: 32px; }

/* Work Projects — card content */
.wp-body {
  flex: 1 1 0; min-width: 0;
  padding: 20px 0 20px 20px;
  display: flex; flex-direction: column;
}
.wp-body .exp-co { width: auto; }
.wp-title { margin-top: 12px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.wp-desc { margin-top: 6px; font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.wp-dash { height: 1px; margin: 16px 0; background-image: repeating-linear-gradient(to right, rgba(193, 193, 193, 0.5) 0 6px, transparent 6px 12px); }
.wp-stat { display: flex; align-items: center; gap: 12px; }
.wp-stat-num { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.wp-badge {
  display: inline-flex; align-items: center;
  padding: 3px 6px; border-radius: 999px;
  background: var(--badge-amber-bg); color: var(--badge-amber-fg);
  font-size: 13px; line-height: 16px; font-weight: 500;
}
.wp-badge--purple { background: var(--badge-purple-bg); color: var(--badge-purple-fg); }
.wp-stat-desc { margin-top: 6px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-body); }
.wp-stats-row { display: flex; gap: 16px; }
.wp-stat-col { width: 156px; }
.wp-cta {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px 10px 16px; border-radius: 32px;
  background: var(--cta-bg); color: #fff;
  font-size: 16px; line-height: 18px; font-weight: 400;
  border: 1px solid var(--cta-border);
  box-shadow: inset 0 3px 3px rgba(255, 255, 255, 0.1);
  transition: background .15s ease;
}
.wp-cta:hover { background: #000; }
.wp-cta svg { width: 20px; height: 20px; }
.wp-media { flex: none; padding: 8px 8px 8px 24px; }
.wp-img { width: 368px; height: 312px; border-radius: 10px; overflow: hidden; background: #1b1a17; }
.wp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-card[hidden] { display: none; }
/* 6x6 corner marks centered on each corner (width-independent) */
.pg-card::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background-image:
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke));
  background-size: 6px 6px;
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat;
}

/* ---------- Playground: category grid + lightbox carousel ---------- */
.pg-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;   /* even 24px both axes */
}
/* Mobile: single column so cards are full-width (titles + Expand fit on one line) */
@media (max-width: 820px) { .pg-cats { grid-template-columns: 1fr; } }
/* Card: white "main", a 2px-inset #f1f1f1 image panel on top, title + Expand below */
.pgc {
  display: flex; flex-direction: column;
  background: var(--surface);              /* white / dark #1a1a1a */
  border: 0.5px solid var(--stroke);
  border-radius: 14px;
  padding: 2px 2px 0;                      /* 2px gap on top/left/right around the image panel */
  overflow: hidden;
}
.pgc--wide { grid-column: 1 / -1; }

/* Image panel — the #f1f1f1 div holding the grid; the whole panel opens the carousel */
.pgc-frame {
  display: block; width: 100%; padding: 6px;   /* 6px around the images */
  border: 0;                                    /* kill the default <button> border */
  border-radius: 12px;
  background: var(--panel);                    /* same as main/sidebar bg (#fafafb / #1a1a1a) */
  cursor: pointer;
  transition: background .18s ease;
}
.pgc-frame:hover { background: var(--fill-muted); }
.pgc-grid { display: grid; gap: 8px; height: 100%; }   /* 8px between images */
.pgc-frame--grid4 .pgc-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 41 / 32; }
.pgc-frame--stack2 .pgc-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 41 / 32; }
.pgc-frame--row2 .pgc-grid { grid-template-columns: 1fr 1fr; }
.pgc-frame--row2 .pgc-thumb { aspect-ratio: 1000 / 469; } /* match the web image so it fills the tile (no top/bottom letterbox) */
/* #f1f1f1 tile + neutral hairline border so white UI screenshots don't vanish */
.pgc-thumb { border-radius: 8px; overflow: hidden; background: var(--fill-subtle); border: 0.5px solid rgba(0, 0, 0, 0.06); }
:root[data-theme="dark"] .pgc-thumb { border-color: rgba(255, 255, 255, 0.06); }
.pgc-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

/* Footer: title (left) + Expand (right), on the white main */
.pgc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 14px; }
.pgc-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.pgc-expand {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none;
  padding: 4px 4px 4px 6px;                 /* 6px left, 4px on the other sides */
  border-radius: 6px;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  background: #F0F0F0;                       /* light chip */
  box-shadow:
    0 1.97px 1.97px 0 rgba(52, 55, 72, 0.2),          /* drop shadow */
    inset 1.97px 3.94px 2.95px 0 rgba(255, 255, 255, 0.08), /* inner highlight */
    0 0 0 0.98px rgba(134, 140, 152, 0.2);            /* spread ring */
  color: #1a1a1a;                           /* dark text + icon */
  font-size: 12px; line-height: 15px; font-weight: 500;
  cursor: pointer;
}
/* Dark-mode chip: dark fill, light text, shadows retuned for a dark surface */
:root[data-theme="dark"] .pgc-expand {
  background: #2e2e2e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f4;
  box-shadow:
    0 1.97px 1.97px 0 rgba(0, 0, 0, 0.4),
    inset 1.97px 3.94px 2.95px 0 rgba(255, 255, 255, 0.06),
    0 0 0 0.98px rgba(255, 255, 255, 0.06);
}
.pgc-expand svg { width: 16px; height: 16px; }

/* Lightbox / carousel overlay (theme-independent — always a dark stage for viewing art) */
.lb {
  position: fixed; inset: 0; z-index: 100002;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 12, 0.86);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  touch-action: none;
}
.lb.is-open { display: flex; }
html.lb-locked, html.lb-locked body { overflow: hidden; }
.lb-stage { position: relative; display: inline-block; }
/* Fixed frame — stays put while only the image inside swaps; #F1F1F1 fills transparent padding */
.lb-frame { position: relative; display: block; background: #F1F1F1; font-size: 0; }
/* 6x6 corner marks — same treatment as the old playground cards */
.lb-frame::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background-image:
    linear-gradient(#C1C1C1, #C1C1C1), linear-gradient(#C1C1C1, #C1C1C1),
    linear-gradient(#C1C1C1, #C1C1C1), linear-gradient(#C1C1C1, #C1C1C1);
  background-size: 6px 6px;
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat;
}
.lb-img { display: block; max-width: min(1080px, 92vw); max-height: 82vh; object-fit: contain; transition: opacity .16s ease; }
.lb-img.is-swapping { opacity: 0; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; }
.lb-close { position: fixed; top: 32px; right: 32px; } /* pinned to the viewport corner */
.lb-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -64px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: -42px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 20px; letter-spacing: .02em;
}
@media (max-width: 900px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 16px; right: 16px; }
}

/* ---------- Thank you + quote ---------- */
.thanks { margin-top: 64px; }
.thanks-head {
  display: flex; align-items: center; gap: 16px;
  margin: 0 -32px; /* full-bleed dashes to the panel edges */
}
.thanks-head::before,
.thanks-head::after {
  content: ""; flex: 1 1 0; height: 1px;
  background: #D6D8DD;
}
.thanks-head span {
  flex: none;
  font-size: 15px; line-height: 24px; font-weight: 500;
  font-family: "Manrope", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Bengali", "Noto Sans Malayalam", "Noto Sans Gujarati", ui-sans-serif, sans-serif;
  color: rgba(125, 134, 149, 0.8); /* #7D8695 at 80% */
  text-transform: uppercase; letter-spacing: 0.03em;
}
.quote {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  margin: 32px 0;
}
.quote-mark { display: block; width: 88px; height: 88px; }
.quote-mark path { fill: #D6D8DD; }
.quote-text {
  margin-top: 40px; max-width: 640px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 72, "SOFT" 100, "wght" 500; /* Fraunces 72pt SuperSoft */
  font-size: 32px; line-height: 1.4; font-weight: 500; color: var(--slate);
}

.placeholder-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards / projects ---------- */
.cards { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}
.project { display: block; transition: transform .12s ease, box-shadow .15s ease; }
.project:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(16,24,40,.08), 0 10px 24px rgba(16,24,40,.08); }
.p-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.p-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.p-co { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.p-desc { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.about-skills .chips { gap: 12px; }
.chip {
  font-size: 12px; color: var(--ink-2);
  padding: 4px 11px; border-radius: 999px;
  background: var(--fill-subtle); box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---------- Resume ---------- */
.resume-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.xp-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; }
.xp-row:first-child { padding-top: 4px; }
.xp-row + .xp-row { border-top: 1px solid var(--line); }
.xp-logo {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--ink);
  background: var(--fill-muted); box-shadow: inset 0 0 0 1px var(--line);
}
.xp-main { flex: 1; min-width: 0; }
.xp-title { font-weight: 600; font-size: 15px; }
.xp-co { color: var(--ink-2); font-size: 13.5px; }
.xp-desc { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.xp-date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.skills { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.skill-group { display: flex; flex-direction: column; gap: 10px; }
.sg-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }

/* ---------- Responsive ---------- */
/* Tablet: the fixed 776px playground grid overflows the narrower main (220px sidebar),
   so let the two columns flex and hold each card's proportions via aspect-ratio.
   Placed after the .pg-* definitions so it wins the equal-specificity source-order tie. */
@media (min-width: 821px) and (max-width: 1120px) {
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-card { width: auto; height: auto; }
  .pg-card:not(.pg-shot):not(.pg-wide) { aspect-ratio: 380 / 360; }
  .pg-shot { height: auto; aspect-ratio: 380 / 328; }
  .pg-card[data-cat="Web"] { width: 100%; }
  .pg-card.pg-wide { width: 100%; height: auto; aspect-ratio: 776 / 364; }
}

@media (max-width: 820px) {
  body { overflow: visible; } /* page scrolls on mobile */
  .app {
    height: auto; min-height: 100svh;  /* svh (not dvh) so it doesn't resize as the address bar hides on scroll */
    grid-template-columns: minmax(0, 1fr);
    padding: 12px; gap: 12px;
    transform: none; box-shadow: none;
    overflow-x: clip;
  }
  .app::after { display: none; }
  .site-footer { display: none; } /* reveal interaction is desktop-only */
  /* company on the left; "role (time)" right-aligned on the right */
  .exp-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "co meta";
    align-items: center;
    column-gap: 16px;
    padding: 12px 0;
  }
  .exp-co { grid-area: co; width: auto; }
  .exp-meta { grid-area: meta; display: block; text-align: right; }
  .exp-date { font-size: 12px; }
  .exp-date::before { content: " ("; }
  .exp-date::after { content: ")"; }
  .exp-dk { display: none; }
  .exp-mob { display: inline; }
  .sidebar { padding: 18px; border-left: none; }
  .sidebar::after { display: none; }
  .side-head { padding: 0; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .nav a { padding: 9px 15px; font-size: 15px; }
  .side-foot { display: none; }
  .main { padding: 32px 24px; overflow: visible; border-right: none; }
  /* clip any horizontal overflow (tickers, wide media) so it can't expand the layout viewport */
  .sidebar, .main { overflow-x: clip; }
  .display { font-size: 32px; }
  .display.sm { font-size: 26px; }
  /* Work-project cards stack vertically so nothing forces a wide layout.
     minmax(0,1fr) caps the track so the fixed-width wide card can't blow it out. */
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-card, .pg-card[data-cat="Web"] { width: 100%; height: auto; }
  .pg-card:not(.pg-shot):not(.pg-wide) { aspect-ratio: 380 / 360; }
  .pg-shot { height: auto; aspect-ratio: 380 / 328; }
  .pg-card.pg-wide { width: 100%; height: auto; aspect-ratio: 776 / 364; }
  /* image on top, content below (DOM order is body→media, so reverse the column);
     6px frame around the image, 16px gap, content padded 16px on 3 sides */
  .pg-grid--full .pg-card { width: 100%; height: auto; flex-direction: column-reverse; gap: 16px; padding: 6px 6px 0; }
  .wp-body { padding: 0 10px 16px; }
  .wp-media { padding: 0; width: 100%; }
  /* keep each image's intrinsic ratio — no forced aspect-ratio, no cover crop */
  .wp-img { width: 100%; height: auto; aspect-ratio: auto; }
  .wp-img img { height: auto; object-fit: contain; }
  /* stack the two stats so each description gets the full width and sits on one
     line — it only wraps once the screen gets narrow enough */
  .wp-stats-row { flex-direction: column; }
  .wp-stat-col { width: auto; }
  .wp-cta { position: static; margin-top: 16px; align-self: flex-start; }
  .wp-title { display: none; }
  .wp-desc { font-size: 18px; font-weight: 500; margin-top: 12px; }
  .wp-dash { margin: 12px 0; }
  .wp-stat-num { font-size: 18px; }
  .section-sep { margin-left: 0; margin-right: 0; }
}

/* ---------- Case-study pane (shareable via its own #projects/<slug> URL) ---------- */
.case-overlay {
  position: fixed; inset: 0; z-index: 9400;
  background: rgba(20, 20, 22, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .32s ease;
}
body.case-open .case-overlay { opacity: 1; pointer-events: auto; }
/* Freeze the page behind the sheet so touch-scroll moves the sheet, not the background.
   JS stores the scroll position in top: and restores it on close. */
body.case-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

/* Bottom sheet on desktop + mobile: full width, slides up, rounded top, internal scroll */
.case-pane {
  position: fixed; left: 0; right: 0; bottom: 0; top: 56px; z-index: 9500;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 48px rgba(16, 24, 40, 0.18);
  transform: translateY(101%);
  transition: transform .46s cubic-bezier(.22, 1, .36, 1);
  display: flex; flex-direction: column; overflow: hidden;
  will-change: transform;
}
body.case-open .case-pane { transform: translateY(0); }

.case-grip { display: none; }
.case-close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 8px;
  background: var(--fill-subtle); color: var(--ink-2);
  display: grid; place-items: center;
}
.case-close svg { width: 18px; height: 18px; }
/* centered 720px reading column; hero, stats and body each sit 96px apart */
.case-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 48px 24px 80px; display: flex; flex-direction: column; align-items: center; gap: 96px; }
.case-scroll > * { width: 100%; max-width: 720px; }
.case-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.case-head .case-company { display: inline-flex; align-items: center; gap: 12px; }
.case-dot { color: var(--ink-3); }
.case-tag { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-muted); }
.case-lead { font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-muted); }
.case-lead:empty, .case-tagline:empty { display: none; }
/* Tagline: 2px accent bar (Rectangle 6897) + 12px gap + Inter medium italic */
.case-tagline { display: flex; align-items: stretch; gap: 12px; font-family: "Inter", system-ui, sans-serif; font-size: 18px; line-height: 24px; font-weight: 500; font-style: italic; letter-spacing: -0.02em; color: var(--ink); }
.case-tagline::before { content: ""; flex: none; width: 2px; align-self: stretch; border-radius: 10px; background: var(--cs-bar); }
/* Proof / numbers block (below the tagline) */
.case-proof { display: flex; flex-direction: column; gap: 16px; }
.case-proof[hidden] { display: none; }
.case-proof-title { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-muted); }
.case-proof-stat { display: flex; align-items: center; gap: 14px; }
.case-proof-num { font-size: 28px; line-height: 32px; font-weight: 500; color: var(--amber); }
.case-proof-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 14px; background: var(--ok-bg); color: var(--ok-fg); font-size: 15px; line-height: 24px; font-weight: 400; letter-spacing: 0.02em; }
.case-proof-sub { font-family: "Inter", system-ui, sans-serif; font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink); }
/* Hero thumbnail: 32px below the block above (16px flex gap + 16px margin) */
.case-hero { display: block; width: 100%; height: auto; margin-top: 16px; border-radius: 12px; }
.case-hero[hidden] { display: none; }
.case-title { font-size: 40px; line-height: 48px; font-weight: 400; color: var(--ink); }
.case-body { display: flex; flex-direction: column; gap: 96px; }
.case-soon { font-size: 15px; line-height: 24px; color: var(--ink-3); }

/* ---------- Case-study long-form content (ported from heybhaskar.com) ---------- */
.cs-section { display: flex; flex-direction: column; gap: 16px; }
.cs-kicker { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-muted); }
.cs-heading { display: flex; flex-direction: column; }
.cs-h { font-size: 32px; line-height: 40px; font-weight: 400; color: var(--ink); }
.cs-h--strong { font-weight: 500; }
.cs-h--em { font-family: "Inter", system-ui, sans-serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--ink-body); }
.cs-h--28 { font-size: 28px; line-height: 40px; }
.cs-p { font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-muted); }
.cs-p--strong { font-weight: 500; color: var(--ink); }
.cs-p--ink { color: var(--ink); }
.cs-p--dim { color: var(--ink-body); }
.cs-mini { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-muted); }
.cs-em { font-family: "Inter", system-ui, sans-serif; font-style: italic; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-size: 14px; line-height: 20px; }
/* sub-card (journey / wary) */
.cs-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--fill-subtle); border: 1px solid var(--line); }
/* callout quote: 2px accent bar + italic text */
.cs-quote { display: flex; align-items: stretch; gap: 12px; }
.cs-quote::before { content: ""; flex: none; width: 2px; align-self: stretch; border-radius: 10px; background: var(--cs-bar); }
.cs-quote p { font-family: "Inter", system-ui, sans-serif; font-style: italic; font-size: 15px; line-height: 24px; color: var(--amber); }
.cs-quote strong { font-weight: 500; }
.cs-quote--sm p { font-size: 14px; line-height: 24px; }
.cs-quote--ink p { color: var(--ink-body); }
.cs-quote--ship p { color: var(--ink); font-weight: 500; }
.cs-quote--serif p { font-family: "Lora", Georgia, serif; font-size: 14px; line-height: 22px; letter-spacing: -0.02em; color: var(--ink-body); }
.cs-quote--serif strong { color: var(--ink); }
/* big validation stat */
.cs-bigstat { display: flex; align-items: stretch; gap: 16px; }
.cs-bigstat::before { content: ""; flex: none; width: 2px; align-self: stretch; border-radius: 10px; background: var(--cs-bar); }
.cs-bigstat-body { display: flex; flex-direction: column; gap: 8px; }
.cs-bigstat-num { font-family: "Inter", system-ui, sans-serif; font-style: italic; font-size: 40px; line-height: 52px; color: var(--amber); }
.cs-bigstat-txt { font-family: "Inter", system-ui, sans-serif; font-style: italic; font-weight: 300; font-size: 15px; line-height: 24px; color: var(--ink-body); }
.cs-foot { font-size: 15px; line-height: 24px; font-weight: 300; color: var(--ink-body); }
.cs-foot strong { font-weight: 500; }
/* figma button — matches the card "read case study" CTA (.wp-cta) */
.cs-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px 10px 16px; border-radius: 32px;
  background: var(--cta-bg); color: #fff;
  font-size: 16px; line-height: 18px; font-weight: 400;
  border: 1px solid var(--cta-border);
  box-shadow: inset 0 3px 3px rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background .15s ease;
}
.cs-btn:hover { background: #000; }
.cs-btn svg { width: 20px; height: 20px; flex: none; }
/* figures + image placeholders (swap .cs-ph for <img class="cs-img"> once screens are in) */
.cs-figure { display: flex; flex-direction: column; gap: 12px; }
.cs-figset { display: flex; flex-direction: column; gap: 48px; }
/* Rhythm: text block (eyebrow, header, sub-header, supporting text) stays 16px
   apart; any visual block sits 32px from it (16px section gap + 16px margin).
   The ah-ha image pair (.cs-figset) is the exception at 48px. */
.cs-section > .cs-figure,
.cs-section > .cs-card,
.cs-section > .cs-cols,
.cs-section > .cs-quote,
.cs-section > .cs-bigstat,
.cs-section > .cs-btn { margin-top: 16px; }
.cs-section > .cs-figset { margin-top: 32px; }
.cs-img { width: 100%; height: auto; display: block; border-radius: 12px; }
.cs-img--framed { border: 0.5px solid var(--stroke); box-shadow: 0 0 1px rgba(24, 24, 27, 0.18); }
.cs-ph {
  width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 12px;
  background: var(--fill-subtle); border: 1px dashed var(--stroke); border-radius: 12px;
  color: var(--ink-3); font-size: 12px; line-height: 16px; letter-spacing: .03em;
}
.cs-caption { display: flex; align-items: center; gap: 12px; }
.cs-caption::before { content: ""; flex: none; width: 2px; height: 16px; border-radius: 10px; background: var(--cs-bar); }
.cs-caption span { font-family: "Inter", system-ui, sans-serif; font-style: italic; font-weight: 300; font-size: 12px; line-height: 16px; color: var(--ink); }
/* ---- Novatr additions ---- */
.cs-p strong { font-weight: 700; color: var(--ink); }
.cs-h--fr { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: normal; color: var(--ink-body); }
.cs-noteline { font-family: "Inter", system-ui, sans-serif; font-style: italic; font-weight: 400; font-size: 15px; line-height: 24px; color: var(--ink-body); }
.cs-noteline strong { font-weight: 500; }
.cs-defn { font-size: 15px; line-height: 24px; font-weight: 300; color: var(--ink-body); }
.cs-defn strong { font-weight: 500; color: var(--ink-body); }
.cs-milestone-n { font-size: 28px; line-height: 32px; font-weight: 400; color: var(--ink); }
.cs-roles { display: flex; align-items: center; gap: 8px; }
.cs-roles span { font-size: 15px; line-height: 24px; font-weight: 500; color: var(--slate); }
.cs-roles svg { width: 16px; height: 16px; color: var(--slate); flex: none; }
.cs-mascots { display: flex; gap: 16px; align-items: flex-end; }
.cs-mascots img { flex: 1 1 0; min-width: 0; width: 100%; height: auto; display: block; }
.cs-cardcol { display: grid; grid-template-columns: repeat(auto-fill, 220px); gap: 20px; }
.cs-cardcol img { width: 220px; height: 86px; object-fit: cover; display: block; border-radius: 12px; }
/* ---- Internshala additions ---- */
.cs-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.cs-list li { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.cs-list li::marker { color: var(--ink-3); }
.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cs-cols--stack { grid-template-columns: 1fr; }
.cs-card .cs-p { font-size: 15px; line-height: 22px; }
.cs-card .cs-p strong { color: var(--amber); font-weight: 600; }
.cs-outro { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cs-outro .section-sep { width: 100%; margin: 0; }
@media (max-width: 820px) {
  /* Case-study mobile type scale (matches the Framer mobile overlay) */
  .case-scroll { gap: 64px; }
  .case-title { font-size: 28px; line-height: 34px; }
  .case-lead { font-size: 14px; line-height: 22px; }
  .case-tagline { font-size: 15px; line-height: 24px; }
  .case-proof-title { font-size: 12px; line-height: 16px; }
  .case-proof-num { font-size: 24px; line-height: 32px; }
  .case-proof-pill { font-size: 14px; line-height: 18px; }
  .case-proof-sub { font-size: 14px; line-height: 22px; }
  .cs-kicker { font-size: 12px; line-height: 16px; }
  .cs-h, .cs-h--28 { font-size: 24px; line-height: 32px; }
  .cs-p { font-size: 14px; line-height: 22px; }
  .cs-quote p, .cs-quote--sm p { font-size: 14px; line-height: 22px; }
  .cs-quote--serif p { font-size: 12px; line-height: 18px; }
  .cs-noteline, .cs-defn { font-size: 14px; line-height: 22px; }
  .cs-milestone-n { font-size: 24px; line-height: 32px; }
  .cs-roles span { font-size: 14px; line-height: 20px; }
  .cs-bigstat-num { font-size: 32px; line-height: 40px; }
  .cs-bigstat-txt { font-size: 12px; line-height: 18px; }
  .cs-cols { grid-template-columns: 1fr; }
  .cs-list li { font-size: 14px; line-height: 22px; }
}

/* Mobile: taller sheet, drag grip, tighter padding */
@media (max-width: 820px) {
  .case-pane { top: auto; height: 92dvh; border-radius: 20px 20px 0 0; }
  .case-grip {
    display: block; flex: none;
    width: 40px; height: 4px; margin: 10px auto 0;
    border-radius: 999px; background: #D8D8D8;
  }
  .case-scroll { padding: 28px 20px 60px; }
  .case-close { top: 12px; right: 12px; }
}

/* ---------- Mobile bottom nav (icons: HugeIcons) ---------- */
.bottom-nav { display: none; }
/* Dedicated mobile header (fixed, not sticky) — hidden on desktop */
.m-header { display: none; }
@media (max-width: 820px) {
  html, body { height: auto; overflow: visible; }  /* let the whole page scroll (html was clipping) */
  .nav { display: none; }                 /* replaced by the floating bottom nav */
  .main-top { display: none; }            /* status line dropped; theme toggle moves to the sidebar */
  .main-bottom { display: none; }         /* the 6-layer progressive blur re-rasterizes every scroll frame — kills smoothness on mobile */

  /* App is edge-to-edge (no frame bg); block layout */
  .app { padding: 0; gap: 0; display: block; }
  /* The old sidebar doubled as the mobile header; a dedicated fixed .m-header
     replaces it (fixed never repaints per scroll frame like sticky did). */
  .sidebar { display: none; }
  .m-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: 68px; padding: 0 20px;
    background-color: var(--panel);
  }
  .m-header::after {           /* full-bleed dashed bottom edge */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background-image: var(--dash-h);
  }
  .main { padding: 92px 20px 48px; }      /* clear the 68px fixed header + 24px gap; bottom clears the fixed nav */
  .view-inner { padding: 0; }
  /* drop the projects view's 32px top padding on mobile (it's set unscoped above) */
  .view[data-panel="projects"] .view-inner { padding-top: 0; }

  /* college block: image on top, then text + CTA */
  .college { flex-direction: column; align-items: stretch; gap: 20px; }
  .college-img { width: 100%; height: auto; }
  .college-img img { height: auto; }

  /* home header: 48px avatar on the left; name over designation on the right */
  .hero-head { display: flex; align-items: center; gap: 16px; }
  .avatar { width: 48px; height: 48px; margin-bottom: 0; flex: none; }
  .name-row { display: flex; flex-direction: column; justify-content: center; height: 48px; min-width: 0; }
  .name { font-size: 18px; line-height: 24px; }
  .subline { margin-top: 2px; font-size: 14px; }
  .sub-tail { display: none; }
  .dash { margin: 16px 0; }

  /* "Next?" + "Your next designer" (Caveat) at 20px */
  .exp-name--hand, .exp-role--hand { font-size: 20px; }

  /* testimonial cards: 320px wide, 14px quote, 16px gap between cards */
  .tcard { width: 320px; }                 /* padding + inner gap already 16px */
  .tcard::before, .tcard::after { box-shadow: 320px 0 0 var(--stroke); }  /* mirror mark to new width */
  .tcard-quote { font-size: 14px; line-height: 22px; }
  .tsep { width: 16px; margin: 0; }        /* 16px gap between cards */

  /* Footer sits in normal flow at the very end of the page (it's after .app in the
     DOM). No fixed positioning and no reveal margin — the page ends at the footer,
     and there's no fixed element to repaint/flicker during momentum scroll. */
  .site-footer { position: static; height: auto; width: 100%; display: flex; pointer-events: auto; }
  .app { margin-bottom: 0; background: var(--panel); }
  .footer-inner { width: 100%; height: auto; padding: 28px 20px 0; background-image: var(--noise); overflow: hidden; } /* statue is an <img> after the credits */
  .footer-inner .quote { align-items: flex-start; text-align: left; margin: 16px 0 20px; }
  .footer-inner .quote-mark { width: 32px; height: 32px; }
  .footer-inner .quote-text { font-size: 22px; line-height: 30px; text-align: left; }
  .footer-inner .quote-text br { display: none; }  /* let the quote wrap naturally to the device width */
  .footer-bottom { margin-top: 24px; flex-direction: column; align-items: flex-start; gap: 10px; }
  /* edge-to-edge up to 640px, then centred at 640px; sits right after the credits */
  .footer-statue { display: block; width: 100vw; max-width: 640px; height: auto; margin-top: 24px; margin-left: 50%; transform: translateX(-50%); }
  /* full-bleed helpers now bleed to the content edge, not past the frame */
  .section-sep { margin-left: 0; margin-right: 0; }
  .about-strip { margin-left: 0; margin-right: 0; }
  .thanks-head { margin-left: 0; margin-right: 0; }

  .side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .m-actions { display: flex; align-items: center; gap: 12px; }
  .m-socials { display: flex; align-items: center; gap: 6px; }
  .m-socials a { display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; color: var(--ink-2); transition: color .15s ease; }
  .m-socials a:hover { color: var(--ink); }
  /* the glyph fills ~40% of its 40-unit viewBox; scale so it reads ~18px inside the 28px box */
  .m-socials svg { width: 28px; height: 28px; transform: scale(1.62); stroke-width: 1; }
  .m-sep { flex: none; width: 1px; height: 20px; background: var(--dash-v); }

  .bottom-nav {
    display: flex; align-items: center; gap: 24px;
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 60; padding: 12px; border-radius: 12px;
    background: var(--surface); border: 0.5px solid var(--line-2);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 10px 28px rgba(16, 24, 40, 0.14);
  }
  .bnav-item {
    display: inline-flex; align-items: center; flex: none;
    text-decoration: none; color: var(--ink-3); border-radius: 8px;
  }
  .bnav-ico { width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
  .bnav-ico svg { width: 20px; height: 20px; stroke-width: 1px; overflow: visible; }
  .bnav-label { display: none; }

  .bnav-item.active {
    background: var(--fill-muted); color: var(--ink);
    padding: 6px 12px 6px 8px; gap: 6px;
  }
  .bnav-item.active .bnav-ico svg { stroke-width: 1.5px; }
  /* playground uses a 20-unit viewBox; scale its stroke to match the 24-unit icons */
  .bnav-item .bnav-ico .play-ic { stroke-width: 0.83px; }
  .bnav-item.active .bnav-ico .play-ic { stroke-width: 1.25px; }
  .bnav-item.active .bnav-label {
    display: inline; font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: -0.01em;
  }
}
