/* ============================================================
   Prompt Injection Protection — Report Website
   Design System & Styles
   ============================================================ */

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/*
 * Sticky header scroll offset: without this, #anchor navigation aligns the target to
 * the top of the viewport and the fixed/sticky header covers it (looks “wrong” / too far down).
 * scroll-padding applies to native hash jumps, scrollIntoView, and focus navigation.
 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-header-offset);
}

/* ====== Design Tokens ====== */
:root {
  --brand: #FF6B35;
  --brand-dark: #E55A2B;
  --brand-light: #FF8C5A;
  --brand-accent: #FF4500;
  --bg-soft: #FFF5F2;
  --bg-gradient: linear-gradient(135deg, #FFF5F2 0%, #FFFFFF 100%);
  --border: #e6e6e6;
  --border-light: #f0f0f0;
  --muted: #666;
  --text: #111;
  --text-secondary: #444;
  --surface: #fff;
  --gantt-stage-header-bg: #e8eaed;
  --gantt-stage-header-border: #d0d4db;
  /* ~site-header (topbar + tall sponsor logo + nav) — must clear sticky header on #anchor */
  --sticky-header-offset: 7.5rem;
  --container: 1050px;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 50rem;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.04);
  --shadow-brand-sm: 0 2px 8px rgba(255,107,53,0.12);
  --shadow-brand: 0 4px 16px rgba(255,107,53,0.18);
  --shadow-brand-lg: 0 8px 32px rgba(255,107,53,0.22);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration: 0.25s;
  --duration-slow: 0.4s;
}

/* ====== Base Typography ====== */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand);
  transition: all var(--duration) var(--ease);
}

a:visited {
  color: var(--brand-dark);
}

a:hover {
  color: var(--brand-accent);
}

a:active {
  color: var(--brand-light);
}

p { line-height: 1.75; color: var(--text-secondary); }

h1, h2, h3, h4 { color: var(--text); line-height: 1.3; }

/* ====== Layout ====== */
.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  font-weight: 600;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  box-shadow: var(--shadow-brand);
}

/* ====== Header ====== */
header.site-header {
  border-bottom: none;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
  transition: background var(--duration-slow) var(--ease),
              box-shadow var(--duration-slow) var(--ease),
              backdrop-filter var(--duration-slow) var(--ease);
}

header.site-header .container {
  width: min(1250px, calc(100% - 2.5rem));
}

header.site-header.scrolled {
  background: rgba(255, 252, 250, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 4px 24px rgba(255, 107, 53, 0.06),
              0 1px 3px rgba(0, 0, 0, 0.03);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 220px;
  transition: transform var(--duration) var(--ease);
}
.brand:hover { transform: translateX(2px); }

.brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.05rem;
  letter-spacing: 0.01em;
}
.brand-logos {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logos img {
  height: 28px;
  width: auto;
  opacity: 0.6;
  transition: all var(--duration) var(--ease);
}
.brand-logos img:first-child {
  height: 56px;
  margin-top: 3px;
}
.brand-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ====== Nav (desktop) ====== */
.nav-wrap {
  border-top: 1px solid var(--border-light);
}

nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  /* Allow Appendices dropdown to paint outside the bar (overflow only on .nav-scroll) */
  overflow: visible;
}

/* Inner strip: horizontal scroll for many links; dropdown stays in .nav-item sibling (not clipped) */
.nav-scroll {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-item {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.nav-link, .drop-toggle {
  display: inline-block;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  color: var(--brand);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
}
span.drop-toggle {
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  border-radius: 1px;
  transition: width var(--duration) var(--ease), left var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}
.nav-link:hover::after {
  width: calc(100% - 1.1rem);
  left: 0.55rem;
}

.drop-toggle:hover {
  background: var(--bg-soft);
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.nav-link.active::after { display: none; }
.nav-link.active:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.drop-toggle.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.drop-toggle.active:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  color: #fff;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  display: none;
  z-index: 1100;
  animation: dropdownIn var(--duration-slow) var(--ease-out);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-item:focus-within .dropdown,
.nav-item:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--duration) var(--ease);
}
.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--brand);
  padding-left: 1rem;
}

/* ====== Mobile menu ====== */
#nav-toggle { display: none; }

.burger {
  display: none;
  user-select: none;
  border: 2px solid var(--brand);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.burger:hover {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 900px) {
  :root {
    /* Shorter bar when logos hidden; nav is collapsed until burger checked */
    --sticky-header-offset: 5.25rem;
  }

  .brand { min-width: 0; }
  .brand-logos { display: none; }
  .burger { display: inline-block; }

  nav.site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-left {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.75rem;
  }

  #nav-toggle:checked ~ .nav-wrap .nav-left { display: flex; }

  .nav-scroll {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow: visible;
    width: 100%;
    flex: none;
  }

  .nav-item { width: 100%; }
  .nav-link, .drop-toggle { width: 100%; text-align: left; }

  .dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border-radius: var(--radius-sm);
    margin: 0.25rem 0 0.5rem;
    border-top: 2px solid var(--brand);
    animation: none;
  }
}

@media (min-width: 901px) {
  .nav-left {
    flex-wrap: nowrap;
  }
  .nav-scroll {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .nav-scroll::-webkit-scrollbar { height: 4px; }
  .nav-scroll::-webkit-scrollbar-track { background: transparent; }
  .nav-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-light);
    border-radius: 4px;
  }
}

/* ====== Hero ====== */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,107,53,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(255,69,0,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(255,140,90,0.04) 0%, transparent 50%),
    linear-gradient(135deg, #FFF5F2 0%, #FFFFFF 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 20s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,69,0,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 15s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -12px) scale(1.02); }
  66% { transform: translate(-8px, 6px) scale(0.98); }
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Enhanced home hero — stacked: title → lead → large screenshot (centered) → CTAs */
.hero--home {
  padding: 5.5rem 1rem 3.5rem;
  text-align: center;
}
.hero-home__intro {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.hero--home h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.hero--home .hero-lead {
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
}
.hero--home p {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}
.hero--home .kicker {
  margin-bottom: 1rem;
}
.hero-home__cta {
  margin-top: 2rem;
}
.hero-home__cta .hero-actions {
  margin-top: 0;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.18);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}
.hero-badge span {
  font-weight: 800;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Home hero screenshot — float + hover scale (transform-only; no layout shift) */
.hero-media {
  margin: 0;
  max-width: min(920px, 100%);
  padding: 12px 0;
}
/* Home: wide centered image (overrides .hero-media limits above) */
.hero-media.hero-media--home {
  display: block;
  margin: 2.5rem auto 0;
  width: 100%;
  max-width: min(1056px, 80%);
  padding: 0;
  box-sizing: border-box;
}
.hero-media__frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 4px 24px rgba(255, 107, 53, 0.12),
    0 12px 40px rgba(17, 17, 17, 0.06);
  animation: heroMediaFloat 5.5s ease-in-out infinite;
  transition: box-shadow 0.35s ease;
}
.hero-media--home .hero-media__frame {
  border-radius: 1.125rem;
  animation: heroMediaFloatHome 6s ease-in-out infinite;
}
.hero-media:hover .hero-media__frame {
  box-shadow:
    0 8px 32px rgba(255, 107, 53, 0.22),
    0 16px 48px rgba(17, 17, 17, 0.08);
}
.hero-media__img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  transition: transform 0.35s ease;
}
.hero-media:hover .hero-media__img {
  transform: scale(1.03);
}
.hero-media--home:hover .hero-media__img {
  transform: scale(1.015);
}
.hero-media figcaption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

@keyframes heroMediaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heroMediaFloatHome {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand-sm);
}
/* Global `a` / `a:visited` use brand colours — keep primary CTA label white in all link states */
a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: transparent;
  padding: 0.6rem 0.8rem;
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--brand-dark);
}

/* ====== Main & Sections ====== */
main { padding: 2.75rem 0 3.35rem; }

.section {
  padding: 2.65rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-slow) var(--ease);
  scroll-margin-top: 120px;
}
.section:last-child { border-bottom: none; }
/* Last content section before page nav: avoid double line (section border-bottom + page-nav border-top) */
.section:has(+ .page-nav) {
  border-bottom: none;
}
.section:hover {
  background: rgba(255,245,242,0.5);
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: var(--radius-md);
}
/* Project video: keep section hover layout but no warm tint (reads as orange) */
#video.section:hover {
  background: transparent;
}
#video .video-external-link {
  margin: 0.85rem auto 0;
  font-size: 0.88rem;
  text-align: center;
  max-width: 840px;
}
#video .video-external-link a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
#video .video-external-link a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Project timeline: full-width gantt block — no section hover tint or layout shift */
#timeline.section {
  padding-bottom: 0.75rem;
}
#timeline.section:hover {
  background: transparent;
  margin: 0;
  padding: 2.65rem 0 0.75rem;
  border-radius: 0;
}

/* Home: tighten gap between Gantt and next-page nav (global .page-nav adds large margin-top) */
#timeline + .page-nav {
  margin-top: 0;
  padding-top: 1rem;
}

/* Reading rhythm — narrative paragraphs & subsection breaks inside main sections */
main .section > p:not(:last-child) {
  margin-bottom: 1.12rem;
}

main .section > p:last-child {
  margin-bottom: 0;
}

main .section > * + h3 {
  margin-top: 2rem;
}

