/* Shreyans Bokadiya — site styles
   Concept: a personal annual report. Cool paper, Aravalli-blue ink, one sandstone accent.
   Line-art landscapes open each chapter; typography carries everything else. */
:root {
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-2: #34425f;
  --muted: #637089;
  --line: #d9dfe8;
  --accent: #a8721f;
  --accent-ink: #8a5d17;
  --accent-soft: #f4ebdc;
  --deep: #14213d;
  --deep-ink: #eef2f8;
  --scene-ink: #3a4a6b;
  --display: "SB Display", "Gloock", "Tiro Devanagari Hindi", "Noto Serif Gujarati", Georgia, "Times New Roman", serif;
  --text: "SB Text", "Hanken Grotesk", "Hind", "Hind Vadodara", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1220; --surface: #111a2c; --ink: #e8edf6; --ink-2: #c3cbdb; --muted: #95a1b8; --line: #23304a;
    --accent: #d8a556; --accent-ink: #e3b56c; --accent-soft: #2a2114; --deep: #060b16; --deep-ink: #e8edf6; --scene-ink: #9fb0cf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1220; --surface: #111a2c; --ink: #e8edf6; --ink-2: #c3cbdb; --muted: #95a1b8; --line: #23304a;
  --accent: #d8a556; --accent-ink: #e3b56c; --accent-soft: #2a2114; --deep: #060b16; --deep-ink: #e8edf6; --scene-ink: #9fb0cf;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:lang(hi) body, :lang(gu) body, html[lang="hi"] body, html[lang="gu"] body { line-height: 1.78; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="gu"] h1, html[lang="gu"] h2, html[lang="gu"] h3 { line-height: 1.32; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand .wm { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wm b { font-family: var(--text); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.brand .wm span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mark-frame { fill: none; stroke: currentColor; stroke-width: 1.6; }
.mark-inner { fill: none; stroke: var(--accent); stroke-width: 1; }
.mark-text { font-family: "SB Display", "Gloock", Georgia, serif; font-size: 17px; letter-spacing: -.5px; fill: currentColor; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > li { list-style: none; position: relative; }
.nav ul { margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-link svg { width: 10px; height: 10px; transition: transform .2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px -18px rgb(10 20 40 / .35); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .16s, transform .16s; }
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.dropdown a small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.dropdown a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }

.tools { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 18px; height: 18px; }
.lang { position: relative; }
.lang-btn { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; }
.lang-btn svg { width: 16px; height: 16px; }
.lang .dropdown { left: auto; right: 0; min-width: 180px; }
.lang .dropdown button { all: unset; box-sizing: border-box; display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.lang .dropdown button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.lang .dropdown button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lang .dropdown button:focus-visible { outline: 2px solid var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-line { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.drawer nav { overflow-y: auto; margin-top: 16px; flex: 1; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer .d-link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--display); font-size: 26px; text-decoration: none; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 14px; height: 14px; transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details a { display: block; padding: 8px 0 8px 2px; text-decoration: none; color: var(--ink-2); font-size: 17px; }
.drawer details div { padding-bottom: 14px; }
.drawer .d-link { border-bottom: 1px solid var(--line); }
.drawer-foot { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; }
.drawer-langs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.drawer-langs button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.drawer-langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 1060px) {
  .nav, .tools .dl-btn, .tools .lang { display: none; }
  .menu-btn { display: inline-grid; }
  .tools { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(36px, 7vw, 88px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 { font-size: clamp(3rem, 8.2vw, 6.6rem); line-height: .96; letter-spacing: -.02em; }
html[lang="hi"] .hero h1, html[lang="gu"] .hero h1 { line-height: 1; }
.hero .local { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: var(--muted); margin-top: 14px; }
.hero .title { margin-top: 26px; font-size: 1.2rem; font-weight: 600; }
.hero .statement { margin-top: 10px; font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.highlights { border-top: 1px solid var(--ink); }
.highlights div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.highlights b { font-family: var(--display); font-weight: 400; font-size: 2.3rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.highlights span { color: var(--muted); font-size: .95rem; line-height: 1.35; }
.panorama { position: relative; height: clamp(200px, 30vw, 440px); margin-top: clamp(24px, 4vw, 48px); color: var(--scene-ink); --scene-bg: var(--paper); }
.panorama svg { width: 100%; height: 100%; display: block; }
.scene .acc { stroke: var(--accent); fill: none; }
.scene .occ { fill: var(--scene-bg, var(--paper)); }
.panorama.drawing path:not(.occ), .panorama.drawing circle { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.6s cubic-bezier(.45,.05,.25,1) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scene .dash { stroke-dasharray: 10 14 !important; }

/* ---------- chapter plates ---------- */
.chapter { margin-top: clamp(72px, 10vw, 140px); }
.plate { position: relative; height: clamp(300px, 34vw, 470px); color: var(--scene-ink); background: var(--surface); --scene-bg: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.plate svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 66%; }
.plate img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 14 28 / .55), rgb(8 14 28 / 0) 55%); }
.plate .plate-head { position: relative; z-index: 1; padding-top: clamp(22px, 3.4vw, 44px); }
.plate h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--ink); }
.plate .line { margin-top: 10px; font-size: 1.08rem; color: var(--ink-2); max-width: 46ch; }
.plate.has-photo h2, .plate.has-photo .line { color: #fff; }
.plate .cap { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: 13px; color: var(--muted); }
.plate.has-photo .cap { color: rgb(255 255 255 / .8); }

.block { padding-top: clamp(48px, 6vw, 80px); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.block-head h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.block-head .sub { color: var(--muted); margin-top: 8px; font-size: .98rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 64px); }

/* about */
.portrait { position: sticky; top: calc(var(--header) + 24px); }
.portrait figure { margin: 0; }
.portrait img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: saturate(.92); }
.portrait figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.story p { max-width: 66ch; text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.story p + p { margin-top: 1.1em; }
.story p:first-child { font-size: 1.28rem; line-height: 1.55; color: var(--ink); text-align: left; }
.story p:not(:first-child) { color: var(--ink-2); }
dl.facts-list { margin: 0; display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); border-top: 1px solid var(--line); }
dl.facts-list dt, dl.facts-list dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
dl.facts-list dt { color: var(--muted); font-size: .94rem; padding-right: 20px; }
dl.facts-list dd { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .93rem; background: var(--surface); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.cols3 > div { border-top: 2px solid var(--ink); padding-top: 14px; min-width: 0; }
.cols3 h4 { font-size: 1.3rem; margin-bottom: 8px; }
.cols3 p { color: var(--ink-2); font-size: .98rem; }
.cols3 a { font-size: .94rem; font-weight: 600; display: inline-block; margin-top: 8px; }
.lead-p { font-size: 1.12rem; color: var(--ink-2); max-width: 64ch; }

/* lineage */
.tree-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 36px 0 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: none; height: 34px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tree-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.tree-scroll { overflow: auto; max-height: 760px; cursor: grab; overscroll-behavior: contain; }
.tree-scroll.dragging { cursor: grabbing; }
.tree-svg { display: block; }
.tree-svg .edge { fill: none; stroke: var(--line); stroke-width: 1.6; transition: stroke .25s; }
.tree-svg .edge.hl { stroke: var(--accent); stroke-width: 2.2; }
.tree-svg .node rect { fill: var(--paper); stroke: var(--line); stroke-width: 1.2; transition: fill .2s, stroke .2s; }
.tree-svg .node text { fill: var(--ink); font-family: var(--text); font-size: 13.5px; font-weight: 600; text-anchor: middle; }
.tree-svg .node text.sp { fill: var(--muted); font-weight: 400; font-size: 11.5px; }
.tree-svg .node { cursor: pointer; }
.tree-svg .node:hover rect { stroke: var(--ink-2); }
.tree-svg .node.line rect { stroke: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tree-svg .node.hl rect { stroke: var(--accent); stroke-width: 2; fill: var(--accent-soft); }
.tree-svg .node.sel rect { fill: var(--ink); stroke: var(--ink); }
.tree-svg .node.sel text { fill: var(--paper); }
.tree-svg .node.self rect { stroke: var(--accent); stroke-width: 2; }
.tree-svg .gen-label { fill: var(--muted); font-size: 11px; font-family: var(--text); }
.tree-svg .gen-rule { stroke: var(--line); stroke-dasharray: 2 5; }
.tree-info { border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tree-info .nm { font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.tree-info .alt { color: var(--muted); font-size: .95rem; }
.tree-info .rel { font-weight: 600; }
.tree-info .gen { color: var(--muted); font-size: .9rem; }
.tree-info .path { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.tree-info .rec { margin-top: auto; display: flex; gap: 12px; align-items: center; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: zoom-in; text-align: left; font-size: .88rem; color: var(--ink-2); }
.tree-info .rec img { width: 54px; height: 70px; object-fit: cover; border-radius: 4px; }

/* ventures */
.org { margin-top: 36px; }
.org-top { display: flex; justify-content: center; }
.org-node { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 18px; min-width: 0; text-align: left; text-decoration: none; display: block; color: var(--ink); transition: border-color .15s, transform .15s; }
a.org-node:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-2px); }
.org-node b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.org-node span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.35; }
.org-node.root { background: var(--ink); color: var(--paper); border-color: var(--ink); text-align: center; }
.org-node.root span { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.org-node.soon { border-style: dashed; }
.org-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; padding-top: 34px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 18px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.org-row::after { content: ""; position: absolute; top: -18px; left: 50%; height: 18px; border-left: 1.5px solid var(--line); }
.org-col { display: flex; flex-direction: column; gap: 12px; position: relative; min-width: 0; }
.org-col::before { content: ""; position: absolute; top: -16px; left: 50%; height: 16px; border-left: 1.5px solid var(--line); }
.org-merge { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.org-merge::before { content: ""; height: 18px; border-left: 1.5px dashed var(--accent); }
.org-col .org-node.child { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

.v-tabs { position: sticky; top: var(--header); z-index: 5; background: var(--paper); margin-top: 48px; border-bottom: 1px solid var(--line); }
.v-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.v-tabs .wrap::-webkit-scrollbar { display: none; }
.v-tabs button { border: 0; background: none; padding: 16px 14px 14px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.v-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.v-panel { padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 64px); animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.v-aside h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.v-aside .sector { color: var(--muted); margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.v-facts { margin-top: 22px; border-top: 1px solid var(--line); }
.v-facts div { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.v-facts dt { font-size: 13px; color: var(--muted); margin: 0; }
.v-facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.v-facts .cin { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; cursor: pointer; color: var(--ink-2); }
.copy:hover { border-color: var(--ink-2); }
.v-aside .btn { margin-top: 22px; }
.v-aside .soon { margin-top: 22px; color: var(--muted); font-size: .94rem; }
.v-body .summary { font-size: 1.22rem; line-height: 1.55; max-width: 62ch; }
.v-sec { margin-top: 36px; }
.v-sec h4 { font-family: var(--text); font-weight: 600; font-size: 1.02rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.v-sec p { color: var(--ink-2); max-width: 64ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; font-weight: 500; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 0; overflow-x: auto; padding-bottom: 6px; }
.steps li { position: relative; padding: 26px 18px 0 0; min-width: 0; }
.steps li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; border-top: 1.5px solid var(--line); }
.steps li::after { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-2); }
.steps li:last-child::after { background: var(--accent); border-color: var(--accent); }
.steps .y { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.steps b { display: block; font-weight: 600; margin-top: 2px; }
.steps span { display: block; font-size: .9rem; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.steps a { font-size: .9rem; font-weight: 600; }
.releases { list-style: none; margin: 0; padding: 0; }
.releases li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.releases .y { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.releases a { font-size: .9rem; font-weight: 600; }
.after { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.after h4 { font-family: var(--text); font-weight: 600; font-size: 1.02rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mini { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini b { font-weight: 600; }
.mini .tag { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.mini p { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
.mini small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* journey */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.filters button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.timeline { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.timeline::before, .timeline .prog { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.timeline .prog { background: var(--accent); bottom: auto; height: 0; transition: height .1s linear; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; padding-bottom: 36px; }
.timeline li .yr { grid-column: 1; text-align: right; font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--ink); padding-top: 2px; font-variant-numeric: lining-nums; }
.timeline li .dot { grid-column: 2; justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-2); margin-top: 10px; position: relative; z-index: 1; transition: background .2s, border-color .2s; }
.timeline li.passed .dot { background: var(--accent); border-color: var(--accent); }
.timeline li .tx { grid-column: 3; min-width: 0; }
.timeline li:nth-child(odd of .ev) .yr { grid-column: 3; text-align: left; grid-row: 1; }
.timeline li:nth-child(odd of .ev) .tx { grid-column: 1; grid-row: 1; text-align: right; }
.timeline .cat { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.timeline b { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.timeline p { color: var(--ink-2); font-size: .97rem; margin-top: 4px; }

/* newsroom */
.featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 36px; }
.featured .img { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 16 / 10; cursor: pointer; }
.featured .img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.featured .img:hover img { transform: scale(1.03); }
.meta { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.meta b { color: var(--accent-ink); font-weight: 600; }
.featured h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 10px; }
.featured p { color: var(--ink-2); margin-top: 12px; }
.featured .btn { margin-top: 22px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; margin-top: 56px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.card .thumb { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb.type { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.card .thumb.type span { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; }
.card .thumb.type small { color: color-mix(in srgb, var(--deep-ink) 65%, transparent); font-size: 13px; }
.card h4 { font-family: var(--display); font-size: 1.3rem; line-height: 1.22; }
.card:hover h4 { color: var(--accent-ink); }
.card p { color: var(--ink-2); font-size: .95rem; }
.wall { margin-top: 64px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.wall button { border: 1px solid var(--line); border-radius: 6px; padding: 0; overflow: hidden; cursor: zoom-in; background: #fff; }
.wall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.wall h4 { font-size: 1.5rem; }
.wall p { color: var(--muted); margin-top: 6px; }

/* reader */
.reader { position: fixed; inset: 0; z-index: 70; background: var(--paper); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.reader.open { opacity: 1; visibility: visible; }
.reader-bar { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.reader-bar .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-bar button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 0; }
.reader-bar svg { width: 16px; height: 16px; }
.reader article { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.reader h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 12px; }
.reader .orig { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--surface); }
.reader .orig small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.reader .orig p { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; }
.reader figure { margin: 32px 0; }
.reader figure button { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; cursor: zoom-in; width: 100%; }
.reader figure img { width: 100%; max-height: 70vh; object-fit: contain; background: #fff; }
.reader figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.reader .body p { font-size: 1.12rem; line-height: 1.75; margin-top: 1.1em; color: var(--ink-2); text-align: justify; hyphens: auto; }
.reader .body p:first-child { color: var(--ink); }
.reader .src { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: .95rem; color: var(--muted); }
.reader .more { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) 80px; }
.reader .more h2 { font-size: 1.6rem; margin-bottom: 20px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(6 10 20 / .92); display: none; }
.lightbox.open { display: block; }
.lightbox .lb-scroll { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; padding: 64px 16px 24px; }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100vh - 100px); width: auto; cursor: zoom-in; background: #fff; border-radius: 4px; }
.lightbox.zoom img { max-width: none; max-height: none; width: min(2200px, 220vw); cursor: zoom-out; }
.lightbox .lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-close svg { width: 20px; height: 20px; }
.lightbox .lb-cap { position: absolute; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 22px); right: 76px; color: rgb(255 255 255 / .85); font-size: 14px; z-index: 2; }

/* life */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.channel { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 16px; background: var(--deep); color: var(--deep-ink); text-decoration: none; overflow: hidden; min-height: 240px; }
.channel:hover { color: var(--deep-ink); }
.channel .scn { position: absolute; inset: auto 0 0 0; height: 60%; color: color-mix(in srgb, var(--deep-ink) 35%, transparent); --scene-bg: var(--deep); }
.channel .scn svg { width: 100%; height: 100%; }
.channel .scn .acc { stroke: var(--accent); }
.channel > * { position: relative; }
.channel .nm { font-family: var(--display); font-size: 2.2rem; line-height: 1.05; }
.channel .hd { color: var(--accent); font-weight: 600; }
.channel p { color: color-mix(in srgb, var(--deep-ink) 80%, transparent); max-width: 40ch; }
.channel .go { margin-top: auto; font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.channel .go svg { width: 15px; height: 15px; transition: transform .2s; }
.channel:hover .go svg { transform: translate(3px, -3px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.gallery button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 36px; }
.big-mail { font-family: var(--display); font-size: clamp(1.45rem, 3.4vw, 2.6rem); line-height: 1.15; overflow-wrap: break-word; text-decoration: none; }
.c-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.c-list { border-top: 1px solid var(--line); }
.c-list div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.c-list dt { color: var(--muted); font-size: .92rem; margin: 0; }
.c-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.c-list dd a { text-decoration: none; }
.c-list dd a:hover { text-decoration: underline; }

footer.site-footer { margin-top: clamp(80px, 10vw, 140px); background: var(--deep); color: var(--deep-ink); }
footer .f-scene { height: 160px; color: color-mix(in srgb, var(--deep-ink) 30%, transparent); --scene-bg: var(--deep); }
footer .f-scene svg { width: 100%; height: 100%; display: block; }
footer .f-scene .acc { stroke: var(--accent); }
footer .f-in { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 40px 28px; }
footer .brand { color: var(--deep-ink); }
footer .brand .wm span { color: color-mix(in srgb, var(--deep-ink) 60%, transparent); }
footer h5 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--deep-ink) 60%, transparent); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; color: var(--deep-ink); }
footer a:hover { color: var(--accent); }
footer .f-base { border-top: 1px solid color-mix(in srgb, var(--deep-ink) 15%, transparent); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: color-mix(in srgb, var(--deep-ink) 60%, transparent); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .22s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .block-head, .v-panel, .featured, .contact-grid, .after { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: static; }
  .portrait img { max-width: 220px; }
  .cols3 { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tree-wrap { grid-template-columns: minmax(0, 1fr); }
  .tree-info { border-left: 0; border-top: 1px solid var(--line); }
  .org-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 24px; }
  .org-row::before { display: none; }
  .org-row::after, .org-col::before { display: none; }
  .timeline::before, .timeline .prog { left: 7px; }
  .timeline li, .timeline li:nth-child(odd of .ev) { grid-template-columns: 16px minmax(0, 1fr); gap: 0 18px; }
  .timeline li .dot, .timeline li:nth-child(odd of .ev) .dot { grid-column: 1; grid-row: 1 / span 2; justify-self: start; margin-top: 6px; }
  .timeline li .yr, .timeline li:nth-child(odd of .ev) .yr { grid-column: 2; grid-row: 1; text-align: left; font-size: 1.5rem; }
  .timeline li .tx, .timeline li:nth-child(odd of .ev) .tx { grid-column: 2; grid-row: 2; text-align: left; margin-top: 6px; }
  footer .f-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  footer .f-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand .wm span { display: none; }
  .highlights div { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .highlights b { font-size: 1.9rem; }
  dl.facts-list { grid-template-columns: minmax(0, 1fr); }
  dl.facts-list dt { border-bottom: 0; padding-bottom: 0; }
  dl.facts-list dd { padding-top: 2px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .news-grid, .channels, .org-row { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: 110px minmax(0, 1fr); }
  .story p { text-align: left; }
  .c-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .releases li { grid-template-columns: 44px minmax(0, 1fr); }
  .releases li a { grid-column: 2; }
  .hero .ctas .btn { flex: 1 1 100%; }
}

/* ================= v3 additions ================= */
/* scrollbar + reading progress */
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 70%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 10px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2px; z-index: 80; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* hero */
.hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
.hero-copy .title { margin-top: 0; }
.panorama { height: clamp(220px, 30vw, 460px); }
.panorama .photo { width: 100%; height: 100%; object-fit: cover; }
.scene .lbl { fill: var(--ink-2); font-family: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.facts-band { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fact { padding: 26px 18px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fv { display: flex; align-items: baseline; gap: 5px; }
.fv b { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.fv i { font-style: normal; color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.fl { font-weight: 600; font-size: .98rem; line-height: 1.3; margin-top: 6px; }
.fn { color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* chapter openers: title first, the place drawn beneath (same as the hero) */
.opener-head { padding-bottom: clamp(18px, 2.5vw, 28px); }
.opener-head h2 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.015em; }
.opener-head .line { margin-top: 12px; font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.opener-art { position: relative; height: clamp(200px, 26vw, 380px); color: var(--scene-ink); --scene-bg: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.opener-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.opener-art .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opener-art .cap { position: absolute; right: var(--gutter); bottom: 10px; font-size: 12.5px; color: var(--muted); background: color-mix(in srgb, var(--paper) 80%, transparent); padding: 2px 8px; border-radius: 6px; }
.opener-art.has-photo .cap { color: #fff; background: rgb(0 0 0 / .4); }
.drawing path:not(.occ), .drawing circle:not(.occ), .drawing ellipse { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.6s cubic-bezier(.45,.05,.25,1) forwards; animation-delay: var(--d, 0s); }
.chapter { margin-top: clamp(80px, 11vw, 150px); }

/* slide-in reveals (only when JS marks the page as animated) */
html.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
html.anim .rv-l { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
html.anim .rv.in, html.anim .rv-l.in { opacity: 1; transform: none; }

/* about: pull quote instead of a portrait */
.pull { position: sticky; top: calc(var(--header) + 32px); align-self: start; border-top: 2px solid var(--accent); padding-top: 18px; }
.pull .q { font-family: var(--display); font-size: 5rem; line-height: .6; color: var(--accent); display: block; height: 2.4rem; }
.pull p { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.pull .by { display: block; margin-top: 14px; color: var(--muted); font-size: .92rem; }

/* vanshavali */
.vansh { margin-top: clamp(56px, 7vw, 96px); border-radius: 18px; padding: clamp(20px, 3vw, 36px); background: var(--royal-bg); color: var(--royal-ink); position: relative; --royal-bg: #0e1628; --royal-ink: #efe6d2; --gold: #d6aa5c; --gold-soft: rgb(214 170 92 / .16); box-shadow: inset 0 0 0 1px rgb(214 170 92 / .35), inset 0 0 0 7px #0e1628, inset 0 0 0 8px rgb(214 170 92 / .22); }
:root[data-theme="light"] .vansh { --royal-bg: #fbf6ea; --royal-ink: #2b2110; --gold: #9a6b1f; --gold-soft: rgb(154 107 31 / .1); box-shadow: inset 0 0 0 1px rgb(154 107 31 / .4), inset 0 0 0 7px #fbf6ea, inset 0 0 0 8px rgb(154 107 31 / .25); }
.vansh-head { text-align: center; }
.vansh-orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.flourish { width: min(160px, 26vw); height: 24px; }
.flourish.flip { transform: scaleX(-1); }
.vansh-title { font-family: "SB Hand", var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--gold); white-space: nowrap; }
.vansh-head h3 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); margin-top: 10px; color: var(--royal-ink); }
.vansh-head p { color: color-mix(in srgb, var(--royal-ink) 70%, transparent); margin: 8px auto 0; max-width: 60ch; font-size: .98rem; }
.vansh-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.vansh .seg { background: transparent; border-color: rgb(214 170 92 / .4); }
.vansh .seg button { color: color-mix(in srgb, var(--royal-ink) 70%, transparent); }
.vansh .seg button[aria-pressed="true"] { background: var(--gold); color: var(--royal-bg); }
.vansh-note { font-family: "SB Hand", var(--text); color: var(--gold); font-size: 1rem; }
.zoom { display: inline-flex; gap: 6px; }
.zoom button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgb(214 170 92 / .4); background: transparent; color: var(--royal-ink); cursor: pointer; display: grid; place-items: center; }
.zoom button:hover { border-color: var(--gold); color: var(--gold); }
.zoom svg { width: 17px; height: 17px; }
.vansh-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0; border: 1px solid rgb(214 170 92 / .3); border-radius: 12px; overflow: hidden; }
.vansh-canvas { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; background: radial-gradient(ellipse at 50% 0%, var(--gold-soft), transparent 70%); transition: height .3s; user-select: none; }
.vansh-canvas.dragging { cursor: grabbing; }
.vansh-inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; transition: transform .25s ease; }
.vansh-canvas.dragging .vansh-inner { transition: none; }
.tree-svg .edge { fill: none; stroke: rgb(214 170 92 / .35); stroke-width: 1.5; transition: stroke .25s; }
.tree-svg .edge.hl { stroke: var(--gold); stroke-width: 2.4; }
.tree-svg .cart { fill: var(--royal-bg); stroke: rgb(214 170 92 / .45); stroke-width: 1.2; transition: fill .2s, stroke .2s; }
.tree-svg .cart-in { fill: none; stroke: rgb(214 170 92 / .18); stroke-width: 1; }
.tree-svg .nm { fill: var(--royal-ink); font-family: "SB Hand", var(--text); font-weight: 700; font-size: 17px; text-anchor: middle; }
.tree-svg .sp { fill: color-mix(in srgb, var(--royal-ink) 60%, transparent); font-family: "SB Hand", var(--text); font-size: 12.5px; text-anchor: middle; }
.tree-svg .node { cursor: pointer; }
.tree-svg .node:hover .cart { stroke: var(--gold); }
.tree-svg .node.line .cart { stroke: var(--gold); }
.tree-svg .node.line .cart-in { stroke: rgb(214 170 92 / .5); }
.tree-svg .node.hl .cart { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2; }
.tree-svg .node.sel .cart, .tree-svg .node.self.sel .cart { fill: var(--gold); stroke: var(--gold); }
.tree-svg .node.sel .nm, .tree-svg .node.sel .sp { fill: var(--royal-bg); }
.tree-svg .node:focus-visible { outline: none; }
.tree-svg .node:focus-visible .cart { stroke-width: 3; }
.vansh .tree-info { border-left: 1px solid rgb(214 170 92 / .3); color: var(--royal-ink); }
.vansh .tree-info .nm { font-family: "SB Hand", var(--display); font-weight: 700; color: var(--gold); }
.vansh .tree-info .alt, .vansh .tree-info .gen { color: color-mix(in srgb, var(--royal-ink) 65%, transparent); }
.vansh .tree-info .path { color: color-mix(in srgb, var(--royal-ink) 80%, transparent); }
.vansh .tree-info .rec { border-color: rgb(214 170 92 / .4); color: var(--royal-ink); }

/* org chart with measured connector lines */
.org { position: relative; margin-top: 40px; }
.org-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.org-lines .ol { fill: none; stroke: var(--line); stroke-width: 1.6; }
.org-lines .ol.dash { stroke: var(--accent); stroke-dasharray: 5 5; }
.org-top { display: flex; justify-content: center; position: relative; z-index: 1; }
.org-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 44px; position: relative; z-index: 1; }
.org-row::before, .org-row::after { display: none; }
.org-row.sub { padding-top: 0; }
.org-sub { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.org-merge { align-self: center; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); padding: 18px 0 14px; background: var(--paper); position: relative; z-index: 1; }
.org-node { height: 84px; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; position: relative; z-index: 1; }
.org-node b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.org-node span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-node.root { min-width: 260px; }
.org-node.child { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* venture tabs slide */
.v-stage { overflow: hidden; }
.v-panel.from-r { animation: fromR .45s cubic-bezier(.2,.7,.2,1); }
.v-panel.from-l { animation: fromL .45s cubic-bezier(.2,.7,.2,1); }
@keyframes fromR { from { opacity: 0; transform: translateX(60px); } }
@keyframes fromL { from { opacity: 0; transform: translateX(-60px); } }

/* newsroom */
.news-grid { margin-top: 28px; }
.filters button small { font-weight: 500; opacity: .6; margin-left: 2px; }

/* contact */
.big-phone { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.1rem); text-decoration: none; }
.big-phone:hover { color: var(--accent-ink); }
.reader .pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.reader .pn a { text-decoration: none; padding: 16px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--display); font-size: 1.1rem; line-height: 1.25; }
.reader .pn a small { display: block; font-family: var(--text); color: var(--accent-ink); font-size: 14px; margin-bottom: 4px; }
.reader .pn a.nx { text-align: right; }
.reader .pn a:hover { border-color: var(--accent); }

@media (max-width: 1100px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fact:nth-child(4) { border-left: 0; padding-left: 0; } .fact:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 960px) {
  .pull { position: static; }
  .vansh-body { grid-template-columns: minmax(0, 1fr); }
  .vansh .tree-info { border-left: 0; border-top: 1px solid rgb(214 170 92 / .3); }
  .org-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 30px; padding-left: 28px; }
  .org-row.sub { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .org-row.sub > span { display: none; }
  .org-top { justify-content: flex-start; }
  .org-merge { align-self: flex-start; padding-left: 12px; }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); padding-right: 12px; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { padding-left: 14px !important; border-left: 1px solid var(--line) !important; }
  .reader .pn { grid-template-columns: 1fr; }
  .vansh-title { white-space: normal; }
  .flourish { display: none; }
}

/* ================= v4 ================= */
/* drawings keep their full height: the box takes the drawing's own proportions */
.opener-art { height: auto; aspect-ratio: 1600 / 440; min-height: 170px; }
.panorama { height: auto; aspect-ratio: 2400 / 620; min-height: 200px; }

/* vanshavali in the site's own design language */
.vansh { --royal-bg: var(--surface); --royal-ink: var(--ink); --gold: var(--accent-ink); --gold-soft: var(--accent-soft); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: none !important; padding: clamp(20px, 3vw, 36px); }
:root[data-theme="light"] .vansh { --royal-bg: var(--surface); --royal-ink: var(--ink); --gold: var(--accent-ink); --gold-soft: var(--accent-soft); }
.vansh-head { text-align: left; }
.vansh-head h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0; color: var(--ink); }
.vansh-local { margin-top: 6px; color: var(--muted); font-family: "SB Hand", var(--text); font-size: 1.15rem; }
.vansh .seg { border-color: var(--line); background: var(--paper); }
.vansh .seg button { color: var(--muted); }
.vansh .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.vansh-note { color: var(--muted); }
.zoom button { border-color: var(--line); color: var(--ink); background: var(--paper); }
.zoom button:hover { border-color: var(--ink-2); color: var(--ink); }
.vansh-body { border-color: var(--line); background: var(--paper); }
.vansh-canvas { background: none; }
.tree-svg .edge { stroke: var(--line); }
.tree-svg .edge.hl { stroke: var(--accent); }
.tree-svg .cart { fill: var(--surface); stroke: var(--line); }
.tree-svg .cart-in { stroke: none; }
.tree-svg .node.line .cart { stroke: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.tree-svg .node.hl .cart { fill: var(--accent-soft); stroke: var(--accent); }
.tree-svg .node.sel .cart, .tree-svg .node.self.sel .cart { fill: var(--ink); stroke: var(--ink); }
.tree-svg .node.sel .nm, .tree-svg .node.sel .sp { fill: var(--paper); }
.tree-svg .node.self .cart { stroke: var(--accent); stroke-width: 2; }
.tree-svg .nm { fill: var(--ink); }
.tree-svg .sp { fill: var(--muted); }
.tree-svg .ghost rect { fill: none; stroke: var(--line); stroke-dasharray: 4 4; }
.tree-svg .ghost .nm { fill: var(--muted); font-size: 14px; font-weight: 400; }
.tree-svg .ghost .sp { font-size: 11px; }
.tree-svg .ghost-e { stroke-dasharray: 4 4; }
.vansh .tree-info { border-left-color: var(--line); color: var(--ink); background: var(--surface); }
.vansh .tree-info .nm { color: var(--ink); }
.vansh .tree-info .alt, .vansh .tree-info .gen { color: var(--muted); }
.vansh .tree-info .path { color: var(--ink-2); }
.vansh .tree-info .rec { border-color: var(--line); color: var(--ink-2); }
@media (max-width: 960px) { .vansh .tree-info { border-top-color: var(--line); } }

/* map links */
a.map { text-decoration: none; }
a.map span { display: inline-block; margin-left: 4px; font-size: .85em; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
a.map:hover { color: var(--ink); text-decoration: underline; }

/* reels */
.reels-h { font-family: var(--text); font-weight: 600; font-size: 1.02rem; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.reels .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); } .fact:nth-child(-n+2) { border-top: 0; } .fact:nth-child(even) { padding-left: 18px !important; border-left: 1px solid var(--line) !important; } }

/* ================= v5 ================= */
/* hero: the drawing sits at the bottom of the first screen and can run behind the name and buttons */
.hero { position: relative; padding-top: clamp(20px, 3.4vw, 56px); min-height: calc(100svh - var(--header) - env(safe-area-inset-top, 0px)); padding-bottom: max(140px, calc(25.83vw * .6)); }
.hero-grid { position: relative; z-index: 2; }
.panorama { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 25.83vw; min-height: 200px; aspect-ratio: auto; z-index: 1; pointer-events: none; }
.panorama svg { width: 100%; height: 100%; }
.facts-band { position: relative; z-index: 2; }
@media (max-width: 700px) { .hero { min-height: 0; padding-bottom: 200px; } }

/* footer without a drawing */
footer.site-footer { border-top: 1px solid var(--line); }

/* back to top / to the end */
.jump { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.jump.show { opacity: 1; transform: none; pointer-events: auto; }
.jump button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 22px -10px rgb(0 0 0 / .5); }
.jump button:hover { border-color: var(--accent); color: var(--accent-ink); }
.jump button svg { width: 20px; height: 20px; }
.jump.at-end [data-act="to-bottom"] { display: none; }
.org-row.sub { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ================= v6 ================= */
/* vanshavali: no box, part of the page like every other section */
.vansh { background: none !important; border: 0 !important; border-radius: 0; padding: 0 !important; box-shadow: none !important; }
.vansh-body { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.vansh .tree-info { background: none; }
.tree-svg .ph-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.person .ph span, .person .ph img { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; border: 1px solid var(--line); background: var(--surface); font-family: var(--display); font-size: 1.5rem; color: var(--muted); }
.person .ph button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 50%; }
.person .nm { font-size: 1.5rem !important; line-height: 1.15; }
.tree-info dl.pd { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .92rem; }
.tree-info dl.pd dt { color: var(--muted); margin: 0; }
.tree-info dl.pd dd { margin: 0; }
.tree-info .about { color: var(--ink-2); font-size: .95rem; }
.tree-info .kids { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tree-info .kids span { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.tree-info .kid { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: .88rem; cursor: pointer; color: var(--ink); }
.tree-info .kid:hover { border-color: var(--accent); }
.brand .logo-img { width: 38px; height: 38px; object-fit: contain; }

