:root {
  --bg: #070707;
  --panel: #0d0d0d;
  --panel-2: #121212;
  --panel-3: #171717;
  --text: #f4f4f3;
  --muted: #929292;
  --muted-2: #686868;
  --line: #242424;
  --line-strong: #343434;
  --accent: #a997ff;
  --accent-soft: rgba(169, 151, 255, .10);
  --orange-soft: rgba(255, 122, 89, .09);
  --success: #9bd5a7;
  --shadow: 0 26px 80px rgba(0, 0, 0, .34);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .72, .2, 1);
  color-scheme: dark;
}

body.light-theme {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-2: #f1f1ee;
  --panel-3: #e9e9e5;
  --text: #111110;
  --muted: #666661;
  --muted-2: #8a8a83;
  --line: #deded8;
  --line-strong: #c9c9c1;
  --accent: #5b43c7;
  --accent-soft: rgba(91, 67, 199, .08);
  --orange-soft: rgba(220, 82, 40, .07);
  --success: #3d7a49;
  --shadow: 0 24px 70px rgba(30, 30, 25, .09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 420px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 14% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(520px 260px at 92% 2%, var(--orange-soft), transparent 72%);
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.container {
  width: min(100% - 48px, 1040px);
  margin-inline: auto;
  padding: 0 0 88px;
}

.floating-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100vw - 28px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity .22s ease, transform .28s var(--ease), border-color .22s ease;
}

.floating-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-nav-brand {
  padding: 0 10px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.floating-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font: 600 10px/1 "SFMono-Regular", Consolas, monospace;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.floating-nav a:hover,
.floating-nav a:focus-visible,
.floating-nav a.is-active {
  color: var(--text);
  background: var(--panel-3);
}

header#home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding: 120px 0 68px;
  border-bottom: 1px solid var(--line);
}

.corner-brand-mark {
  position: absolute;
  top: 34px;
  left: 0;
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: .92;
  filter: invert(1);
}

body.light-theme .corner-brand-mark {
  filter: none;
}

.brand {
  min-width: 0;
  max-width: 760px;
}

.brand h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(58px, 10vw, 102px);
  font-weight: 780;
  line-height: .88;
  letter-spacing: clamp(-5px, -.055em, -2px);
}

.brand > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.38;
  letter-spacing: -.025em;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.opportunity-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s ease, background-color .2s ease;
}

.opportunity-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.opportunity-link svg,
.linkedin-mark {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.linkedin-mark {
  fill: currentColor;
  stroke: none;
}

.header-actions {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.action-btn,
.theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, transform .18s var(--ease);
}

.action-btn:hover,
.theme-btn:hover {
  color: var(--text);
  background: var(--panel-3);
  transform: translateY(-1px);
}

.action-btn svg,
.theme-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

.action-btn .fill-svg,
.h1-logo {
  fill: currentColor;
  stroke: none;
}

.theme-btn .moon-icon {
  display: none;
}

body.light-theme .theme-btn .sun-icon {
  display: none;
}

body.light-theme .theme-btn .moon-icon {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: .8fr 1fr 1.25fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.metric-card {
  min-width: 0;
  padding: 22px 24px 24px;
  background: var(--bg);
}

.metric-card .label {
  margin-bottom: 13px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.metric-card .value {
  color: var(--text);
  font-family: inherit;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}

section {
  margin-top: 78px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.section-title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.program-strip-section {
  margin-top: 66px;
}

.program-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.program-strip-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 82px;
  padding: 14px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.program-strip-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}

.program-strip-item:hover {
  color: var(--text);
  background: var(--panel);
}

.program-strip-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .2s ease, opacity .2s ease;
}

.program-strip-item:hover .program-strip-logo {
  filter: grayscale(0);
  opacity: 1;
}

.program-strip-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-strip-fallback {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}

.stack-section {
  margin-top: 72px;
}

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

.stack-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform .2s var(--ease), border-color .2s ease, background-color .2s ease;
}

.stack-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.stack-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.stack-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.stack-icon svg {
  width: 21px;
  height: 21px;
}

.stack-info {
  min-width: 0;
}

.stack-name {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-type {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#disclosures {
  margin-top: 86px;
}

.log-container {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.log-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 14px 18px;
  transition: background-color .2s ease;
}

.log-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 78px;
  height: 1px;
  background: var(--line);
}

.log-item:hover {
  background: var(--panel-2);
}

.log-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
}

.program-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.brand-hostinger { background: rgba(103,61,230,.08); }
.brand-hubspot { background: rgba(255,122,89,.07); }
.brand-qdrant { background: rgba(220,36,76,.07); }
.brand-barantum { background: rgba(79,70,229,.07); }
.brand-barantum .program-logo { border-radius: 6px; }
.brand-3cx { background: #fff; }

.log-info {
  min-width: 0;
}

.log-info h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.log-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.privacy-note {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}

.platform-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease;
}