main .section > :is(ul, ol).styled-list {
  margin-bottom: 1.2rem;
}

main .section > :is(ul, ol).styled-list:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 1.28rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  position: relative;
  padding-left: 1.1rem;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.4em;
  background: linear-gradient(180deg, var(--brand), var(--brand-accent));
  border-radius: 2px;
}

h3 {
  margin: 1.55rem 0 0.72rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Home abstract: full container width, left-aligned — same column as Platform features */
.abstract-stack {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
}
@media (min-width: 768px) {
  .abstract-stack {
    gap: 1.6rem;
  }
}
.abstract-chunk {
  margin: 0;
  padding: 1.35rem 1.25rem 1.4rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--brand);
  box-shadow: 0 2px 12px rgba(17, 17, 17, 0.04);
  overflow: visible; /* glossary popovers extend above terms */
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}
.abstract-chunk:hover {
  transform: translateY(-2px);
  background-color: var(--bg-soft);
  border-color: rgba(255, 107, 53, 0.18);
  border-top-color: var(--brand);
  box-shadow: 0 6px 22px rgba(17, 17, 17, 0.07), 0 2px 8px rgba(255, 107, 53, 0.06);
}

.abstract-chunk:hover .abstract-chunk__icon {
  color: var(--brand-dark);
  opacity: 1;
}
@media (min-width: 640px) {
  .abstract-chunk {
    padding: 1.5rem 1.65rem 1.55rem;
  }
}
.abstract-chunk h3 {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: left;
}

.abstract-chunk__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.abstract-chunk__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  color: var(--brand);
  opacity: 0.92;
}

.abstract-chunk__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.abstract-chunk__body p {
  margin: 0;
  font-size: 1.045rem;
  line-height: 1.78;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: pretty;
}
.abstract-chunk__body p + p {
  margin-top: 1.1rem;
}
@media (min-width: 768px) {
  .abstract-chunk__body p {
    font-size: 1.0625rem;
    line-height: 1.8;
  }
  .abstract-chunk__body p + p {
    margin-top: 1.2rem;
  }
}

h4 {
  margin: 1.35rem 0 0.52rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.78rem;
  position: relative;
  display: inline-block;
  margin-bottom: 0.6rem;
}
.kicker::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
}

.section-track {
  border: 1px solid rgba(255,107,53,0.28);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  margin: 0.5rem 0 1.35rem;
  background: linear-gradient(135deg, rgba(255,245,242,0.9), rgba(255,255,255,1));
  box-shadow: var(--shadow-sm);
}

.section-track:hover {
  background: linear-gradient(135deg, rgba(255,245,242,1), rgba(255,255,255,1));
  transform: none;
}

.section.section-track:hover {
  margin: 0.5rem 0 1.35rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
}

.section.section-track.section-track--break:hover {
  margin-top: 2.6rem;
}

.section-track h2 {
  margin-bottom: 0.62rem;
}

.section-track__label {
  margin: 0 0 0.45rem;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.section-track__lead {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 78ch;
}

.section-track--break {
  margin-top: 2.6rem;
  position: relative;
}

.section-track--break::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1.4rem;
  height: 6px;
  border-radius: 50rem;
  background: linear-gradient(90deg, rgba(255,107,53,0), rgba(255,107,53,0.85), rgba(255,107,53,0));
}

/* ====== Cards ====== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,107,53,0.25);
}

.card-accent {
  border-top: 3px solid var(--brand);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}
.card p + p { margin-top: 0.5rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-soft), rgba(255,107,53,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* Stroke icons — size and brand colour (replaces emoji in icon shells) */
.ui-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--brand-dark);
  stroke: currentColor;
}
.card-icon .ui-icon {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--brand);
}
.feature-icon .ui-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--brand-dark);
}
.heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
.heading-with-icon .ui-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--brand);
  flex-shrink: 0;
}
h3.heading-with-icon {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.vulnerability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mitigation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mitigation-grid .feature-item:last-child {
  grid-column: 1 / -1;
  width: min(100%, 640px);
  margin-inline: auto;
}

/* Fixed 2×2 grid (testing page — automated coverage cards) */
.card-grid.card-grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 700px) {
  .vulnerability-grid {
    grid-template-columns: 1fr;
  }

  .mitigation-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.card-grid--2x2 {
    grid-template-columns: 1fr;
  }
}

/* Feature card (centered) */
.card--feature {
  text-align: center;
  padding: 2rem 1.5rem;
}
.card--feature .card-icon {
  margin-left: auto;
  margin-right: auto;
}

/* Design Principles: accordions aligned with .evaluation-item (Evaluation & other pages) */
.design-principles-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.principle-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--brand);
  overflow: hidden;
  transition: all 0.2s var(--ease);
}

.principle-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.12);
}

.principle-item[open] {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
}

.principle-item[open] summary {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}

.principle-item summary {
  list-style: none;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.principle-item summary::-webkit-details-marker {
  display: none;
}

.principle-item summary::marker {
  display: none;
}

.principle-item summary:hover {
  background: rgba(255, 245, 242, 0.6);
  color: var(--brand-dark);
}

.principle-item summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  flex: 1;
  text-align: left;
  line-height: 1.35;
}

.principle-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}

.principle-item summary:hover::after {
  color: var(--brand);
}

.principle-item[open] summary::after {
  content: '−';
}

.principle-item[open] summary:hover::after {
  color: var(--brand);
}

.principle-content {
  padding: 1.25rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-top: none;
}

.principle-content p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.principle-content p:last-child {
  margin-bottom: 0;
}

/* Existing Solutions: structured subsection styling */
.existing-solutions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.existing-solutions-grid > .card.card--feature {
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

/*
 * Intros vary in length: grow intro so Pros/Cons blocks share one baseline per grid row
 * (uniform bullet min-heights keep subsection heights similar).
 */
.existing-solutions-grid .card-feature-intro {
  flex: 1 1 auto;
  min-height: 0;
}

.existing-solutions-grid .card-feature-intro h3 {
  margin: 0 0 0.5rem;
}

.existing-solutions-grid .card.card--feature > .card-subsection {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
}

.existing-solutions-grid .card-subsection {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 53, 0.08);
  border-top: none;
}

.existing-solutions-grid .card-subsection h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.existing-solutions-grid .card-subsection p {
  margin: 0;
}

@media (max-width: 1100px) {
  .existing-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .existing-solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* Research — Backend: FastAPI vs Django Pros/Cons row alignment */
#backend .card-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#backend .card-grid > .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

#backend .card-grid .card-feature-intro {
  flex: 0 0 auto;
  min-height: 0;
}

#backend .card-grid .card-feature-intro h3 {
  margin: 0 0 0.5rem;
}

#backend .card-grid > .card > .card-subsection {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0.85rem;
}

/* Research — Frontend framework comparison (same flex pattern as backend).
   Fixed 2 columns: .cols-2 alone uses auto-fit and becomes 3+1 on ~1050px containers. */
#frontend .card-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#frontend .card-grid > .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

#frontend .card-grid .card-feature-intro {
  flex: 0 0 auto;
  min-height: 0;
}

#frontend .card-grid .card-feature-intro h3 {
  margin: 0 0 0.5rem;
}

#frontend .card-grid > .card > .card-subsection {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0.85rem;
}

@media (max-width: 700px) {
  #frontend .card-grid {
    grid-template-columns: 1fr;
  }
  #backend .card-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Research comparison cards:
 * - Frontend / Backend: subsection grows (flex: 1) so paired cards match height; spare space sits
 *   below Cons. Each bullet has a ~2-line min-height so adjacent columns line up.
 * - Existing Solutions: intro grows so varying blurbs still leave Pros/Cons on one row aligned.
 */
#frontend .card-subsection .pros-list > li,
#frontend .card-subsection .cons-list > li,
#backend .card-subsection .pros-list > li,
#backend .card-subsection .cons-list > li,
.existing-solutions-grid .card-subsection .pros-list > li,
.existing-solutions-grid .card-subsection .cons-list > li {
  min-height: calc(2 * 1.65em + 0.08em);
  margin-bottom: 0.45rem;
  box-sizing: border-box;
}

#frontend .card-subsection .pros-list > li:last-child,
#backend .card-subsection .pros-list > li:last-child,
.existing-solutions-grid .card-subsection .pros-list > li:last-child {
  margin-bottom: 0.55rem;
}

#frontend .card-subsection .cons-list > li:last-child,
#backend .card-subsection .cons-list > li:last-child,
.existing-solutions-grid .card-subsection .cons-list > li:last-child {
  margin-bottom: 0;
}

#frontend .card-subsection > h4:nth-of-type(2),
#backend .card-subsection > h4:nth-of-type(2),
.existing-solutions-grid .card-subsection > h4:nth-of-type(2) {
  margin-top: 0.3rem;
}

/* UI Design — accessibility feature grid: fixed 2×2 (not 3+1 from auto-fit cols-2) */
#accessibility .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 700px) {
  #accessibility .card-grid {
    grid-template-columns: 1fr;
  }
}

#accessibility .card-grid .feature-item + .feature-item {
  border-top: none;
}

#accessibility .accessibility-outcome {
  margin-top: 1.5rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 52rem;
}

#accessibility .accessibility-outcome strong {
  color: var(--text);
}

