/* ============================================================
   ADVITIYA SINGH KANTA · LEVEL DESIGN PORTFOLIO
   One typeface. Monochrome interface. The work carries the colour.
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --line: #26262a;
  --text: #f1f1f2;
  --dim: #a0a0a7;
  --faint: #86868e;
  --accent: #d9a441;
  --maxw: 1240px;
  --gut: 32px;
  --col: 760px;
}

body.light {
  --bg: #f8f8f6;
  --bg-2: #eeeeeb;
  --line: #dddcd8;
  --text: #17171a;
  --dim: #55555d;
  --faint: #67676f;
  --accent: #7d5214;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
body.light :focus-visible { outline-color: #a06c1c; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-160%); padding: 10px 14px;
  background: var(--text); color: var(--bg); border-radius: 4px; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
@media (max-width: 700px) { :root { --gut: 20px; } }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.3s ease;
}
body.scrolled header.site, body.inner header.site { border-bottom-color: var(--line); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }

.brand { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.brand:hover { opacity: 0.72; }

header nav { display: flex; align-items: center; gap: 26px; }
header nav a { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--dim); transition: color 0.2s ease; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--text); }
header nav a:not(.cv)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16,0.84,0.24,1);
}
header nav a:not(.cv):hover::after { transform: scaleX(1); }
header nav a.cv {
  border: 1px solid var(--line); border-radius: 4px; padding: 9px 17px;
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.03em; color: var(--text);
  transition: border-color 0.2s ease;
}
header nav a.cv::after { display: none; }
header nav a.cv:hover { border-color: var(--text); }

.theme-btn {
  appearance: none; background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 4px;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--dim); padding: 0; transition: color 0.2s, border-color 0.2s;
}
.theme-btn:hover { color: var(--text); border-color: var(--text); }
.theme-btn .sun { display: none; }
body.light .theme-btn .sun { display: block; }
body.light .theme-btn .moon { display: none; }

/* Mobile menu */
.menu-btn {
  display: none; appearance: none; background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 4px; width: 40px; height: 40px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 15px; height: 1.5px; background: var(--dim); transition: transform 0.28s cubic-bezier(0.16,0.84,0.24,1); }
body.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
body.menu-open .menu-btn { border-color: var(--text); }

.menu-panel {
  display: none; flex-direction: column; align-items: stretch; gap: 0; text-align: left;
  border-top: 1px solid var(--line); background: var(--bg); padding: 4px var(--gut) 12px;
}
.menu-panel a { display: block; color: var(--text); font-size: 1.02rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-panel a:last-child { border-bottom: 0; }

@media (max-width: 760px) {
  header .bar nav { gap: 12px; }
  header .bar nav a:not(.cv) { display: none; }
  .menu-btn { display: flex; }
  body.menu-open .menu-panel { display: flex; }
  body.menu-open header.site { border-bottom-color: var(--line); }
}
.menu-panel .theme-toggle {
  appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 1.02rem; font-weight: 500; padding: 14px 0; text-align: left; cursor: pointer;
}
.menu-panel .theme-toggle:last-child { border-bottom: 0; }
@media (max-width: 460px) {
  header .bar nav .theme-btn { display: none; }
  header.site .bar { height: 66px; }
  .brand { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Intro ---------- */
.intro { padding: clamp(56px, 10vh, 116px) 0 clamp(52px, 8vh, 96px); }
.intro-role {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 20px;
}
.intro h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  letter-spacing: -0.045em; margin-bottom: 26px;
}
.intro-line {
  font-size: clamp(1.3rem, 2.5vw, 2.05rem); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.24; max-width: 18ch; margin-bottom: 22px;
}
.intro-sub { font-size: clamp(1rem, 1.25vw, 1.1rem); color: var(--dim); max-width: 58ch; margin-bottom: 24px; }
.intro-proof {
  display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none;
  font-size: 0.86rem; color: var(--text);
  padding-top: 20px; border-top: 1px solid var(--line); max-width: 78ch;
}
.intro-proof li { white-space: nowrap; }
/* The separator belongs to the item that follows it, so it can never be left
   dangling at the end of a wrapped line. */
.intro-proof li + li::before { content: "·"; color: var(--faint); padding-right: 10px; }

.intro-actions, .about-actions, .closing-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 28px;
}
.button {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-size: 0.88rem; font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.button:hover { border-color: var(--text); }
.button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button.primary:hover { background: transparent; color: var(--text); }
.text-action { font-size: 0.88rem; font-weight: 600; border-bottom: 1px solid var(--faint); padding: 6px 1px 3px; }
.text-action:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Section titles ---------- */
.section-title {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); padding-top: 20px; border-top: 1px solid var(--line); margin-bottom: 44px;
}

/* ---------- Work ---------- */
.work { padding-bottom: clamp(60px, 9vw, 110px); }
.more { padding-bottom: clamp(60px, 9vw, 110px); }

.proj { display: block; }
.proj figure { overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.proj figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,0.84,0.24,1);
}
.proj:hover figure img { transform: scale(1.022); }

