:root {
  --bg: #f4ede5;
  --bg-strong: #e8dccd;
  --surface: rgba(255, 250, 245, 0.84);
  --surface-solid: #fffdf9;
  --surface-soft: #f8f1e8;
  --surface-dark: #161a25;
  --surface-dark-2: #232332;
  --ink: #131722;
  --ink-soft: #293246;
  --muted: #5d6574;
  --muted-strong: #4b5569;
  --line: rgba(16, 23, 34, 0.12);
  --line-strong: rgba(16, 23, 34, 0.22);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent-rgb: 133, 86, 58;
  --accent: #85563a;
  --accent-deep: #613b29;
  --accent-soft: rgba(133, 86, 58, 0.1);
  --accent-gold: #8b7b49;
  --danger-soft: rgba(195, 70, 70, 0.12);
  --shadow: 0 20px 60px rgba(16, 23, 34, 0.08);
  --shadow-soft: 0 12px 36px rgba(16, 23, 34, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-body: "Manrope", sans-serif;
  --font-display: "Source Serif 4", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.14), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(84, 98, 122, 0.1), transparent 26%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 48%, #eee4d8 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 23, 34, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 34, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 68%);
  filter: blur(16px);
}

body.case-page,
body.thank-you-page {
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(84, 98, 122, 0.08), transparent 24%),
    linear-gradient(180deg, #fffdfa 0%, #f3ece4 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
pre {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

code {
  padding: 0.18rem 0.42rem;
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.08);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

pre {
  overflow: auto;
}

pre code {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(6, 12, 19, 0.86);
  color: #f5f7fb;
  line-height: 1.55;
}

.panel-dark code {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.shell,
.case-shell,
.thank-you-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
}

.topbar-inner,
.case-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(16, 23, 34, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-dark) 0%, var(--accent-deep) 100%);
  color: #ffffff;
  font-size: 0.82rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

main {
  padding-bottom: 72px;
}

section {
  padding: 42px 0;
}

#projects,
#signals,
#build-queue,
#certifications,
#background,
#contact {
  scroll-margin-top: 112px;
}

.hero-layout,
.hero-note-grid,
.guide-grid,
.project-grid,
.support-grid,
.detection-grid,
.signal-work-grid,
.builds-grid,
.background-grid,
.contact-card,
.case-layout,
.case-meta-grid {
  display: grid;
  gap: 22px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
  padding-top: 28px;
  gap: 28px;
}

.hero-copy,
.hero-board,
.section-intro,
.guide-card,
.signal-item,
.project-card,
.support-card,
.query-card,
.indicator-card,
.build-card,
.background-card,
.quote-card,
.contact-card,
.case-hero,
.case-layout,
.case-section,
.case-sidebar-card,
.footer,
.thank-you-card {
  opacity: 1;
  transform: none;
}

.js-enhanced .hero-copy,
.js-enhanced .hero-board,
.js-enhanced .section-intro,
.js-enhanced .guide-card,
.js-enhanced .signal-item,
.js-enhanced .project-card,
.js-enhanced .support-card,
.js-enhanced .query-card,
.js-enhanced .indicator-card,
.js-enhanced .build-card,
.js-enhanced .background-card,
.js-enhanced .quote-card,
.js-enhanced .contact-card,
.js-enhanced .case-hero,
.js-enhanced .case-layout,
.js-enhanced .case-section,
.js-enhanced .case-sidebar-card,
.js-enhanced .footer,
.js-enhanced .thank-you-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enhanced .hero-copy.is-visible,
.js-enhanced .hero-board.is-visible,
.js-enhanced .section-intro.is-visible,
.js-enhanced .guide-card.is-visible,
.js-enhanced .signal-item.is-visible,
.js-enhanced .project-card.is-visible,
.js-enhanced .support-card.is-visible,
.js-enhanced .query-card.is-visible,
.js-enhanced .indicator-card.is-visible,
.js-enhanced .build-card.is-visible,
.js-enhanced .background-card.is-visible,
.js-enhanced .quote-card.is-visible,
.js-enhanced .contact-card.is-visible,
.js-enhanced .case-hero.is-visible,
.js-enhanced .case-layout.is-visible,
.js-enhanced .case-section.is-visible,
.js-enhanced .case-sidebar-card.is-visible,
.js-enhanced .footer.is-visible,
.js-enhanced .thank-you-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 28%);
}

