/* isree.dev v2 — one stylesheet, tokens first.
   Source of truth: Figma "isree.dev family — v2" (Color · Light / Color · Dark, Space, Radius,
   text and effect styles). Light and dark differ only in colour values (SPEC §2c). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens: Color · Light ───────────────────────────────────────────── */
:root, .theme-light {
  color-scheme: light;
  --canvas: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --text: #171717;
  --text-2: #5c5c5c;
  --text-3: #6d6d6d;
  --on-accent: #ffffff;               /* text/on-accent: white in both modes (logo tiles) */
  --hairline: rgb(23 23 23 / 0.08);
  --border-card: rgb(23 23 23 / 0.08);
  --accent-fill: #171717;             /* isree/accent-fill */
  --accent-fill-pressed: #2e2e2e;
  --on-accent-fill: #ffffff;
  --accent-text: #171717;
  --thelivi-fill: #2357d9;
  --thelivi-text: #2357d9;
  --vihari-fill: #c2410c;
  --suddhi-fill: #0f766e;
  --gamani-fill: #c8283a;
  --success: #157d3c;
  --success-wash: #e6f4ea;
  --danger: #b91c1c;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 12px rgb(0 0 0 / 0.05);
  --shadow-float: 0 4px 16px rgb(0 0 0 / 0.10);
}

/* ── Tokens: Color · Dark (follows the system setting) ───────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #000000;
    --surface: #141414;
    --surface-2: #1f1f1f;
    --text: #f5f5f5;
    --text-2: #a3a3a3;
    --text-3: #8a8a8a;
    --hairline: rgb(255 255 255 / 0.08);
    --border-card: rgb(255 255 255 / 0.10);
    --accent-fill: #f5f5f5;
    --accent-fill-pressed: #d4d4d4;
    --on-accent-fill: #171717;
    --accent-text: #f5f5f5;
    --thelivi-text: #7aa2ff;
    --success: #4ade80;
    --success-wash: #12301e;
    --danger: #f87171;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.30);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.30), 0 4px 12px rgb(0 0 0 / 0.30);
    --shadow-float: 0 4px 16px rgb(0 0 0 / 0.50);
  }
}

/* ── Layout tiers: XL ≥1280 (1440 frame), LG 900–1279 (1024), MD 640–899 (720), SM <640 (390/344) ── */
:root {
  --gutter: 40px;          /* minimum side margin; XL centres a 1200 column */
  --section-gap: 96px;
  --block-gap: 32px;       /* section header → content */
  --grid-gap: 24px;
  --card-pad: 24px;
}
@media (max-width: 1279.98px) { :root { --gutter: 48px; --section-gap: 80px; } }
@media (max-width: 899.98px)  { :root { --gutter: 40px; --section-gap: 64px; } }
@media (max-width: 639.98px)  { :root { --gutter: 20px; --section-gap: 48px; --block-gap: 24px; --grid-gap: 16px; --card-pad: 16px; } }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }

#root { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

.wrap { padding-inline: max(var(--gutter), calc((100% - 1200px) / 2)); }
.page { padding-block: var(--section-gap); display: flex; flex-direction: column; gap: var(--section-gap); }

/* ── Text styles ─────────────────────────────────────────────────────── */
.t-display-web { font-size: 56px; line-height: 60px; font-weight: 800; letter-spacing: -0.02em; }
.t-display { font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; }
.t-headline { font-size: 17px; line-height: 22px; font-weight: 700; }
.t-body { font-size: 15px; line-height: 22px; font-weight: 400; }
.t-body-web { font-size: 17px; line-height: 26px; font-weight: 400; }
.t-label { font-size: 13px; line-height: 18px; font-weight: 700; }
.t-caption { font-size: 12px; line-height: 16px; font-weight: 500; }
.c-2 { color: var(--text-2); }
.c-3 { color: var(--text-3); }
/* Web paragraphs: Body/Web on wide formats, Body on mobile (§2d) */
.t-prose { font-size: 17px; line-height: 26px; color: var(--text-2); }
@media (max-width: 639.98px) {
  .t-prose { font-size: 15px; line-height: 22px; }
  .t-display-web { font-size: 32px; line-height: 36px; }
  .br-lg { display: none; }
}
@media (min-width: 900px) { .br-md { display: none; } }