/* UI Design — prototype screenshot grids: stable 3 columns on desktop */
.prototype-screens-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .prototype-screens-grid {
    grid-template-columns: 1fr;
  }
}

/* UI Design — implemented view subsections under Final UI */
#final-ui h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.9rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

#final-ui h3 + h4 {
  margin-top: 2.15rem;
}

/* Final UI — Implemented views: breathing room between feature subsections */
#final-ui p + .implemented-view-shots {
  margin-top: 1.85rem;
}

#final-ui .implemented-view-shots {
  margin-bottom: 1.35rem;
  gap: 1.15rem;
}

/* Next feature subsection: clear band before the next view title */
#final-ui .implemented-view-shots + h4 {
  margin-top: 4rem;
  scroll-margin-top: 110px;
}

section#final-ui.section {
  padding-bottom: 4.75rem;
}

/* Final UI — visual rhythm: lead, prose bands, list panels, view icons */
#final-ui .final-ui-lead {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin: 0.35rem 0 1.85rem;
  background: linear-gradient(135deg, rgba(255, 245, 242, 0.92), var(--surface) 55%);
  border: 1px solid rgba(255, 107, 53, 0.14);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-xs);
}

#final-ui .final-ui-lead__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--bg-soft), rgba(255, 107, 53, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

#final-ui .final-ui-lead__icon .ui-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--brand);
}

#final-ui .final-ui-lead p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

#final-ui .final-ui-prose-band {
  padding: 1.15rem 1.25rem 1.25rem;
  margin: 1.4rem 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 245, 242, 0.45), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 107, 53, 0.11);
}

#final-ui .final-ui-prose-band--alt {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.65));
  border-color: rgba(15, 23, 42, 0.08);
}

#final-ui .final-ui-prose-band .heading-with-icon {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

#final-ui .final-ui-prose-band .heading-with-icon .ui-icon {
  width: 1.15rem;
  height: 1.15rem;
}

#final-ui .final-ui-prose-band p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

#final-ui .final-ui-list-panel {
  padding: 1.2rem 1.3rem 1.35rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

#final-ui .final-ui-list-panel .heading-with-icon {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

#final-ui .final-ui-list-panel--added {
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.07), var(--surface) 42%);
  border-top: 3px solid rgba(16, 185, 129, 0.5);
}

#final-ui .final-ui-list-panel--added .heading-with-icon .ui-icon {
  color: #059669;
}

#final-ui .final-ui-list-panel--reduced {
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.07), var(--surface) 42%);
  border-top: 3px solid rgba(99, 102, 241, 0.45);
}

#final-ui .final-ui-list-panel--reduced .heading-with-icon .ui-icon {
  color: #4f46e5;
}

#final-ui .final-ui-checklist {
  margin: 0;
}

#final-ui .final-ui-checklist li {
  margin-bottom: 0.5rem;
}

#final-ui .final-ui-checklist li:last-child {
  margin-bottom: 0;
}

#final-ui h3.final-ui-implemented-heading {
  margin-top: 2.25rem;
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

#final-ui h3.final-ui-implemented-heading .ui-icon {
  width: 1.2rem;
  height: 1.2rem;
}

#final-ui h4.final-ui-view-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

#final-ui .final-ui-view-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.08);
}

#final-ui .final-ui-view-title__icon .ui-icon {
  width: 0.98rem;
  height: 0.98rem;
  color: var(--brand-dark);
}

@media (max-width: 540px) {
  #final-ui .final-ui-lead {
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* UI Design — Personas: two white cards side by side */
#personas .personas-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
  align-items: stretch;
}

#personas .personas-focus-card {
  background: var(--surface);
  height: 100%;
  margin: 0;
}

#personas .personas-focus-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

#personas .personas-focus-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

#personas .personas-focus-list {
  margin: 0;
}

#personas .personas-focus-list li:last-child {
  margin-bottom: 0;
}

#personas .persona img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  #personas .personas-two-col {
    grid-template-columns: 1fr;
  }
}

/* Use Case Diagram*/
.use-case-diagram-wrap {
  margin: 1.25rem 0 1.5rem;
}

.use-case-diagram {
  width: 100%;
  max-width: 980px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.use-case-diagram img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Research — Platform Architecture Summary: light glass cards + icons */
#architecture-summary .card--architecture-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 107, 53, 0.14);
  box-shadow:
    0 2px 18px rgba(255, 107, 53, 0.08),
    0 1px 3px rgba(17, 17, 17, 0.04);
}

#architecture-summary .card--architecture-glass:hover {
  background: rgba(255, 252, 250, 0.9);
  border-color: rgba(255, 107, 53, 0.24);
  box-shadow:
    0 8px 28px rgba(255, 107, 53, 0.14),
    0 4px 12px rgba(17, 17, 17, 0.05);
}

#architecture-summary .card--architecture-glass .card-icon {
  background: linear-gradient(
    135deg,
    rgba(255, 245, 242, 0.85),
    rgba(255, 107, 53, 0.1)
  );
  border: 1px solid rgba(255, 107, 53, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

@media (prefers-reduced-transparency: reduce) {
  #architecture-summary .card--architecture-glass {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Research — References (minimal themed list) */
#references .references-lede {
  max-width: 52rem;
  margin-bottom: 1.35rem;
}

#references .references-lede > p:first-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

#references .references-hint {
  margin: 1rem 0 0;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand);
  background: rgba(255, 245, 242, 0.55);
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

#references .references-hint__label {
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

#references .reference-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ref;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

#references .reference-list li {
  counter-increment: ref;
  position: relative;
  display: block;
  padding: 1rem 1.2rem 1rem 4rem;
  margin: 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.915rem;
  line-height: 1.68;
  color: var(--text-secondary);
  /* Prose wraps normally; avoid flex (text + trailing <a> became two columns). */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  transition: background-color var(--duration) var(--ease);
}

#references .reference-list li:last-child {
  border-bottom: none;
}

#references .reference-list li::before {
  content: counter(ref);
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
  line-height: 1;
}

/* Long URLs: break inside the link only, not across author names */
#references .reference-list li a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

#references .reference-list li:hover {
  background: rgba(255, 245, 242, 0.42);
}

#references .reference-list em {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}

/* IEEE-style in-text citations linking to #ref-n (keep “[10]” from wrapping mid-bracket) */
#main a[href^="#ref-"],
#main a[href*="research.html#ref-"] {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ====== Our Team (member profiles) ====== */
.team-subtitle {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.team-subtitle--after-members {
  margin-top: 3rem;
}
.team-lead {
  margin: 0 0 1.5rem;
  font-size: 0.94rem;
  color: var(--muted);
}
.team-lead--tight {
  margin-bottom: 0.65rem;
}
.client-contact-card {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand);
  box-shadow: var(--shadow-xs);
}
.client-contact-card__name {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--text);
}
.client-contact-card__email {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.client-contact-card__email a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.client-contact-card__email a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-member__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  flex-shrink: 0;
}
.team-member:hover .team-member__photo {
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: var(--shadow-brand-sm);
}
.team-member__name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.team-member__email {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.team-member__email a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-member__email a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.team-ack {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  line-height: 1.65;
  color: var(--text);
}

.team-member__role {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  min-height: 2.9em;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-member__links {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
}
.team-member__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--duration) var(--ease);
}
.team-member__link:first-of-type {
  color: #0a66c2;
}
.team-member__link:first-of-type:hover {
  color: var(--brand);
}
.team-member__link:last-of-type {
  color: var(--text-secondary);
}
.team-member__link:last-of-type:hover {
  color: var(--brand);
}
.team-member__icon {
  flex-shrink: 0;
}
.team-member__link:hover .team-member__icon {
  color: inherit;
}

/* ====== Callout / Info Boxes ====== */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  margin: 1.25rem 0;
  font-size: 0.94rem;
}
.callout p { color: var(--text-secondary); margin: 0; }
.callout p + p { margin-top: 0.5rem; }
.callout strong { color: var(--text); }

.callout--tip {
  border-left-color: #10b981;
  background: #f0fdf4;
}
.callout--warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.callout--note {
  border-left-color: #6366f1;
  background: #f5f3ff;
}

/* ====== Badges & Tags ====== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge--brand {
  background: rgba(255,107,53,0.1);
  color: var(--brand-dark);
}
.badge--green {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
.badge--blue {
  background: rgba(99,102,241,0.1);
  color: #4f46e5;
}
.badge--amber {
  background: rgba(245,158,11,0.1);
  color: #b45309;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

/* ====== Styled Lists ====== */
.styled-list {
  list-style: none;
  padding: 0;
}
.styled-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  line-height: 1.68;
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  flex-shrink: 0;
}
.styled-list li strong { color: var(--text); }