.panel-dark {
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.18), transparent 36%),
    radial-gradient(circle at left bottom, rgba(84, 98, 122, 0.12), transparent 42%),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.panel-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 241, 232, 0.94) 100%);
}

.panel-dark::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%);
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 68px rgba(16, 23, 34, 0.11);
}

.hero-board,
.signal-item,
.guide-card,
.project-card,
.support-card,
.query-card,
.indicator-card,
.build-card,
.background-card,
.quote-card,
.contact-card,
.case-hero,
.case-sidebar-card,
.case-section,
.thank-you-card {
  padding: 28px;
}

.kicker,
.project-type,
.meta-label,
.background-meta,
.case-type,
.case-meta-label {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.76rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-dark .kicker,
.panel-dark .project-type,
.panel-dark .meta-label,
.panel-dark .background-meta,
.panel-dark .case-type,
.panel-dark .case-meta-label {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

h1,
.section-intro h2,
.contact-card h2,
.case-hero h1,
.thank-you-card h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.section-intro h2,
.contact-card h2,
.thank-you-card h1 {
  font-size: clamp(2.3rem, 3.5vw, 3.9rem);
}

.hero-board h2,
.project-head h3,
.support-card h3,
.build-card h3,
.background-card h3,
.query-card h3,
.indicator-card h3,
.case-section h2,
.case-sidebar-card h2,
.case-sidebar-card h3 {
  font-size: clamp(1.42rem, 2.5vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead,
.section-copy,
.project-copy,
.support-card p,
.board-copy,
.hero-summary,
.build-card p,
.query-card p,
.indicator-card p,
.background-card p,
.contact-copy,
.case-copy,
.case-section p,
.case-sidebar-card p,
.quote-source,
.meta-value {
  color: var(--muted);
}

.panel-dark .lead,
.panel-dark .section-copy,
.panel-dark .project-copy,
.panel-dark .support-card p,
.panel-dark .board-copy,
.panel-dark .hero-summary,
.panel-dark .build-card p,
.panel-dark .query-card p,
.panel-dark .indicator-card p,
.panel-dark .background-card p,
.panel-dark .contact-copy,
.panel-dark .case-copy,
.panel-dark .case-section p,
.panel-dark .case-sidebar-card p,
.panel-dark .quote-source,
.panel-dark .meta-value {
  color: rgba(245, 247, 251, 0.82);
}

.lead {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 1.08rem;
}

.section {
  padding-top: 56px;
}

.section-intro {
  max-width: 760px;
}

.section-intro-compact {
  max-width: 560px;
}

#signals .section-intro-compact {
  max-width: 760px;
}

.technical-ops-section .section-intro {
  max-width: 720px;
}

.technical-ops-intro h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.technical-ops-tags {
  margin-top: 18px;
}

.section-copy {
  margin-top: 18px;
  font-size: 1.02rem;
}

.button-row,
.role-strip,
.tag-row,
.contact-form-actions,
.report-modal__actions,
.contact-links,
.case-tag-row,
.download-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row {
  margin-top: 26px;
}

.role-strip {
  margin-top: 18px;
}

.role-strip span,
.tag-row span,
.case-tag-row span,
.status-pill {
  padding: 0.66rem 0.86rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-dark .role-strip span,
.panel-dark .tag-row span,
.panel-dark .case-tag-row span {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.status-pill {
  border-color: rgba(var(--accent-rgb), 0.18);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 23, 34, 0.1);
}

.button-dark {
  background: var(--surface-dark);
  color: #ffffff;
}

.button-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.button-outline-dark {
  border-color: var(--line);
  color: var(--ink);
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
}

.text-link::after,
.back-link::after {
  content: " ->";
}

.text-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.text-link-light {
  color: #ffffff;
}

.text-link-light::after {
  content: " ->";
}

.hero-note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.hero-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-board {
  overflow: hidden;
  display: grid;
  gap: 22px;
}

.hero-board > * {
  position: relative;
  z-index: 1;
}

.hero-board::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -56px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.04),
    0 0 0 68px rgba(255, 255, 255, 0.03);
  opacity: 0.9;
}

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

.hero-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-metric {
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.hero-metric-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metric strong {
  font-size: 1.02rem;
  line-height: 1.3;
}

.hero-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-flow::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 16px 14px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.flow-step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.flow-step-time {
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-step strong {
  font-size: 0.94rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.flow-step p {
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-summary {
  padding-top: 2px;
}

.signal-strip {
  padding-top: 10px;
}

.guide-strip {
  padding-top: 10px;
}

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

.technical-ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.guide-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.15));
}

.guide-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.technical-ops-grid .guide-card {
  min-height: 0;
}

.technical-ops-grid .guide-card strong {
  max-width: 28ch;
  font-size: 1.08rem;
  line-height: 1.28;
}

.technical-ops-grid .guide-card p {
  max-width: 38ch;
  line-height: 1.55;
}

.signal-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.signal-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.signal-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-item strong {
  display: block;
  margin-top: 5px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.project-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 28px;
  align-items: start;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-visual {
  position: relative;
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-visual span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.project-visual-auth {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.13), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.project-visual-auth span:nth-child(1) {
  left: 16px;
  right: 16px;
  top: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.project-visual-auth span:nth-child(2),
.project-visual-auth span:nth-child(3),
.project-visual-auth span:nth-child(4) {
  width: 14px;
  height: 14px;
  top: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06);
}

.project-visual-auth span:nth-child(2) {
  left: 14%;
}

.project-visual-auth span:nth-child(3) {
  left: 46%;
}

.project-visual-auth span:nth-child(4) {
  left: 78%;
}

.project-visual-dfir {
  border-color: rgba(16, 23, 34, 0.08);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 237, 229, 0.84));
}

.project-visual-dfir span:nth-child(1) {
  left: 18px;
  right: 18px;
  top: 22px;
  height: 44px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(16, 23, 34, 0.07) 0 8%, transparent 8% 12%, rgba(16, 23, 34, 0.07) 12% 18%, transparent 18% 22%, rgba(16, 23, 34, 0.07) 22% 30%, transparent 30% 100%);
}

.project-visual-dfir span:nth-child(2) {
  left: 18px;
  bottom: 18px;
  width: 40%;
  height: 12px;
  background: rgba(var(--accent-rgb), 0.18);
}

.project-visual-dfir span:nth-child(3) {
  right: 18px;
  bottom: 18px;
  width: 24%;
  height: 12px;
  background: rgba(16, 23, 34, 0.08);
}

.project-visual-ml {
  border-color: rgba(16, 23, 34, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 237, 229, 0.84));
}

.project-visual-ai {
  border-color: rgba(16, 23, 34, 0.08);
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 237, 229, 0.84));
}