.proj .info { padding-top: 20px; }
.proj .num {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--faint); font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.proj h3 { margin-bottom: 8px; transition: color 0.2s ease; }
.proj:hover h3 { color: var(--accent); }
.proj .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--dim); margin-bottom: 14px; }
.proj .desc { color: var(--dim); max-width: 58ch; }
.proj .facts { margin-top: 12px; font-size: 0.8rem; color: var(--faint); }
.proj .facts span { padding: 0 4px; }
.go {
  display: inline-block; margin-top: 18px; font-size: 0.82rem; font-weight: 600;
  border-bottom: 1px solid var(--faint); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.proj:hover .go { color: var(--accent); border-color: var(--accent); }

.proj.lead figure { aspect-ratio: 16 / 9; }
.proj.lead h3 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.proj.lead .desc { font-size: 1.05rem; }

.lead-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 84px; }
.lead-pair .proj figure { aspect-ratio: 16 / 10; }
.lead-pair .proj h3 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); }

.more-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 24px; }
.proj.small figure { aspect-ratio: 3 / 2; }
.proj.small .info { padding-top: 16px; }
.proj.small h3 { font-size: 1.1rem; }
.proj.small .label { font-size: 0.72rem; margin-bottom: 8px; }
.proj.small .desc { font-size: 0.9rem; }

@media (max-width: 960px) {
  .lead-pair { grid-template-columns: 1fr; gap: 60px; margin-top: 60px; }
  .more-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
}
@media (max-width: 620px) {
  .more-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}

/* ---------- Closing ---------- */
.closing { border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 78px) 0; }
.closing-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: center; }
.closing h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 8px; }
.closing p { color: var(--dim); }
.closing-actions { margin-top: 0; }
@media (max-width: 760px) { .closing-grid { grid-template-columns: 1fr; } .closing-actions { margin-top: 6px; } }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; }
.foot-id { display: flex; flex-direction: column; line-height: 1.4; }
.foot-id strong { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.015em; }
.foot-id span { font-size: 0.82rem; color: var(--faint); }
.foot-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot-nav a { font-size: 0.88rem; font-weight: 500; color: var(--dim); }
.foot-nav a:hover { color: var(--text); }
.foot-copy { font-size: 0.8rem; color: var(--faint); }
@media (max-width: 760px) {
  .foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot-nav a { font-size: 0.96rem; }
}

/* ---------- Reveal (content visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,0.84,0.24,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

.page { padding: 44px 0 0; }
.back { font-size: 0.82rem; color: var(--dim); }
.back:hover { color: var(--accent); }

.noscript-note { padding: 20px 0; color: var(--dim); }

.project-hero { max-width: 900px; padding: 26px 0 30px; }
.project-hero .label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.project-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.04em; margin: 14px 0 16px; }
.project-hero .subtitle { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--dim); max-width: 44em; }

.video-frame { position: relative; padding-top: 56.25%; overflow: hidden; margin: 36px 0 0; background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 36px 0 0;
  padding: 0; border: 1px solid var(--line); overflow: hidden; background: #000; color: #fff; cursor: pointer;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.2s, transform 0.4s; }
.video-poster:hover img { opacity: 0.66; transform: scale(1.012); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 12px 18px; border-radius: 4px; background: rgba(8,8,9,0.86);
  border: 1px solid rgba(255,255,255,0.7); font-weight: 600; font-size: 0.88rem; white-space: nowrap;
}
.hero-shot { margin: 36px 0 0; border: 1px solid var(--line); }

/* At a glance */
.project-summary { margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px; padding: 6px 0; }
.summary-item { padding: 14px 0; }
.summary-item strong, .demonstrates > strong, .credit-item > strong {
  display: block; color: var(--faint); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 6px;
}
.summary-item span { display: block; font-size: 0.9rem; line-height: 1.5; }
.demonstrates { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.demonstrates ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.demonstrates li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--dim); font-size: 0.78rem; }