.styled-list.pros-list li::before,
.styled-list.cons-list li::before {
  top: 0.2em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.32rem;
  display: inline-grid;
  place-items: center;
  background: #999;
  color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.styled-list.pros-list li::before {
  content: '\2713';
  background: linear-gradient(135deg, #2dcf73, #179e52);
}

.styled-list.cons-list li::before {
  content: '\2715';
  background: linear-gradient(135deg, #ff6b6b, #d94343);
}

.styled-list.pros-list li,
.styled-list.cons-list li {
  padding-left: 2rem;
}

.insight-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.insight-item {
  border: 1px solid var(--border-light);
  border-left: 4px solid rgba(255,107,53,0.55);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, rgba(255,245,242,0.42), rgba(255,255,255,1));
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.insight-item:hover {
  border-color: rgba(255,107,53,0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.insight-item h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text);
}

.insight-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.insight-item--why {
  border-left-color: rgba(79,70,229,0.55);
  background: linear-gradient(135deg, rgba(243,244,255,0.8), rgba(255,255,255,1));
}

ul:not(.styled-list):not(.tag-list) {
  padding-left: 1.25rem;
}
ul:not(.styled-list):not(.tag-list) li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-size: 0.94rem;
}
ul:not(.styled-list):not(.tag-list) li::marker {
  color: var(--brand);
}
ul:not(.styled-list):not(.tag-list) li strong {
  color: var(--text);
}

/* ====== Project Background Split Layout ====== */
.project-bg-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.project-bg-logo {
  display: flex;
  justify-content: center;
}

.project-bg-logo img {
  width: 100%;
  max-width: 220px;
  height: auto;
}

/* ====== Tables ====== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  box-shadow: var(--shadow-xs);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.styled-table th {
  background: var(--bg-soft);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.styled-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tbody tr:nth-child(even) td { background: rgba(255,245,242,0.25); }
.styled-table tr:hover td { background: rgba(255,245,242,0.5); }

/* Contribution tables (evaluation — individual contributions) */
.contribution-table-wrap {
  margin-top: 1rem;
}

/* Two tables share column widths so Teo / David / … align vertically across system & report */
.contribution-tables-group .contribution-table {
  table-layout: fixed;
  width: 100%;
}
.contribution-tables-group .contribution-table col.col-work-package {
  width: 43%;
}
.contribution-tables-group .contribution-table col.col-member {
  width: 14.25%;
}
.contribution-tables-group .contribution-table th:first-child,
.contribution-tables-group .contribution-table td:first-child {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
  padding-right: 1.1rem;
  vertical-align: top;
}
.contribution-tables-group .contribution-table th:not(:first-child),
.contribution-tables-group .contribution-table td:not(:first-child) {
  text-align: center;
  vertical-align: middle;
}

.contribution-table .contribution-total td,
.contribution-table .contribution-total th {
  border-top: 2px solid var(--border);
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text);
  padding: 0.9rem 1rem;
}
.contribution-table .contribution-total th {
  text-align: left;
  font-weight: 800;
}
.contribution-table .contribution-total:hover td,
.contribution-table .contribution-total:hover th {
  background: rgba(255, 107, 53, 0.08);
}
.contribution-table th:not(:first-child),
.contribution-table td:not(:first-child) {
  text-align: center;
  min-width: 0;
}

.contribution-total-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52rem;
}

.contribution-section-title {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.contribution-section-title:first-of-type {
  margin-top: 0;
}
.contribution-tables-group .contribution-section-title {
  margin-top: 2rem;
}
.contribution-section-lead {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ====== Achievements summary grid ====== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.achievements-grid .card { height: 100%; }

.achievements-card h3 { margin-bottom: 0.35rem; }
.achievements-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.achievement-block {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.achievement-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.achievement-block h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
.achievement-block .styled-list {
  margin: 0;
  padding-left: 1.1rem;
}
.achievement-block .styled-list li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.achievement-block .styled-list li:last-child { margin-bottom: 0; }

/* ====== Critical evaluation accordion ====== */
.evaluation-accordion {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.evaluation-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
  overflow: hidden;
  border-left: 3px solid var(--brand);
}
.evaluation-item:hover {
  border-color: rgba(255,107,53,0.3);
  box-shadow: 0 4px 12px rgba(255,107,53,0.12);
}
.evaluation-item[open] {
  border-color: rgba(255,107,53,0.4);
  box-shadow: 0 6px 20px rgba(255,107,53,0.15);
}
.evaluation-item[open] summary {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}

.evaluation-item summary {
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.evaluation-item summary:hover {
  background: rgba(255,245,242,0.6);
  color: var(--brand-dark);
}
.evaluation-item summary::-webkit-details-marker { display: none; }
.evaluation-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}
.evaluation-item summary:hover::after { color: var(--brand); }
.evaluation-item[open] summary::after {
  content: '−';
}
.evaluation-item[open] summary:hover::after { color: var(--brand); }

.evaluation-content {
  padding: 1.25rem 1.25rem 1.5rem;
  background: rgba(255,255,255,0.6);
}
.evaluation-content p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Algorithms page: extra vertical rhythm around sections that include pseudocode */
body.page-algorithms main > .container > .section#algorithms-overview {
  padding-bottom: 2.75rem;
}
body.page-algorithms main > .container > .section#bm25,
body.page-algorithms main > .container > .section#detection,
body.page-algorithms main > .container > .section#enhancement {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

/* Evaluation page: clearer rhythm between paragraphs (scoped so other pages unchanged) */
body.page-evaluation main .section > p + p,
body.page-evaluation main .section > .section-lead + p {
  margin-top: 1.22rem;
}
body.page-evaluation main .section > p {
  margin-bottom: 0;
}
body.page-evaluation main .evaluation-content p + p {
  margin-top: 1.15rem;
}
body.page-evaluation main .evaluation-content p.evaluation-rating {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
body.page-evaluation .achievements-card .achievements-intro {
  margin-bottom: 0.85rem;
}
body.page-evaluation .achievements-card .evaluation-content p + p {
  margin-top: 1rem;
}
body.page-evaluation h3.evaluation-inline-heading.heading-with-icon {
  justify-content: flex-start;
  margin-bottom: 0.55rem;
}

/* User manual — screenshots are high-res exports; cap width for reading flow */
body.page-user-manual main img {
  max-width: min(100%, 42rem);
  width: 100%;
  height: auto;
  display: block;
  margin: 0.85rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

/* ====== Requirements & Appendices — in-page nav & section rhythm ====== */
.page-local-nav {
  margin: 0 0 2.35rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.page-local-nav:hover {
  border-color: rgba(255, 107, 53, 0.22);
  box-shadow: var(--shadow-sm);
}
.page-local-nav__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.page-local-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.page-local-nav__list a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease);
}
.page-local-nav__list a:hover {
  color: var(--brand-dark);
  border-color: rgba(255, 107, 53, 0.35);
  background: rgba(255, 245, 242, 0.85);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-sm);
}
.page-local-nav__list a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

body.page-requirements .section {
  padding: 3rem 0 3.35rem;
}
/* Global .section:hover uses negative margin + extra horizontal padding (full-bleed tint).
   On Requirements that reads as the block "expanding"; keep only the background cue. */
body.page-requirements .section:hover {
  margin: 0;
  padding: 3rem 0 3.35rem;
  background: rgba(255, 245, 242, 0.5);
  border-radius: var(--radius-md);
}

body.page-requirements .content-lead-panel {
  margin: 0.5rem 0 0;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 245, 242, 0.85) 0%, var(--surface) 55%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-xs);
}
body.page-requirements .content-lead-panel p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

body.page-requirements h3.subsection-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.75rem 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
body.page-requirements h3.subsection-heading:first-of-type {
  margin-top: 1.25rem;
}
body.page-requirements h3.subsection-heading .ui-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--brand);
  flex-shrink: 0;
}

body.page-requirements .survey-intro {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
}

body.page-requirements .survey-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1rem;
  align-items: start;
  margin: 0 0 1.25rem;
}

body.page-requirements .survey-text {
  min-width: 0;
  padding-top: 2rem;
}

body.page-requirements .survey-graph,
body.page-requirements .survey-text {
  min-width: 0;
}

body.page-requirements .survey-graph img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body.page-requirements .interview-disclosure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
body.page-requirements .interview-disclosure {
  margin: 0;
  padding: 0;
}
body.page-requirements .interview-disclosure.card {
  overflow: hidden;
  padding: 0;
}
body.page-requirements .interview-disclosure.card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}
body.page-requirements .interview-disclosure__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  transition: background var(--duration) var(--ease);
}
body.page-requirements .interview-disclosure__summary::-webkit-details-marker {
  display: none;
}
body.page-requirements .interview-disclosure__summary::marker {
  content: '';
}
body.page-requirements .interview-disclosure__summary:hover {
  background: rgba(255, 245, 242, 0.55);
}
body.page-requirements .interview-disclosure__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}
body.page-requirements .interview-disclosure__summary-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
body.page-requirements .interview-disclosure__kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
}
body.page-requirements .interview-disclosure__kicker .ui-icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
  flex-shrink: 0;
}
body.page-requirements .interview-disclosure__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
body.page-requirements .interview-disclosure__hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.page-requirements .interview-disclosure__chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--brand);
  transition: transform var(--duration) var(--ease);
  margin-top: 0.15rem;
}
body.page-requirements .interview-disclosure[open] .interview-disclosure__chevron {
  transform: rotate(180deg);
}
body.page-requirements .interview-disclosure__body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--border-light);
}
body.page-requirements .interview-disclosure__body p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
body.page-requirements .interview-disclosure__body p:has(> strong:first-child) {
  padding-left: 0.65rem;
  border-left: 3px solid rgba(255, 107, 53, 0.35);
}

body.page-requirements .persona-showcase {
  margin-top: 1.25rem;
  padding: 0.85rem;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

body.page-requirements #use-cases .use-case-diagram {
  margin-bottom: 2rem;
}

