/* ══════════════════════════════════════════════════════════════
   GREAT EAGLE DESIGNS — Shared sticky search header + overlay menu
   Used on the landing page and every case-study page.
   ══════════════════════════════════════════════════════════════ */

/* ─── Sticky glass header pill (top-right) ─────────────────────── */
.ged-header {
  position: fixed; top: 16px; right: 24px; left: auto; z-index: 200;
  height: 52px; border-radius: 100px; padding: 5px 6px 5px 8px;
  display: flex; align-items: center; gap: 8px;
}
.ged-logo-bubble {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 60%), rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.25), inset 0 -2px 4px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.35);
}
.ged-logo { width: 24px; height: 27px; object-fit: contain; }
.ged-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ged-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary); white-space: nowrap; }
.ged-name span { color: var(--accent); }
.ged-search-btn {
  position: relative; overflow: hidden;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 8px; border-radius: 100px;
  box-shadow: 0 4px 18px rgba(255,42,0,0.35); transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px;                 /* compact — shows a logo, 8px padding all round */
}
.ged-search-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255,42,0,0.45); }
/* Blinking typing caret next to the label */
.ged-btn-label { white-space: nowrap; }
.ged-btn-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: currentColor; border-radius: 1px; vertical-align: -0.12em;
  animation: gedCaretBlink 1s steps(1) infinite;
}
@keyframes gedCaretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
/* Shine sweep — a soft light band passes across the button edge once. */
.ged-search-btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.ged-search-btn.ged-shine::after { animation: gedBtnShine 0.9s ease-out; }
@keyframes gedBtnShine {
  0% { left: -60%; opacity: 0; }
  15% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ged-btn-caret { animation: none; opacity: 0; }
  .ged-search-btn.ged-shine::after { animation: none; }
}

/* Header button logo (replaces the typed label). Sized so the pill keeps
   clear padding above and below it inside the 52px header. */
/* Pixel-dissolve: as one icon leaves, it fades while its bitmap is scaled up
   with pixelated rendering so it visibly breaks into chunky pixels; the next
   icon reverses the motion. Feels like a continuous pixel dissolve. */
.ged-btn-logo {
  width: 26px; height: 26px; object-fit: contain; display: block;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s var(--ease);
  will-change: opacity, transform, filter;
}
.ged-btn-logo.ged-logo-swap {
  opacity: 0; transform: scale(1.55);
  image-rendering: pixelated; image-rendering: crisp-edges;
  filter: contrast(1.4) saturate(1.2);
}

/* ── Hover flyout: 3 glass bubble icon buttons below the header ── */
.ged-menu-group { position: relative; }
.ged-flyout {
  position: absolute; top: calc(100% + 15px); right: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(0.96); transform-origin: top center;
  transition: opacity 0.28s var(--hover-ease), transform 0.28s var(--hover-ease);
}
.ged-flyout::before { content: ''; position: absolute; left: 0; right: 0; top: -17px; height: 18px; }
.ged-menu-group:hover .ged-flyout,
.ged-menu-group:focus-within .ged-flyout {
  opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
}
.ged-menu-group:hover .ged-fly-item:nth-child(1),
.ged-menu-group:focus-within .ged-fly-item:nth-child(1) { transition-delay: 0.02s; }
.ged-menu-group:hover .ged-fly-item:nth-child(2),
.ged-menu-group:focus-within .ged-fly-item:nth-child(2) { transition-delay: 0.07s; }
.ged-menu-group:hover .ged-fly-item:nth-child(3),
.ged-menu-group:focus-within .ged-fly-item:nth-child(3) { transition-delay: 0.12s; }
.ged-fly-item {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  opacity: 0; transform: translateY(-6px) scale(0.9);
  transition: opacity 0.28s var(--hover-ease), transform 0.28s var(--hover-ease);
}
.ged-menu-group:hover .ged-fly-item,
.ged-menu-group:focus-within .ged-fly-item { opacity: 1; transform: translateY(0) scale(1); }
.ged-fly-label {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap; color: var(--text-primary); line-height: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  opacity: 0; transform: translateX(14px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--hover-ease);
  pointer-events: none;
}
.ged-fly-item:hover .ged-fly-label { opacity: 1; transform: translateX(0); }
.ged-fly-btn {
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255,42,0,0.35);
  box-shadow:
    0 0 0 1px rgba(255,42,0,0.12),
    0 0 18px 2px rgba(255,42,0,0.35),
    0 6px 18px rgba(0,0,0,0.2),
    inset 0 1px 1px rgba(255,255,255,0.5);
  transition: box-shadow 0.25s var(--ease), background 0.25s, transform 0.25s var(--hover-ease);
}
.ged-fly-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow:
    0 0 0 1px rgba(255,42,0,0.25),
    0 0 28px 5px rgba(255,42,0,0.6),
    0 8px 22px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.6);
}
/* Light mode: bubbles read as solid orange (the white logos sit on top). */
[data-theme="light"] .ged-fly-btn {
  background: var(--accent);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-color: rgba(255,42,0,0.55);
}
[data-theme="light"] .ged-fly-btn:hover { background: var(--accent-hover); }
.ged-fly-btn img { width: 30px; height: 30px; object-fit: contain; display: block; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .ged-flyout, .ged-fly-item, .ged-fly-label { transition: opacity 0.15s linear; transform: none; }
}

