/* Dark is the default again (Gobind, 2026-11-19 17:39 UTC), keeping the hand-made pass (no glow, no glass).
   Light mode is a switch beside the lake's time bar (theme.js); both palettes share the same variable names. */
:root {
  color-scheme: dark;
  --ink: #f3ede2;
  --ink-rgb: 243, 237, 226;
  --ink-soft: #d5ccbd;
  --ink-mute: #a8a092;
  --bg: #121626;
  --bg-2: #1a1f33;
  --card: #1c2236;
  --card-hover: #242b43;
  --art: #262d45;
  --line: rgba(243, 237, 226, 0.12);
  --line-strong: rgba(243, 237, 226, 0.28);
  --panel: rgba(12, 15, 28, 0.62);
  --panel-line: rgba(243, 237, 226, 0.18);
  --accent: #ffb46b;
  --accent-ink: #1f1b2e;
  --accent-soft: rgba(255, 180, 107, 0.12);
  --scene-ink: #f5efe4;
  --scene-accent: #ffb46b;
  --hook-mix: #f3ede2;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  /* Light mode by colour theory (Gobind, 2026-11-20): a split-complementary scheme. A cool periwinkle base
     (hue ~230) for the page and surfaces, a warm coral accent (its complement, ~15) for links and actions,
     and a deep teal (~175, the split) for eyebrows and secondary marks. Every text pair passes WCAG AA. */
  color-scheme: light;
  --ink: #1a1f3a;
  --ink-rgb: 26, 31, 58;
  --ink-soft: #3d4466;
  --ink-mute: #565d7e;
  --bg: #eef0fb;
  --bg-2: #e2e6f7;
  --card: #ffffff;
  --card-hover: #f7f8ff;
  --art: #e4e8f8;
  --line: rgba(58, 70, 140, 0.14);
  --line-strong: rgba(58, 70, 140, 0.32);
  --panel: rgba(16, 20, 38, 0.55);
  --panel-line: rgba(26, 31, 58, 0.16);
  --accent: #b03f22;
  --accent-2: #0e6b63;
  --accent-ink: #ffffff;
  --accent-soft: rgba(176, 63, 34, 0.1);
  --hook-mix: #1a1f3a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* ---------- hero: the lake as a quiet background ---------- */
.hero {
  position: relative;
  /* The lake fills the top half of the screen; the projects start in the bottom half. */
  height: 50vh;
  height: 50svh;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg-2);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: saturate(0.85); }
/* Softens the scene and fades it into the page so the text, not the lake, is the focus. */
.veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 22, 38, 0.30) 0%, rgba(18, 22, 38, 0.18) 35%, rgba(26, 31, 51, 0.72) 78%, var(--bg-2) 100%);
}

.intro {
  color: var(--scene-ink);
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(20px, 5vh, 44px);
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(10, 14, 30, 0.5), 0 2px 18px rgba(10, 14, 30, 0.45);
}
.intro .eyebrow { margin-bottom: 6px; color: var(--scene-accent); }
.intro h1 { margin: 0; font-size: clamp(30px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.015em; }
.intro h1 + p { margin: 10px 0 0; max-width: 560px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: rgba(var(--ink-rgb), 0.86); }

/* A small time control in the corner; it stays out of the way. */
.hud {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  /* Always a dark, solid-enough bar with light text so it reads over day and night scenes in both themes. */
  background: rgba(12, 15, 28, 0.68);
  border: 1px solid rgba(245, 239, 228, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: var(--scene-ink);
  font-size: 13px;
  z-index: 3;
}
#time { font-weight: 700; font-variant-numeric: tabular-nums; }
#phase { color: var(--scene-accent); }
.hud button, .hud select {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--scene-ink);
  background: rgba(245, 239, 228, 0.12);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 4px 10px; min-width: 44px; min-height: 28px;
  cursor: pointer;
}
.hud select { appearance: none; -webkit-appearance: none; text-align: center; text-align-last: center; }
.hud select option { color: #111; background: #fff; }
.hud button:hover, .hud select:hover { background: rgba(245, 239, 228, 0.18); }
.hud button:focus-visible, .hud select:focus-visible, #scrub:focus-visible, .card:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
#scrub { width: 120px; accent-color: var(--scene-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .hud { left: 14px; right: 14px; padding-left: 12px; }
  #phase { display: none; }
  #scrub { flex: 1; width: auto; min-width: 0; }
}

/* ---------- ideas section ---------- */
.ideas {
  position: relative;
  padding: 32px 0 96px;
  background: var(--bg);
}
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ideas h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.01em; }
.lede { max-width: 620px; margin: 12px 0 40px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; max-width: 840px; }