body.page-requirements .use-case-scenarios {
  margin-top: 0;
}
body.page-requirements .use-case-scenarios__heading {
  margin: 0 0 1.1rem;
  padding-top: 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}
body.page-requirements .use-case-scenarios__lead {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 65ch;
}

@media (max-width: 900px) {
  body.page-requirements .survey-layout {
    grid-template-columns: 1fr;
  }
}
body.page-requirements .use-case-disclosure {
  margin: 0 0 0.85rem;
  padding: 0;
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
body.page-requirements .use-case-disclosure.card {
  padding: 0;
}
body.page-requirements .use-case-disclosure.card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
body.page-requirements .use-case-disclosure:last-child {
  margin-bottom: 0;
}
body.page-requirements .use-case-disclosure:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 107, 53, 0.22);
}
body.page-requirements .use-case-disclosure__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  transition: background var(--duration) var(--ease);
}
body.page-requirements .use-case-disclosure__summary::-webkit-details-marker {
  display: none;
}
body.page-requirements .use-case-disclosure__summary::marker {
  content: '';
}
body.page-requirements .use-case-disclosure__summary:hover {
  background: rgba(255, 245, 242, 0.45);
}
body.page-requirements .use-case-disclosure__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
body.page-requirements .use-case-disclosure__index {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-accent));
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
body.page-requirements .use-case-disclosure__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
body.page-requirements .use-case-disclosure__role {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
body.page-requirements .use-case-disclosure__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
body.page-requirements .use-case-disclosure__chevron {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: var(--brand);
  transition: transform var(--duration) var(--ease);
}
body.page-requirements .use-case-disclosure[open] .use-case-disclosure__chevron {
  transform: rotate(180deg);
}
body.page-requirements .use-case-disclosure__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border-light);
}
body.page-requirements .use-case-dl {
  margin: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
body.page-requirements .use-case-dl__row {
  display: grid;
  grid-template-columns: minmax(0, 4.75rem) 1fr;
  gap: 0.45rem 1.2rem;
  align-items: start;
  padding: 0.15rem 0 1.05rem;
  border-bottom: 1px solid var(--border-light);
}
body.page-requirements .use-case-dl__row:last-child {
  padding-bottom: 0.2rem;
  border-bottom: none;
}
body.page-requirements .use-case-dl__row dt {
  margin: 0;
  padding-top: 0.12rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-dark);
}
body.page-requirements .use-case-dl__row dd {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--text-secondary);
}
@media (max-width: 480px) {
  body.page-requirements .use-case-dl__row {
    grid-template-columns: 1fr;
  }
}

body.page-requirements #functional h3.heading-with-icon {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.12rem;
}
body.page-requirements .req-moscow-tier {
  --req-tier-accent: var(--brand);
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem 1.5rem;
  background: linear-gradient(165deg, rgba(255, 245, 242, 0.55) 0%, var(--surface) 42%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--req-tier-accent);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
body.page-requirements .req-moscow-tier:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 107, 53, 0.18);
}
body.page-requirements .req-moscow-tier--must {
  --req-tier-accent: var(--brand);
}
body.page-requirements .req-moscow-tier--should {
  --req-tier-accent: var(--brand-light);
}
body.page-requirements .req-moscow-tier--could {
  --req-tier-accent: var(--brand-accent);
}
body.page-requirements .req-moscow-tier--wont {
  --req-tier-accent: var(--muted);
}
body.page-requirements .req-moscow-tier--nfr {
  --req-tier-accent: var(--brand-dark);
  background: linear-gradient(165deg, rgba(255, 245, 242, 0.35) 0%, var(--surface) 50%);
}
body.page-requirements .req-subsection {
  margin: 1.2rem 0 0;
  padding: 1rem 1.05rem 1.05rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
body.page-requirements .req-subsection:hover {
  border-color: rgba(255, 107, 53, 0.2);
  background: var(--surface);
}
body.page-requirements .req-subsection:first-of-type {
  margin-top: 0.35rem;
}
body.page-requirements .req-subsection h4 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
body.page-requirements .req-subsection h4::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 2px;
  background: var(--brand-light);
  flex-shrink: 0;
}
body.page-requirements .req-moscow-tier--nfr .req-subsection h4::before {
  background: var(--muted);
}
body.page-requirements .req-subsection .styled-list {
  margin: 0;
}

body.page-requirements .req-coverage-card {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-xs);
}
body.page-requirements .req-coverage-card--compact {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem 0.95rem;
}
body.page-requirements .req-coverage-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
body.page-requirements .req-coverage-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: stretch;
}
body.page-requirements .req-coverage-card__stat {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: linear-gradient(165deg, rgba(255, 245, 242, 0.35) 0%, var(--surface) 100%);
}
body.page-requirements .req-coverage-card__stat--implemented {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.09) 0%, var(--surface) 100%);
}
body.page-requirements .req-coverage-card__stat--not-complete {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.08) 0%, var(--surface) 100%);
}
body.page-requirements .req-coverage-card__value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
body.page-requirements .req-coverage-card__sep {
  opacity: 0.4;
  font-weight: 700;
  margin: 0 0.12rem;
}
body.page-requirements .req-coverage-card__den {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.92em;
}
body.page-requirements .req-coverage-card__stat--implemented .req-coverage-card__value {
  color: #059669;
}
body.page-requirements .req-coverage-card__stat--not-complete .req-coverage-card__value {
  color: #b45309;
}
body.page-requirements .req-coverage-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.35;
}
body.page-requirements .req-coverage-card__sublabel {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
body.page-requirements .req-coverage-card__note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

body.page-requirements .req-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.75rem;
  margin: 0 0 1.35rem;
  padding: 0.8rem 1.05rem;
  background: linear-gradient(135deg, rgba(255, 245, 242, 0.75) 0%, var(--surface) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
body.page-requirements .req-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
body.page-requirements .req-status--legend {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0;
}
body.page-requirements .req-status--legend .req-status__icon {
  width: 0.78rem;
  height: 0.78rem;
}

body.page-requirements ul.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.page-requirements ul.req-list li.req-list__item {
  padding-left: 0.8rem;
  margin-bottom: 0;
}
body.page-requirements ul.req-list li.req-list__item::before {
  display: none;
  content: none;
}
body.page-requirements .req-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
body.page-requirements .req-list__item:hover {
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow: var(--shadow-xs);
}
body.page-requirements .req-status {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-top: 0.06rem;
}
body.page-requirements .req-status__icon {
  width: 0.95rem;
  height: 0.95rem;
}
body.page-requirements .req-status--met {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
body.page-requirements .req-status--adjusted {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.38);
}
body.page-requirements .req-list__text {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

body.page-requirements .req-moscow-table {
  margin: 0.35rem 0 1rem;
}
body.page-requirements .req-moscow-table th:first-child,
body.page-requirements .req-moscow-table td.req-moscow-table__status {
  width: 3.35rem;
  text-align: center;
  vertical-align: top;
}
body.page-requirements .req-moscow-table td.req-moscow-table__status {
  padding-top: 0.8rem;
}
body.page-requirements .req-moscow-table td.req-moscow-table__status .req-status {
  margin: 0 auto;
}
body.page-requirements .req-moscow-table td:not(.req-moscow-table__status) {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-secondary);
  vertical-align: top;
}
body.page-requirements .req-subsection .table-wrap {
  margin-bottom: 0.25rem;
}

body.page-requirements #references .styled-list {
  padding: 0;
}
body.page-requirements #references .styled-list li {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-light);
  transition: box-shadow var(--duration) var(--ease);
}
body.page-requirements #references .styled-list li:hover {
  box-shadow: var(--shadow-sm);
}

body.page-appendices .section-heading-lockup {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}
body.page-appendices .section-heading-lockup__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--bg-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  color: var(--brand);
}
body.page-appendices .section-heading-lockup__icon .ui-icon {
  width: 1.35rem;
  height: 1.35rem;
}
body.page-appendices .section-heading-lockup > div {
  min-width: 0;
  flex: 1;
}
body.page-appendices .section-heading-lockup h2 {
  margin: 0 0 0.35rem;
}
body.page-appendices .section-lead {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 62ch;
}

body.page-appendices .license-panel {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-xs);
}
body.page-appendices .license-panel p {
  margin: 0;
}

/* License note sits in the same column as .license-panel — full text column width */
body.page-appendices #license .license-note-callout {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body.page-appendices .principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
body.page-appendices .principle-card {
  margin: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  background: linear-gradient(165deg, rgba(255, 245, 242, 0.45) 0%, var(--surface) 40%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
body.page-appendices .principle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.12);
}
body.page-appendices .principle-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.1);
  color: var(--brand-dark);
}
body.page-appendices .principle-card__icon .ui-icon {
  width: 1.2rem;
  height: 1.2rem;
}
body.page-appendices .principle-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
body.page-appendices .principle-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

body.page-appendices #references .styled-list {
  padding: 0;
}
body.page-appendices #references .styled-list li {
  list-style: none;
  margin: 0 0 0.55rem;
}
body.page-appendices #references .styled-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease);
}
body.page-appendices #references .styled-list a:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

body.page-appendices #monthly-video .monthly-video-stack {
  margin-top: 1.35rem;
  gap: 2.35rem;
}
body.page-appendices #monthly-video .monthly-video-row__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
body.page-appendices #monthly-video .monthly-video-row__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 53, 0.14);
  color: var(--brand-dark);
  border: 1px solid rgba(255, 107, 53, 0.25);
}