/* ── Touch devices: no hover, so TAP the main button to reveal the bubbles.
   JS adds .ged-fly-open on the group and .ged-fly-blur on <html>. The flyout +
   its items show just like the hover state; the rest of the page blurs behind
   a fixed layer that sits below the header (so header + bubbles stay crisp). */
@media (hover: none), (pointer: coarse) {
  /* hover no longer reveals it (there is no hover) — only the tapped state does */
  .ged-menu-group:hover .ged-flyout,
  .ged-menu-group:focus-within .ged-flyout { opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.96); }
  .ged-menu-group:hover .ged-fly-item,
  .ged-menu-group:focus-within .ged-fly-item { opacity: 0; transform: translateY(-6px) scale(0.9); }

  .ged-menu-group.ged-fly-open .ged-flyout {
    opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
  }
  .ged-menu-group.ged-fly-open .ged-fly-item { opacity: 1; transform: translateY(0) scale(1); }
  .ged-menu-group.ged-fly-open .ged-fly-item:nth-child(1) { transition-delay: 0.02s; }
  .ged-menu-group.ged-fly-open .ged-fly-item:nth-child(2) { transition-delay: 0.06s; }
  .ged-menu-group.ged-fly-open .ged-fly-item:nth-child(3) { transition-delay: 0.10s; }
  .ged-menu-group.ged-fly-open .ged-fly-item:nth-child(4) { transition-delay: 0.14s; }
  /* on touch, show each bubble's label beside it (no hover to trigger it) */
  .ged-menu-group.ged-fly-open .ged-fly-label { opacity: 1; transform: translateX(0); }
}

/* Full-screen blur layer — everything except the fixed header blurs while the
   touch flyout is open. Header (z-index 200) and flyout sit above this (150). */
.ged-fly-blur-layer {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  opacity: 0; transition: opacity 0.28s var(--ease);
  -webkit-backdrop-filter: blur(9px) saturate(0.9); backdrop-filter: blur(9px) saturate(0.9);
  background: rgba(10,6,5,0.18);
}
[data-theme="light"] .ged-fly-blur-layer { background: rgba(255,255,255,0.22); }
html.ged-fly-blur .ged-fly-blur-layer { opacity: 1; pointer-events: auto; }

/* Reusable hover tooltip */
.ged-tip { position: relative; }
.ged-tip::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: #111; color: #fff; font-size: 11px; font-weight: 500;
  padding: 5px 9px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 320;
}
.ged-tip:hover::after { opacity: 1; }
.ged-tip--left::after { left: auto; right: 0; transform: none; }