.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.card:hover, .card:focus-visible { border-color: rgba(var(--ink-rgb), 0.34); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card-art {
  position: relative;
  height: 170px;
  background: var(--art);
  overflow: hidden;
}
.card-art-filesync { background: var(--art); }
.card-art-filesync .shot { height: auto; width: 56%; border-radius: 8px; border-width: 0; }
.card-art-filesync .shot-back { right: 30%; top: 22px; }
.card-art-filesync .shot-front { right: 6%; top: 48px; }
.card-art-pager { background: var(--art); }
.shot {
  position: absolute;
  width: 82px;
  border-radius: 12px;
  border: 2px solid #0c0e16;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.shot-back { right: 30%; top: 26px; transform: rotate(-8deg); }
.shot-front { right: 9%; top: 16px; transform: rotate(5deg); }
.app-icon {
  position: absolute; left: 16px; bottom: 14px;
  width: 56px; height: 56px; border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 19px; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.card p.hook { font-size: 15px; font-weight: 700; line-height: 1.3; color: color-mix(in srgb, rgb(var(--glow)) 62%, var(--hook-mix)); }
.app-hero .hook { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: color-mix(in srgb, rgb(var(--glow)) 62%, var(--hook-mix)); }
.quote { margin: 4px 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid rgb(var(--glow)); font-size: 18px; font-weight: 600; color: var(--ink); }
.status {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(176, 90, 20, 0.3);
}
/* On the small cards the status chip sits on the picture, so both titles line up. */
.card .status { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--card); }
.status-live { color: #2f7d4f; background: rgba(47, 125, 79, 0.1); border-color: rgba(47, 125, 79, 0.3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.07); color: var(--ink-soft); }
.more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent); }
.card:hover .more span { display: inline-block; transform: translateX(4px); transition: transform 0.2s; }

.shelf + .shelf { margin-top: 88px; }
.card-art-hw { background: var(--art); }
.card-art-hw2 { background: var(--art); }
.hw-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.hw-art .led { animation: blink 1.6s steps(2, start) infinite; }
.hw-art .head { animation: slide 3.2s ease-in-out infinite alternate; }
@keyframes blink { to { visibility: hidden; } }
@keyframes slide { from { transform: translateX(-50px); } to { transform: translateX(50px); } }
.status-soon { color: var(--ink-soft); background: rgba(var(--ink-rgb), 0.08); border-color: var(--line); }
.card-soon { cursor: default; }
@media (prefers-reduced-motion: reduce) { .hw-art .led, .hw-art .head { animation: none; } }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .shot, .app-icon { transition: none; animation: none; }
}

@media (max-width: 560px) {
  .card-art { height: 160px; }
  .ideas h2 { font-size: 28px; }
  .lede { font-size: 15px; margin-bottom: 24px; }
  .shelf + .shelf { margin-top: 56px; }
  .shot { width: 80px; }
}

/* ---------- app pages ---------- */
.page-top {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--ink); }
.page-top .crumb { font-size: 14px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-hero { padding: 56px 0 24px; }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.app-hero img { width: 112px; height: 112px; border-radius: 24px; }
.app-hero h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.01em; }
.app-hero p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.app-hero .chips { margin-top: 14px; }
.app-hero .repo { margin-top: 14px; font-size: 16px; }
.app-hero .repo a { color: color-mix(in srgb, rgb(var(--glow)) 62%, var(--hook-mix)); font-weight: 600; text-decoration: none; }
.app-hero .repo a:hover { text-decoration: underline; }
@media (max-width: 560px) { .app-hero .wrap { grid-template-columns: 1fr; } .app-hero img { width: 88px; height: 88px; border-radius: 20px; } }

.gallery {
  display: flex; gap: 18px; overflow-x: auto; padding: 20px 16px 28px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  max-width: 1080px; margin: 0 auto;
}
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.gallery img {
  height: 440px; width: auto; border-radius: 26px; border: 4px solid #0c0e16;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}
.gallery img:hover { transform: translateY(-6px); }
.gallery img.wide { height: auto; width: 360px; border-radius: 22px; border-width: 0; }
.gallery img.mac { height: 380px; width: auto; border-radius: 14px; border-width: 0; }
.gallery figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-mute); text-align: center; }
@media (max-width: 560px) { .gallery img { height: 380px; } .gallery img.wide { width: 300px; } .gallery img.mac { height: 220px; } }

.layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 24px 0 80px; }
.toc { position: sticky; top: 80px; align-self: start; }
.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.toc a:hover, .toc a.on { background: rgba(var(--ink-rgb), 0.07); color: var(--ink); }
.toc a.on { box-shadow: inset 2px 0 0 rgb(var(--glow)); }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; gap: 16px; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 6px; } .toc a { background: rgba(var(--ink-rgb), 0.06); } }

.articles { display: grid; gap: 28px; min-width: 0; }
.article {
  scroll-margin-top: 80px;
  padding: 28px 30px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.article .num { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, rgb(var(--glow)) 62%, var(--hook-mix)); }