.project-visual-ai span:nth-child(1) {
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 23, 34, 0.08);
}

.project-visual-ai span:nth-child(2),
.project-visual-ai span:nth-child(3),
.project-visual-ai span:nth-child(4) {
  height: 12px;
  background: rgba(16, 23, 34, 0.08);
}

.project-visual-ai span:nth-child(2) {
  left: 32px;
  right: 86px;
  top: 34px;
}

.project-visual-ai span:nth-child(3) {
  left: 32px;
  right: 118px;
  top: 58px;
  background: rgba(var(--accent-rgb), 0.18);
}

.project-visual-ai span:nth-child(4) {
  left: 32px;
  right: 64px;
  top: 82px;
}

.project-visual-ml span:nth-child(1) {
  inset: 18px;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(16, 23, 34, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 34, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.project-visual-ml span:nth-child(2),
.project-visual-ml span:nth-child(3),
.project-visual-ml span:nth-child(4) {
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.1);
}

.project-visual-ml span:nth-child(2) {
  top: 28px;
  left: 28px;
}

.project-visual-ml span:nth-child(3) {
  top: 52px;
  left: 50%;
}

.project-visual-ml span:nth-child(4) {
  bottom: 26px;
  right: 26px;
}

.project-visual-systems {
  border-color: rgba(16, 23, 34, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 237, 229, 0.84));
}

