/* Shared base styles for every project article page under projects/.
   This is the single source of truth for the recurring layout pieces:
   hero, typography, placeholders, media (images/video/lightbox/overlay),
   cards (glass-card, principles, accordion, pipeline), pull-quote, lists,
   article nav. Each page can still add a small inline <style> for content
   that is genuinely one-off (e.g. a bespoke diagram layout), but anything
   reused across two or more articles belongs here, not copy-pasted. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { font-family: 'Poppins', sans-serif; background: #f5f5f3; color: #1c1c1c; line-height: 1.75; -webkit-font-smoothing: antialiased; }
html.overlay-lock, html.overlay-lock body { overflow: hidden; }

#article-topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h, 75px);
  background: rgba(245,245,243,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  pointer-events: none;
}

/* ── HERO ── */
.hero { position: relative; width: 100%; height: 85vh; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.hero .placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #d4d0ca 0%, #bbb5ad 100%); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 500; color: #999; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.1) 50%, transparent 100%); }
.hero-content { position: relative; z-index: 1; text-align: left; padding: 0 28px 56px; max-width: 960px; width: 100%; opacity: 0; transition: opacity 0.4s ease; }
.hero-content.ready { opacity: 1; }
.hero-tag { display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.hero-title { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; line-height: 1.12; color: #fff; margin-bottom: 12px; }
.hero-subtitle { font-size: clamp(0.85rem, 1.4vw, 1rem); font-weight: 300; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 24px; max-width: 560px; }
.hero-roles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.hero-roles span { font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.65); padding: 4px 14px; border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; letter-spacing: 0.02em; }

/* ── ARTICLE CONTAINER & META ── */
.article-body { max-width: 960px; margin: 0 auto; padding: 64px 28px 0; }
.article-body > *:last-child { margin-bottom: 0; }

.article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.76rem; color: #999; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid #e0e0de; }
.article-meta span { letter-spacing: 0.04em; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #ccc; }

/* ── TYPOGRAPHY ── */
h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.3; margin: 72px 0 18px; color: #111; }
h2:first-of-type { margin-top: 0; }
h2::before { content: ''; display: block; width: 48px; height: 2px; background: #d8d8d8; margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin: 0 0 10px; color: #1c1c1c; }
p { font-size: 1.1rem; font-weight: 300; color: #444; margin-bottom: 20px; line-height: 1.8; }
strong { font-weight: 600; color: #222; }

/* ── PLACEHOLDER ── */
.article-placeholder { margin: 48px 0; border-radius: 14px; overflow: hidden; background: #eae8e4; display: flex; align-items: center; justify-content: center; min-height: 280px; }
figure .article-placeholder { margin: 0; }
.article-placeholder span { font-size: 0.75rem; font-weight: 500; color: #aaa; letter-spacing: 0.1em; text-transform: uppercase; }
.article-placeholder.short { min-height: 180px; }
/* Preview placeholder nested inside a card, between title-less top and copy below */
.glass-card .article-placeholder { margin: 0 0 18px; }
.article-placeholder.tall { min-height: 360px; }

/* ── IMAGES & VIDEO ── */
.article-img-full { display: block; width: 100%; border-radius: 14px; margin: 48px 0; object-fit: cover; max-height: 560px; }
.article-img-full.tall { max-height: 720px; }

figure { margin: 48px 0; }
figure img, figure video { display: block; width: 100%; border-radius: 14px; object-fit: cover; max-height: 560px; }
figcaption { margin-top: 12px; font-size: 0.8rem; font-weight: 400; color: #aaa; letter-spacing: 0.04em; padding-left: 2px; }

.two-img { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.two-img img, .two-img video { display: block; width: 100%; border-radius: 14px; object-fit: cover; aspect-ratio: 4 / 3; }

.three-img { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 48px 0; }
.three-img img { display: block; width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 3 / 4; }

.article-body img, figure img, .two-img img, .three-img img { cursor: pointer; }

/* Single shadow rule for all standalone media */
.article-img-full,
figure img, figure video,
.two-img img, .two-img video,
.video-thumb video { box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04); }
.glass-card figure img, .glass-card figure video,
.glass-card .video-thumb video,
.accordion-panel-content figure img, .accordion-panel-content figure video,
.accordion-panel-content .video-thumb video { box-shadow: none; }

/* Video thumbnail with a play button overlay, opens the full video overlay below */
.video-thumb { position: relative; cursor: pointer; display: block; }
.glass-card .video-thumb { margin-bottom: 18px; }
.video-thumb video { display: block; width: 100%; border-radius: 14px; object-fit: cover; max-height: 560px; pointer-events: none; }
.video-play-overlay { position: absolute; inset: 0; border-radius: 14px; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background 0.25s, opacity 0.25s; pointer-events: none; opacity: 0; }
.video-thumb:hover .video-play-overlay { background: rgba(0,0,0,0.38); opacity: 1; }
.video-play-btn-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.video-play-btn-icon svg { width: 18px; height: 18px; margin-left: 3px; }
.two-img .video-thumb video { max-height: none; aspect-ratio: 4 / 3; }
figure .video-thumb video { max-height: 560px; }

/* ── SEMANTIC SECTION (text + aside) ── */
.semantic-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; margin: 36px 0 48px; }
.semantic-section .text-col p { max-width: none; }
.semantic-section .aside-col { display: flex; flex-direction: column; gap: 20px; }
.semantic-section .aside-col img { width: 100%; border-radius: 14px; object-fit: cover; aspect-ratio: 4 / 3; }
.semantic-section .aside-placeholder { width: 100%; min-height: 200px; border-radius: 14px; background: #eae8e4; display: flex; align-items: center; justify-content: center; }
.semantic-section .aside-placeholder span { font-size: 0.72rem; font-weight: 500; color: #aaa; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── TWO-COLUMN CARD (image + text) ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 36px 0 48px; }
.card { display: flex; flex-direction: column; }
.card .card-image { width: 100%; min-height: 220px; border-radius: 14px; background: #eae8e4; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card .card-image span { font-size: 0.72rem; font-weight: 500; color: #aaa; letter-spacing: 0.1em; text-transform: uppercase; }
.card h3 { font-size: 0.68rem; font-weight: 600; margin-bottom: 14px; color: #aaa; text-transform: uppercase; letter-spacing: 0.09em; transition: color 350ms ease; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* ── GLASS GRID (role/tool/result cards) ── */
.glass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 48px; }
.glass-grid.two-up { grid-template-columns: 1fr 1fr; }
.glass-grid.stacked { grid-template-columns: 1fr; }
/* Exactly 4 cards: 2x2, never 3+1 */
.glass-grid.four-up { grid-template-columns: repeat(2, 1fr); }

.glass-card {
  --shadow-alpha: 0.14; --shadow-darken: 2%;
  position: relative;
  /* No backdrop-filter here: the article body is a flat #f5f5f3, so blurring
     the backdrop produced no visible change, but forced the card to recompute
     the filter on every video-frame repaint, flashing a light band over the
     top padding on 4-up video grids during scroll. */
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.45);
  border-left-color: rgba(255,255,255,0.35);
  border-radius: 18px; padding: 24px 22px;
  color: #3e3e3e;
  box-shadow: 0 8px 32px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04),
              inset 0 1px 0 rgba(255,255,255,0.5), inset 0 0 20px rgba(255,255,255,0.05);
  transition: border-color 400ms ease, box-shadow 400ms ease, background 400ms ease;
  overflow: hidden;
}
.glass-card::after {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  pointer-events: none; z-index: 1;
}
.glass-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-color, rgba(255,255,255,0.22)), transparent 55%);
  opacity: 0; transition: opacity 350ms ease; pointer-events: none; z-index: 0; border-radius: inherit;
  padding: 3px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}
.glass-card:nth-child(1) { --glow-color: rgba(120,180,255,0.30); --title-color: #6aaad4; --shadow-rgb: 120,180,255; }
.glass-card:nth-child(2) { --glow-color: rgba(255,180,50,0.30);  --title-color: #cc8c60; --shadow-rgb: 255,180,50; }
.glass-card:nth-child(3) { --glow-color: rgba(60,210,160,0.28);  --title-color: #50a888; --shadow-rgb: 60,210,160; }
.glass-card:nth-child(4) { --glow-color: rgba(200,80,220,0.28);  --title-color: #9870c0; --shadow-rgb: 200,80,220; }
.glass-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.10) 40%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.45); border-top-color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.5);
  box-shadow: 0 12px 48px color-mix(in srgb, rgba(var(--shadow-rgb,0,0,0), var(--shadow-alpha)) calc(100% - var(--shadow-darken)), black),
              0 2px 4px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 0 30px rgba(255,255,255,0.08);
}
.glass-card:hover::before { opacity: 1; }
.glass-card > * { position: relative; z-index: 1; }
.glass-card .eyebrow { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #aaa; margin-bottom: 14px; }
.glass-card h3 { font-size: 0.68rem; font-weight: 600; margin: 0 0 14px; color: #aaa; text-transform: uppercase; letter-spacing: 0.09em; line-height: 1.3; transition: color 350ms ease; }
.glass-card:hover h3 { color: var(--title-color, #6aaad4); }
.glass-card p { font-size: 0.9rem; font-weight: 400; color: #666; margin: 0; line-height: 1.55; }
/* Cards with an eyebrow: h3 becomes the main message, bigger and darker */
.glass-card > .eyebrow ~ h3 { font-size: 1rem; color: #3e3e3e; letter-spacing: 0.04em; }
.glass-card:hover > .eyebrow ~ h3 { color: var(--title-color, #6aaad4); }
/* Cards with no eyebrow at all (.no-eyebrow modifier on the grid): h3 is the main message */
.glass-grid.no-eyebrow .glass-card h3 { font-size: 1rem; color: #3e3e3e; letter-spacing: 0.04em; }
.glass-grid.no-eyebrow .glass-card:hover h3 { color: var(--title-color, #6aaad4); }
.glass-grid.no-eyebrow .accordion-visual { margin-bottom: 14px; }

.glass-card .stat { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1; color: #3e3e3e; margin-bottom: 6px; letter-spacing: -0.02em; transition: color 350ms ease; }
.glass-card:hover .stat { color: var(--title-color, #3e3e3e); }

.card-icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; margin: 0 0 16px; color: #9e9e9e; transition: color 350ms ease; }
.glass-card:hover .card-icon { color: var(--title-color, #3e3e3e); }
.card-icon svg { width: 42px; height: 42px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card-icon img { width: 42px; height: 42px; display: block; object-fit: contain; }
.card-icon.is-cube svg { width: 48px; height: 48px; stroke-width: 1.53; }

/* Photo-style icon variant: full-bleed image at the top of the card */
.glass-grid.photo-grid .card-icon { width: 100%; height: 220px; margin: 6px 0 18px; align-items: center; justify-content: center; pointer-events: none; }
.glass-grid.photo-grid .card-icon img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: grayscale(1) contrast(0.85) brightness(1.3); opacity: 0.55; transition: filter 350ms ease, opacity 350ms ease; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.glass-grid.photo-grid .glass-card:hover .card-icon img { filter: none; opacity: 1; }
.glass-grid.photo-grid .glass-card { min-height: 360px; display: flex; flex-direction: column; }

/* ── PRINCIPLES (large cards, stacked) ── */
.principles { margin: 36px 0 48px; display: flex; flex-direction: column; gap: 18px; }
.principle {
  --shadow-alpha: 0.14; --shadow-darken: 2%;
  position: relative; padding: 24px 24px 22px; min-width: 0; will-change: transform;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.34);
  border-top-color: rgba(255,255,255,0.48);
  border-left-color: rgba(255,255,255,0.4);
  box-shadow: 0 8px 28px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03),
              inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 18px rgba(255,255,255,0.04);
  overflow: hidden;
  transition: border-color 400ms ease, box-shadow 400ms ease, background 400ms ease;
}
.principle::after { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent); pointer-events: none; z-index: 1; }
.principle::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-color, rgba(255,255,255,0.22)), transparent 55%);
  opacity: 0; transition: opacity 350ms ease; pointer-events: none; z-index: 0; border-radius: inherit;
  padding: 3px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}
.principle:nth-child(1) { --glow-color: rgba(120,180,255,0.28); --title-color: #6aaad4; --shadow-rgb: 120,180,255; }
.principle:nth-child(2) { --glow-color: rgba(200,80,220,0.28); --title-color: #9870c0; --shadow-rgb: 200,80,220; }
.principle:nth-child(3) { --glow-color: rgba(255,90,90,0.28);  --title-color: #c06060; --shadow-rgb: 255,90,90; }
.principle:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.10) 40%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.45); border-top-color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.5);
  box-shadow: 0 12px 48px color-mix(in srgb, rgba(var(--shadow-rgb,0,0,0), var(--shadow-alpha)) calc(100% - var(--shadow-darken)), black),
              0 2px 4px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 0 30px rgba(255,255,255,0.08);
}
.principle:hover::before { opacity: 1; }
.principle > * { position: relative; z-index: 1; }
.principle h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: #3e3e3e; transition: color 350ms ease; }
.principle p { margin-bottom: 0; max-width: none; }
.principle:hover h3 { color: var(--title-color, #6aaad4); }

/* ── ACCORDION ── */
.workflow-accordion { display: flex; flex-direction: column; gap: 18px; margin: 36px 0 48px; }
.accordion-item {
  --shadow-alpha: 0.14; --shadow-darken: 2%;
  position: relative; will-change: transform;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.45);
  border-left-color: rgba(255,255,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04),
              inset 0 1px 0 rgba(255,255,255,0.5), inset 0 0 20px rgba(255,255,255,0.05);
  transition: border-color 400ms ease, box-shadow 400ms ease, background 400ms ease;
  overflow: hidden;
}
.accordion-item::after { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent); pointer-events: none; z-index: 1; }
.accordion-item::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-color, rgba(255,255,255,0.22)), transparent 55%);
  opacity: 0; transition: opacity 350ms ease; pointer-events: none; z-index: 0; border-radius: inherit;
  padding: 3px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}
.accordion-item:nth-child(1) { --glow-color: rgba(120,180,255,0.28); --title-color: #6aaad4; --shadow-rgb: 120,180,255; }
.accordion-item:nth-child(2) { --glow-color: rgba(255,180,50,0.28);  --title-color: #cc8c60; --shadow-rgb: 255,180,50; }
.accordion-item:nth-child(3) { --glow-color: rgba(60,210,160,0.26);  --title-color: #50a888; --shadow-rgb: 60,210,160; }
.accordion-item:nth-child(4) { --glow-color: rgba(200,80,220,0.28);  --title-color: #9870c0; --shadow-rgb: 200,80,220; }
.accordion-item.open, .accordion-item:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.10) 40%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.45); border-top-color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.5);
  box-shadow: 0 12px 48px color-mix(in srgb, rgba(var(--shadow-rgb,0,0,0), var(--shadow-alpha)) calc(100% - var(--shadow-darken)), black),
              0 2px 4px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 0 30px rgba(255,255,255,0.08);
}
.accordion-item.open::before, .accordion-item:hover::before { opacity: 1; }
.accordion-summary { appearance: none; -webkit-appearance: none; background: none; border: none; outline: none; font-family: inherit; font-size: inherit; color: inherit; text-align: left; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 24px 22px; cursor: pointer; position: relative; z-index: 1; }
.accordion-summary h3 { margin: 0; font-size: 0.88rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; transition: color 350ms ease; }
.accordion-item.open .accordion-summary h3, .accordion-item:hover .accordion-summary h3 { color: var(--title-color, #3e3e3e); }
.accordion-chevron { width: 18px; height: 18px; flex-shrink: 0; color: rgba(62,62,62,0.55); transition: transform 250ms ease, color 250ms ease; }
.accordion-chevron svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--title-color, #3e3e3e); }
.accordion-panel { position: relative; z-index: 1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms cubic-bezier(0.76, 0, 0.24, 1); }
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; min-height: 0; }
.accordion-panel-content { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 24px; padding: 0 24px 24px; align-items: start; }
.accordion-panel-content.no-visual { grid-template-columns: 1fr; }
.accordion-panel-content p { font-size: 0.9rem; font-weight: 400; color: #666; line-height: 1.55; }
.accordion-copy p:last-child { margin-bottom: 0; }
.accordion-media { display: grid; gap: 18px; }
.accordion-visual {
  margin: 0; position: relative; min-height: 210px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.88), rgba(255,255,255,0) 32%), linear-gradient(145deg, rgba(255,255,255,0.9), rgba(234,232,228,0.82));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 14px 28px rgba(0,0,0,0.06);
}
.accordion-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 42%); pointer-events: none; }
.accordion-visual svg { width: 100%; height: 100%; display: block; }
.accordion-visual img, .accordion-visual video { width: 100%; height: auto; display: block; }
.accordion-visual:has(img), .accordion-visual:has(video) { min-height: 0; }
.accordion-visual .accent-stroke { stroke: var(--title-color, #3e3e3e); }
.accordion-visual .accent-fill { fill: color-mix(in srgb, var(--title-color, #3e3e3e) 18%, white); }
.accordion-visual .muted-stroke { stroke: rgba(62,62,62,0.42); }
.accordion-visual .muted-fill { fill: rgba(255,255,255,0.78); }

/* ── PIPELINE FLOW (numbered steps) ── */
.pipeline-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 28px 0 40px; }
.pipeline-step {
  --shadow-alpha: 0.14; --shadow-darken: 2%;
  position: relative; will-change: transform;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.45);
  border-left-color: rgba(255,255,255,0.35);
  border-radius: 16px; padding: 22px 20px;
  color: #3e3e3e;
  box-shadow: 0 8px 32px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04),
              inset 0 1px 0 rgba(255,255,255,0.5), inset 0 0 20px rgba(255,255,255,0.05);
  transition: border-color 400ms ease, box-shadow 400ms ease, background 400ms ease;
  overflow: hidden;
}
.pipeline-step::after { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent); pointer-events: none; z-index: 1; }
.pipeline-step::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-color, rgba(255,255,255,0.22)), transparent 55%);
  opacity: 0; transition: opacity 350ms ease; pointer-events: none; z-index: 0; border-radius: inherit;
  padding: 3px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}
.pipeline-step:nth-child(1) { --glow-color: rgba(120,180,255,0.30); --title-color: #6aaad4; --shadow-rgb: 120,180,255; }
.pipeline-step:nth-child(2) { --glow-color: rgba(255,180,50,0.30);  --title-color: #cc8c60; --shadow-rgb: 255,180,50; }
.pipeline-step:nth-child(3) { --glow-color: rgba(200,80,220,0.28);  --title-color: #9870c0; --shadow-rgb: 200,80,220; }
.pipeline-step:nth-child(4) { --glow-color: rgba(60,210,160,0.28);  --title-color: #50a888; --shadow-rgb: 60,210,160; }
.pipeline-step:nth-child(5) { --glow-color: rgba(255,90,90,0.28);   --title-color: #c06060; --shadow-rgb: 255,90,90; }
.pipeline-step:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.10) 40%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.45); border-top-color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.5);
  box-shadow: 0 12px 48px color-mix(in srgb, rgba(var(--shadow-rgb,0,0,0), var(--shadow-alpha)) calc(100% - var(--shadow-darken)), black),
              0 2px 4px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 0 30px rgba(255,255,255,0.08);
}
.pipeline-step:hover::before { opacity: 1; }
.pipeline-step > * { position: relative; z-index: 1; }
.pipeline-step .step-index { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #aaa; margin-bottom: 10px; }
.pipeline-step h3 { font-size: 0.88rem; font-weight: 600; margin: 0 0 8px; color: #3e3e3e; text-transform: uppercase; letter-spacing: 0.09em; line-height: 1.3; transition: color 350ms ease; }
.pipeline-step:hover h3 { color: var(--title-color, #3e3e3e); }
.pipeline-step p { font-size: 0.9rem; font-weight: 400; color: #666; margin: 0; line-height: 1.5; }

/* ── PULL QUOTE ── */
.pull-quote { margin: 80px 0; max-width: 600px; padding-left: 56px; position: relative; }
.pull-quote::before { content: '\201C'; position: absolute; left: 0; top: -0.18em; font-size: 5.5rem; font-weight: 700; line-height: 1; color: #d8d8d8; font-style: normal; }
.pull-quote p { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 300; font-style: italic; color: #1c1c1c; line-height: 1.55; margin: 0; }

/* ── INLINE QUOTE ── */
.inline-quote { font-size: 1.05rem; font-weight: 600; font-style: italic; color: #222; margin: 16px 0 20px; }

/* ── LISTS (dash-marker, dot-marker — same component, different historical names) ── */
.results-list, .article-list, .summary-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 4px; }
.results-list li, .article-list li, .summary-list li { position: relative; padding-left: 20px; font-size: 1.1rem; font-weight: 300; color: #444; line-height: 1.7; }
.results-list li::before, .article-list li::before, .summary-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: #d8d8d8; }
.results-list strong, .article-list strong, .summary-list strong { color: #1c1c1c; font-weight: 600; }

/* ── DEMO BANNER (opens a link in a new tab) — the exact .glass-card
   recipe (mouse-tracked border glow, colored hover shadow, gray-to-accent
   text) applied to a single full-width row instead of a grid card. The
   only thing added on top is the scale-up on hover. Needs '.demo-banner'
   added to the page's mousemove listener selector list, same as
   '.glass-card', or the glow won't track the cursor. ── */
.demo-banner {
  --shadow-alpha: 0.14; --shadow-darken: 2%;
  --glow-color: rgba(120,180,255,0.30); --title-color: #6aaad4; --shadow-rgb: 120,180,255;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 40px 0; padding: 26px 30px;
  will-change: transform;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.45);
  border-left-color: rgba(255,255,255,0.35);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04),
              inset 0 1px 0 rgba(255,255,255,0.5), inset 0 0 20px rgba(255,255,255,0.05);
  text-decoration: none;
  overflow: hidden;
  transition: transform 350ms cubic-bezier(0.4,0,0.2,1), border-color 400ms ease, box-shadow 400ms ease, background 400ms ease;
}
.demo-banner::after {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  pointer-events: none; z-index: 1;
}
.demo-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-color, rgba(255,255,255,0.22)), transparent 55%);
  opacity: 0; transition: opacity 350ms ease; pointer-events: none; z-index: 0; border-radius: inherit;
  padding: 3px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}
.demo-banner:hover {
  transform: scale(1.015);
  background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.10) 40%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.45); border-top-color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.5);
  box-shadow: 0 12px 48px color-mix(in srgb, rgba(var(--shadow-rgb,0,0,0), var(--shadow-alpha)) calc(100% - var(--shadow-darken)), black),
              0 2px 4px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 0 30px rgba(255,255,255,0.08);
}
.demo-banner:hover::before { opacity: 1; }
.demo-banner > * { position: relative; z-index: 1; }
.demo-banner-text { display: flex; flex-direction: column; gap: 6px; }
.demo-banner-eyebrow { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #aaa; transition: color 350ms ease; }
.demo-banner-title { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #3e3e3e; transition: color 350ms ease; }
.demo-banner:hover .demo-banner-eyebrow, .demo-banner:hover .demo-banner-title { color: var(--title-color, #6aaad4); }
.demo-banner-arrow { width: 18px; height: 18px; flex-shrink: 0; color: #9e9e9e; transition: transform 250ms ease, color 350ms ease; }
.demo-banner-arrow svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-banner:hover .demo-banner-arrow { transform: translate(3px, -3px); color: var(--title-color, #6aaad4); }
@media (max-width: 480px) {
  .demo-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 22px; }
  .demo-banner:hover { transform: none; }
}

/* ── ARTICLE NAV ── */
.article-nav { max-width: 960px; margin: 0 auto; padding: 48px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-nav-link { display: flex; align-items: center; gap: 14px; padding: 18px 24px; flex: 1; min-width: 0; overflow: hidden; border-radius: 100px; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06); text-decoration: none; color: inherit; transition: box-shadow 0.3s ease, transform 0.28s cubic-bezier(0.4,0,0.2,1); }
.article-nav-link.prev:hover { transform: translateX(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.07); }
.article-nav-link.next:hover { transform: translateX(5px); box-shadow: 0 12px 36px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.07); }
.nav-arrow { flex-shrink: 0; }
.nav-arrow svg { width: 18px; height: 18px; stroke: #1c1c1c; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.nav-dir { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #bbb; }
.nav-title { font-size: 0.88rem; font-weight: 600; color: #1c1c1c; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-nav-link.next { flex-direction: row-reverse; text-align: right; }
.article-nav-link.next .nav-text { align-items: flex-end; }
.article-nav-link.next .nav-title { width: 100%; direction: rtl; }
.nav-top { padding: 18px 20px; border-radius: 100px; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 2px 16px rgba(0,0,0,0.07); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.nav-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.nav-top svg { width: 18px; height: 18px; stroke: #1c1c1c; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── LIGHTBOX (single image) ── */
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; cursor: pointer; }
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; cursor: default; }
#lightbox-close { position: fixed; top: 16px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
#lightbox-close:hover { transform: scale(1.08); box-shadow: 0 4px 20px rgba(0,0,0,0.14); }
#lightbox-close svg { width: 18px; height: 18px; stroke: #1c1c1c; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── VIDEO OVERLAY (full video player modal) ── */
#video-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#video-overlay.open { opacity: 1; pointer-events: auto; }
#video-overlay-player { max-width: 90vw; max-height: 78vh; border-radius: 10px; display: block; cursor: default; }
#video-overlay-close { position: fixed; top: 16px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; z-index: 10000; }
#video-overlay-close:hover { transform: scale(1.08); }
#video-overlay-close svg { width: 18px; height: 18px; stroke: #1c1c1c; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#video-controls { display: flex; align-items: center; gap: 14px; width: 90vw; max-width: 860px; }
#video-play-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
#video-play-btn:hover { background: rgba(255,255,255,0.22); }
#video-play-btn svg { width: 15px; height: 15px; }
#video-timeline-wrap { flex: 1; height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; cursor: pointer; position: relative; }
#video-timeline-wrap:hover { height: 5px; }
#video-timeline-fill { height: 100%; background: #fff; border-radius: 2px; width: 0%; pointer-events: none; }
#video-time { font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.5); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
#video-mute-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
#video-mute-btn:hover { background: rgba(255,255,255,0.22); }
#video-mute-btn svg { width: 16px; height: 16px; }
#video-volume { -webkit-appearance: none; appearance: none; width: 72px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; cursor: pointer; outline: none; flex-shrink: 0; accent-color: #fff; }
#video-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; }
#video-volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; border: none; }

/* ── DEMO OVERLAY (near-fullscreen iframe preview) ── */
#demo-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#demo-overlay.open { opacity: 1; pointer-events: auto; }
#demo-overlay-frame { width: 92vw; height: 88vh; border: none; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
#demo-overlay-close { position: fixed; top: 16px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; z-index: 10000; }
#demo-overlay-close:hover { transform: scale(1.08); }
#demo-overlay-close svg { width: 18px; height: 18px; stroke: #1c1c1c; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  #demo-overlay-frame { width: 100vw; height: 100vh; border-radius: 0; }
  #demo-overlay-close { top: 12px; right: 14px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { height: 65vh; }
  .hero-content { padding: 0 24px 40px; }
  .article-body { max-width: 100%; padding: 48px 20px 0; }
  .glass-grid, .glass-grid.two-up, .glass-grid.four-up, .glass-grid.stacked { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .semantic-section { grid-template-columns: 1fr; gap: 32px; }
  .accordion-panel-content { grid-template-columns: 1fr; }
  .pipeline-flow { grid-template-columns: 1fr; }
  .two-img { grid-template-columns: 1fr; }
  .three-img { grid-template-columns: 1fr 1fr; }
  .pull-quote p { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .article-nav { flex-wrap: wrap; }
  .article-nav-link { padding: 14px 18px; }
  .article-nav-link.next { flex-direction: row; text-align: left; }
  .article-nav-link.next .nav-text { align-items: flex-start; }
  .nav-top { display: none; }
  .three-img { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-content { padding: 0 18px 32px; }
  .hero-roles { gap: 6px; }
  .hero-roles span { font-size: 0.63rem; padding: 3px 10px; }
  .article-body { padding: 36px 16px 0; }
}