.article h2 { margin: 6px 0 12px; font-size: 26px; }
.article p, .article li { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.article p { margin: 0 0 12px; }
.article ul { margin: 0 0 12px; padding-left: 20px; }
.article ol.steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; }
.article ol.steps li::marker { color: rgb(var(--glow)); font-weight: 700; }
.article code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 6px; background: rgba(var(--ink-rgb), 0.08); overflow-wrap: anywhere; }
.article strong { color: var(--ink); }
.article .pics { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.article .pics img { height: 260px; width: auto; border-radius: 18px; border: 3px solid #0c0e16; }
.article .pics img.mac { height: auto; width: min(100%, 720px); border: 0; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.article .pics img.wide { height: auto; width: min(100%, 340px); border: 0; border-radius: 16px; }
@media (max-width: 560px) { .article { padding: 22px 18px; } .article .pics img { height: 220px; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.fact { padding: 14px 16px; border-radius: 14px; background: rgba(var(--ink-rgb), 0.05); border: 1px solid var(--line); }
.fact b { display: block; font-size: 20px; color: var(--ink); }
.fact span { font-size: 13px; color: var(--ink-mute); }


.article .pics + p { margin-top: 16px; }

/* Related projects at the end of each project page. */
.related { margin-top: 8px; }
.related-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.04);
  color: var(--ink); text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.related-card:hover, .related-card:focus-visible { border-color: rgba(var(--ink-rgb), 0.34); }
.related-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.related-card img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.related-card b { display: block; font-size: 17px; }
.related-card small { display: block; color: var(--ink-mute); font-size: 13px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .related-card { transition: none; } }

/* ---------- News card and page icon (CSS only) ---------- */
.card-art-news { background: var(--art); }
.card-art-news .na-sheet { height: 128px; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; background: var(--art); overflow: hidden; }
.card-art-news .na-sheet.shot-back { background: #1d2338; }
.na-sheet span { display: block; flex: 0 0 auto; height: 5px; border-radius: 3px; background: rgba(var(--ink-rgb), 0.28); }
.na-sheet span.na-mast { height: 8px; width: 60%; background: #e86a8c; }
.na-sheet span.na-img { height: 34px; border-radius: 5px; background: #e8a06a; }
.na-sheet span.short { width: 64%; }
.na-sheet.shot-back span { background: rgba(var(--ink-rgb), 0.22); }
.na-sheet.shot-back span.na-img { background: #5a8fd8; }
.na-sheet.shot-back span.na-mast { background: #ffb46b; }
.news-icon { background: #f7a9bd; }
.news-icon::before, .news-icon::after { content: ""; position: absolute; left: 20%; right: 20%; }
.news-icon::before { top: 20%; height: 13%; border-radius: 999px; background: #3a2333; }
.news-icon::after {
  top: 44%; height: 36%;
  background:
    linear-gradient(#6b4256, #6b4256) 0 0 / 100% 18% no-repeat,
    linear-gradient(#6b4256, #6b4256) 0 50% / 100% 18% no-repeat,
    linear-gradient(#6b4256, #6b4256) 0 100% / 62% 18% no-repeat;
}
.news-icon-lg { position: relative; width: 112px; height: 112px; border-radius: 24px; }
.app-hero .open-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  color: #fff; background: color-mix(in srgb, rgb(var(--glow)) 70%, var(--hook-mix));
  transition: filter 0.2s ease;
}
.app-hero .open-btn:hover { filter: brightness(1.08); }
.app-hero .open-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) { .news-icon-lg { width: 88px; height: 88px; border-radius: 20px; } }

/* Link to the live dashboard, under the intro line. */
.dash-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; text-shadow: none;
  background: var(--card); border: 1px solid var(--line-strong);
  transition: background 0.2s;
}
.dash-link:hover { background: var(--card-hover); }
.dash-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 8px rgba(52, 199, 89, 0.8); }

/* News card: whole card opens the front page; the two links sit above that cover. */
.card-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; position: relative; z-index: 2; }
.card-actions .more { margin-top: 0; text-decoration: none; }
.card-actions .more:hover { text-decoration: underline; }
.more-soft { color: var(--ink-mute); font-weight: 600; }
.card-art-news .na-sheet { position: absolute; }
.card-art-news .na-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.card-art-news .na-live .na-photo { opacity: 1; }

/* Latest news: a sideways carousel fed by news.json, then the archive (home-news.js). */
.trending .lede a { color: var(--accent); font-weight: 700; text-decoration: none; }
.trending .lede a:hover { text-decoration: underline; }
.news-rail { position: relative; }
.news-row {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 6px 4px 18px; margin: -6px -4px 0;
  scrollbar-width: thin; scrollbar-color: rgba(var(--ink-rgb), 0.25) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%);
  scroll-behavior: smooth;
}
.news-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.news-card {
  flex: 0 0 clamp(240px, 26%, 300px); scroll-snap-align: start;
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.news-card:hover { border-color: rgba(var(--ink-rgb), 0.34); background: var(--card-hover); }
/* Section colours (News look brief 2026-11-20): three families from the site palette, AA on the card.
   Dark: amber, teal, periwinkle. Light: coral, deep teal, deep periwinkle (split-complementary). */
.news-row { --sec-warm: var(--accent); --sec-teal: #5fcfc1; --sec-cool: #aeb7ff; }
:root[data-theme="light"] .news-row { --sec-warm: #b03f22; --sec-teal: #0e6b63; --sec-cool: #3a47a8; }
:root[data-theme="light"] .news-card { box-shadow: 0 1px 3px rgba(26, 31, 58, 0.06); }
.news-warm { --sec: var(--sec-warm); }
.news-teal { --sec: var(--sec-teal); }
.news-cool { --sec: var(--sec-cool); }
/* One large lead story, then the standard cards. */
.news-card.news-lead { flex-basis: clamp(300px, 40%, 460px); }
.news-lead .news-body h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; }
.news-lead .news-text-art { padding: 20px 22px; }
.news-lead .news-text-source { font-size: 28px; }
.news-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-thumb { aspect-ratio: 16 / 9; background: var(--art); overflow: hidden; }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-text-art {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px 16px;
  background: var(--art); border-top: 3px solid var(--sec, var(--accent));
}
.news-text-section { font-size: 13px; font-weight: 700; color: var(--sec, var(--accent)); }
.news-text-source { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.news-meta { margin: 0; font-size: 12px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-section { color: var(--sec, var(--accent)); font-weight: 700; }
.news-body h3 { margin: 0; font-size: 15px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-ext { color: var(--ink-mute); font-weight: 400; }
.news-also { margin: 0; font-size: 12px; color: var(--ink-soft); }
.news-end { justify-content: center; align-items: flex-start; gap: 10px; padding: 24px; min-height: 200px; background: var(--card); }
.news-end p { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.news-end-link { color: var(--accent); font-weight: 700; font-size: 14px; }
.news-sentinel { flex: 0 0 1px; align-self: stretch; }
.rail-btn {
  position: absolute; top: calc(50% - 30px); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; padding: 0 0 3px; font: 700 26px/1 var(--font); color: var(--ink); cursor: pointer;
  background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 1px 4px rgba(var(--ink-rgb), 0.12);
  transition: opacity 0.2s, background 0.2s;
}
.rail-prev { left: -14px; }
.rail-next { right: -14px; }
.rail-btn:hover:not(:disabled) { background: var(--card-hover); }
.rail-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
@media (hover: none), (max-width: 720px) { .rail-btn { display: none; } }
@media (max-width: 520px) { .news-card { flex-basis: 78%; } .news-card.news-lead { flex-basis: 88%; } }
.foot-analytics { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.foot-analytics svg { opacity: 0.8; }
@media (prefers-reduced-motion: reduce) {
  .news-row { scroll-behavior: auto; }
  .news-card, .rail-btn, .card-art-news .na-photo { transition: none; }
  .news-card:hover { transform: none; }
}

/* Live links in the hero: one pill per live page (same style), newest first. */
.dash-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.dash-links .dash-link { margin-top: 0; }
.dash-link-news .dash-dot { background: #ff5a5f; box-shadow: 0 0 8px rgba(255, 90, 95, 0.8); animation: dash-pulse 2s ease-in-out infinite; }
@keyframes dash-pulse { 50% { box-shadow: 0 0 2px rgba(255, 90, 95, 0.4); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .dash-link-news .dash-dot { animation: none; } }

/* Every homepage section is a sideways row (like Latest news) with a "See all" link to its page. */
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.shelf-head h2 { margin-bottom: 0; }
.see-all {
  flex: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none;
  color: var(--accent); background: rgba(255, 180, 107, 0.1); border: 1px solid rgba(255, 180, 107, 0.28);
  transition: background 0.2s;
}
.see-all:hover { background: rgba(255, 180, 107, 0.18); }
.see-all:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shelf-rail { position: relative; margin-top: 12px; }
.cards.cards-row {
  display: flex; gap: 20px; max-width: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 6px; padding: 8px 6px 22px; margin: -8px -6px 0;
  scrollbar-width: thin; scrollbar-color: rgba(var(--ink-rgb), 0.25) transparent; scroll-behavior: smooth;
}
.cards.cards-row > .card { flex: 0 0 clamp(260px, 30%, 320px); scroll-snap-align: start; }
.cards.cards-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 24px; }
.shelf-rail .rail-btn { top: calc(50% - 32px); }
@media (max-width: 520px) { .cards.cards-row > .card { flex-basis: 82%; } .shelf-head { align-items: center; } .see-all { margin-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .cards.cards-row { scroll-behavior: auto; } }

/* Section pages (/projects/, /agents/, /hardware/): every item of one section in a grid. */
.section-page { padding: 32px 0 72px; }
.section-page .back { display: inline-block; margin-bottom: 18px; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.section-page .back:hover { color: var(--ink); }
.section-page h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.01em; }
.section-page .cards { max-width: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.section-page .lede { margin-bottom: 8px; }
.section-page .count { color: var(--ink-mute); font-size: 14px; margin: 0 0 24px; }
/* "See all" is an arrow only: a round button at the right of each section title. */
.see-all { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; font-size: 20px; }
.trending .shelf-head { margin-bottom: 16px; }

/* Homepage News: when the front page was last rebuilt. */
.news-updated { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.news-updated[hidden] { display: none; }

/* One card format everywhere (Gobind, 2026-11-17): project, team and hardware cards use the same
   size and layout as the Latest news cards: a 16:9 picture, a short meta line, a title of up to
   three lines and one short line under it. The full description lives on each article. */
.cards-row > .card {
  flex: 0 0 clamp(240px, 26%, 300px); border-radius: 12px;
}
.cards-row .card-art { height: auto; aspect-ratio: 16 / 9; }
.cards-row .card-body { padding: 12px 14px 14px; gap: 6px; }
.cards-row .card-head { gap: 6px; }
.cards-row .card h3 { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards-row .card p.hook { font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
.cards-row .card-body > p:not(.hook),
.cards-row .card .chips,
.cards-row .card .more,
.cards-row .card .card-actions { display: none; }
.cards-row .app-icon { width: 44px; height: 44px; border-radius: 11px; left: 12px; bottom: 10px; }
@media (max-width: 520px) { .cards.cards-row > .card { flex-basis: 78%; } }
.cards.cards-row > .card { flex: 0 0 clamp(240px, 26%, 300px); }
.news-body, .cards-row .card-body { min-height: 128px; }
@media (max-width: 520px) { .cards.cards-row > .card { flex-basis: 78%; } }

/* Section pages (Gobind, 2026-11-17): after "See all", every card is a large feature card:
   a big 16:10 picture with the screenshots blown up, the full description, chips and the link.
   The homepage rows keep the small, equal-size cards above. */
.section-page .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.section-page .cards > .card { border-radius: 14px; }
.section-page .card-art { height: auto; aspect-ratio: 16 / 10; }
.section-page .shot { width: 27%; border-radius: 18px; border-width: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.section-page .shot-back { right: 33%; top: 9%; }
.section-page .shot-front { right: 8%; top: 5%; }
.section-page .card-art-filesync .shot { width: 58%; border-radius: 12px; border-width: 0; }
.section-page .card-art-filesync .shot-back { right: 30%; top: 12%; }
.section-page .card-art-filesync .shot-front { right: 5%; top: 26%; }
.section-page .app-icon { width: 72px; height: 72px; border-radius: 18px; left: 22px; bottom: 20px; z-index: 1; }
.section-page .card .status { top: 18px; left: 18px; font-size: 12px; padding: 5px 11px; }
.section-page .card-body { padding: 22px 24px 24px; gap: 12px; }
.section-page .card h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.section-page .card p.hook { font-size: 17px; line-height: 1.35; }
.section-page .card-body > p:not(.hook) { font-size: 15.5px; line-height: 1.6; }
.section-page .card .more { margin-top: auto; padding-top: 4px; font-size: 15px; }
.section-page .card .card-actions { margin-top: auto; }
@media (max-width: 520px) {
  .section-page .cards { gap: 20px; }
  .section-page .card-body { padding: 18px 18px 20px; }
  .section-page .card h3 { font-size: 22px; }
  .section-page .app-icon { width: 56px; height: 56px; border-radius: 14px; left: 16px; bottom: 14px; }
}

/* Layout polish (Gobind, 2026-11-17): calmer hero, tighter sections, arrow beside the title,
   even spacing around each section's description, lake controls inside the content edge. */
.intro .intro-line { margin: 6px 0 0; max-width: 560px; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.5; color: var(--ink-soft); }
.hud { right: max(14px, calc((100vw - 1080px) / 2)); }
.shelf + .shelf { margin-top: 48px; }
.shelf-head { justify-content: flex-start; align-items: center; gap: 14px; }
.shelf-head .see-all { margin-bottom: 0; }
.shelf .lede { margin: 8px 0 16px; }
@media (max-width: 640px) { .hud { right: 14px; } }
@media (max-width: 560px) { .shelf + .shelf { margin-top: 36px; } }
/* Section titles are the links to their pages (no separate arrow). */
.title-link { color: inherit; text-decoration: none; border-radius: 6px; transition: color 0.2s; }
.title-link:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.title-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Section descriptions span the full content width, like the card rows. */
.shelf .lede { max-width: none; }

/* Lake banner fully visible (Gobind, 2026-11-18): no dimming layer over the scene, only a thin
   fade at the very bottom into the page; "Lakeside" sits low, near that edge. */
#scene { filter: none; }
.veil { background: linear-gradient(180deg, transparent 0%, transparent 86%, var(--bg-2) 100%); }
.intro { bottom: clamp(8px, 2vh, 16px); }

/* Short articles without a table of contents use the full width (Gobind 2026-11-18: short, standalone reads). */
.layout > .articles:only-child { grid-column: 1 / -1; width: 100%; max-width: 780px; }

/* Every card in a row is the same height (Gobind 2026-11-18): titles and hooks stop at two lines. */
.cards-row .card-head h3, .cards-row .card-body > .hook { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* The office banner (Gobind, 2026-11-19): exactly the Lakeside banner's format. Same full width and
   height, no dimming layer (only the thin fade at the bottom), "The office" low at the content edge,
   and the same time bar in the same place. Only the scene differs. */
.office-banner {
  position: relative;
  width: 100vw; margin: 0 0 0 calc(50% - 50vw);
  height: 79vh; height: 79svh; min-height: 520px;           /* floors a little taller again, same proportions (Gobind, 2026-11-20) */
  overflow: hidden; background: var(--bg-2);
}
.office-scroll { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.office-scroll::-webkit-scrollbar { display: none; }
/* At least 900 wide: on phones the building keeps its size and scrolls sideways by hand. */
#office { display: block; width: max(100%, 900px); height: 100%; }
.office-rent:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.office-rent:focus { position: absolute; left: 16px; top: 16px; z-index: 3; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #1f1b2e; font-weight: 700; text-decoration: none; }
.office-banner .veil { background: linear-gradient(180deg, transparent 0%, transparent 95%, var(--bg-2) 100%); }
.office-banner .intro { pointer-events: none; }
.office-banner .hud { top: 14px; }
#office-time { font-weight: 700; font-variant-numeric: tabular-nums; }
#office-phase { color: var(--scene-accent); }
#office-scrub { width: 120px; accent-color: var(--scene-accent); }
#office-scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.office-note { margin-top: 0; }
@media (max-width: 640px) {
  #office-phase { display: none; }
  #office-scrub { flex: 1; width: auto; min-width: 0; }
}

.kit-note { font-size: 14px; color: var(--ink-soft); margin: 4px 0 18px; }

/* Hand-made pass (2026-11-19): real pictures on cards, signups, a person, an About page. */
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art-contain .card-photo { object-fit: contain; padding: 8% 10%; }
.intro .eyebrow { color: var(--accent); text-shadow: none; }

.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 16px/1.3 var(--font); }
.nl-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.nl-btn { flex: 0 0 auto; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 16px/1 var(--font); cursor: pointer; }
.nl-btn:hover { filter: brightness(1.08); }
.nl-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.nl-status { font-size: 14px; min-height: 1.4em; color: var(--ink-soft); margin: 0; }
.nl-status[data-kind=error] { color: #b3261e; }
.nl-status:empty { display: none; }
.nl-fine { font-size: 13px; color: var(--ink-mute); margin: 0; }
.nl-done { padding: 12px 16px; border-radius: 8px; background: rgba(47, 125, 79, 0.1); color: var(--ink); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .nl-btn { width: 100%; } }

.signup { margin: 64px 0 0; padding: 26px 28px; max-width: 760px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; }
.signup h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.01em; }
.signup p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.55; max-width: 620px; }
.signup .nl-form p { margin: 0; }
.signup + .shelf { margin-top: 72px; }
.app-page-signup { margin: 8px 0 28px; }
@media (max-width: 560px) { .signup { padding: 20px 18px; margin-top: 44px; } }

.person { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin: 88px 0 0; max-width: 760px; }
.person-photo { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--art); border: 1px solid var(--line-strong); color: var(--ink-soft); font: 700 40px/1 var(--font); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.person p { margin: 0 0 8px; line-height: 1.6; color: var(--ink-soft); }
.person-links a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; gap: 14px; margin-top: 56px; } .person-photo { width: 84px; height: 84px; font-size: 32px; } }
/* ---------- The Studio (Gobind, 2026-11-19) ----------
   The old projects row, now a floor of the office: a dark studio with a desk, and every project is a
   screen on it. Screens switch on one by one as the floor scrolls into view; a slow light sweeps the
   wall and the REC light breathes. Content and links are unchanged. */
.studio-floor {
  --studio: 224, 96, 72;
  position: relative; margin-top: 4px; padding: 46px 18px 8px; border-radius: 14px; overflow: hidden; isolation: isolate;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 46px, transparent 46px 92px),
    linear-gradient(#171821, #101118 72%, #0c0d12);
  border: 1px solid rgba(var(--studio), 0.18);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.studio-deco { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.studio-rec {
  position: absolute; top: 14px; right: 18px; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  color: #f5efe4; background: rgba(var(--studio), 0.18); border: 1px solid rgba(var(--studio), 0.45);
}
.studio-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--studio)); animation: studio-rec 1.8s ease-in-out infinite; }
.studio-zones { position: absolute; top: 17px; left: 22px; display: flex; gap: 18px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--ink-rgb), 0.32); }
.studio-zones span:nth-child(5) { color: rgba(var(--studio), 0.75); }
.studio-sweep {
  position: absolute; top: 0; bottom: 0; width: 260px; left: -300px;
  background: linear-gradient(90deg, transparent, rgba(var(--studio), 0.08), rgba(255, 236, 220, 0.06), transparent);
  animation: studio-sweep 9s ease-in-out infinite;
}
/* the desk the screens stand on */
.studio-floor .shelf-rail::after {
  content: ""; position: absolute; left: -18px; right: -18px; bottom: 0; height: 26px; z-index: -1;
  background: linear-gradient(#3a2c26, #22191a); border-top: 2px solid rgba(var(--studio), 0.35);
}
.studio-floor .cards.cards-row { padding-bottom: 50px; }
/* each card is a monitor: dark bezel, a stand, a screen glow */
.studio-floor .cards-row > .card {
  overflow: visible; border: 7px solid #0b0c12; border-radius: 18px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 14px rgba(0, 0, 0, 0.4);
}
.studio-floor .cards-row > .card .card-art { border-radius: 11px 11px 0 0; }
.studio-floor .cards-row > .card::after { border-radius: 11px; }
.studio-floor .cards-row > .card::before {
  content: ""; position: absolute; left: 50%; bottom: -33px; width: 92px; height: 26px; transform: translateX(-50%); z-index: -1;
  background:
    linear-gradient(#20222c, #20222c) 50% 0 / 16px 20px no-repeat,
    linear-gradient(#2a2c38, #15161d) 50% 100% / 92px 7px no-repeat;
  border-radius: 0 0 6px 6px;
}
.studio-floor .cards-row > .card:hover, .studio-floor .cards-row > .card:focus-visible {
  border-color: #0b0c12; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 6px 14px rgba(0, 0, 0, 0.4);
}
/* a faint scanline on every screen */
.studio-floor .cards-row > .card .card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(transparent 0, rgba(255, 255, 255, 0.07) 50%, transparent 100%) 0 -60px / 100% 60px no-repeat;
  animation: studio-scan 6s linear infinite; animation-delay: calc(var(--i, 0) * -1.3s);
}
.card-art-studio { display: grid; place-items: center; background: #2b2222; }
.card-art-studio .app-icon { position: static; width: 64px; height: 64px; }
@keyframes studio-scan { to { background-position: 0 calc(100% + 60px); } }
@keyframes studio-sweep { 0%, 15% { left: -300px; } 85%, 100% { left: calc(100% + 40px); } }
@keyframes studio-rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (max-width: 640px) {
  .studio-floor { padding: 42px 10px 6px; border-radius: 22px; margin-inline: -4px; }
  .studio-zones { gap: 10px; font-size: 9px; left: 14px; }
  .studio-zones span:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-sweep, .studio-rec::before, .studio-floor .cards-row > .card .card-art::after { animation: none; }
}

/* ---------- the theme switch, inside the lake's time bar ---------- */
.hud .theme-toggle { display: inline-flex; align-items: center; gap: 6px; }
.theme-toggle .ti { width: 12px; height: 12px; border-radius: 50%; background: #f5efe4; box-shadow: inset -4px -2px 0 0 #2a3150; }
:root[data-theme="light"] .theme-toggle .ti { background: #ffcf7a; box-shadow: 0 0 0 2px rgba(255, 207, 122, 0.35); }

/* Phones: a bigger, taller office so every detail stays legible (Gobind, 2026-11-19 17:45 UTC); it scrolls sideways as before. */
@media (max-width: 640px) {
  .office-banner { height: 88vh; height: 88svh; min-height: 600px; }
  #office { width: max(100%, 1120px); }
}

/* Fixed-size HUD controls (Gobind, 2026-11-19): the time, phase and every button keep the same width whatever they show. */
#time, #office-time { display: inline-block; min-width: 5.6em; text-align: center; white-space: nowrap; }
#phase, #office-phase { display: inline-block; width: 6.4em; text-align: center; white-space: nowrap; }
.hud button, .hud select { width: 72px; min-width: 72px; padding-left: 0; padding-right: 0; text-align: center; justify-content: center; flex: none; }
@media (max-width: 640px) {
  #phase, #office-phase { display: none; }
  .hud button, .hud select { width: 60px; min-width: 60px; }
}

/* The live Studio floor (homepage Studio shelf and the Studio page). */
.studio-stage { position: relative; margin: 6px 0 8px; border-radius: 18px; overflow: hidden; background: #0e1222; border: 1px solid rgba(var(--ink-rgb), 0.12); }
.studio-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.studio-scroll::-webkit-scrollbar { display: none; }
.studio-canvas { display: block; width: max(100%, 900px); height: clamp(320px, 38vw, 460px); }
@media (max-width: 640px) { .studio-canvas { width: 1000px; height: 360px; } }

/* The About footnote at the bottom of the homepage. */
.footnote { margin: 72px 0 0; padding-top: 18px; border-top: 1px solid rgba(var(--ink-rgb), 0.14); max-width: 760px; }
.footnote p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.footnote a { color: var(--accent); font-weight: 600; }

/* Article thumbnails (2026-11-19): every article has its own drawing. */
.related-card img.thumb { width: 68px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.card-art-thumb .card-photo { object-fit: cover; object-position: center; }
@media (max-width: 560px) { .related-card img.thumb { width: 60px; height: 50px; } }


/* Light mode details (2026-11-20): coloured, not bland. */
:root[data-theme="light"] body { background: linear-gradient(180deg, #eef0fb 0%, #f3eefb 45%, #fbf0ea 100%) fixed; }
:root[data-theme="light"] .eyebrow { color: var(--accent-2); }
:root[data-theme="light"] .card { border-color: rgba(58, 70, 140, 0.12); box-shadow: 0 1px 2px rgba(40, 50, 110, 0.06), 0 8px 22px rgba(60, 70, 150, 0.08); }
:root[data-theme="light"] .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 1; background: rgb(var(--glow, 176, 63, 34)); }
:root[data-theme="light"] .card:hover, :root[data-theme="light"] .card:focus-visible { border-color: rgba(var(--glow, 176, 63, 34), 0.6); box-shadow: 0 2px 4px rgba(40, 50, 110, 0.08), 0 12px 28px rgba(var(--glow, 60, 70, 150), 0.18); }
:root[data-theme="light"] .shelf-head h2 { position: relative; padding-bottom: 8px; }
:root[data-theme="light"] .shelf-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), #e9a23b 55%, var(--accent-2)); }
:root[data-theme="light"] .lede { color: var(--ink-soft); }
:root[data-theme="light"] .related-card { background: #ffffff; box-shadow: 0 6px 18px rgba(60, 70, 150, 0.07); }
:root[data-theme="light"] .foot { background: #e2e6f7; }
/* "The office" label sits on the pavement: a dark pill keeps it readable by day. */
.office-banner .intro .eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(12, 15, 28, 0.68); }

/* Studio showroom: real links over each product, and a hint that they open (2026-11-19 showcase research). */
.studio-scroll { position: relative; }
.studio-links { position: absolute; left: 0; top: 0; }
.studio-hit { position: absolute; display: block; border-radius: 12px; outline: none; }
.studio-hit:focus-visible { box-shadow: 0 0 0 3px #c9a24f, 0 0 0 6px rgba(201, 162, 79, 0.3); }
.studio-hint { position: absolute; left: 14px; top: 12px; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 15, 28, 0.72); color: #f5efe4; font-size: 13px; font-weight: 600; pointer-events: none; z-index: 2; }
.studio-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: #e8c478; animation: studio-ping 2s ease-out infinite; }
@keyframes studio-ping { from { box-shadow: 0 0 0 0 rgba(232, 196, 120, 0.6); } to { box-shadow: 0 0 0 10px rgba(232, 196, 120, 0); } }
@media (prefers-reduced-motion: reduce) { .studio-hint .dot { animation: none; } }

/* Kit price line on cards, and the "Who it works with" lists (2026-11-20) */
.card p.price { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.ww-list { list-style: none; padding: 0 !important; margin: 8px 0 14px; display: grid; gap: 8px; }
.ww-list li { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); line-height: 1.45; }
.ww-list li small { display: block; margin-top: 4px; color: var(--ink-mute); font-size: 13px; }

/* Department map at the top of each department article (2026-11-20) */
.dept-map { margin: 4px 0 26px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.dept-map-svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; font-family: inherit; }
.dept-map figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-mute); text-align: center; }
.dm-flow { fill: none; stroke-width: 2; stroke-dasharray: 5 7; opacity: .75; animation: dm-flow 1.6s linear infinite; }
@keyframes dm-flow { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .dm-flow { animation: none; } }
.dm-node rect, .dm-core { fill: rgba(var(--c), .12); stroke: rgb(var(--c)); stroke-width: 1.5; }
.dm-core { fill: rgba(var(--c), .08); stroke-width: 2; }
.dept-map text { text-anchor: middle; fill: var(--ink); }
.dm-n { font-size: 14px; font-weight: 700; }
.dm-l { font-size: 11.5px; fill: var(--ink-soft) !important; }
.dm-h { font-size: 17px; font-weight: 800; fill: rgb(var(--c)) !important; }
.dm-e { font-size: 12.5px; fill: var(--ink-soft) !important; }
.dm-e.dm-head { font-weight: 700; fill: var(--ink) !important; }
.dept-map a:hover .dm-node rect, .dept-map a:focus .dm-node rect { stroke-width: 2.5; }
.dm-tall { display: none; max-width: 420px; }
@media (max-width: 620px) { .dm-wide { display: none; } .dm-tall { display: block; } .dept-map { padding: 10px; } }
.dm-tall .dm-e { font-size: 14px; } .dm-tall .dm-n { font-size: 14.5px; } .dm-tall .dm-l { font-size: 12.5px; }

/* End-to-end department flow (Gobind, 2026-11-20): every step from where the work starts to the end */
.dept-flow { margin: 0 0 26px; padding: 18px 18px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.dept-flow .df-title { margin: 0 0 4px; font-size: 20px; }
.dept-flow .df-sub { margin: 0 0 14px; color: var(--ink-mute); font-size: 14px; }
.df-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.df-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 16px; }
.df-step::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.df-step:last-child::before { display: none; }
.df-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--ink); color: var(--card); }
.df-name { margin: 5px 0 8px; font-size: 16px; }
.df-actors { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.df-actors li { margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(var(--c), .55); border-left: 4px solid rgb(var(--c)); background: rgba(var(--c), .08); font-size: 14px; line-height: 1.45; }
.df-actors li b { color: var(--ink); }
.df-actors li b a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 620px) { .dept-flow { padding: 14px 12px 4px; } .df-step { grid-template-columns: 28px 1fr; gap: 10px; } .df-num { width: 28px; height: 28px; font-size: 13px; } .df-step::before { left: 13px; top: 28px; } .df-actors { grid-template-columns: 1fr; } }
.df-actors li:only-child { grid-column: 1 / -1; max-width: 620px; }
.df-legend { list-style: none; margin: 0 0 16px; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-mute); }
.df-legend li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.df-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgb(var(--c)); }