@media (max-width: 560px) {
  body.page-appendices .section-heading-lockup {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-local-nav,
  .page-local-nav__list a,
  body.page-requirements .req-moscow-tier,
  body.page-requirements .use-case-disclosure,
  body.page-requirements .interview-disclosure__chevron,
  body.page-requirements .use-case-disclosure__chevron,
  body.page-appendices .principle-card,
  body.page-appendices #references .styled-list a {
    transition: none;
  }
  .page-local-nav:hover,
  .page-local-nav__list a:hover,
  body.page-requirements .req-moscow-tier:hover,
  body.page-appendices .principle-card:hover,
  body.page-appendices #references .styled-list a:hover {
    transform: none;
  }
  body.page-requirements .interview-disclosure[open] .interview-disclosure__chevron,
  body.page-requirements .use-case-disclosure[open] .use-case-disclosure__chevron {
    transform: none;
  }
}

/* Critical evaluation accordion — icon + title in summary row */
.evaluation-summary__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}
.evaluation-summary__icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--brand);
  stroke: currentColor;
}
.evaluation-summary__text {
  min-width: 0;
  text-align: left;
}

/* Monthly videos stack (appendices) — 70% video / caption, alternating sides */
.monthly-video-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.monthly-video-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--brand);
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.monthly-video-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.18);
  border-color: rgba(255, 107, 53, 0.35);
}
.monthly-video-row--media-right {
  flex-direction: row-reverse;
}
.monthly-video-row__media {
  flex: 0 0 70%;
  width: 70%;
  max-width: 70%;
  min-width: 0;
}
.monthly-video-row__text {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 0.15rem;
}
.monthly-video-row__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.monthly-video-row__blurb {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}
.monthly-video-row__footnote {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}
.monthly-video-row__footnote a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.monthly-video-row__footnote a:hover {
  color: var(--brand);
  text-decoration: underline;
}
@media (max-width: 52rem) {
  .monthly-video-row,
  .monthly-video-row--media-right {
    flex-direction: column;
  }
  .monthly-video-row__media {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .monthly-video-row__text {
    padding-top: 0;
  }
}

/* Partner demo — appendices spotlight (distinct from monthly video rows) */
body.page-appendices #partner-demo.section--partner-spotlight {
  border-bottom: 1px solid var(--border-light);
}
body.page-appendices #partner-demo.section--partner-spotlight:hover {
  background: transparent;
  margin: 0;
  padding: 2rem 0;
  border-radius: 0;
}
body.page-appendices .partner-demo-frame {
  position: relative;
  max-width: min(58rem, 100%);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.35rem, 4vw, 2.75rem) clamp(2rem, 4.5vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 249, 246, 0.9) 100%);
  border: 1px solid rgba(230, 230, 230, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 24px 56px rgba(17, 17, 17, 0.06),
    0 8px 20px rgba(255, 107, 53, 0.07);
  overflow: hidden;
  transition: box-shadow var(--duration-slow) var(--ease), border-color var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
body.page-appendices .partner-demo-frame:hover {
  border-color: rgba(255, 107, 53, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 32px 64px rgba(17, 17, 17, 0.07),
    0 12px 36px rgba(255, 107, 53, 0.12);
  transform: translateY(-1px);
}
body.page-appendices .partner-demo-frame__chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 107, 53, 0.045) 72%, transparent 100%);
  opacity: 0.85;
}
body.page-appendices .partner-demo-intro {
  position: relative;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}
body.page-appendices .partner-demo-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
body.page-appendices .partner-demo-heading {
  margin: 0 0 1rem;
  padding-left: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}
body.page-appendices .partner-demo-heading::before {
  display: none;
}
body.page-appendices .partner-demo-heading::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.9rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
body.page-appendices .partner-demo-lede {
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36rem;
}
body.page-appendices .partner-demo-stage {
  position: relative;
  margin: 0 auto;
  max-width: min(52rem, 100%);
}
body.page-appendices .partner-demo-stage__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: 88%;
  height: 75%;
  max-width: 42rem;
  background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.22) 0%, rgba(255, 140, 90, 0.08) 45%, transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}
body.page-appendices .partner-demo-embed {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 107, 53, 0.2);
  box-shadow:
    0 4px 24px rgba(17, 17, 17, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: box-shadow var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease), border-color var(--duration-slow) var(--ease);
}
body.page-appendices .partner-demo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
body.page-appendices .partner-demo-embed:hover,
body.page-appendices .partner-demo-embed:focus-within {
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow:
    0 12px 40px rgba(255, 107, 53, 0.18),
    0 20px 48px rgba(17, 17, 17, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  body.page-appendices .partner-demo-frame:hover,
  body.page-appendices .partner-demo-embed:hover,
  body.page-appendices .partner-demo-embed:focus-within {
    transform: none;
  }
}

/* Requirements traceability tables (evaluation page) */
.evaluation-content .table-wrap {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.requirements-table {
  font-size: 0.88rem;
}
.requirements-table th,
.requirements-table td {
  vertical-align: top;
}
.requirements-table .req-priority {
  white-space: nowrap;
  width: 5.5rem;
}
.requirements-table .req-cell-status {
  text-align: center;
  width: 4.5rem;
}
.req-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
/* Vector status icons (not emoji / dingbat characters) */
.req-status.req-status--done {
  font-size: 0;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  color: transparent;
  background-color: #2e7d32;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.req-status.req-status--not {
  font-size: 0;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  color: transparent;
  background-color: #c62828;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Visible tooltip for incomplete requirements (native title="" is slow / unreliable) */
#requirements-traceability .evaluation-item {
  overflow: visible;
}
.requirements-table tr.req-row--incomplete {
  cursor: help;
}
.req-status-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  margin: -0.35rem;
  padding: 0.35rem;
  vertical-align: middle;
  border-radius: 0.35rem;
  outline: none;
}
.req-status-tooltip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.req-status-tooltip__panel {
  /* position + inset set via JS so the note is not clipped by table/accordion overflow */
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: max-content;
  max-width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), visibility 0.18s var(--ease);
}
.requirements-table tr.req-row--incomplete:hover .req-status-tooltip__panel,
.requirements-table tr.req-row--incomplete:focus-within .req-status-tooltip__panel,
.req-status-tooltip:hover .req-status-tooltip__panel,
.req-status-tooltip:focus-within .req-status-tooltip__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
html:not(.js) .req-status-tooltip__panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  top: auto;
  transform: translateX(-50%);
  max-width: min(18rem, 70vw);
}

.requirements-table .req-contributors {
  font-size: 0.86rem;
  color: var(--text-secondary);
  min-width: 8rem;
}

/* Testing page (testing.html) */
.testing-prompt-hint {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}
.testing-prompt-hint code {
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}
.section-optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.92em;
}
.section-lead {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}
.testing-subsection-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.testing-subsection-title:first-of-type {
  margin-top: 0.5rem;
}
.testing-outcome {
  margin-bottom: 0.5rem;
}
.testing-outcome--spaced {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.testing-field-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1rem 0 0.35rem;
  color: var(--brand-dark);
}
.testing-outcome > .testing-field-title:first-child {
  margin-top: 0;
}
.testing-outcome p {
  margin: 0 0 0.85rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.uat-block {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.uat-block:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}
.uat-block > h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}
/* User acceptance (testing page): clearer rhythm between paragraphs */
#user-acceptance > p {
  margin-bottom: 1.35rem;
}
#user-acceptance .uat-block p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}
#user-acceptance .uat-block p:last-child {
  margin-bottom: 0;
}

/* Prompt testing (testing page): match UAT paragraph rhythm */
#prompt-testing > p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}
#prompt-testing > p.mt-2 {
  margin-top: 1rem;
  margin-bottom: 0;
}
#prompt-testing .uat-block p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}
#prompt-testing .uat-block p:last-child {
  margin-bottom: 0;
}

/* Testing page: intro and stress sections — clearer paragraph rhythm */
#components-tested > p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}
#components-tested > p:last-of-type {
  margin-bottom: 1.35rem;
}
#compatibility-responsive > p,
#performance-stress-testing > p {
  margin-top: 0;
  margin-bottom: 1.2rem;
}
#compatibility-responsive > p:last-child,
#performance-stress-testing > p:last-child {
  margin-bottom: 0;
}

.testing-snapshot {
  background: var(--bg-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  margin-bottom: 0.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
}
.testing-snapshot-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  margin: 0 0 0.5rem;
}
.testing-snapshot-heading .ui-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: var(--brand-dark);
}
.testing-snapshot-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}
.testing-snapshot-note code {
  font-size: 0.86em;
  background: var(--bg-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}
.testing-snapshot .stat-grid {
  margin: 0;
}
.stat-number--ver {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.testing-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.testing-point-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.testing-point-list li {
  margin-bottom: 0.62rem;
  line-height: 1.68;
}
.testing-point-list strong {
  color: var(--text);
}

.testing-code-block {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
}
.testing-code-block code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, monospace;
  color: var(--text);
  white-space: pre;
  display: block;
}

.home-feature-expand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.home-feature-expand p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.home-feature-expand p + p {
  margin-top: 0.35rem;
}
.home-feature-expand .feature-actions {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.home-feature-expand .feature-actions li {
  margin-bottom: 0.35rem;
}

/* Allow glossary popovers to extend outside the accordion card (parent has overflow: hidden).
   #key-features fallback: :has() is not needed, so clipping is fixed even in older browsers. */
.evaluation-item[open]:has(.home-feature-expand),
#key-features .evaluation-item[open] {
  overflow: visible;
}

/* Inline term + hover/focus definition card (e.g. Garak on Testing page feature) */
.glossary-pop {
  position: relative;
  display: inline-block;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 107, 53, 0.55);
  text-underline-offset: 0.15em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
  outline: none;
  z-index: 2;
}