.project-visual-systems span:nth-child(1),
.project-visual-systems span:nth-child(2),
.project-visual-systems span:nth-child(3) {
  left: 18px;
  right: 18px;
  height: 14px;
  background: rgba(16, 23, 34, 0.08);
}

.project-visual-systems span:nth-child(1) {
  top: 22px;
  width: 74%;
}

.project-visual-systems span:nth-child(2) {
  top: 50px;
  width: 54%;
  background: rgba(var(--accent-rgb), 0.16);
}

.project-visual-systems span:nth-child(3) {
  top: 78px;
  width: 82%;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-metric-card {
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.project-metric-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-metric-card strong {
  line-height: 1.45;
}

.project-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-mini-row span {
  padding: 0.58rem 0.72rem;
  border-radius: 999px;
  background: rgba(16, 23, 34, 0.06);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.featured-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-evidence span {
  padding: 0.56rem 0.76rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card-featured {
  grid-row: span 2;
}

.project-card-featured .project-visual {
  min-height: 136px;
}

.project-head,
.build-head {
  display: grid;
  gap: 10px;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.detection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.signal-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.signal-work-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.signal-work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 28px;
  border-radius: 30px;
  overflow: hidden;
}

.signal-work-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: radial-gradient(circle at 35% 35%, rgba(var(--accent-rgb), 0.12), transparent 72%);
}

.signal-work-label {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(16, 23, 34, 0.06);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-work-card h3 {
  max-width: 24ch;
  font-size: 1.22rem;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.panel-dark .signal-work-label {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.indicator-list,
.ioc-list {
  list-style: none;
  padding: 0;
}

.detail-list {
  list-style: disc;
}

.indicator-list li,
.ioc-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 23, 34, 0.08);
}

.indicator-list li:last-child,
.ioc-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.indicator-list span,
.ioc-list span {
  color: var(--muted);
  font-weight: 700;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.36;
  letter-spacing: -0.02em;
}

.quote-source {
  margin-top: 18px;
  font-size: 0.94rem;
}

.signal-work-card p,
.guide-card p {
  color: var(--muted);
}

.signal-work-card p {
  max-width: 36ch;
  line-height: 1.55;
}

.panel-dark .signal-work-card p {
  color: rgba(245, 247, 251, 0.82);
}

.builds-grid,
.background-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.background-meta {
  margin: 12px 0;
}

.contact-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 28px;
}

.contact-copy-block {
  display: grid;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.16);
  outline-offset: 1px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 38px;
  color: var(--muted);
  font-size: 0.94rem;
}

.case-topbar {
  margin-top: 18px;
}

.case-hero-wrap {
  padding-top: 28px;
}

.case-hero {
  display: grid;
  gap: 20px;
}

.case-copy {
  max-width: 70ch;
}

.case-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-meta-card {
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.case-meta-card strong {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.case-layout {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  padding: 26px 0 54px;
}

.case-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}

.case-content {
  display: grid;
  gap: 18px;
}

.sequence-panel {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  overflow: hidden;
}

.project-access {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
}

.project-access-copy {
  display: grid;
  gap: 10px;
}

.access-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sequence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sequence-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sequence-grid::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(16, 23, 34, 0.14), rgba(16, 23, 34, 0.04));
}

.sequence-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(16, 23, 34, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.sequence-node::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.1);
}

.sequence-node-index {
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sequence-node strong {
  font-size: 0.98rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.sequence-node p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.sequence-node-alert::before {
  background: var(--accent-gold);
  box-shadow: 0 0 0 8px rgba(139, 123, 73, 0.14);
}

.sequence-node-danger::before {
  background: #bb4a4a;
  box-shadow: 0 0 0 8px rgba(187, 74, 74, 0.12);
}

.case-section,
.case-sidebar-card {
  display: grid;
  gap: 14px;
}

.audience-card,
.case-detail {
  padding: 18px 20px;
  position: relative;
  border: 1px solid rgba(16, 23, 34, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 241, 232, 0.94) 100%);
  box-shadow: 0 14px 32px rgba(16, 23, 34, 0.05);
}

.case-detail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.92), rgba(var(--accent-rgb), 0.08));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.audience-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.audience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audience-head h2 {
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.audience-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 23, 34, 0.06);
}

