/* amittechguy.in: a life drawn as a transit map.
   v2: light and colourful. Every station wears its line's colour; no black panels.
   Tokens first; each line colour encodes one part of the story. */

@font-face {
  font-family: "Anek Latin";
  src: url("../fonts/anek-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  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+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anek Devanagari";
  src: url("../fonts/anek-devanagari.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "Doto";
  src: url("../fonts/doto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #101114;
  --ink-2: #4a4f55;
  --rule: #e2e5ea;

  /* line colours: lane order in the hero map keeps red away from green (CVD-checked) */
  --grey: #8e959c;
  --blue: #1d5fd0;
  --green: #0f7f40;
  --red: #d3262f;
  --violet: #7b40b9;
  --yellow: #f4c300;
  --orange: #f27420;
  --aqua: #00a3b0;
  --pink: #e0468f;
  --lime: #84bd00;
  --tan: #c98b4a;

  --bar: 64px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;

  --sans: "Anek Latin", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --deva: "Anek Devanagari", "Anek Latin", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 420;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[lang="hi"] { font-family: var(--deva); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
p, li, dd { text-wrap: pretty; }
table.vh { display: block; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: #000; padding: 10px 14px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- top bar: the route strip above the train doors ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--bar);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 18px;
  padding-inline: clamp(12px, 2.4vw, 28px);
}
.bar-home {
  font-weight: 750; font-stretch: 110%; font-size: 1.02rem;
  text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 12px;
}
.roundel { width: 28px; height: 28px; border-radius: 50%; border: 6px solid var(--blue); position: relative; flex: none; margin-inline: 6px 4px; }
.roundel::after { content: ""; position: absolute; left: -10px; right: -10px; top: 5px; height: 6px; background: var(--ink); border-radius: 1px; }

.route { margin-left: auto; }
.route ol { list-style: none; margin: 0; padding: 0; display: flex; position: relative; }
.route ol::before { content: ""; position: absolute; left: 34px; right: 34px; top: 13px; height: 3px; background: #c9ced6; border-radius: 2px; }
.route a {
  display: grid; justify-items: center; gap: 4px; padding: 6px 9px 4px; min-width: 70px;
  text-decoration: none; font-size: .82rem; font-weight: 600; color: var(--ink-2); line-height: 1.15; position: relative; white-space: nowrap;
}
.route .dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--c); transition: transform .2s; }
.route a.passed .dot { background: var(--c); }
.route a[aria-current="true"] { color: var(--ink); font-weight: 750; }
.route a[aria-current="true"] .dot { background: var(--c); transform: scale(1.3); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.route a:hover { color: var(--ink); }
.bar-cta {
  background: var(--blue); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none;
  border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}
.bar-cta:hover { background: #164db0; }
.bar-link { margin-left: auto; font-weight: 700; font-size: .95rem; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; text-decoration: none; white-space: nowrap; }
.bar-link:hover { background: var(--ink); color: #fff; }

/* the same story in other versions: a 3D ride and a 3D world, each on its own subdomain */
.views { position: relative; flex: none; }
.views summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  font-weight: 700; font-size: .95rem; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px;
}
.views summary::-webkit-details-marker { display: none; }
.views summary:hover, .views[open] summary { background: var(--ink); color: #fff; }
.views-list {
  position: absolute; left: 0; top: calc(100% + 12px); width: 330px;
  list-style: none; margin: 0; padding: 6px; background: #fff;
  border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 14px 36px rgba(16, 17, 20, .16);
}
.views-list a {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 12px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);
}
.views-list a::before { /* a station dot: filled for the version you are in */
  content: ""; grid-row: 1 / 3; margin-top: 3px; width: 16px; height: 16px; box-sizing: border-box;
  border-radius: 50%; border: 4px solid var(--ink-2); background: #fff;
}
.views-list a[aria-current="page"]::before { background: var(--ink); border-color: var(--ink); }
.views-list a:hover { background: #f2f4f7; }
.views-list b { font-weight: 750; }
.views-list span { grid-column: 2; font-size: .88rem; color: var(--ink-2); line-height: 1.35; }

/* the display: pale LCD with dot-matrix type (phones and tablets, where the route labels do not fit) */
.led {
  display: none; flex: 1 1 auto; min-width: 0; max-width: 520px;
  height: 36px; border-radius: 8px; background: #eef2e4; border: 1.5px solid #cfd8be;
  align-items: center; padding-inline: 12px; overflow: hidden; color: #1d2a12;
}
.led.always { display: flex; }
.led-text { font-family: "Doto", var(--sans); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; }
.led-text[lang="hi"] { font-family: var(--deva); font-weight: 700; letter-spacing: 0.02em; font-size: 1rem; }
.route-btn { display: none; }
html:not(.js) .map-wrap, html:not(.js) .route { display: none; }
html:not(.js) .bar-cta { margin-left: auto; }

/* ---------- hero: the network map ---------- */
.hero { padding-top: calc(var(--bar) + clamp(24px, 4.5vh, 56px)); padding-bottom: clamp(36px, 6vw, 72px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-areas: "text me" "map me";
  grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 340px);
  column-gap: clamp(16px, 2.4vw, 44px);
  align-items: end;
}
.hero-text { grid-area: text; padding-bottom: 8px; }
.map-wrap { grid-area: map; position: relative; margin-top: clamp(20px, 3.4vh, 40px); }
.me { grid-area: me; align-self: end; }
.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  font-stretch: 114%; font-weight: 760; letter-spacing: -0.015em; line-height: 0.98;
}
.hero .hi-name { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 560; color: var(--ink-2); margin: 0.2em 0 0; line-height: 1.3; }
.roles { margin: 18px 0 0; font-size: clamp(1.12rem, 1.6vw, 1.42rem); font-weight: 680; line-height: 1.8; }
.roles span { display: inline-block; text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: .2em; text-underline-offset: .22em; text-decoration-skip-ink: none; white-space: nowrap; margin-right: .55em; }
.hero .intro { max-width: 60ch; font-size: clamp(1.05rem, 1.25vw, 1.2rem); margin: 14px 0 0; color: #26292d; }
.change { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; margin-top: 22px; }
.change-label { font-weight: 700; font-stretch: 90%; margin-right: 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--c); color: var(--ci, #fff);
  border-radius: 999px; padding: 4px 13px 4px 4px;
  font-weight: 650; font-size: .95rem; line-height: 1.25; text-decoration: none;
}
.pill:hover { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c); }
.pill .code { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.pill .code .ico { width: 15px; height: 15px; stroke-width: 2.4; }

.map { width: 100%; height: auto; overflow: visible; }
.map .track { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .casing { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.map .stn { fill: #fff; stroke: var(--ink); }
.map .hub { fill: #fff; stroke: var(--ink); }
.map .stn, .map .hub { pointer-events: none; }
.map .ring { fill: none; stroke: transparent; stroke-linecap: round; stroke-linejoin: round; }
.map a:focus-visible .ring { stroke: var(--ink); }
.map .axis { font-size: 13px; font-weight: 600; font-stretch: 87%; fill: var(--ink-2); }
.map .axis-now { fill: var(--ink); font-weight: 700; }
.map .tag text { font-family: var(--sans); font-size: 13.5px; font-weight: 700; }
.map .tag .code-c { fill: #fff; }
.map .tag use { stroke: var(--ink); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.map .ln { transition: opacity .25s; }
.map.focusing .ln { opacity: .16; }
.map.focusing .ln.on { opacity: 1; }
.map a { cursor: pointer; }
.map a:focus { outline: none; }
.map a:focus-visible .tag rect, .map a:focus-visible .tag circle { stroke: var(--ink); stroke-width: 3px; }
.scale-note { font-size: .84rem; color: var(--ink-2); margin: 8px 0 0; font-stretch: 90%; }

.me { position: relative; justify-self: stretch; margin: 0; display: flex; flex-direction: column; align-items: center; }
.me .frame { position: relative; width: 100%; border-radius: 999px 999px 26px 26px; overflow: hidden; background: #e4edfb; max-height: calc(100svh - var(--bar) - 150px); aspect-ratio: 3 / 5; }
.me img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.me .cap { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 999px; padding: 3px 11px 4px; font-size: .82rem; font-weight: 650; line-height: 1.3; }
.here {
  position: relative; margin: 0 0 12px;
  background: var(--yellow); color: #000; padding: 6px 12px 7px; border-radius: 8px;
  font-weight: 700; font-size: .92rem; line-height: 1.15; text-align: center; white-space: nowrap;
}
.here::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--yellow); }
.here span { display: block; font-weight: 600; font-size: .86rem; }

/* intro sequence: lines draw in order of their start year */
.map.drawing .track, .map.drawing .casing { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.map.drawn .track, .map.drawn .casing { transition: stroke-dashoffset 1.1s cubic-bezier(.5,0,.2,1) var(--delay, 0s); stroke-dashoffset: 0; }
.map.drawing .tag, .map.drawing .stn, .map.drawing .hub { opacity: 0; }
.map.drawn .tag, .map.drawn .stn, .map.drawn .hub { transition: opacity .35s ease var(--delay, 0s); opacity: 1; }
.map.drawn .tag { transition-delay: calc(var(--delay, 0s) + .75s); }
.js .me { animation: me-in .7s ease .35s both; }
@keyframes me-in { from { opacity: 0; } }

/* ---------- stations: each section wears its line colour ---------- */
.station { --tint: color-mix(in srgb, var(--line) 7%, #fff); --edge: color-mix(in srgb, var(--line) 32%, #fff); background: var(--tint); padding-bottom: clamp(56px, 8vw, 112px); }
.sign { background: var(--line); color: var(--on, #fff); position: relative; }
.sign::after { /* platform edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on, #fff) 34%, transparent) 0 30px, transparent 30px 46px);
}
.sign-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  column-gap: clamp(16px, 2.4vw, 32px);
  padding-block: clamp(26px, 3.6vw, 46px) clamp(18px, 2.4vw, 28px);
}
.sign .code {
  width: clamp(54px, 6vw, 80px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--deep, var(--line));
  display: grid; place-items: center;
}
.sign .code .ico { width: 54%; height: 54%; stroke-width: 2.1; }
.sign .codes { display: flex; }
.sign .codes .code { width: clamp(42px, 4.6vw, 60px); box-shadow: 0 0 0 4px var(--line); }
.sign .codes .code + .code { margin-left: -10px; }
.sign h1, .sign h2 { font-size: clamp(2rem, 5vw, 4.25rem); font-stretch: 112%; font-weight: 740; letter-spacing: -0.01em; }
.sign .post-title { font-size: clamp(1.9rem, 4.4vw, 3.6rem); font-stretch: 108%; max-width: 22ch; }
.sign .hi { font-size: clamp(1.1rem, 1.9vw, 1.6rem); font-weight: 520; margin: 6px 0 0; line-height: 1.3; }
.termini { margin: 0; text-align: right; font-stretch: 90%; font-weight: 680; font-size: clamp(1.05rem, 2vw, 1.7rem); white-space: nowrap; line-height: 1.1; }
.sign-role {
  border-top: 1.5px solid color-mix(in srgb, var(--on, #fff) 30%, transparent); padding-block: 12px 22px; margin: 0;
  font-size: 1.04rem; display: flex; flex-wrap: wrap; gap: 4px 28px;
}
.sign-role b { font-weight: 750; }
.post-meta { opacity: .9; font-stretch: 94%; margin: 8px 0 0; }

.lead { max-width: 64ch; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; margin: clamp(32px, 4vw, 48px) 0 0; }
.station-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(32px, 5vw, 80px); margin-top: clamp(32px, 4vw, 52px); align-items: start;
}
.subhead { font-size: 1.2rem; font-weight: 740; margin: 44px 0 8px; }
.clients { max-width: 64ch; margin: 0; }
.section-head { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-stretch: 110%; font-weight: 760; letter-spacing: -0.01em; line-height: 1.06; margin: clamp(32px, 4vw, 48px) 0 0; max-width: 22ch; text-wrap: balance; }

/* strip map: stops on one line */
.strip { --x: 132px; list-style: none; margin: 0; padding: 0; position: relative; }
.strip::before { content: ""; position: absolute; left: calc(var(--x) - 5px); width: 10px; top: 14px; bottom: 14px; background: var(--line); border-radius: 5px; }
.strip.cased::before { box-shadow: 0 0 0 1.5px var(--ink); }
.stop { position: relative; display: grid; grid-template-columns: calc(var(--x) - 34px) minmax(0, 1fr); column-gap: 68px; padding-block: 14px 22px; }
.stop::before {
  content: ""; position: absolute; left: calc(var(--x) - 12px); top: 18px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4.5px solid var(--ink); z-index: 1;
}
.stop.change-stop::before { width: 36px; left: calc(var(--x) - 18px); border-radius: 12px; }
.stop.now::before { background: var(--yellow); }
.stop.future::after {
  content: ""; position: absolute; left: calc(var(--x) - 7px); width: 14px; top: -22px; bottom: 0;
  background: repeating-linear-gradient(to bottom, var(--tint) 0 7px, transparent 7px 17px);
}
.stop.future::before { border-style: dashed; }
.stop:last-child.future::after { bottom: 14px; }
.stop time, .stop .when { text-align: right; font-stretch: 87%; font-weight: 650; color: var(--ink-2); font-size: 1rem; padding-top: 18px; line-height: 1.2; }
.stop h3, .stop h4 { font-size: 1.32rem; font-weight: 700; line-height: 1.22; padding-top: 16px; }
.stop :is(h3, h4) + p { margin-top: 6px; }
.stop p { max-width: 62ch; }
/* a story told as stops, no date column */
.strip.plain { --x: 14px; }
.strip.plain .stop { grid-template-columns: minmax(0, 1fr); column-gap: 0; padding-left: 46px; padding-block: 8px 20px; }
.strip.plain .stop::before { top: 12px; }
.strip.plain .stop h3 { padding-top: 8px; font-size: 1.42rem; }
.strip.plain .stop p { font-size: 1.12rem; line-height: 1.55; }
.story { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(22px, 3vw, 34px); }
.story-pics { display: grid; gap: 18px; position: sticky; top: calc(var(--bar) + 20px); }
.story-pics .shot img { border-radius: 18px; }
.badge { display: inline-block; vertical-align: 3px; margin-left: 8px; font-size: .78rem; font-weight: 700; line-height: 1; padding: 4px 8px 3px; border-radius: 999px; background: var(--yellow); color: #000; }

/* fact card beside a strip */
.board { background: #fff; border: 1.5px solid var(--edge); border-radius: 18px; padding: 22px 22px 20px; position: sticky; top: calc(var(--bar) + 20px); }
.board h3 { font-size: 1.1rem; font-weight: 750; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.board h3::before { content: ""; width: 26px; height: 10px; border-radius: 5px; background: var(--line); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); }
.board dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .98rem; }
.board dt { color: var(--ink-2); font-stretch: 90%; font-weight: 600; }
.board dd { margin: 0; font-weight: 540; }
.board .more { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid var(--edge); font-size: .98rem; font-weight: 700; }

/* big figures row */
.figures { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.figures.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#dashaguru .figures strong { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-stretch: 104%; }
.figures.three strong { font-size: clamp(1.3rem, 2.1vw, 1.75rem); font-stretch: 104%; }
.figures li { background: #fff; border: 1.5px solid var(--edge); border-radius: 18px; padding: 18px 18px 16px; }
.figures strong { display: block; font-size: clamp(1.7rem, 3vw, 2.5rem); font-stretch: 108%; font-weight: 760; line-height: 1.05; color: var(--deep, var(--line)); }
.figures span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .98rem; line-height: 1.35; }

/* product, venture and game cards with a picture */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 24px; margin-top: clamp(28px, 4vw, 44px); }
.card { --tint: color-mix(in srgb, var(--line) 7%, #fff); --edge: color-mix(in srgb, var(--line) 32%, #fff); background: #fff; border: 1.5px solid var(--edge); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.cards.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.cards.two-col .pic { aspect-ratio: 2 / 1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(24px, 3vw, 36px); }
.split .ticks { margin-top: 0; }
.split .shot img { box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--line) 70%, #000); }
.card .pic { display: block; aspect-ratio: 16 / 10; background: var(--tint); position: relative; overflow: hidden; border-bottom: 1.5px solid var(--edge); }
.card .pic img, .card .pic video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card .pic.contain img { object-fit: contain; padding: 14px; }
.card .pic.poster { aspect-ratio: 16 / 9; }
.card .pic.poster img { object-position: center; }
.card .pic video { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.card .pic.playing video { opacity: 1; }
.card .pic.tile { display: grid; place-items: center; color: var(--deep, var(--line)); }
.card .pic.tile .ico { width: 26%; height: auto; aspect-ratio: 1; stroke-width: 1.6; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card .when { font-stretch: 90%; font-weight: 650; color: var(--ink-2); font-size: .92rem; margin: 0; }
.card :is(h3, h4) { font-size: 1.3rem; font-weight: 740; line-height: 1.2; margin-top: 2px; }
.card .meta { color: var(--ink-2); font-size: .95rem; font-stretch: 94%; margin: 3px 0 8px; }
.card p { font-size: 1rem; line-height: 1.5; }
.card .stack { color: var(--ink-2); font-size: .92rem; font-stretch: 94%; margin-top: 8px; }
.card .foot-row { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.btn { display: inline-block; background: var(--line); color: var(--on, #fff); font-weight: 720; font-size: .98rem; border-radius: 999px; padding: 8px 16px; text-decoration: none; }
.btn:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 6px 14px; }
.btn.ghost:hover { box-shadow: none; background: var(--ink); color: #fff; }
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 650; font-size: .92rem; }
.st::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; }
.st.live::before { background: var(--ink); }
.st.building::before { background: linear-gradient(90deg, var(--ink) 50%, #fff 50%); }
.card.wide { grid-column: span 2; }
.card.wide .pic { aspect-ratio: 2 / 1; }

/* products: one wide row each, text beside a small gallery of real screens */
.products { display: grid; gap: clamp(20px, 2.6vw, 32px); margin-top: clamp(28px, 4vw, 44px); }
.product {
  --edge: color-mix(in srgb, var(--line) 32%, #fff);
  background: #fff; border: 1.5px solid var(--edge); border-radius: 22px; padding: clamp(18px, 2.4vw, 32px);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 48px); align-items: center;
  scroll-margin-top: calc(var(--bar) + 16px);
}
.product:nth-child(even) .product-text { order: 2; }
.product h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-stretch: 108%; font-weight: 760; letter-spacing: -0.01em; }
.product .tag { font-size: clamp(1.08rem, 1.5vw, 1.28rem); font-weight: 560; margin: 6px 0 0; color: var(--deep, var(--ink)); }
.product .ticks { margin-top: 18px; gap: 9px; }
.product .ticks li { font-size: 1.04rem; line-height: 1.45; }
.product .stack { color: var(--ink-2); font-size: .95rem; font-stretch: 94%; margin: 16px 0 0; }
.product .foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; }
.gallery { display: grid; gap: 10px; }
.gallery .main { width: 100%; height: auto; border-radius: 14px; border: 1.5px solid var(--edge); background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumbs img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; border: 1.5px solid var(--edge); background: #fff; }
.thumbs.phones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thumbs.phones img { border-radius: 14px; aspect-ratio: auto; }
.say { font-size: 1.12rem; font-weight: 560; margin: 10px 0 0; }
.listen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 12px; }
.listen label { display: grid; gap: 4px; font-weight: 650; font-size: .92rem; }
.listen audio { width: 100%; height: 38px; }

/* a row of screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(24px, 3vw, 36px); align-items: start; }
.shots.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1.5px solid var(--edge); background: #fff; }
.shot.phone img { border-radius: 26px; border: 5px solid var(--ink); }
.shot figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.shots.phones { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { background: #fff; border: 1.5px solid var(--edge); border-radius: 999px; padding: 4px 13px; font-size: .95rem; font-weight: 600; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; max-width: 62ch; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; border: 4.5px solid var(--line); background: #fff; }

/* study: IIM card, method line, facts, chart */
.iim { background: #fff; border: 1.5px solid var(--edge); border-radius: 18px; padding: 22px 24px; margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; }
.iim .mark { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--ink); }
.iim .mark .ico { width: 34px; height: 34px; }
.iim h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-stretch: 106%; font-weight: 740; }
.iim p { margin: 4px 0 0; }
.iim .when { font-stretch: 90%; font-weight: 700; font-size: 1.05rem; white-space: nowrap; margin: 0; }
.phd-title { font-size: clamp(1.4rem, 2.6vw, 2.15rem); font-stretch: 104%; font-weight: 720; line-height: 1.18; max-width: 30ch; margin-top: 10px; }
.kicker { font-weight: 720; font-size: 1.05rem; margin: clamp(40px, 5vw, 60px) 0 0; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 10px; border-radius: 5px; background: var(--line); box-shadow: 0 0 0 1.5px var(--ink); }
.method { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.method::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 10px; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); border-radius: 5px; }
.method li { position: relative; padding: 48px 24px 0 0; }
.method li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4.5px solid var(--ink); }
.method b { display: block; font-size: 1.18rem; margin-bottom: 4px; }
.method span { color: var(--ink-2); font-size: 1rem; display: block; max-width: 34ch; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.facts li { background: #fff; border: 1.5px solid var(--edge); border-radius: 18px; padding: 18px; }
.facts strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 104%; font-weight: 760; line-height: 1.1; margin-bottom: 6px; }
.facts span { color: var(--ink-2); font-size: 1rem; line-height: 1.4; display: block; }
.chart { margin: 16px 0 0; background: #fff; border: 1.5px solid var(--edge); border-radius: 18px; padding: 20px 22px 16px; max-width: 560px; }
.chart h3 { font-size: 1.08rem; font-weight: 740; margin-bottom: 10px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; }
.chart .bar:hover { fill: #ffd84a; }
.chart text { fill: var(--ink); font-family: var(--sans); }
.chart .lab { font-size: 14px; font-weight: 600; fill: var(--ink-2); }
.chart .val { font-size: 14px; font-weight: 700; }
.chart figcaption { color: var(--ink-2); font-size: .88rem; margin-top: 6px; }
.figure-pic { margin: 16px 0 0; max-width: 560px; }
.figure-pic img { border-radius: 18px; border: 1.5px solid var(--edge); background: #fff; width: 100%; height: auto; }
.figure-pic figcaption { color: var(--ink-2); font-size: .9rem; margin-top: 8px; }

/* events and notes */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(32px, 4vw, 52px); }
.two .strip { --x: 122px; }
.col-title { font-size: 1.2rem; font-weight: 740; margin-bottom: 8px; }
.notes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notes-list li { background: #fff; border: 1.5px solid var(--edge); border-radius: 18px; padding: 16px 20px 18px; position: relative; }
.notes-list li:hover { border-color: var(--line); }
.notes-list time { font-stretch: 90%; font-weight: 650; color: var(--ink-2); font-size: .95rem; }
.notes-list h4 { font-size: 1.3rem; font-weight: 740; line-height: 1.22; margin: 2px 0 6px; }
.notes-list h4 a { text-decoration: none; }
.notes-list h4 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.notes-list li:hover h4 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.notes-list p { color: var(--ink-2); font-size: 1rem; }

/* contact: every line runs into one hub */
.contact { background: #fff; }
.bundle { display: grid; gap: 5px; padding-top: clamp(40px, 6vw, 80px); }
.bundle i { display: block; height: 10px; background: var(--c); border-radius: 0 5px 5px 0; width: var(--w, 60%); }
.bundle i.cased { box-shadow: 0 0 0 1.5px var(--ink); }
.contact-body { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.contact h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-stretch: 112%; font-weight: 760; letter-spacing: -0.012em; }
.contact .hi { font-size: clamp(1.1rem, 1.9vw, 1.6rem); color: var(--ink-2); font-weight: 520; margin: 6px 0 0; }
.contact .lead { margin-top: 18px; }
.hub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 28px; }
.hub-mail {
  display: inline-block; font-size: clamp(1.25rem, 3.6vw, 2.6rem); font-stretch: 106%; font-weight: 740; letter-spacing: -0.01em;
  border: 5px solid var(--ink); border-radius: 999px; padding: .35em .8em; text-decoration: none; background: #fff; word-break: break-word;
}
.hub-mail:hover { background: var(--yellow); }
.foot { border-top: 1px solid var(--rule); padding-block: 22px 40px; color: var(--ink-2); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- notes pages and 404 ---------- */
.article { padding-top: var(--bar); }
.article .sign { --line: var(--tan); --on: #000; --deep: #7a4a12; }
.article-body { max-width: var(--max); margin: clamp(36px, 5vw, 64px) auto 0; padding-inline: var(--gutter); font-size: 1.2rem; line-height: 1.65; }
.article-body > * { max-width: 68ch; }
.article-body h2 { font-size: 1.6rem; font-stretch: 104%; margin: 1.8em 0 .5em; line-height: 1.2; }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 10px solid var(--tan); }
.article-body .back { margin-top: 3em; font-weight: 700; }
.article + footer { margin-top: clamp(48px, 7vw, 96px); }

/* ---------- menu for phones and tablets ---------- */
.menu { position: fixed; inset: var(--bar) 0 0 0; z-index: 29; background: #fff; overflow-y: auto; padding: 22px var(--gutter) 40px; }
.menu[hidden] { display: none; }
.menu ol { list-style: none; margin: 0; padding: 0; position: relative; }
.menu ol::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 6px; background: #c9ced6; border-radius: 3px; }
.menu li a { display: flex; align-items: center; gap: 18px; padding: 11px 0; text-decoration: none; font-size: 1.3rem; font-weight: 680; }
.menu li a .dot { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #fff; border: 7px solid var(--c); position: relative; z-index: 1; }
.menu li a[aria-current="true"] .dot { background: var(--c); }
.menu li a small { display: block; font-family: var(--deva); font-weight: 500; font-size: .95rem; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .bar-home .name { display: none; }
  .route a { min-width: 62px; padding-inline: 6px; }
}
@media (max-width: 1100px) {
  :root { --bar: 56px; }
  .route ol, .bar-cta { display: none; }
  .led { display: flex; }
  .route-btn {
    display: inline-flex; align-items: center; margin-left: auto;
    background: var(--blue); border: 0; color: #fff; border-radius: 999px;
    font: inherit; font-weight: 700; font-size: .95rem; padding: 7px 16px; cursor: pointer;
  }
  .route-btn[aria-expanded="true"] { background: var(--ink); }
  .hero-grid { grid-template-areas: "text me" "map map"; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; }
  .me .frame { width: 200px; max-height: min(440px, 46svh); }
  .station-body { grid-template-columns: minmax(0, 1fr); }
  .board { position: static; max-width: 640px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures, .figures.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures.three li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .cards:not(.two-col) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product:nth-child(even) .product-text { order: 0; }
  .two, .story { grid-template-columns: minmax(0, 1fr); }
  .story-pics { position: static; }
  .iim { grid-template-columns: auto minmax(0, 1fr); }
  .iim .when { grid-column: 2; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .bar { gap: 10px; }
  .views summary { font-size: .9rem; padding: 5px 12px; }
  .views-list { position: fixed; left: 12px; right: 12px; top: calc(var(--bar) + 8px); width: auto; }
  .led { height: 34px; padding-inline: 10px; }
  .led-text { font-size: .92rem; letter-spacing: 0.02em; }
  .hero-grid { grid-template-areas: "text text" "map me"; grid-template-columns: minmax(0, 1fr) 128px; column-gap: 8px; }
  .map-wrap { margin-top: 28px; }
  .map { width: auto; max-width: 100%; margin-inline: auto; }
  .me .frame { width: 128px; max-height: none; border-radius: 999px 999px 16px 16px; }
  .me .cap { display: none; }
  .me img { object-position: center 26%; transform: scale(1.32); transform-origin: 50% 26%; }
  .here { font-size: .8rem; padding: 5px 8px 6px; }
  .here span { font-size: .76rem; }
  .roles span { white-space: normal; }
  .sign-inner { grid-template-columns: auto minmax(0, 1fr); }
  .termini { grid-column: 1 / -1; text-align: left; margin-top: 12px; }
  .strip, .two .strip { --x: 14px; }
  .stop { grid-template-columns: minmax(0, 1fr); column-gap: 0; padding-left: 44px; padding-block: 10px 18px; }
  .stop::before { top: 14px; }
  .stop time, .stop .when { text-align: left; padding-top: 14px; font-size: .95rem; }
  .stop h3, .stop h4 { padding-top: 2px; font-size: 1.2rem; }
  .cards, .cards.two-col, .split { grid-template-columns: minmax(0, 1fr); }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product:nth-child(even) .product-text { order: 0; }
  .card.wide { grid-column: auto; }
  .card.wide .pic { aspect-ratio: 16 / 10; }
  .listen { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .shots, .shots.two-up { grid-template-columns: minmax(0, 1fr); }
  .shots.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: minmax(0, 1fr); }
  .method::before { left: 13px; right: auto; top: 14px; bottom: 14px; width: 10px; height: auto; }
  .method li { padding: 4px 0 26px 48px; }
  .method li::before { top: 0; left: 4px; }
}
@media (max-width: 400px) {
  .led-text { font-size: .82rem; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .bar, .menu { display: none; }
}