.glossary-pop:hover,
.glossary-pop:focus-visible {
  color: var(--brand-dark);
  text-decoration-color: var(--brand-dark);
}

.glossary-pop:focus-visible {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);
  border-radius: 0.2rem;
}

/* Invisible hover bridge between the term and the panel */
.glossary-pop::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  width: max(100%, 10rem);
  height: 0.4rem;
  z-index: 3;
}

.glossary-pop__panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(17.5rem, calc(100vw - 2rem));
  padding: 0.65rem 0.85rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 107, 53, 0.08);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 4;
}

.glossary-pop__panel::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--surface);
  filter: drop-shadow(0 1px 0 var(--border));
}

.glossary-pop:hover .glossary-pop__panel,
.glossary-pop:focus-within .glossary-pop__panel,
.glossary-pop.is-open .glossary-pop__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.glossary-pop__title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.glossary-pop__body {
  display: block;
  margin-bottom: 0.55rem;
}

.glossary-pop__body strong {
  font-weight: 700;
  color: var(--text);
}

.glossary-pop__link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.glossary-pop__link:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
}

/* Key feature screenshots inside home page dropdowns */
.key-feature-screenshot {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.evaluation-item[open] .key-feature-screenshot {
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.1);
}
.key-feature-screenshot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ====== Gantt Timeline (Grid) ====== */
/* Same width as .container content column (no full-bleed breakout) */
.gantt-bleed {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  box-sizing: border-box;
}

#timeline .gantt-bleed > h2 {
  margin-top: 0;
  font-size: 1.32rem;
}

.gantt-card {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,245,242,0.85), #fff);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  position: relative;
}

.gantt-scroll {
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.gantt-grid {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  /* Horizontal scroll when viewport is narrower than label + track minimums */
  min-width: 890px;
}

.gantt-header {
  display: grid;
  grid-template-columns: minmax(200px, 279px) 1fr;
  column-gap: 0.65rem;
  margin-bottom: 0.3rem;
  font-size: 0.71rem;
}

.gantt-header-label {
  padding: 0.4rem 0.5rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gantt-header-label--weeks {
  border-top: 1px solid var(--border);
}

.gantt-header-track {
  display: grid;
  grid-template-columns: repeat(23, minmax(24px, 1fr));
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gantt-header-track--weeks {
  border-top: 1px solid var(--border);
}

.gantt-header-month {
  padding: 0.35rem 0.25rem;
  text-align: center;
  background: #f7f3ff;
  border-right: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--muted);
}

.gantt-header-month:last-child {
  border-right: none;
}

.gantt-header-track--weeks span {
  padding: 0.3rem 0.25rem;
  text-align: center;
  background: #fcfbff;
  border-right: 1px solid var(--border-light);
  font-weight: 500;
  color: var(--muted);
}

.gantt-header-track--weeks span:last-child {
  border-right: none;
}

.gantt-row {
  display: grid;
  grid-template-columns: minmax(200px, 279px) 1fr;
  column-gap: 0.65rem;
  align-items: stretch;
  font-size: 0.74rem;
}

/* Task rows: flex so the track column gets a definite stretched height (grid + 1fr was only ~20px tall) */
.gantt-row.gantt-row--task {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
}

.gantt-row--task .gantt-row-label {
  flex: 0 1 279px;
  min-width: 200px;
  max-width: 279px;
}

.gantt-row--task .gantt-row-track {
  flex: 1 1 0;
  min-width: 0;
}

/* Stage title row: grey band across label + timeline (no repeated stage text on tasks below) */
.gantt-row--stage-header {
  margin-top: 0.55rem;
}

.gantt-grid > .gantt-header + .gantt-row--stage-header {
  margin-top: 0;
}

.gantt-stage-header-label {
  padding: 0.4rem 0.5rem;
  background: var(--gantt-stage-header-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--gantt-stage-header-border);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.gantt-stage-header-track {
  min-height: 24px;
  background: var(--gantt-stage-header-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--gantt-stage-header-border);
}

.gantt-row--task .gantt-row-task {
  font-weight: 600;
}

.gantt-row-label:focus {
  outline: none;
}

.gantt-row-label:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.gantt-row-label {
  position: relative;
  padding: 0.4rem 0.5rem;
  background: #fafbff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gantt-row--task .gantt-row-label {
  cursor: pointer;
}

/* Phase summary popup (click label to open; positions set in main.js when .is-open) */
.gantt-phase-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  width: min(17.5rem, calc(100vw - 2.5rem));
  margin: 0;
  padding: 0.6rem 0.8rem 0.7rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(255, 107, 53, 0.12);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  pointer-events: none;
}

/* Float above page content (legend) without expanding the gantt scroll box — positions set in main.js */
html.js .gantt-phase-tooltip {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 200;
}

.gantt-phase-tooltip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.gantt-phase-tooltip.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.gantt-row-task {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.gantt-row-track {
  display: grid;
  grid-template-columns: repeat(23, minmax(26px, 1fr));
  /* With flex parent, track has definite height — 1fr fills it so bars span full row */
  grid-template-rows: minmax(20px, 1fr);
  position: relative;
  border-radius: var(--radius-md);
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 1px
    );
  background-size: calc(100% / 23) 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
}

.gantt-cell {
  min-height: 0;
  align-self: stretch;
  position: relative;
}

.gantt-cell--active::before,
.gantt-cell--active-mid::before,
.gantt-cell--active-light::before {
  content: '';
  position: absolute;
  inset: 0;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

/* Lightest: early in the phase */
.gantt-cell--active-light::before {
  background: linear-gradient(
    135deg,
    rgba(255, 168, 125, 0.48),
    rgba(255, 150, 105, 0.42)
  );
  box-shadow: 0 1px 2px rgba(255, 107, 53, 0.12);
}

/* Mid: more tasks done */
.gantt-cell--active-mid::before {
  background: linear-gradient(
    135deg,
    rgba(255, 138, 88, 0.62),
    rgba(255, 118, 68, 0.58)
  );
  box-shadow: 0 1px 3px rgba(255, 107, 53, 0.18);
}

/* Darkest: most complete within the phase */
.gantt-cell--active::before {
  background: linear-gradient(
    135deg,
    rgba(255, 115, 65, 0.82),
    rgba(255, 95, 45, 0.78)
  );
  box-shadow: 0 1px 3px rgba(255, 107, 53, 0.26);
}

.gantt-cell--active:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255, 108, 58, 0.9),
    rgba(255, 90, 40, 0.85)
  );
  box-shadow: 0 2px 5px rgba(255, 107, 53, 0.28);
}

.gantt-cell--active-mid:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255, 128, 78, 0.75),
    rgba(255, 110, 60, 0.7)
  );
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.22);
}

.gantt-cell--active-light:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255, 155, 115, 0.58),
    rgba(255, 135, 95, 0.52)
  );
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.16);
}

.gantt-legend {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.55;
}

.gantt-timeframe {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Gantt fill scale: lighter → darker = fewer → more tasks done in that phase */
.gantt-legend-scale {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.75rem 0 0.3rem;
  padding: 0.5rem 0.65rem;
  max-width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.gantt-legend-scale__hint {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
}

.gantt-legend-scale__label {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.gantt-legend-scale__dash {
  color: var(--border);
  font-weight: 400;
}

.gantt-legend-scale__text {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
}

.gantt-legend-scale__sep {
  color: rgba(255, 107, 53, 0.45);
  font-size: 0.7rem;
  user-select: none;
}

.gantt-legend-scale__swatches {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gantt-legend-scale__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gantt-legend-scale__swatch {
  width: 1.35rem;
  height: 0.65rem;
  border-radius: 0.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.gantt-legend-scale__swatch--light {
  background: linear-gradient(135deg, rgba(255, 168, 125, 0.55), rgba(255, 150, 105, 0.5));
}

.gantt-legend-scale__swatch--mid {
  background: linear-gradient(135deg, rgba(255, 138, 88, 0.72), rgba(255, 118, 68, 0.68));
}

.gantt-legend-scale__swatch--dark {
  background: linear-gradient(135deg, rgba(255, 115, 65, 0.88), rgba(255, 95, 45, 0.85));
}

@media (max-width: 768px) {
  .gantt-card {
    padding: 0.85rem 1rem;
  }

  .gantt-grid {
    min-width: 580px;
  }

  .gantt-header,
  .gantt-row {
    grid-template-columns: minmax(146px, 186px) 1fr;
  }

  .gantt-row--task .gantt-row-label {
    min-width: 146px;
    max-width: 186px;
  }

  .gantt-stage-header-label {
    white-space: normal;
  }

  .gantt-row-task {
    white-space: normal;
  }

  .gantt-header-label,
  .gantt-row-label {
    font-size: 0.76rem;
  }

  .gantt-header-track--weeks span {
    font-size: 0.72rem;
  }
}
/* ====== Image Placeholders ====== */
.img-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(17, 17, 17, 0.75);
  box-shadow: var(--shadow-xl);
  animation: fadeUp var(--duration-slow) var(--ease);
}

.image-lightbox__img {
  width: 100%;
  max-height: calc(92vh - 1.6rem);
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #0f0f0f;
}
.img-placeholder .placeholder-icon {
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}
.img-placeholder .placeholder-icon .ui-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--muted);
}

.image-lightbox__close:hover {
  background: rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
  .image-lightbox__dialog {
    width: min(98vw, 1400px);
    margin: 2vh auto;
    padding: 0.55rem;
  }

  .image-lightbox__img {
    max-height: calc(96vh - 1.1rem);
  }
}

.prototype-shot {
  padding: 0;
  border-style: solid;
  overflow: hidden;
  background: #fff;
  margin: 1rem 0;
}

.prototype-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  cursor: zoom-in;
}

/* Wide exports (e.g. evaluation table screenshots): don’t force 16∶10 cover — it crops sides */
.prototype-shot--natural img {
  aspect-ratio: auto;
  object-fit: contain;
  width: 100%;
  height: auto;
}

.prototype-shot img:focus-visible {
  outline: 3px solid rgba(255,107,53,0.55);
  outline-offset: -3px;
}

.prototype-shot figcaption {
  border-top: 1px solid var(--border-light);
  padding: 0.8rem 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-align: left;
  background: linear-gradient(180deg, rgba(255,245,242,0.35), rgba(255,255,255,1));
}

.implemented-view-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
  width: 100%;
}