/* ─── Overlay ──────────────────────────────────────────────────── */
/* Lock the page WITHOUT losing scroll position: body is pinned in place
   (JS sets body.top = -scrollY) so the page can't scroll and doesn't jump. */
html.ged-lock { overflow: hidden; }
body.ged-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; touch-action: none; }
.ged-overlay { position: fixed; inset: 0; z-index: 300; display: none; overscroll-behavior: contain; }
.ged-overlay.open { display: block; }
/* Transparent click-catcher only — the page stays normal (no dark/blur wash);
   the panel's own glass magnify carries the effect. */
.ged-backdrop {
  position: absolute; inset: 0; background: transparent;
}
.ged-overlay.open .ged-backdrop { opacity: 1; }
/* Panel morph: the glass bar grows WIDTH first, then HEIGHT. Same margins
   as the compact pill (top:16px right:24px). ONE glass surface. */
.ged-panel {
  position: fixed; top: 16px; right: 24px; left: auto;
  width: 360px; height: auto; max-height: 52px; max-width: calc(100vw - 48px);
  border-radius: 26px; padding: 6px 6px 6px 8px; overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity 0.25s ease;
}
/* One continuous authored morph: width grows first, then height begins around
   the halfway mark and finishes together — a single fluid motion, no JS-timed
   stop between phases. */
/* Width and height each animate on their OWN continuous transition (no
   intermediate keyframe stops that would cause a mid-way hold). Width flows
   the whole way; height starts ~30% in (JS adds .expand). Soft, light
   ease-out — glass/bubble fluid, no spring/weight. */
.ged-overlay.open .ged-panel {
  opacity: 1; width: calc(100vw - 48px); max-height: 52px;
  /* Soft liquid ease with a gentle tail settle — glass-bubble fluid, not a
     hard spring (no mid-way hold). */
  transition: width 0.85s cubic-bezier(0.34, 1.12, 0.42, 1), opacity 0.3s ease;
}
.ged-overlay.open .ged-panel.expand {
  max-height: calc(100vh - 32px);
  transition:
    width 0.85s cubic-bezier(0.34, 1.12, 0.42, 1),
    max-height 0.7s cubic-bezier(0.34, 1.12, 0.42, 1);
}
.ged-panel .ged-panel-body { opacity: 0; transition: opacity 0.5s ease; }
.ged-panel.expand .ged-panel-body { opacity: 1; }
.ged-panel-top { display: flex; align-items: center; gap: 12px; flex-shrink: 0; height: 40px; }
.ged-brand--panel { flex-shrink: 0; }

/* The panel is a big glass bubble. We DON'T use the SVG displacement filter
   here — its fixed 400×400 map stretches across the huge expanded panel and
   leaves a visible seam. Instead: a clean frosted-glass magnify (backdrop
   blur + saturate) that scales to any size, plus a rim-only sheen. */
.ged-panel--glassy {
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
}
[data-theme="light"] .ged-panel--glassy {
  -webkit-backdrop-filter: blur(28px) saturate(1.5) brightness(1.05);
  backdrop-filter: blur(28px) saturate(1.5) brightness(1.05);
}
.ged-panel--glassy::before {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  background: radial-gradient(140% 60% at 50% 0%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 22%);
}
[data-theme="light"] .ged-panel--glassy::before {
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85);
  background: radial-gradient(140% 60% at 50% 0%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 24%);
}
/* Panel content must sit above the rim sheen. */
.ged-panel-top, .ged-panel-body { position: relative; z-index: 2; }