.project-links { display: flex; gap: 22px; flex-wrap: wrap; margin: 26px 0 0; }
.project-links a { font-size: 0.86rem; font-weight: 600; border-bottom: 1px solid var(--faint); padding-bottom: 2px; }
.project-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Case study ---------- */
article.case { margin: 0; padding: 6px 0 40px; }
.case-section { padding-top: 68px; }
.case-section h2,
.case-section > p,
.case-section > .case-list {
  max-width: var(--col); margin-left: 0; margin-right: auto;
}

.case-section h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin-bottom: 22px;
  padding-top: 28px; border-top: 1px solid var(--line); letter-spacing: -0.03em;
}
.case-section > p { margin-bottom: 18px; color: var(--dim); }
.case-section > p strong { color: var(--text); font-weight: 600; }
.case-list { padding-left: 0; list-style: none; }
.case-list li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--text); }
.case-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 1px; background: var(--accent);
}

/* Contribution block: the answer to "what did he actually do" */
.case-section.contribution h2 { color: var(--text); }
.case-section.contribution .case-list { border-left: 2px solid var(--accent); padding-left: 22px; }
.case-section.contribution .case-list li { padding-left: 0; }
.case-section.contribution .case-list li::before { display: none; }

/* Process strip */
.process { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; list-style: none; margin-bottom: 28px; }
.process li {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.process li:not(:last-child)::after { content: "→"; color: var(--faint); padding: 0 12px; font-weight: 400; }

figure.shot { margin: 30px 0; }
figure.shot img { width: 100%; }
figcaption { color: var(--faint); font-size: 0.85rem; margin-top: 11px; line-height: 1.55; max-width: 78ch; }

.figure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 26px; margin: 30px 0; align-items: start; }
.figure-grid figure.shot { margin: 0; max-width: none; }
.figure-grid figure.shot img { aspect-ratio: 16 / 10; object-fit: contain; background: var(--bg-2); }
.figure-grid figure.shot.tall img { aspect-ratio: auto; object-fit: fill; background: none; }
.figure-grid figcaption { font-size: 0.82rem; }
/* Photographic evidence pairs are normalised to one shape so different source
   photos sit together cleanly. */
.case-section.photos .figure-grid figure.shot img { aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 820px) {
  .figure-grid { grid-template-columns: 1fr; gap: 26px; }
  .case-section.photos .figure-grid figure.shot img { aspect-ratio: 4 / 3; }
}

.beatmap-cta { margin-top: 4px; }
.beatmap-link {
  appearance: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 11px 18px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}
.beatmap-link:hover { border-color: var(--text); }
.beatmap-link span { color: var(--faint); transition: color 0.2s, transform 0.2s; }
.beatmap-link:hover span { color: var(--accent); transform: translateX(3px); }

.zoom-button { width: 100%; appearance: none; border: 0; background: transparent; color: inherit; padding: 0; text-align: left; cursor: zoom-in; display: block; }
.zoom-button img { width: 100%; height: auto; border: 1px solid var(--line); }
.zoom-button:hover img { border-color: var(--faint); }

/* Tables */
.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 0.86rem; line-height: 1.5; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--text); background: var(--bg-2); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
td { color: var(--dim); }

/* Credits */
.credits { margin: 36px 0 70px; border-top: 1px solid var(--line); padding-top: 30px; }
.credits h2 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.credits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.credit-item { padding: 20px 22px; background: var(--bg); }
.credit-item p { color: var(--dim); font-size: 0.87rem; line-height: 1.55; }

