/* Homepage products, ChatGPT cards and research examples. */
html { scroll-padding-top: 104px; }
.hero { min-height: 730px; padding-top: 132px; }
.hero-detail { max-width: 670px; }
.eyebrow, .project-label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; }
.work-section { padding-bottom: 38px; border-bottom: 0; }
.section-heading { grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); }
.section-heading h2 { font-size: clamp(32px, 3.7vw, 53px); }
.section-heading > p { max-width: 470px; font-size: 16px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(24px, 3vw, 44px); }
.help-grid h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.12; }
.help-grid p { max-width: 36ch; margin-bottom: 0; color: var(--muted); }
.contact-panel .contact-email { margin: 14px 0 0; }
.work-section .project-content { padding-bottom: 0; }
.work-section .featured-projects { row-gap: 54px; }
.project-content h3 { font-size: 29px; }
.project-content p { font-size: 15px; }
.project-content .project-label { font-size: 12px; color: var(--muted); }
.project-card--hover-preview:focus-within .project-media > img:not(.project-media-alt) { opacity: 0; }
.project-card--hover-preview:focus-within .project-media .project-media-alt { opacity: 1; transform: scale(1); }
.platform-section .research-heading { margin-bottom: clamp(28px, 4vw, 48px); }
.research-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.research-theme { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(20px, 2.5vw, 32px); border: 1px solid #ffffff26; border-radius: 18px; background: #ffffff08; }
.research-theme h3 { margin: 0; font-size: clamp(23px, 2.2vw, 32px); }
.research-theme p, .research-notes p, .research-practice { color: #d6e2da; }
.research-theme p, .research-notes p { margin: 0; }
.research-status { padding: 4px 10px; border-radius: 999px; background: #b6d9cc16; color: #b6d9cc; font-size: 12px; font-weight: 600; }
.research-theme a { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 650; }
.research-practice { max-width: 72ch; margin: 24px 0 0; }
.research-outputs { margin-top: clamp(36px, 5vw, 64px); }
.research-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px 28px; padding: 0; margin: 20px 0 0; list-style: none; }
.research-notes li { display: grid; align-content: start; gap: 8px; padding-top: 16px; border-top: 1px solid #ffffff36; }
.research-notes a { font-weight: 650; }
.research-notes .research-note-meta { color: #b6d9cc; font-size: 12px; }
.platform-section .button.secondary { border-color: #b6d9cc80; background: transparent; color: #f6f7f2; }
.platform-section .button.secondary:hover, .platform-section .button.secondary:focus-visible { background: #ffffff14; }
.platform-section a:focus-visible { outline-color: #b6d9cc; }
.plugins-section { padding-top: 62px; padding-bottom: 88px; }
.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.plugin-card { display: flex; flex-direction: column; min-width: 0; }
.plugin-art { position: relative; display: flex; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; align-items: center; justify-content: center; border: 1px solid rgba(23,34,36,.1); border-radius: 22px; box-shadow: 0 10px 28px rgba(14,26,25,.07); }
.plugin-art::after { position: absolute; inset: 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; content: ''; pointer-events: none; }
.plugin-art--mandate { background: radial-gradient(ellipse at 75% 15%, #26372b, #171c19 80%); }
.mandate-logo-filter { position: absolute; }
.plugin-art--mandate > img { width: 84%; height: auto; filter: url(#mandate-logo-colors); }
.plugin-art--proper { background: #00112d; }
.plugin-art--proper > img { width: 57%; height: 85%; object-fit: contain; }
.plugin-art--redthread { --redthread-red: #640e20; background: #fff; }
.plugin-art--redthread::after { border-color: #640e2024; }
.redthread-strands { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateY(22%); color: var(--redthread-red); }
.redthread-brand { position: relative; display: block; width: 88%; }
.redthread-brand img { display: block; width: 100%; height: auto; filter: url(#redthread-logo-colors); }
.plugin-art--mylegend { background: radial-gradient(ellipse at 50% 50%, #072e74, #030e27 80%); }
.plugin-art--mylegend > img { width: 56%; height: 85%; object-fit: contain; }
.plugin-platform { position: absolute; left: 18px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; color: #e0e8f2; font-size: 12px; font-weight: 500; line-height: 22px; }
.plugin-platform img { display: block; width: 22px; height: 22px; object-fit: contain; }
.plugin-art--mandate .plugin-platform { color: #d6e2da; }
.plugin-art--redthread .plugin-platform { right: 18px; color: #552a31; line-height: 1.35; }
.plugin-art--redthread .plugin-platform img { flex: 0 0 22px; filter: brightness(0); opacity: .78; }
.plugin-art > img, .plugin-platform { transition: opacity 220ms ease; }
.plugin-screenshot { position: absolute; z-index: 1; inset: 0; overflow: hidden; background: #fff; opacity: 0; transition: opacity 220ms ease; pointer-events: none; }
.plugin-screenshot > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.plugin-screenshot--proper > img { position: absolute; top: -1.5%; left: -30%; width: 160%; max-width: none; height: auto; }
.plugin-screenshot--mandate { background: #1c231f; }
.plugin-preview-trigger { position: absolute; z-index: 3; inset: 0; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; color: #fff; font: inherit; cursor: crosshair; }
.plugin-preview-trigger:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.plugin-art:focus-within .plugin-screenshot { opacity: 1; }
.plugin-art:focus-within > img, .plugin-art:focus-within .plugin-platform { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .plugin-art:hover .plugin-screenshot { opacity: 1; }
  .plugin-art:hover > img, .plugin-art:has(.plugin-screenshot):hover .plugin-platform { opacity: 0; }
}
.plugin-card-dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); }
.plugin-card-dialog::backdrop { background: rgba(10,25,19,.64); backdrop-filter: blur(4px); }
.card-dialog-header { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.card-dialog-header h2 { font-size: 26px; letter-spacing: -.04em; }
.card-dialog-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.plugin-card-dialog[data-theme="mandate"] { background: #171c19; color: #e7eee9; border-color: #3e4b42; }
.plugin-card-dialog[data-theme="mandate"] .card-dialog-header { background: #1c231f; border-color: #3e4b42; }
.plugin-card-dialog[data-theme="mandate"] .card-dialog-header p { color: #b6c3b3; }
.plugin-card-dialog[data-theme="mandate"] .dialog-close { background: #ff8a55; color: #171c19; }
.card-dialog-image { display: block; width: 100%; height: auto; }
.plugin-copy { display: flex; flex: 1; flex-direction: column; padding: 23px 3px 0; }
.plugin-copy h3 { font-size: 29px; }
.plugin-copy > p { max-width: 355px; margin: 0 0 21px; color: #4f5e5a; font-size: 15px; line-height: 1.6; }
.plugin-cta { display: inline-flex; align-self: flex-start; align-items: center; gap: 22px; min-height: 44px; margin-top: auto; padding: 0 17px; border: 1px solid #b8c7bf; border-radius: 999px; background: transparent; color: var(--forest-dark); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; text-decoration: none; }
.plugin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.plugin-cta--chatgpt { gap: 8px; }
.plugin-cta--chatgpt img { filter: brightness(0); }
.plugin-cta:hover { background: #e3ece7; border-color: var(--forest); }
.plugin-cta:focus-visible, .dialog-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.engineering-section { background: #111e1b; color: #e9f0eb; padding-top: 84px; padding-bottom: 84px; }
.engineering-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.engineering-copy h2 { margin-bottom: 26px; font-size: clamp(33px, 3.8vw, 56px); }
.engineering-copy > p { max-width: 500px; color: #b9cac1; font-size: 16px; line-height: 1.65; }
.engineering-copy .project-label { color: #a3bdb0; }
.engineering-copy > p a { color: #d8e8dc; text-decoration: underline; text-decoration-color: #789a85; text-underline-offset: 3px; }
.engineering-copy > p a:hover { color: #fff; text-decoration-color: currentColor; }
.engineering-copy > p a:focus-visible { outline: 2px solid #b6d794; outline-offset: 4px; }
.engineering-details { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.engineering-details span { padding: 5px 10px; border: 1px solid #3c5148; border-radius: 5px; color: #c0d4c8; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.engineering-console { position: relative; min-width: 0; margin-top: 24px; }
.engineering-terminal { overflow: hidden; border: 1px solid #3a4b43; border-radius: 12px; background: #0b1511; box-shadow: 0 18px 46px #0002; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-title { display: grid; gap: 3px; min-height: 76px; align-content: center; padding: 16px 130px 16px 24px; border-bottom: 1px solid #293a31; background: #14221b; color: #c0d4c7; }
.terminal-title > span:last-child { color: #80998b; font-size: 11px; }
.terminal-body { padding: 5px 24px; }
.terminal-entry { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid #24362c; }
.terminal-entry:last-child { border-bottom: 0; }
.terminal-line { padding-top: 1px; color: #557262; font-size: 11px; }
.terminal-entry p { margin: 0; color: #8ea79a; overflow-wrap: anywhere; }
.terminal-entry strong { display: block; margin-bottom: 3px; color: #d8e7de; font-weight: 500; }
.terminal-entry--evidence strong { color: #b6d794; }
.mascot-dock { position: absolute; z-index: 1; top: -20px; right: 24px; display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid #536b48; border-radius: 9px; background: #161d18; box-shadow: 0 0 0 6px #111e1b, 0 8px 24px #0003; }
.mascot-dock::before { position: absolute; top: 50%; right: calc(100% + 7px); width: 18px; border-top: 1px solid #536b48; content: ''; }
.mascot-dock::after { position: absolute; inset: 6px; border: 1px solid #b6d7941c; border-radius: 4px; content: ''; pointer-events: none; }
.mascot-dock img { display: block; width: 74px; height: 74px; image-rendering: pixelated; }
.mascot-scan-beam { position: absolute; left: 14px; top: 16px; width: 58px; height: 2px; background: #b6d794; box-shadow: 0 0 7px #b6d794; opacity: 0; pointer-events: none; }
@keyframes munchkin-section-scan { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes munchkin-section-beam { from { transform: translateY(0); opacity: 1; } to { transform: translateY(44px); opacity: .5; } }
@media (hover: hover) and (pointer: fine) {
  .engineering-section:hover .mascot-dock img { animation: munchkin-section-scan 1.7s ease-in-out infinite; }
  .engineering-section:hover .mascot-scan-beam { animation: munchkin-section-beam 1.7s ease-in-out infinite alternate; }
}
@media (max-width: 480px) {
  .terminal-title { padding-left: 18px; padding-right: 100px; font-size: 12px; }
  .terminal-body { padding: 3px 16px; font-size: 12px; }
  .terminal-entry { grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .mascot-dock { width: 72px; height: 72px; right: 18px; top: -16px; }
  .mascot-dock img { width: 60px; height: 60px; }
  .mascot-scan-beam { left: 10px; top: 8px; width: 50px; }
}

.dialog-close { min-height: 44px; padding: 0 20px; border: 0; border-radius: 24px; background: var(--forest-dark); color: white; font: inherit; cursor: pointer; }
@media (max-width: 980px) { .engineering-layout { gap: 36px; } }
@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
  .hero { min-height: 740px; padding-top: 132px; }
  .section-heading, .plugin-grid, .engineering-layout { grid-template-columns: 1fr; }
  .plugin-grid { gap: 42px; }
  .plugin-art { max-width: 460px; }
  .plugin-copy > p { max-width: 460px; }
  .plugins-section { padding-top: 48px; padding-bottom: 68px; }
  .engineering-section { padding-top: 68px; padding-bottom: 68px; }
  .engineering-layout { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .plugin-art > img, .plugin-platform, .plugin-screenshot { transition: none; } .engineering-section:hover .mascot-dock img, .engineering-section:hover .mascot-scan-beam { animation: none; } }