/* Search field — solid red border idle, rainbow when AI-on */
.ged-search-wrap {
  position: relative; flex: 1; display: flex; align-items: center; min-width: 0;
  height: 38px; border-radius: 100px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--accent); padding: 0;
}
.ged-search-wrap::before {
  content: ''; position: absolute; inset: -1px; border-radius: 100px; padding: 1.4px;
  /* Same clockwise rotating conic ring as the AI answer card. */
  background: conic-gradient(from var(--ged-ang), #ff4400, #c034d0, #9bff20, #ef1c00, #ff4400);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.ged-search-wrap.ai-on { border-color: transparent; }
.ged-search-wrap.ai-on::before { opacity: 1; animation: gedAnswerSpin 4s linear infinite; }
@supports not (background: conic-gradient(from var(--ged-ang), red, blue)) {
  .ged-search-wrap.ai-on::before { animation: gedAnswerSpinFallback 4s linear infinite; }
}
.ged-search-input {
  flex: 1; background: transparent; color: var(--text-primary); border: 0; outline: none;
  font-size: 14px; font-weight: 500; font-family: inherit; padding: 0 84px 0 18px; height: 100%; min-width: 0;
}
.ged-search-input::placeholder { color: rgba(255,255,255,0.5); }
[data-theme="light"] .ged-search-input::placeholder { color: rgba(0,0,0,0.4); }
/* Zap: rainbow by default; greys out when AI is ON. Never rotates. */
.ged-zap {
  position: absolute; right: 46px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: transparent; isolation: isolate;   /* overflow visible so the tooltip shows */
  color: #fff; transition: color 0.3s, filter 0.3s;
}
/* Living Siri-style spectrum: a spinning conic wave on a layer below the icon.
   Self-clipped to a circle (clip-path) so we DON'T need overflow:hidden on the
   button — which would also clip the tooltip. */
.ged-zap::before {
  content: ""; position: absolute; inset: -70%; z-index: -1;
  border-radius: 50%; clip-path: circle(15px at center);
  background: linear-gradient(90deg, #ff4400, #c034d0, #9bff20, #ef1c00, #ff4400, #c034d0, #9bff20, #ef1c00, #ff4400);
  background-size: 250% 100%;
  animation: gedAiSpin 6s linear infinite, gedAiDrift 4s linear infinite;
}
/* Rotate the layer + drift the spectrum right-to-left underneath it. */
@keyframes gedAiSpin { to { transform: rotate(360deg); } }
@keyframes gedAiDrift { 0% { background-position: 250% 0; } 100% { background-position: 0% 0; } }
.ged-zap svg { width: 15px; height: 15px; position: relative; z-index: 1; }
.ged-zap:hover { filter: brightness(1.1); }
.ged-search-wrap.ai-on .ged-zap { background: rgba(150,150,150,0.35); color: var(--text-secondary); }
.ged-search-wrap.ai-on .ged-zap::before { opacity: 0; }
.ged-zap::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; white-space: nowrap;
  background: #111; color: #fff; font-size: 11px; font-weight: 500; padding: 5px 9px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 5;
}
.ged-zap:hover::after { opacity: 1; }
.ged-close-x {
  position: absolute; right: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.ged-close-x:hover { background: var(--accent-hover); }
.ged-close-x svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.ged-close-x:hover svg { transform: rotate(90deg); }

/* Body scrolls; cards keep clear of the fixed right-hand nav via padding-right */
.ged-panel-body {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: block; padding: 16px 0 28px 0;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y;   /* allow finger scroll despite the page lock */
  scrollbar-width: none; -ms-overflow-style: none;
}
.ged-panel-body::-webkit-scrollbar { display: none; width: 0; height: 0; background: transparent; }
/* Nav: sticky column floated to the RIGHT edge, aligned under the X/theme
   buttons (same right margin). Cards get right margin so they never overlap. */
.ged-sidenav { float: right; position: sticky; top: 0; z-index: 6; width: 100px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.ged-nav-item {
  background: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 18px; border-radius: 100px; transition: all 0.2s; white-space: nowrap;
}
.ged-nav-item:hover { color: var(--text-primary); }
.ged-nav-item.active { color: var(--text-primary); border-color: var(--border); background: var(--surface); }
.ged-content { min-width: 0; margin-right: 116px; }

/* Result content */
.ged-view-label { font-size: 14px; color: var(--text-tertiary); margin: 0 0 16px; }
.ged-view-label em { color: var(--text-secondary); }
.ged-cols { display: grid; grid-template-columns: minmax(0, 452px) minmax(0, 452px); gap: 24px; align-items: start; justify-content: start; }
/* Below the point where two 452px columns + gap (~928px) stop fitting the
   expanded panel, let the columns go fluid so nothing overflows on tablet. */
@media (max-width: 1040px) { .ged-cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.ged-col { display: flex; flex-direction: column; gap: 16px; }
.ged-heading { font-size: 15px; font-weight: 400; color: var(--text-tertiary); margin: 0 0 4px; }
.ged-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  transition: transform 0.3s var(--hover-ease), box-shadow 0.3s var(--hover-ease), border-color 0.3s;
  text-decoration: none; display: block;
}
[data-theme="light"] .ged-card { background: var(--bg-secondary); }
a.ged-card:hover { transform: translateY(-3px); box-shadow: var(--hover-glow); border-color: rgba(255,42,0,0.3); }
.ged-card h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; letter-spacing: -0.01em; }
.ged-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 14px; }
.ged-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ged-chip { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(255,42,0,0.28); padding: 6px 13px; border-radius: 100px; }
.ged-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; background: #7d1f14; border-radius: 100px; padding: 8px 15px; text-decoration: none; margin: 0 8px 8px 0; transition: transform 0.2s, background 0.2s; }
.ged-line:hover { background: #9a2619; transform: translateY(-1px); }
.ged-line svg { width: 15px; height: 15px; }
.ged-contact-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text-primary); margin: 0 0 20px; }
.ged-contact-title span { color: var(--accent); }
.ged-empty { color: var(--text-tertiary); font-size: 14px; padding: 20px 0; }
.ged-empty p { margin: 0 0 14px; font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
/* Clickable suggestion chips shown under the friendly empty state. */
.ged-suggest-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ged-chip.ged-suggest {
  cursor: pointer; border: 1px solid rgba(255,255,255,0.18); font-family: inherit;
  transition: transform 0.15s var(--hover-ease), background 0.2s, box-shadow 0.2s;
}
.ged-chip.ged-suggest:hover { transform: translateY(-1px); background: var(--accent); box-shadow: 0 6px 18px rgba(255,42,0,0.35); }

/* AI answer card — Siri-style border whose colour rotates CLOCKWISE around
   the perimeter. A conic gradient on a ::before layer spins; a mask keeps
   only the border-thickness ring visible. */
@property --ged-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ged-answer {
  --ged-bw: 1.6px;                     /* border thickness */
  position: relative; border-radius: 16px; padding: 20px 22px;
  margin: 4px 24px 24px 0;             /* keep clear of the right-side tabs */
  background: var(--bg-secondary);
  border: var(--ged-bw) solid transparent;   /* space for the ring */
}
[data-theme="dark"] .ged-answer { background: rgba(255,255,255,0.04); }
.ged-answer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; padding: var(--ged-bw);
  background: conic-gradient(from var(--ged-ang), #ff4400, #c034d0, #9bff20, #ef1c00, #ff4400);
  /* Show only the ring: fill minus the padding-box interior. */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: gedAnswerSpin 4s linear infinite;   /* clockwise */
}
@keyframes gedAnswerSpin { to { --ged-ang: 360deg; } }
/* Keep the card content above the ring layer. */
.ged-answer > * { position: relative; z-index: 1; }
/* Fallback for browsers without @property (no smooth angle anim): rotate the
   whole ::before layer instead, same clockwise effect. */
@supports not (background: conic-gradient(from var(--ged-ang), red, blue)) {
  .ged-answer::before { animation: gedAnswerSpinFallback 4s linear infinite; }
  @keyframes gedAnswerSpinFallback { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .ged-answer::before, .ged-zap::before, .ged-search-wrap.ai-on::before { animation: none !important; }
}
.ged-answer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ged-answer-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 100px; }
.ged-answer-q { font-size: 13px; color: var(--text-tertiary); font-style: italic; }
.ged-answer h4 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; letter-spacing: -0.01em; }
.ged-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 8px; }
.ged-answer p:last-child { margin-bottom: 0; }
.ged-answer strong { color: var(--text-primary); font-weight: 700; }
.ged-answer-list { margin: 6px 0 0; padding-left: 18px; }
.ged-answer-list li { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 4px; }
.ged-answer-list li::marker { color: var(--accent); }
/* Relevant project image cards beneath the AI answer (Google + AI feel). */
.ged-answer-cards { display: grid; grid-template-columns: repeat(auto-fill, 226px); gap: 16px; margin: 16px 0 4px; }
@media (max-width: 760px) { .ged-answer-cards { grid-template-columns: 1fr; } }
/* Categorized AI results — grouped by section with bold names + bullets. */
.ged-results-cats { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.ged-res-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ged-res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ged-res-item { position: relative; padding-left: 16px; }
.ged-res-item::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ged-res-link { display: block; text-decoration: none; color: var(--text-secondary); border-radius: 8px; padding: 2px 0; transition: color 0.2s; }
a.ged-res-link:hover { color: var(--text-primary); }
a.ged-res-link:hover strong { color: var(--accent); }
.ged-res-link strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.ged-res-link span { display: block; font-size: 13px; color: var(--text-tertiary); line-height: 1.5; margin-top: 1px; }

/* ── Rich project cards (Figma 393-8554), laid out in the same 2-col grid ── */
/* Fixed-width cards that wrap and pack as many per row as fit (up to ~4). */
.ged-pc-grid { display: grid; grid-template-columns: repeat(auto-fill, 226px); gap: 20px; align-items: start; justify-content: start; }
/* Glass project cards — translucent frosted panel + bubble rim highlight.
   (Lightweight glass, not the heavy SVG displacement, so a grid of them stays
   smooth.) The image window keeps its own solid backing. */
.ged-pc {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; text-decoration: none;
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 26px rgba(0,0,0,0.22);
  transition: transform 0.3s var(--hover-ease), box-shadow 0.3s var(--hover-ease), border-color 0.3s;
}
[data-theme="light"] .ged-pc {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 26px rgba(0,0,0,0.10);
}
a.ged-pc:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), var(--hover-glow); border-color: rgba(255,42,0,0.3); }
.ged-pc-media { width: 100%; background: #0d0b0a; line-height: 0; }
.ged-pc-media img { width: 100%; height: auto; display: block; object-fit: contain; }
.ged-pc-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; }
.ged-pc-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0; letter-spacing: -0.01em; line-height: 1.3; }
.ged-pc-cats { font-size: 11.5px; color: var(--text-tertiary); margin: 0; }
.ged-pc-summary { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; margin: 0; }
.ged-pc-metric { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 6px 12px; border-radius: 100px; margin-top: 2px; }
.ged-pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
/* Glass chips — frosted translucent pill with a top glint. */
.ged-pc-tag {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  padding: 4px 10px; border-radius: 100px;
}
[data-theme="light"] .ged-pc-tag {
  background: rgba(255,255,255,0.55); color: var(--text-secondary);
  border-color: rgba(255,255,255,0.8); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
a.ged-pc:hover .ged-pc-title { color: var(--accent); }

@media (max-width: 760px) {
  .ged-name { display: none; }
  .ged-panel { padding: 12px 14px 20px; }
  .ged-panel-top { gap: 8px; }
  .ged-nav-item { font-size: 14px; padding: 4px 12px; }
  .ged-sidenav { float: none; position: static; flex-direction: row; width: auto; margin: 0 0 12px auto; justify-content: flex-end; }
  .ged-content { margin-right: 0; }
  .ged-cols { grid-template-columns: 1fr; }
  .ged-pc-grid { grid-template-columns: 1fr; }
}