.implemented-views-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.implemented-view-shots .prototype-shot {
  margin: 0;
}

.implemented-view-shots .prototype-shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.implemented-view-shots .implemented-view-placeholder {
  margin: 0;
  padding: 1rem 0.85rem;
}

@media (max-width: 760px) {
  .implemented-views-grid {
    grid-template-columns: 1fr;
  }

  .implemented-view-shots {
    grid-template-columns: 1fr;
  }
}

.pdf-viewer {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,245,242,0.3), #fff);
}

.pdf-viewer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.pdf-viewer__frame {
  width: 100%;
  height: min(920px, 82vh);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-brand-sm);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

.btn--ghost {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--brand-light);
  color: var(--brand);
  background: var(--bg-soft);
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.84);
  backdrop-filter: blur(4px);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1400px);
  max-height: 92vh;
  margin: 4vh auto;
  padding: 0.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(17, 17, 17, 0.75);
  box-shadow: var(--shadow-xl);
  animation: fadeUp var(--duration-slow) var(--ease);
}

.image-lightbox__img {
  width: 100%;
  max-height: calc(92vh - 1.6rem);
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #0f0f0f;
}

.image-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
  .image-lightbox__dialog {
    width: min(98vw, 1400px);
    margin: 2vh auto;
    padding: 0.55rem;
  }

  .image-lightbox__img {
    max-height: calc(96vh - 1.1rem);
  }
}

/* ====== Stats ====== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease);
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,107,53,0.2);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ====== Feature Items (horizontal) ====== */
.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
}
.feature-item + .feature-item {
  border-top: 1px solid var(--border-light);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-soft), rgba(255,107,53,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-content h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.feature-content p {
  margin: 0;
  font-size: 0.9rem;
}

/* ====== Dividers ====== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
  border: none;
}

/* ====== Video Placeholder ====== */
.video-placeholder {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #1a1a1a, #2d2d2d);
  margin: 1.25rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.video-placeholder-inner .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,107,53,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
  transition: all var(--duration) var(--ease);
}
.video-placeholder:hover .play-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255,107,53,0.5);
}

/* ====== Embedded project video (home + similar) ====== */
.project-video-embed {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: max-width 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}
.project-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.project-video-embed:hover,
.project-video-embed:focus-within {
  max-width: min(868px, 100%);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15), 0 8px 28px rgba(17, 17, 17, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.25);
}
.project-video-embed.project-video-embed--monthly {
  max-width: none;
  width: 100%;
  margin: 0;
}
.project-video-embed.project-video-embed--monthly:hover,
.project-video-embed.project-video-embed--monthly:focus-within {
  max-width: none;
  transform: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ====== Page Navigation (next/prev) ====== */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3.35rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border-light);
}
.page-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-xs);
}
.page-nav a:hover {
  border-color: rgba(255,107,53,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.page-nav a:last-child { text-align: right; }
.page-nav-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
}

@media (max-width: 600px) {
  .page-nav {
    grid-template-columns: 1fr;
  }
}

/* ====== Footer ====== (home/eval/testing layout from ae8fd3b; + .site-footer__project a for other pages) */
.site-footer,
footer {
  position: relative;
  margin-top: 3rem;
  padding: 0 0 1.75rem;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fafafa 42%, var(--surface) 100%);
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
}
.site-footer::before,
footer::before {
  content: '';
  display: block;
  height: 4px;
  margin-bottom: 0;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand) 38%, var(--brand-light) 72%, var(--brand-accent) 100%);
  box-shadow: 0 0 28px rgba(255, 107, 53, 0.28);
  transition: box-shadow var(--duration-slow) var(--ease);
}
.site-footer:hover::before,
footer:hover::before {
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
}
.site-footer.site-footer--motion::before {
  background-size: 200% 100%;
  animation: siteFooterBarDrift 40s ease-in-out infinite alternate;
}
@keyframes siteFooterBarDrift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer::before,
  footer::before {
    transition: none;
  }
  .site-footer.site-footer--motion::before {
    animation: none;
    background-size: 100% 100%;
  }
  .site-footer:hover::before,
  footer:hover::before {
    box-shadow: 0 0 28px rgba(255, 107, 53, 0.28);
  }
  .site-footer__nav a:hover,
  .site-footer__sponsor:hover,
  .site-footer__blog-link:hover,
  .site-footer__project a:hover {
    transform: none;
  }
}
.site-footer::after,
footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 100% -10%, rgba(255, 107, 53, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at -5% 105%, rgba(255, 69, 0, 0.06) 0%, transparent 50%);
}
.site-footer__inner,
footer .container {
  position: relative;
  z-index: 1;
  max-width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 2.25rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-bottom: 2rem;
}
.site-footer__grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .site-footer__grid--3 {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.08fr) minmax(0, 1fr);
  }
}
.site-footer__block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__heading {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.75rem;
}
.site-footer__nav a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 53, 0.12);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    color var(--duration) var(--ease),
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.site-footer__nav a:hover {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.14);
  transform: translateY(-1px);
}
.site-footer__blurb {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.site-footer__blurb strong {
  font-weight: 700;
  color: var(--text);
}
.site-footer__blurb strong.text-brand {
  color: var(--brand);
}
.site-footer__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.site-footer__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.site-footer__blog-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition:
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.site-footer__blog-link:hover {
  color: var(--brand-dark);
  transform: translateX(2px);
}
.site-footer__project a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition:
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.site-footer__project a:hover {
  color: var(--brand-dark);
  transform: translateX(2px);
}
.site-footer__subheading {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer__supporters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 0.5rem;
  text-align: left;
}
.site-footer__supporters .site-footer__subheading {
  margin: 0 0 0.4rem;
  align-self: flex-start;
}
.site-footer__supporters .site-footer__sponsors {
  margin-top: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}
.site-footer__sponsors {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0.35rem 0 0;
  padding: 0;
}
.site-footer__sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 3.25rem;
  padding: 0.45rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}
.site-footer__sponsor:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.18);
}
.site-footer__sponsor:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.site-footer__sponsor-img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
  object-position: center;
}
.site-footer__sponsor-img--ucl {
  height: 2.1rem;
}
.site-footer__sponsor-img--avanade {
  height: 1.65rem;
}
@media (max-width: 380px) {
  .site-footer__supporters .site-footer__sponsors {
    flex-wrap: wrap;
  }
}
.site-footer__bottom {
  padding-top: 1.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.site-footer__credit {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
@media (max-width: 899px) {
  .site-footer__grid:not(.site-footer__grid--3) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .site-footer__grid {
    gap: 1.75rem;
    margin-bottom: 1.5rem;
  }
}

/* ====== Back to Top ====== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration) var(--ease);
  z-index: 900;
  border: none;
  cursor: pointer;
}
.back-to-top__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-lg);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ====== Scroll Animations ====== */
.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.js .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.js .fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Timeline: understated section fade + gentle horizontal settle on the chart strip */
.js #timeline.section--timeline.fade-in {
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.js .gantt-scroll.fade-in-left {
  transform: translateX(-12px);
  transition: opacity 0.5s var(--ease-out), transform 0.52s var(--ease-out);
}
.js .gantt-scroll.fade-in-left.is-visible {
  opacity: 1;
  transform: none;
}

.js .stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.js .stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.js .stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.js .stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.js .stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.js .stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.js .stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.js .stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.js .stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }

/* ====== Utility ====== */
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ====== Responsive refinements ====== */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2rem; }
  .hero--home { padding: 3.5rem 0 2.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero--home h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .card { padding: 1.25rem; }
  .card-grid { gap: 0.75rem; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  h2 { font-size: 1.25rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  .project-bg-layout {
    grid-template-columns: 1fr;
  }

  .project-bg-logo {
    justify-content: flex-start;
  }
}