/* Section label and heading (Section header/Web: Label in a 24 box, 12 above the heading) */
.eyebrow { font-size: 13px; line-height: 24px; font-weight: 700; color: var(--text-2); }
.section { display: flex; flex-direction: column; gap: var(--block-gap); }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; }
.section-text { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 639.98px) { .section-text { gap: 16px; } }
.measure { max-width: 588px; }
@media (max-width: 639.98px) { .measure { max-width: none; } }

/* ── Icons (Lucide, 1.75 stroke at every size) ───────────────────────── */
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon path, .icon circle { vector-effect: non-scaling-stroke; }

/* ── Product mark and lockup ─────────────────────────────────────────── */
.mark { flex: none; width: 32px; height: 32px; display: block; color: var(--on-accent); } /* white mark on product tiles */
.mark-tile { fill: var(--mark-fill); }
.mark-isree { color: var(--accent-text); } /* untiled "si" mark, currentColor */
.mark-thelivi { --mark-fill: var(--thelivi-fill); }
.mark-vihari { --mark-fill: var(--vihari-fill); }
.mark-suddhi { --mark-fill: var(--suddhi-fill); }
.mark-gamani { --mark-fill: var(--gamani-fill); }
.lockup { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); border-radius: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 17px; line-height: 22px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; line-height: 22px; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent-fill); }
.btn-primary:hover, .btn-primary:active { background: var(--accent-fill-pressed); }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-card), var(--shadow-sm); }
.btn-secondary:hover, .btn-secondary:active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-card); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--text-3); cursor: default; }
.btn-secondary:disabled { box-shadow: inset 0 0 0 1px var(--border-card); }
.btn[data-loading="true"] { background: var(--accent-fill); color: var(--on-accent-fill); cursor: progress; }
.btn .spinner { display: none; }
.btn[data-loading="true"] .spinner { display: block; animation: spin 900ms linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn[data-loading="true"] .spinner { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── Text link (label + 16 icon, accent-text) ────────────────────────── */
.text-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 24px;
  font-size: 17px; line-height: 22px; font-weight: 700; color: var(--link, var(--accent-text)); white-space: nowrap;
}
.text-link .label { position: relative; }
.text-link:hover .label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--link, var(--text)); }
.text-link:focus-visible, .nav-link:focus-visible, .back-link:focus-visible, .lockup:focus-visible { outline: none; }
.text-link:focus-visible::before, .nav-link:focus-visible::before, .back-link:focus-visible::before, .lockup:focus-visible::before {
  content: ""; position: absolute; inset: -6px -8px; border: 2px solid var(--accent-fill); border-radius: 12px; pointer-events: none;
}
.lockup { position: relative; }
.link-thelivi { --link: var(--thelivi-text); }
.back-link { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--text-2); }
.back-link:hover { color: var(--text); }

/* ── Badges and chips (24 high, Label) ───────────────────────────────── */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.badge-success { background: var(--success-wash); color: var(--success); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Card ────────────────────────────────────────────────────────────── */
/* Strokes sit inside the box, as in Figma, so outlines are inset rings rather than borders. */
.card { background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--border-card), var(--shadow-card); }

/* ── Header and navigation ───────────────────────────────────────────── */
.skip-link {
  position: absolute; z-index: 30; top: 16px; left: max(var(--gutter), calc((100% - 1200px) / 2));
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 2px solid var(--accent-fill); box-shadow: var(--shadow-float);
  font-size: 13px; line-height: 18px; font-weight: 700; transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; outline: none; }