.platform-link:hover {
  color: var(--text);
}

.platform-link::before {
  content: "·";
  margin-right: 7px;
  color: var(--muted-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.log-right {
  flex: 0 0 auto;
  text-align: right;
}

.bounty-amount {
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

#writeups {
  margin-top: 86px;
}

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

.wu-container-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.wu-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .2s ease, background-color .2s ease, box-shadow .25s ease;
}

.wu-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--panel-2);
  box-shadow: 0 18px 52px rgba(0,0,0,.12);
}

.wu-card-media {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.wu-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transition: transform .35s var(--ease);
}

.wu-card:hover .wu-card-media img {
  transform: scale(1.018);
}

.wu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--muted-2);
  font-size: 10px;
}

.wu-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.wu-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.wu-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.wu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.wu-tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .2s var(--ease), color .2s ease;
}

.wu-card:hover .wu-icon {
  color: var(--text);
  transform: translateX(3px);
}

.wu-empty {
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .25s var(--ease);
}

.toast:empty {
  display: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

body.light-theme .modal-overlay {
  background: rgba(245,245,241,.82);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  display: flex;
  width: min(100%, 980px);
  max-height: min(88dvh, 880px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(.99);
  transition: transform .3s var(--ease);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.modal-header h2 {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.close-modal-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.close-modal-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.close-modal-btn svg {
  width: 17px;
  height: 17px;
}

.modal-body {
  overflow: auto;
  padding: 24px;
  color: var(--muted);
  overscroll-behavior: contain;
}

.wu-article {
  display: flex;
  width: min(100%, 820px);
  flex-direction: column;
  gap: 16px;
  margin-inline: auto;
}

.wu-section-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.wu-section-block h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.wu-section-block p,
.wu-section-block ul,
.wu-section-block ol {
  margin: 0 0 14px;
}

.wu-section-block p:last-child,
.wu-section-block ul:last-child,
.wu-section-block ol:last-child {
  margin-bottom: 0;
}

.wu-section-block p,
.wu-section-block li {
  font-size: 13px;
  line-height: 1.75;
}

.wu-section-block ul,
.wu-section-block ol {
  padding-left: 20px;
}

.wu-section-block li + li {
  margin-top: 8px;
}

.modal-body strong {
  color: var(--text);
}

.modal-body code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font: 12px/1.4 "SFMono-Regular", Consolas, monospace;
}

.wu-summary-box {
  border-left: 3px solid var(--accent);
}

.wu-callout {
  padding-left: 13px;
  border-left: 2px solid var(--line-strong);
}

.wu-sanitized {
  padding: 14px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wu-hero-cover {
  margin: 0;
}

.wu-hero-cover img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.wu-hero-cover figcaption,
.wu-evidence figcaption {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.wu-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wu-evidence,
.wu-inline-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.wu-evidence img,
.wu-inline-grid img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.wu-evidence img[src*="07-summary-result"] {
  width: min(100%, 340px);
  max-height: 450px;
}

.wu-evidence img[src*="08-filter-rule"] {
  width: min(100%, 640px);
}

.collab-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.collab-kicker {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.collab-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.collab-person:hover {
  border-color: var(--line-strong);
  background: var(--panel);
}

.collab-avatar {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.collab-name {
  font-size: 13px;
  font-weight: 700;
}

.collab-profile {
  color: var(--muted-2);
  font-size: 9px;
}

.collab-role {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.reveal,
.reveal-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .5s var(--ease);
}

.reveal.is-visible,
.reveal-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 84px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 80%, white 20%);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1040px);
  }

  header#home {
    padding-top: 104px;
  }

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

  .program-strip-item:nth-child(3)::after,
  .program-strip-item:last-child::after {
    display: none;
  }

  .program-strip-item:nth-child(n+4) {
    border-top: 1px solid var(--line);
  }

  .stack-grid,
  .wu-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(100% - 24px, 1040px);
    padding-bottom: 54px;
  }

  .floating-nav {
    top: 8px;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .floating-nav::-webkit-scrollbar {
    display: none;
  }

  .floating-nav-brand {
    display: none;
  }

  header#home {
    display: block;
    padding: 96px 0 46px;
  }

  .corner-brand-mark {
    top: 26px;
    width: 31px;
    height: 31px;
  }

  .header-actions {
    position: absolute;
    top: 22px;
    right: 0;
  }

  .brand h1 {
    font-size: clamp(54px, 18vw, 78px);
    letter-spacing: -.055em;
  }

  .brand > p {
    max-width: 430px;
    margin-top: 17px;
    font-size: 16px;
  }

  .status-line {
    margin-top: 22px;
  }

  .contact-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 430px;
  }

  .opportunity-link {
    justify-content: flex-start;
    min-height: 42px;
  }

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

  .metric-card {
    padding: 18px;
  }

  .metric-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .metric-card .value {
    font-size: 29px;
  }

  section,
  #disclosures,
  #writeups,
  .stack-section {
    margin-top: 64px;
  }

  .program-strip-section {
    margin-top: 56px;
  }

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

  .program-strip-item:nth-child(2n)::after {
    display: none;
  }

  .program-strip-item:nth-child(3)::after {
    display: block;
  }

  .program-strip-item:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .program-strip-item {
    min-height: 70px;
  }

  .log-container {
    border-radius: 17px;
  }

  .log-item {
    gap: 12px;
    min-height: 80px;
    padding: 13px 14px;
  }

  .log-item:not(:last-child)::after {
    right: 14px;
    left: 69px;
  }

  .log-left {
    gap: 11px;
  }

  .logo-box {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    padding: 8px;
  }

  .privacy-note {
    display: none;
  }

  .platform-link::before {
    display: none;
  }

  .wu-card {
    padding: 12px;
    border-radius: 17px;
  }

  .wu-title {
    font-size: 16px;
  }

  .modal-overlay {
    align-items: stretch;
    padding: 6px;
  }

  .modal-content {
    width: 100%;
    max-height: calc(100dvh - 12px);
    margin: auto 0;
    border-radius: 16px;
  }

  .modal-header {
    padding: 14px;
  }

  .modal-header h2 {
    font-size: 14px;
  }

  .modal-body {
    padding: 12px;
  }

  .wu-article {
    gap: 12px;
  }

  .wu-section-block {
    padding: 14px;
    border-radius: 12px;
  }

  .wu-section-block p,
  .wu-section-block li {
    font-size: 12.5px;
  }

  .wu-evidence img,
  .wu-inline-grid img {
    max-height: 64dvh;
  }

  .collab-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .collab-kicker {
    grid-column: 1;
  }

  .collab-person {
    width: min(100%, 220px);
    margin-inline: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 60px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 18px, 1040px);
  }

  .action-btn,
  .theme-btn {
    width: 34px;
    height: 34px;
  }

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

  .metric-card:nth-child(3) {
    grid-column: auto;
  }

  .metric-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .metric-card .label {
    margin-bottom: 0;
  }

  .metric-card .value {
    font-size: 25px;
  }

  .program-strip-name {
    font-size: 11px;
  }

  .log-meta .platform-link {
    display: none;
  }

  .log-item {
    align-items: flex-start;
  }

  .bounty-amount {
    font-size: 13px;
  }
}