.audience-button {
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.audience-button.is-active {
  background: var(--surface-dark);
  color: #ffffff;
}

.audience-panel {
  color: var(--muted);
}

.audience-panel[hidden] {
  display: none;
}

.case-detail {
  margin-top: 18px;
  overflow: hidden;
}

.case-detail[open] {
  border-color: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 18px 36px rgba(16, 23, 34, 0.06);
}

.case-detail[open]::before {
  opacity: 1;
}

.case-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-detail summary::-webkit-details-marker {
  display: none;
}

.case-detail summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(16, 23, 34, 0.04);
  color: var(--ink-soft);
  font-size: 1rem;
  flex: 0 0 34px;
}

.case-detail[open] summary::after {
  content: "-";
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.16);
  color: var(--accent-deep);
}

.case-detail-content {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.case-list,
.detail-list {
  padding-left: 1.15rem;
}

.detail-list li,
.case-list li {
  margin-top: 8px;
}

.download-stack {
  flex-direction: column;
}

.download-stack .button,
.download-stack .text-link {
  width: 100%;
  justify-content: center;
}

.timeline-list {
  list-style: none;
  padding: 0;
  counter-reset: item;
}

.timeline-list li {
  position: relative;
  padding: 0 0 18px 28px;
  border-left: 1px solid rgba(16, 23, 34, 0.12);
}

.timeline-list li::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: -14px;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-list li:last-child {
  border-left: 0;
  padding-bottom: 0;
}

.timeline-meta {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-text {
  display: block;
  margin-top: 4px;
}

.query-stack {
  display: grid;
  gap: 16px;
}

.query-snippet {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.query-snippet h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.report-modal[hidden] {
  display: none;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.74);
  backdrop-filter: blur(8px);
}

.report-modal__dialog {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 24px));
  height: min(88vh, 940px);
  margin: 4vh auto;
  padding: 20px;
  border: 1px solid rgba(16, 23, 34, 0.08);
  border-radius: 30px;
  background: #f9fbfc;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.32);
}

.report-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.report-modal__header h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.report-modal iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.thank-you-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.thank-you-card {
  max-width: 720px;
  display: grid;
  gap: 18px;
  text-align: center;
}

.thank-you-card p {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero-layout,
  .project-grid,
  .contact-card,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-row: auto;
  }

  .case-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(16, 23, 34, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.92rem 1rem;
    border-radius: 16px;
  }

  .signal-strip-grid,
  .guide-grid,
  .support-grid,
  .detection-grid,
  .signal-work-grid,
  .builds-grid,
  .background-grid,
  .case-meta-grid,
  .sequence-grid,
  .hero-note-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .shell,
  .case-shell,
  .thank-you-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    padding: 12px 0;
  }

  section {
    padding: 30px 0;
  }

  .hero-board,
  .signal-item,
  .project-card,
  .support-card,
  .query-card,
  .indicator-card,
  .build-card,
  .background-card,
  .quote-card,
  .contact-card,
  .case-hero,
  .case-sidebar-card,
  .case-section,
  .thank-you-card {
    padding: 22px;
  }

  h1,
  .section-intro h2,
  .contact-card h2,
  .case-hero h1,
  .thank-you-card h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .hero-board-grid {
    grid-template-columns: 1fr;
  }

  .hero-flow {
    grid-template-columns: 1fr;
  }

  .hero-flow::before,
  .sequence-grid::before {
    display: none;
  }

  .project-metrics {
    grid-template-columns: 1fr;
  }

  .footer,
  .report-modal__header,
  .audience-head,
  .sequence-head {
    flex-direction: column;
  }

  .report-modal__dialog {
    width: calc(100% - 16px);
    height: 90vh;
    margin: 3vh auto;
    padding: 14px;
    border-radius: 22px;
  }
}