.site-header { position: relative; z-index: 20; background: var(--surface); box-shadow: inset 0 -1px 0 var(--hairline); }
.nav-bar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { position: relative; font-size: 17px; line-height: 22px; font-weight: 700; color: var(--text-2); transition: color 120ms ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 5px); height: 2px; background: var(--accent-text); }
.menu-button { display: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
@media (hover: hover) { .menu-button:hover { background: var(--surface-2); } }
.mobile-menu { display: none; }
@media (max-width: 639.98px) {
  .nav-bar { height: 56px; padding-right: max(8px, calc(var(--gutter) - 12px)); }
  .nav-links { display: none; }
  .menu-button { display: inline-flex; }
  .mobile-menu.is-open {
    display: flex; flex-direction: column; gap: 24px; position: fixed; z-index: 19; inset: 56px 0 0 0;
    padding: 8px var(--gutter) 24px; background: var(--surface); overflow-y: auto;
  }
  .menu-rows a { display: flex; align-items: center; height: 56px; border-bottom: 1px solid var(--hairline); font-size: 17px; line-height: 22px; font-weight: 700; color: var(--text); position: relative; }
  .menu-rows a:last-child { border-bottom: 0; }
  .menu-rows:has([aria-current="page"]) a:not([aria-current="page"]) { color: var(--text-2); }
  .mobile-menu .btn { width: 100%; }
  body:has(.mobile-menu.is-open) { overflow: hidden; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); box-shadow: inset 0 1px 0 var(--hairline); }
.footer-bar { position: relative; height: 96px; display: flex; align-items: center; justify-content: space-between; }
.footer-tagline { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--text-2); }
@media (max-width: 639.98px) {
  .footer-bar { height: auto; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 32px; }
  .footer-tagline { position: static; transform: none; white-space: normal; }
}

/* ── Page heading ────────────────────────────────────────────────────── */
.page-heading { display: flex; flex-direction: column; gap: 40px; }
.heading-text { display: flex; flex-direction: column; gap: 24px; }
.heading-main { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 639.98px) {
  .page-heading { gap: 32px; }
  .heading-text { gap: 16px; }
  .heading-main { gap: 12px; }
}

/* ── Loading, data error, empty ──────────────────────────────────────── */
.loading-state { display: flex; flex-direction: column; gap: 12px; }
.loading-track { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.loading-track span { display: block; width: 120px; height: 4px; border-radius: 999px; background: var(--accent-fill); }
.data-error { display: flex; flex-direction: column; gap: 8px; padding: 24px; max-width: 588px; }
.data-error .text-link { margin-top: 4px; align-self: flex-start; }
.empty-state { color: var(--text-2); }

/* ── Home: hero and family map ───────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-heading { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1279.98px) { .hero { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 639.98px) {
  .hero { gap: 40px; }
  .hero-copy { gap: 32px; }
  .hero-text { gap: 16px; }
  .hero-heading { gap: 12px; }
}

.family-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 80px; }
.family-map .connector { position: absolute; background: var(--text-3); }
.family-map .c-left, .family-map .c-right { top: 120px; height: 80px; width: 1px; }
.family-map .c-left { left: calc(25% - 6px); }
.family-map .c-right { left: calc(75% + 6px); }
.family-map .c-bar { top: 160px; height: 1px; left: calc(25% - 6px); right: calc(25% - 6px); }
.family-hub {
  position: absolute; top: 140px; left: 50%; transform: translateX(-50%); z-index: 1;
  display: inline-flex; align-items: center; height: 40px; padding: 4px 16px 4px 4px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-card), var(--shadow-sm);
}
.family-node { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.node-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.node-id { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 22px; font-weight: 700; }
.node-text { display: flex; flex-direction: column; gap: 4px; }
.node-text .t-body { line-height: 24px; color: var(--text-2); }
@media (max-width: 639.98px) {
  /* Tree: hub on top, a spine down the left, one branch per product */
  .family-map { display: flex; flex-direction: column; gap: 12px; padding-left: 40px; padding-top: 52px; }
  .family-hub { left: 0; top: 0; transform: none; }
  .family-map .c-left, .family-map .c-right, .family-map .c-bar { display: none; }
  .family-map::before { content: ""; position: absolute; left: 20px; top: 40px; bottom: 60px; width: 1px; background: var(--text-3); }
  .family-node { position: relative; }
  .family-node::before { content: ""; position: absolute; left: -21px; top: 60px; width: 20px; height: 1px; background: var(--text-3); }
}

/* ── Home: product cards ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.product-card { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.well { position: relative; height: 320px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.shot { position: absolute; background: var(--surface); border: 1px solid var(--hairline); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot-phone { width: 204px; top: 32px; bottom: 0; left: 50%; transform: translateX(-50%); }
.shot-browser { top: 32px; bottom: 0; left: 32px; right: 32px; }
.product-body { display: flex; flex-direction: column; gap: 16px; }
.product-info { display: flex; flex-direction: column; gap: 12px; }
.product-title { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 22px; font-weight: 700; }
.product-text { display: flex; flex-direction: column; gap: 8px; }
.product-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* Card/Product · Format=Mobile (1024 two-up, and phones) */
@media (max-width: 1279.98px) and (min-width: 900px), (max-width: 639.98px) {
  .product-card { padding: 16px; gap: 16px; }
  .well { height: 200px; }
  .shot-phone { width: 176px; top: 24px; }
  .shot-browser { top: 20px; left: 15px; right: 15px; }
  .product-info { gap: 8px; }
  .product-text { gap: 4px; }
  .product-text .t-prose { font-size: 15px; line-height: 22px; }
}
@media (max-width: 899.98px) { .products-grid { grid-template-columns: 1fr; } }