@media (hover: none), (pointer: coarse) {
  .program-strip-item:hover,
  .stack-card:hover,
  .wu-card:hover,
  .opportunity-link:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal,
  .reveal-section {
    opacity: 1;
    transform: none;
  }
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Layout and motion refinement */
html { scrollbar-gutter: stable; scroll-padding-top: 110px; }
[hidden] { display: none !important; }
.container { width: min(100% - 64px, 1080px); }
header#home { display: block; padding: 164px 0 56px; }
.corner-brand-mark { top: 32px; width: 36px; height: 36px; }
.header-actions { position: absolute; top: 26px; right: 0; gap: 4px; padding: 5px; border-radius: 16px; isolation: isolate; }
.action-btn, .theme-btn { width: 42px; height: 42px; border-radius: 11px; }
.brand { max-width: 850px; }
.brand h1 { font-size: clamp(66px, 10vw, 112px); letter-spacing: -.065em; }
.brand > p { max-width: 470px; line-height: 1.55; margin-top: 24px; }
.status-line { margin-top: 24px; font-size: 11px; }
.contact-links { margin-top: 24px; gap: 12px; }
.opportunity-link { min-height: 48px; gap: 12px; padding: 0 18px; border-radius: 12px; font-size: 13px; }
.opportunity-link:first-child { background: var(--text); color: var(--bg); border-color: var(--text); }
.opportunity-link svg:not(.linkedin-mark) { fill: none; stroke: currentColor; }
.button-arrow { margin-left: 18px; transition: transform .32s var(--ease); }
.opportunity-link:hover .button-arrow { transform: translate(2px,-2px); }
.floating-nav { top: 28px; padding: 5px; gap: 2px; opacity: 1; pointer-events: auto; transform: translate(-50%,0); isolation: isolate; }
.floating-nav-brand { display: none; }
.floating-nav a { display: grid; place-items: center; min-height: 40px; padding: 0 14px; font-size: 11px; }
.floating-nav a:hover, .floating-nav a:focus-visible, .floating-nav a.is-active { background: transparent; }
.sliding-highlight { position: absolute; top: 0; left: 0; z-index: -1; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-strong); pointer-events: none; opacity: 0; transition: transform .38s var(--ease), width .38s var(--ease), height .38s var(--ease), opacity .18s ease; }
.header-actions .sliding-highlight { border-radius: 11px; }
.header-actions .action-btn:hover, .header-actions .theme-btn:hover { background: transparent; transform: none; }
.metrics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); border-radius: 18px; margin-top: 24px; }
.metric-card { padding: 26px 28px; background: var(--panel); }
.metric-card .label { color: var(--muted); font-size: 10px; }
section, .program-strip-section, .stack-section, #disclosures, #writeups { margin-top: 64px; }
.section-title { margin-bottom: 22px; letter-spacing: .06em; font-size: 11px; }
.program-strip { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.stack-grid { grid-template-columns: 1fr; }
.stack-card { min-height: 92px; }
.stack-type { font-size: 10px; }
.log-item { min-height: 94px; padding: 18px 22px; }
.log-item:not(:last-child)::after { left: 82px; right: 22px; }
.wu-container-single { max-width: none; }
.wu-card { padding: 24px; }
.wu-card > div:first-child { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 32px; align-content: start; }
.wu-card-media { grid-column: 1; grid-row: 1 / 4; margin: 0; align-self: center; }
.wu-meta, .wu-title, .wu-excerpt { grid-column: 2; }
.wu-title { font-size: 23px; line-height: 1.3; }
.wu-meta { margin-bottom: 16px; }
.wu-excerpt { font-size: 13px; }
.wu-footer { align-items: center; margin-top: 24px; padding-top: 20px; }
.wu-icon, .close-modal-btn svg { stroke: currentColor; fill: none; }
.wu-icon { width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; }
.action-btn, .theme-btn, .opportunity-link, .close-modal-btn, .wu-card, .stack-card { transition: transform .3s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease; }
:is(.action-btn,.theme-btn,.opportunity-link,.close-modal-btn):active { transform: scale(.96); }
.reveal { opacity: 1; transform: none; }
.reveal:not(.is-visible) { opacity: 0; transform: translateY(12px); }
.reveal.is-visible { animation: gentle-reveal .6s var(--ease) var(--reveal-delay,0ms) backwards; }
@keyframes gentle-reveal { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.modal-overlay { visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.modal-overlay.active { visibility: visible; }
.modal-content { transform: translateY(20px) scale(.98); transition: transform .4s var(--ease); }
.close-modal-btn { width: 44px; height: 44px; flex-basis: 44px; }
.site-footer { font-size: 11px; }
@media(min-width: 1000px) { header#home::after { content: '01 / SECURITY RESEARCH'; position: absolute; right: 0; top: 186px; writing-mode: vertical-rl; font: 10px/1.5 Consolas,monospace; letter-spacing: .18em; color: var(--muted-2); } }
@media(max-width: 960px) { .floating-nav { top: 94px; } header#home { padding-top: 194px; } .wu-title { font-size: 20px; } }
@media(max-width: 700px) {
 .container { width: calc(100% - 36px); padding-bottom: 106px; }
 header#home { padding: 130px 0 36px; }
 .brand h1 { font-size: clamp(64px,16vw,92px); }
 .brand > p { font-size: 18px; }
 .floating-nav { top: auto; bottom: max(14px,env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); box-shadow: 0 8px 40px #0004; }
 .floating-nav a { padding: 0 12px; min-height: 44px; font-size: 10px; }
 .contact-links { display: flex; max-width: none; }
 .opportunity-link { flex: 1; justify-content: space-between; padding: 0 13px; gap: 8px; white-space: nowrap; }
 .button-arrow { margin-left: 0; }
 .metrics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .metric-card { display: block; padding: 20px 12px; }
 .metric-card:nth-child(3) { grid-column: auto; }
 .metric-card .label { font-size: 8px; letter-spacing: .06em; margin-bottom: 12px; }
 .metric-card .value { font-size: clamp(23px,5vw,30px); }
 .program-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .program-strip-item:last-child { grid-column: 1 / -1; }
 .program-strip-item:nth-child(n)::after { display: none; }
 .program-strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
 .program-strip-item:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
 .wu-card { padding: 16px; }
 .wu-card > div:first-child { display: block; }
 .wu-card-media { margin-bottom: 22px; }
 .wu-title { font-size: 21px; }
 .wu-footer { gap: 8px; }
 .log-item { padding: 16px 14px; }
 .log-item:not(:last-child)::after { left: 68px; right: 14px; }
 .toast { bottom: 90px; }
}
@media(max-width: 370px) { .contact-links { flex-direction: column; } .floating-nav a { padding-inline: 10px; } }
@media(prefers-reduced-motion: reduce) { .reveal:not(.is-visible) { opacity: 1; transform: none; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wu-card.reveal.is-visible:hover { transform: translateY(-4px); }
  .stack-card.reveal.is-visible:hover { transform: translateY(-2px); }
}