.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0 60px; font-size: 0.88rem; font-weight: 600; }
.pager a { color: var(--dim); }
.pager a:hover { color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 6vh 6vw;
  background: rgba(6,6,7,0.9);
}
body.light .lightbox { background: rgba(18,18,20,0.86); }
.lightbox:not([hidden]) { display: flex; }
body.lightbox-open { overflow: hidden; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 18px; right: 20px; z-index: 2; min-height: 44px; padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; background: rgba(8,8,9,0.8); color: #fff; cursor: pointer;
}
.lightbox-close span { font-size: 1.3rem; line-height: 0; margin-left: 5px; }
.lightbox > p { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.7); font-size: 0.74rem; }
@media (max-width: 700px) { .lightbox { padding: 70px 14px 54px; } }

/* ---------- About ---------- */
.about-page { max-width: 820px; margin: 0 auto; padding: 26px 0 60px; }
.eyebrow { color: var(--faint); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.about-page h1 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); letter-spacing: -0.035em; margin-bottom: 20px; }
.about-page .lede { font-size: 1.1rem; color: var(--dim); margin-bottom: 38px; }
.about-page > p { margin-bottom: 18px; color: var(--dim); }
.about-page h2 {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
  margin: 56px 0 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.about-page a:not(.button):not(.text-action) { border-bottom: 1px solid var(--faint); }

figure.wide { margin: 32px 0 34px; }
figure.wide img { width: 100%; border: 1px solid var(--line); }

.how, .skills-list { display: grid; gap: 0; }
.how > div, .skills-list > div {
  display: grid; grid-template-columns: 168px 1fr; gap: 8px 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.how > div:first-child, .skills-list > div:first-child { padding-top: 0; }
.how > div:last-child, .skills-list > div:last-child { border-bottom: 0; }
.how dt, .skills-list dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text); padding-top: 3px; }
.how dd, .skills-list dd { color: var(--dim); }
.skills-list dd { font-size: 0.92rem; }
@media (max-width: 640px) {
  .how > div, .skills-list > div { grid-template-columns: 1fr; gap: 6px; }
}

.xp { margin-bottom: 28px; }
.xp h3 { font-size: 1.04rem; margin-bottom: 5px; }
.xp .when { color: var(--faint); font-size: 0.78rem; margin-bottom: 12px; letter-spacing: 0.02em; }
.xp ul { margin: 0; padding-left: 0; list-style: none; }
.xp ul li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--dim); }
.xp ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--faint); }
.xp-note { margin-top: 12px; padding-left: 20px; color: var(--dim); font-size: 0.94rem; border-left: 1px solid var(--line); }
.xp-note strong { color: var(--text); font-weight: 600; }

/* Testimonials */
.quotes { display: grid; gap: 0; }
.quote { padding: 26px 0; border-bottom: 1px solid var(--line); }
.quote:first-child { padding-top: 0; }
.quote:last-child { border-bottom: 0; padding-bottom: 0; }
.quote blockquote p {
  font-size: 1.05rem; line-height: 1.55; letter-spacing: -0.01em; color: var(--text); margin-bottom: 16px;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 0; max-width: none; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: saturate(0.85) contrast(1.02); flex-shrink: 0; }
.quote figcaption span { display: flex; flex-direction: column; line-height: 1.35; }
.quote figcaption strong { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.quote figcaption a { border-bottom: 1px solid var(--line); }
.quote figcaption a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.quote figcaption em { font-style: normal; font-size: 0.8rem; color: var(--faint); }

/* ---------- Responsive tail ---------- */
@media (max-width: 960px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .demonstrates { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager a:last-child { text-align: right; }
  .case-section { padding-top: 52px; }
  /* Tables become label/value cards: three-column evidence is unreadable
     in a horizontal scroller on a phone. */
  .table-wrap { border: 0; overflow: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr { display: block; border: 1px solid var(--line); margin-bottom: 14px; }
  tbody tr:last-child { margin-bottom: 0; }
  tbody td { display: block; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 15px; }
  tbody tr td:last-child { border-bottom: 0; }
  tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--faint);
  }
}
@media (max-width: 440px) { .summary-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .intro-actions .button, .about-actions .button, .closing-actions .button { flex: 1 1 calc(50% - 9px); }
  .intro-actions .text-action, .about-actions .text-action, .closing-actions .text-action { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