/* ── Step cards (How I work) ─────────────────────────────────────────── */
.steps { grid-auto-rows: 1fr; }
.step-card { padding: var(--card-pad); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1280px) { .how-i-work .step-card { min-height: 196px; } }
.step-card .num { font-size: 13px; line-height: 24px; font-weight: 700; color: var(--text-3); }
.step-text { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1279.98px) { .steps { grid-template-columns: 1fr; } .how-i-work .step-card { min-height: 144px; } }
@media (max-width: 899.98px) { .how-i-work .step-card { min-height: 168px; } }
@media (max-width: 639.98px) { .product-card { min-height: 416px; } }
@media (max-width: 639.98px) { .steps { gap: 16px; } }

/* ── Experience: career cards with the staircase ─────────────────────── */
.career-card { padding: var(--card-pad); display: flex; flex-direction: column; gap: 24px; }
.org { display: flex; align-items: center; gap: 12px; }
.org-logo { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--on-accent); box-shadow: inset 0 0 0 1px var(--border-card); display: grid; place-items: center; }
.org-logo img { width: 32px; height: 32px; object-fit: contain; }
.org-text { display: flex; flex-direction: column; min-width: 0; }
.stair { display: flex; align-items: flex-end; }
.step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.step-label { min-height: 56px; padding-right: 8px; display: flex; flex-direction: column; justify-content: flex-end; }
.role-line { display: flex; align-items: center; column-gap: 8px; }
.role-line .t-label { color: var(--text); white-space: pre-line; }
.track { position: relative; height: 8px; margin-top: 8px; --line: var(--text-3); }
.track::after { content: ""; position: absolute; left: 4px; right: -1px; top: 3px; height: 2px; background: var(--line); }
.track .dot { position: absolute; z-index: 1; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.track .riser { position: absolute; left: 3px; top: 3px; width: 2px; height: 18px; background: var(--line); }
.step.is-current .track { --line: var(--accent-text); }
.step.is-current .dot { background: var(--line); }
.step:last-child .track::after { right: 0; }
@media (max-width: 899.98px) { .career-grid { grid-template-columns: 1fr; } }
@media (max-width: 639.98px) {
  /* Card/Career · Format=Narrow */
  .career-card { gap: 16px; }
  .org { align-items: center; }
  .step-label { min-height: 88px; }
  .step-label .role-title, .step-label .role-dates { max-width: min(98px, 100%); text-wrap: balance; }
}

/* ── Stack cards ─────────────────────────────────────────────────────── */
.stack-card { padding: var(--card-pad); display: flex; flex-direction: column; gap: 12px; }
.stack-card h3 { line-height: 24px; }
@media (max-width: 1279.98px) { .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .stack-grid { grid-template-columns: 1fr; } }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact { display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 639.98px) { .contact { gap: 32px; } }

/* ── Projects ────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 16px; }
.filter-chip {
  width: 80px; height: 40px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 13px; line-height: 18px; font-weight: 700; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-card);
}
.filter-chip:hover { background: var(--surface-2); }
.filter-chip[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent-fill); box-shadow: none; }
@media (max-width: 639.98px) { .filters { gap: 8px; } }
.work-list { display: flex; flex-direction: column; gap: 64px; }
.work-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.work-card.image-left .work-image { order: -1; }
.work-copy { display: flex; flex-direction: column; gap: 16px; }
.work-head { display: flex; flex-direction: column; gap: 8px; }
.work-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 8px; }
.work-image { display: block; aspect-ratio: 588 / 308; border-radius: 24px; background: var(--surface-2); overflow: hidden; position: relative; }
.work-image::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--border-card); pointer-events: none; transition: border-color 120ms ease; }
.work-image:hover::after { border-color: var(--text-3); }
.work-image img, .detail-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Product screenshots framed as on the home product cards (phone screen or browser page) */
.work-image .shot img, .detail-image .shot img { height: auto; object-fit: initial; }
.work-image .shot-phone, .detail-image .shot-phone { width: 34%; top: 10%; }
.work-image .shot-browser, .detail-image .shot-browser { top: 10%; left: 6%; right: 6%; }
.detail-image .shot-phone, .detail-image .shot-browser { top: 7.6%; }
.detail-image .shot-browser { left: 8%; right: 8%; }
@media (max-width: 899.98px) {
  .work-list { gap: 48px; }
  .work-card { grid-template-columns: 1fr; align-items: stretch; }
  .work-card.image-left .work-image, .work-card .work-image { order: -1; }
}
@media (max-width: 639.98px) { .work-list { gap: 40px; } }

/* Project detail */
.detail-heading { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.detail-image { aspect-ratio: 1200 / 632; border-radius: 24px; background: var(--surface-2); overflow: hidden; position: relative; }
.detail-image::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--border-card); pointer-events: none; }
@media (max-width: 639.98px) {
  .detail-heading { gap: 16px; }
  .detail-actions { gap: 12px; }
  .detail-image { aspect-ratio: 350 / 184; }
}

/* Lead + prose (4 + 8 columns on XL, stacked below) */
.split { display: grid; grid-template-columns: 384fr 792fr; gap: 24px; align-items: start; }
.lead { display: flex; flex-direction: column; gap: 12px; }
.prose { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prose h3 { line-height: 24px; }
@media (max-width: 1279.98px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 639.98px) { .split { gap: 16px; } }

/* ── About: experience cards ─────────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: 24px; }
.exp-card { padding: 24px; display: grid; grid-template-columns: 360fr 768fr; gap: 24px; align-items: start; }
.role { display: flex; flex-direction: column; }
.detail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 639.98px) { .exp-list { gap: 16px; } }
@media (max-width: 1279.98px) {
  .exp-card { padding: 16px; grid-template-columns: 1fr; gap: 12px; }
  .exp-card .t-prose { font-size: 15px; line-height: 22px; }
}

/* ── Resume: the classic pre-v2 document lives in resume.css (scoped to .classic-resume) ── */

/* ── Hire ────────────────────────────────────────────────────────────── */
.offers { display: flex; flex-direction: column; gap: 32px; }
.offer { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.offer-head { display: grid; grid-template-columns: 384fr 792fr; gap: 24px; align-items: start; }
.offer-name { display: flex; flex-direction: column; gap: 8px; }
.offer-name .num { font-size: 13px; line-height: 24px; font-weight: 700; color: var(--text-3); }
.tier-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tier-card .tier-name { font-size: 13px; line-height: 24px; font-weight: 700; color: var(--text-2); }
.proof-links { display: flex; flex-wrap: wrap; gap: 24px; }
.hire-email { font-size: 13px; line-height: 24px; font-weight: 700; color: var(--text-2); }
@media (max-width: 1279.98px) { .offer-head { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 899.98px) { .tiers { grid-template-columns: 1fr; } }
@media (max-width: 639.98px) {
  .offers { gap: 24px; }
  .offer { gap: 16px; padding-top: 24px; }
  .tiers { gap: 12px; }
}

/* ── Vihari privacy ──────────────────────────────────────────────────── */
.policy { display: flex; flex-direction: column; }
.policy-section { display: grid; grid-template-columns: 384fr 792fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--hairline); }
.policy-section .lead h2 { line-height: 24px; }
.policy-list { display: flex; flex-direction: column; gap: 12px; }
.policy-list li { display: flex; gap: 12px; }
.policy-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin: 10px 1px 0; border-radius: 50%; background: var(--text-3); }
.policy-list strong { font-weight: 400; color: var(--text); }
.policy-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 639.98px) { .policy-list li::before { margin-top: 8px; } }
@media (max-width: 1279.98px) { .policy-section { grid-template-columns: 1fr; } }
@media (max-width: 639.98px) { .policy-section { padding-block: 24px; gap: 16px; } }

/* ── Print: only the resume document prints (its own A4 rules are in resume.css) ── */
@media print {
  :root { color-scheme: light; --canvas: #ffffff; }
  body { background: #ffffff; }
  .site-header, .site-footer, .skip-link, .mobile-menu { display: none !important; }
}
