:root {
  --bg: #07090f;
  --bg-soft: #0b1018;
  --panel: #101720;
  --panel-2: #151e2b;
  --text: #d7deea;
  --text-heading: #f7f9ff;
  --muted: #8b98ab;
  --muted-2: #5f6d80;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --chip: rgba(255, 255, 255, 0.06);
  --chip-hot: rgba(168, 255, 96, 0.12);
  --accent: #a8ff60;
  --cyan: #58e6d9;
  --ember: #ff7a5c;
  --violet: #9b8cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --page-width: 1240px;
  --page-gutter: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #07090f 0%, #0b1018 46%, #07090f 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 112px);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 78%);
}

body.is-leaving {
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #09100c;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left center;
}

.pointer-reticle {
  display: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 80;
  padding: 0.65rem 0.75rem;
  background: var(--text-heading);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header-shell,
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.brand-mark,
.nav-link,
.pill-button,
.filter-button,
.back-link,
.site-footer a {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.44rem 0;
  color: var(--text-heading);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;

}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav-toggle,
.panel-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-heading);
  cursor: pointer;
}

.nav-toggle {
  width: 32px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-link {
    letter-spacing: -.3px;
    appearance: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    justify-content: center;
    align-items: center;
    padding: 5px 8px;
    line-height: 1;
}

.nav-link span {
  color: var(--muted-2);
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--line);
  background: var(--chip);
  color: var(--text-heading);
}

.nav-link:hover span,
.nav-link.is-active span {
  color: var(--accent);
}

.stripe-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 360px;
  padding: 58px 0 42px;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-heading);
  font-size: 4.25rem;
  font-weight: 680;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-title > span {
  display: block;
}

.hero-title > span:first-child {
  color: var(--accent);
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.15;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0;
  
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  border-color: rgba(168, 255, 96, 0.45);
  background: rgba(168, 255, 96, 0.055);
  transform: translateY(-2px);
}

.feature-image {
  height: auto;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  border: 0;
  
  border-radius: 0;
  margin: 0;
}

.feature-copy {
  display: flex;
  min-width: 0;
  min-height: 180px;
  flex-direction: column;
  justify-content: start;
  padding: 22px;
}

.feature-copy h2 {
  margin: 0;
  color: var(--text-heading);
  font-size: 1.55rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0;
}

.feature-copy p:not(.stripe-label) {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.28rem 0.48rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.feed-shell,
.blog-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  padding: 44px 0 64px;
}

.feed-shell--home {
  grid-template-columns: minmax(0, 1fr);
}

.feed-filter {
  min-width: 0;
}

.filter-panel {
  min-width: 0;
}

.panel-toggle {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 10px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.72rem;
  text-transform: uppercase;
  text-align: left;
}

.panel-toggle span:last-child {
  color: var(--muted-2);
}

.feed-filter .stripe-label {
  padding-bottom: 14px;
  
}

.filter-button {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0.54rem 0.2rem 0.54rem 1.1rem;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.filter-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: translateY(-50%);
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--text-heading);
}

.filter-button.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
}

.feed-table {
  min-width: 0;
}

.feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.feed-heading h2,
.archive-hero h1,
.article-hero h1 {
  margin: 0;
  color: var(--text-heading);
  font-size: 3.2rem;
  font-weight: 660;
  line-height: 0.92;
  letter-spacing: 0;
}

.feed-heading a,
.pill-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--chip);
  padding: 0.55rem 0.72rem;
  color: var(--text);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feed-heading a:hover,
.pill-button:hover,
.back-link:hover {
  border-color: rgba(168, 255, 96, 0.55);
  background: rgba(168, 255, 96, 0.12);
  color: var(--text-heading);
}

.feed-columns,
.post-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 128px 24px;
  gap: 16px;
  align-items: center;
}

.feed-columns {
  min-height: 28px;
  
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.post-row {
  --row-line: rgba(255, 255, 255, 0.1);
  position: relative;
  isolation: isolate;
  min-height: 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--row-line);
  padding: 0 12px;
  color: var(--text-heading);
  transition: border-color 180ms ease, background 180ms ease;
}

.post-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(168, 255, 96, 0.12), rgba(88, 230, 217, 0.05), transparent);
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.post-row.is-hot::before,
.post-row:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.post-row time,
.post-row > span:not(.row-plus):not(.row-copy) {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.post-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 620;
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-plus {
  justify-self: end;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
}

.post-row--archive {
  grid-template-columns: 112px minmax(0, 1fr) 160px 24px;
  min-height: 46px;
  padding: 0 12px;
}

.post-row--archive + .post-row--archive {
  margin-top: 0;
}

.row-copy {
  display: block;
  min-width: 0;
}

.archive-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  min-height: 190px;
  padding: 42px 0 28px;
  
}

.archive-hero h1 {
  margin-top: 16px;
}

.archive-hero span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.blog-filter {
  position: sticky;
  margin-top: 22px;
  align-self: start;
}

.archive-feed .feed-columns {
  grid-template-columns: 112px minmax(0, 1fr) 160px 24px;
}

.article-meta {
  margin: 0;
}

.article-meta dt,
.article-aside span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.article-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
}

.page-title {
  margin: 0;
  color: var(--text-heading);
  font-size: 3.2rem;
  font-weight: 660;
  line-height: 0.92;
  letter-spacing: 0;
}

.cv-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
  padding: 64px 0 54px;
}

.cv-top--with-portrait {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
}

.cv-top__copy {
  min-width: 0;
}

.cv-top__copy .page-title {
  margin-top: 18px;
}

.cv-top__copy p:not(.stripe-label) {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 560;
  line-height: 1.24;
}

.cv-top__copy a,
.cv-text a,
.job-card a,
.cv-link-row em a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(88, 230, 217, 0.42);
}

.cv-top__copy a:hover,
.cv-text a:hover,
.job-card a:hover,
.cv-link-row em a:hover {
  border-bottom-color: var(--cyan);
}

.cv-top__portrait {
  align-self: stretch;
  margin: 0;
  border: 0.5px solid var(--line);
  overflow: hidden;
}

.cv-top__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.cv-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  padding: 44px 0 72px;
  
}

.cv-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
}

.cv-sidebar nav {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cv-sidebar a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.cv-sidebar a:hover {
  color: var(--text-heading);
}

.cv-main {
  display: grid;
  gap: 34px;
}

.cv-block {
  min-width: 0;
  padding-bottom: 34px;
  
}

.cv-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cv-block > .stripe-label {
  margin-bottom: 14px;
}

.cv-block h2 {
  margin: 0 0 20px;
  color: var(--text-heading);
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1;
}

.cv-text {
  max-width: 850px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 20px;
}

.cv-text p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.48;
}

.cv-text p + p {
  margin-top: 1rem;
}

.job-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.job-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 91px;
  width: 1px;
  background: var(--line);
}

.job-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.job-item::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 87px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  background: var(--bg);
}

.job-date {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding-top: 17px;
  text-transform: uppercase;
}

.job-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 18px;
}

.job-card h3 {
  margin: 0;
  color: var(--text-heading);
  font-size: 1.08rem;
  font-weight: 650;
}

.job-card p {
  max-width: 820px;
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.38;
}

.job-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.job-card li {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.3rem 0.48rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.cv-link-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.cv-link-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 0.72fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 58px;
  
  color: var(--text);
}

.cv-link-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.cv-link-row strong {
  color: var(--text-heading);
  font-size: 0.98rem;
}

.cv-link-row em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-feed .post-row {
  grid-template-columns: 112px minmax(0, 1fr) 160px 24px;
}

.article-shell {
  
}

.article-back-link {
  margin: 0;
}

.article-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  min-height: 340px;
  overflow: hidden;
  padding: 28px 28px 32px;
  border: 0.5px solid var(--line-soft);
  background: var(--panel);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.22) 0%, rgba(5, 5, 5, 0.68) 62%, rgba(5, 5, 5, 0.86) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.1) 100%);
}

.article-hero-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  min-height: 100%;
}

.article-hero-copy {
  display: grid;
  justify-items: start;
  min-width: 0;
  align-self: center;
}

.article-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 12px 16px;
}

.article-hero h1 {
  max-width: 900px;
  margin-top: 18px;
}

.article-summary {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(210, 213, 219, 0.86);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.24;
}

.article-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  background: #0c121a;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9) contrast(1.02) brightness(0.66);
}

.article-meta {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(132px, max-content));
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border: 1px solid rgba(210, 213, 219, 0.18);
}

.article-meta div {
  border-right: 1px solid rgba(210, 213, 219, 0.18);
  padding: 11px 13px;
}

.article-meta div:last-child {
  border-right: 0;
}

.article-meta dd {
  margin-top: 0.55rem;
}

.article-meta .tag-row {
  gap: 6px;
}

.article-meta .tag-row span {
  border: 0.5px solid rgba(210, 213, 219, 0.22);
  border-radius: 0;
  background: rgba(5, 5, 5, 0.34);
  padding: 0.18rem 0.44rem;
  color: var(--text-heading);
  font-size: 0.66rem;
  line-height: 1.1;
}

.article-meta__topics {
  min-width: 0;
}

.article-meta__topics dd {
  margin-top: 0.7rem;
}

.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  gap: 64px;
  align-items: start;
  padding: 64px 0 96px;
}

.article-grid > * {
  min-width: 0;
}

.article-aside {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.article-index-toggle {
  margin-top: 18px;
}

.article-index {
  display: grid;
  gap: 4px;
}

.article-index__item {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.article-index__item:hover {
  color: var(--text-heading);
}


.article-index__item--h3 {
  padding-left: 20px;
}

.site-nav[hidden],
.filter-panel[hidden],
.article-aside[hidden] {
  display: none !important;
}

.article-body {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.58;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 3.2rem 0 1rem;
  color: var(--text-heading);
  font-size: 1.8rem;
  font-weight: 620;
  line-height: 1.05;
}

.article-body :is(h1, h2, h3)[id] {
  scroll-margin-top: 96px;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(88, 230, 217, 0.42);
}

.article-body ol,
.article-body ul {
  padding-left: 1.3rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body pre {
  max-width: 100%;
  overflow: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f16;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article-body code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.article-body pre code.hljs {
  display: block;
  min-width: max-content;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.article-body :not(pre) > code {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.08rem 0.28rem;
  color: var(--text-heading);
}

.article-body .hljs-comment,
.article-body .hljs-quote {
  color: var(--muted-2);
}

.article-body .hljs-keyword,
.article-body .hljs-selector-tag,
.article-body .hljs-literal,
.article-body .hljs-title,
.article-body .hljs-section,
.article-body .hljs-doctag {
  color: var(--accent);
}

.article-body .hljs-string,
.article-body .hljs-attr,
.article-body .hljs-bullet,
.article-body .hljs-addition {
  color: var(--cyan);
}

.article-body .hljs-number,
.article-body .hljs-symbol,
.article-body .hljs-meta,
.article-body .hljs-link {
  color: var(--ember);
}

.article-body .hljs-variable,
.article-body .hljs-template-variable,
.article-body .hljs-attribute,
.article-body .hljs-type,
.article-body .hljs-built_in,
.article-body .hljs-property {
  color: var(--violet);
}

.article-body .hljs-punctuation,
.article-body .hljs-operator {
  color: var(--text-heading);
}

.article-body table {
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.8rem 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.article-body thead th {
  color: var(--text-heading);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.article-body tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.article-body tbody tr:last-child td {
  border-bottom: 0;
}

.article-body figure {
  display: grid;
  gap: 10px;
  margin: 1.8rem 0;
}

.article-body figure img,
.article-body > img {
  width: 100%;
  height: auto;
  border: 0.5px solid var(--line-soft);
}

.article-body figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.article-body blockquote {
  margin: 1.6rem 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.article-body blockquote p {
  color: var(--text-heading);
}

.article-body details {
  margin: 1.6rem 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  padding: 12px 0;
}

.article-body summary {
  cursor: pointer;
  color: var(--text-heading);
}

.article-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 0.5px solid var(--line);
}

.site-footer {
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}



.site-footer strong {
  color: var(--text-heading);
}

.site-footer a {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.44rem 0.58rem;
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-footer nav a:hover {
  border-color: var(--line);
  background: var(--chip);
  color: var(--text-heading);
}

.image-scan {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c121a;
}

.image-scan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.06) brightness(0.78);
}

.post-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 16, 24, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.96);
  backdrop-filter: blur(18px) saturate(150%);
}

.post-preview__image {
  min-height: 156px;
  border: 0;
  
  border-radius: 0;
}

.post-preview__body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.post-preview__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.post-preview__title {
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.05;
}

.post-preview__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.shuffle-char {
  display: inline-block;
  min-width: 0.52ch;
}

.shuffle-word {
  display: inline-block;
  white-space: nowrap;
}

.shuffle-space {
  display: inline;
}

[data-reveal],
[data-intro] {
  will-change: transform, opacity;
}

@media (max-width: 1180px) {
  .home-hero,
  .article-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-image {
    border-right: 0;
    
  }

}

@media (max-width: 920px) {
  :root {
    --page-gutter: 20px;
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .feed-heading h2,
  .archive-hero h1,
  .article-hero h1 {
    font-size: 3.2rem;
  }

  .feature-grid,
  .feed-shell,
  .blog-grid,
  .cv-top,
  .cv-layout,
  .article-hero-main,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    min-height: 300px;
  }

  .feed-filter,
  .blog-filter,
  .cv-sidebar,
  .article-aside {
    position: static;
  }

  .cv-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .post-row--archive,
  .archive-feed .feed-columns {
    grid-template-columns: 112px minmax(0, 1fr) 136px 24px;
  }

  .cv-link-row {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .cv-link-row em {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 16px;
  }

  .site-header {
    align-items: start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nav-link {
    padding-inline: 0.48rem;
  }

  .home-hero,
  .archive-hero,
  .article-hero {
    padding-top: 52px;
  }

  .hero-title {
    font-size: 3.1rem;
  }

  .feed-heading h2,
  .archive-hero h1,
  .article-hero h1 {
    font-size: 2.45rem;
  }

  .hero-lede,
  .article-summary {
    font-size: 1.08rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-image,
  .article-cover {
    min-height: 250px;
  }

  .article-hero {
    min-height: 260px;
    padding: 20px 18px 22px;
  }

  .feed-heading,
  .archive-hero,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .feed-columns {
    display: none;
  }

  .post-row,
  .post-row--archive {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: auto;
    padding: 10px;
  }

  .post-row time,
  .post-row > span:not(.row-plus):not(.row-copy) {
    display: none;
  }

  .post-row strong {
    white-space: normal;
  }

  .cv-top {
    padding-top: 52px;
  }

  .job-timeline::before {
    left: 5px;
  }

  .job-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 24px;
  }

  .job-item::before {
    left: 1px;
  }

  .job-date {
    padding-top: 0;
  }

  .cv-link-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px 0;
  }

  .cv-link-row em {
    grid-column: auto;
    white-space: normal;
  }

  .article-meta {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .post-preview {
    display: none;
  }
}

@media (pointer: coarse) {
  .post-preview {
    display: none;
  }
}

:root {
  --bg: #000000;
  --bg-soft: #020203;
  --panel: #09090a;
  --panel-2: #101113;
  --text: #a1a3a9;
  --text-heading: #d2d5db;
  --muted: #747882;
  --muted-2: #474b52;
  --line: rgba(116, 120, 130, 0.58);
  --line-soft: rgba(116, 120, 130, 0.22);
  --chip: rgba(17, 18, 20, 0.84);
  --chip-hot: rgba(170, 232, 123, 0.08);
  --accent: #aae87b;
  --cyan: #75d1c4;
  --ember: #fec97d;
  --violet: #9372c9;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --sans: "Chivo Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --mono: "Chivo Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --label: "Azeret Mono", "Chivo Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --display: "Pixelify Sans", "Chivo Mono", "Helvetica Neue", Arial, sans-serif;
  --page-width: 1080px;
  --page-gutter: 24px;
}

.hero-title,
.feature-copy h2,
.feed-heading h2,
.archive-hero h1,
.page-title,
.article-hero h1,
.cv-block h2,
.job-card h3,
.article-body h2,
.post-preview__title {
  font-family: var(--display);
}

.nav-link span,
.stripe-label,
.tag-row span,
.feed-columns,
.post-row time,
.post-row > span:not(.row-plus):not(.row-copy),
.row-plus,
.archive-hero span,
.feed-band__copy span:first-child,
.cv-facts span,
.cv-link-row span,
.job-date,
.job-kicker,
.post-preview__meta {
  font-family: var(--label);
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #000000 0%, #010101 48%, #000000 100%);
}

body::before {
  background: none;
  mask-image: none;
}

.cosmic-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
}

.page-shell {
  width: min(100%, var(--page-width));
  padding: 0 var(--page-gutter);
}

.grain {
  background-image: none;
  mix-blend-mode: normal;
  opacity: 0.025;
}

.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.34) 0%, rgba(8, 8, 9, 0.12) 72%, rgba(8, 8, 9, 0) 100%);
  backdrop-filter: blur(6px) saturate(60%);
  -webkit-backdrop-filter: blur(6px) saturate(60%);
  box-shadow: none;
}

.site-header {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 14px var(--page-gutter) 12px;
  border-bottom: 0.5px solid rgba(210, 213, 219, 0.03);
  background: transparent;
}

.site-nav {
  min-width: 0;
}

.scroll-progress {
  background: #ffffff;
}

.nav-link,
.feed-heading a,
.pill-button,
.back-link,
.feature-card,
.tag-row span,
.cv-text,
.job-card,
.article-body pre,
.article-body :not(pre) > code,
.image-scan,
.post-preview,
.footer-button {
  border-radius: 0;
}

.nav-link {
  padding: 6px 8px;
  border-radius: 0;
  letter-spacing: 0;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--chip);
}

.home-hero {
  min-height: 320px;
  padding: 54px 0 36px;
}

.hero-title {
  max-width: 700px;
  font-size: 3.85rem;
  line-height: 0.92;
}

.hero-lede {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.28;
}

.feature-shell {
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
  border-bottom: 0;
}

.feature-grid {
  gap: 14px;
  padding: 0;
  border-bottom: 0;
}

.feature-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 0;
  border-bottom: 0.5px solid var(--line-soft);
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}

.feature-image {
  flex: 0 0 44%;
  min-width: 0;
  min-height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-right: 0.5px solid var(--line-soft);
  background: var(--panel);
}

.feature-copy {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0px 12px 12px;
}

.feature-copy h2 {
  font-size: 1.28rem;
  line-height: 1.06;
}

.feature-copy p:not(.stripe-label) {
  margin: 8px 0 10px;
  font-size: 0.95rem;
  line-height: 1.38;
}


.tag-row span {
  border: 0;
  padding: 0;
  color: var(--violet);
  font-size: 0.68rem;
}

.feed-shell,
.cv-layout {
  gap: 12px;
  padding: 36px 0 58px;
}
.blog-grid{
  gap: 26px;
  padding: 12px 0 58px;
}

.feed-shell--home {
  padding-top: 36px;
}

.feed-band {
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
}

.feed-band__rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  padding-bottom: 10px;
  color: var(--muted);
}

.feed-band__rail span {
  justify-self: center;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.feed-band__copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 0.5px solid var(--line);
  padding-top: 10px;
}

.feed-band__copy span:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.feed-band__copy span:last-child {
  color: var(--muted-2);
  font-size: 0.76rem;
}

.feed-heading {
  margin-bottom: 18px;
}

.feed-heading h2,
.archive-hero h1,
.page-title,
.article-hero h1 {
  color: var(--text-heading);
  font-size: 2.9rem;
  line-height: 0.94;
}

.feed-heading a,
.pill-button,
.back-link {
  min-height: 0;
  border: 0;
  border-bottom: 0.5px solid var(--line);
  background: transparent;
  padding: 0 0 2px;
}

.feed-heading a:hover,
.pill-button:hover,
.back-link:hover {
  border-color: var(--cyan);
  background: transparent;
  color: var(--cyan);
}

.feed-table {
  min-width: 0;
}

.feed-columns,
.post-row {
  grid-template-columns: 108px minmax(0, 1fr) 140px 18px;
}

.feed-columns {
  min-height: 24px;
  border-bottom: 0.5px solid var(--line);
}

.post-row {
  min-height: 40px;
  border-bottom: 0.5px solid var(--line-soft);
  padding: 0;
  color: var(--text-heading);
}

.post-row::before {
  display: none;
}

.post-row.is-hot,
.post-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.post-row time,
.post-row > span:not(.row-plus):not(.row-copy) {
  color: var(--muted);
}

.post-row strong {
  font-size: 0.92rem;
  font-weight: 620;
}

.row-plus {
  color: var(--accent);
  font-size: 0.92rem;
}

.post-row--archive,
.archive-feed .feed-columns,
.cv-feed .post-row {
  grid-template-columns: 108px minmax(0, 1fr) 156px 18px;
}

.archive-hero {
  min-height: 150px;
  padding: 34px 0 22px;
  border-bottom: 0.5px solid var(--line);
}

.archive-hero h1 {
  margin-top: 14px;
}

.feed-filter .stripe-label,
.cv-sidebar nav,
.article-aside .stripe-label {
  border-top: 0.5px solid var(--line);
  border-bottom: 0;
  padding-top: 12px;
}

.filter-button {
  margin-top: 0px;
  padding: 0.48rem 0.2rem 0.48rem 1rem;
}

.cv-top {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 42px 0 28px;
  border-bottom: 0.5px solid var(--line);
}

.cv-top--with-portrait {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}

.cv-top__copy p:not(.stripe-label) {
  max-width: 700px;
  margin-top: 22px;
  font-size: 1.05rem;
  line-height: 1.34;
}

.cv-top__portrait {
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  margin-top: auto;
  margin-right: auto;
  border-radius: 50%;
}

.cv-top__portrait img {
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.cv-main {
  gap: 28px;
}

.cv-block {
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--line);
}

.cv-block h2 {
  margin-bottom: 18px;
  font-size: 1.46rem;
}

.cv-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
  border-top: 0.5px solid var(--line);
  padding-top: 14px;
}

.cv-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.cv-facts strong {
  color: var(--text-heading);
  font-size: 0.92rem;
  font-weight: 540;
  line-height: 1.35;
}

.cv-text {
  max-width: 820px;
  border: 0;
  background: transparent;
  padding: 0;
}

.cv-text p {
  font-size: 1rem;
}

.job-timeline {
  gap: 0;
  border-top: 0.5px solid var(--line);
}

.job-timeline::before {
  left: 100px;
  top: 0;
  bottom: 0;
  background: var(--line-soft);
}

.job-item {
  gap: 28px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--line-soft);
}

.job-item::before {
  left: 96px;
  top: 22px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ember);
  background: var(--bg);
}

.job-date {
  padding-top: 3px;
  color: var(--ember);
}

.job-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.job-kicker {
  margin: 3px 0 10px !important;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.job-card p {
  margin-top: 0.56rem;
}

.job-card ul {
  gap: 8px 14px;
}

.job-card li {
  position: relative;
  border: 0;
  padding: 0 0 0 12px;
  color: var(--text);
  font-size: 0.7rem;
}

.job-card li::before {
  content: "+";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
}

.cv-link-list {
  border-top: 0.5px solid var(--line);
}

.cv-link-row {
  grid-template-columns: 108px minmax(0, 0.76fr) minmax(220px, 1fr);
  gap: 16px;
  min-height: 44px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--line-soft);
}

.cv-link-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cv-link-row span {
  color: var(--muted);
}

.cv-link-row em {
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 0;
  align-self: end;
  padding: 0 0 34px;
  border-top: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.site-footer > .feed-band {
  margin-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  gap: 28px;
  padding: 24px 0;
}

.footer-callout,
.footer-stack {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-copy {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.38;
  text-transform: none;
}

.site-footer .footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  border-bottom: 0.5px solid var(--line);
  color: var(--text-heading);
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-link-list--stack {
  display: grid;
  gap: 8px;
}

.site-footer .footer-link-list a {
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  border-bottom: 0.5px solid transparent;
  color: var(--text-heading);
}

.footer-link-list a:hover,
.footer-button:hover {
  border-color: currentColor;
  color: var(--accent);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 0.5px solid var(--line-soft);
  padding-top: 14px;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-scan {
  min-height: 180px;
  aspect-ratio: 16 / 9;
  border: 0.5px solid var(--line-soft);
  background: var(--panel);
}

.image-scan img {
  filter: saturate(0.92) contrast(1.02) brightness(0.82);
}

.feature-image.image-scan {
  flex: 0 0 44%;
  min-height: 100%;
  aspect-ratio: auto;
  border-right: 0.5px solid var(--line-soft);
  border-bottom: 0;
}

.post-preview {
  width: 292px;
  border: 0.5px solid var(--line);
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(120%);
}

.post-preview__image {
  width: 100%;
  min-height: 136px;
  margin: 0;
  border-bottom: 0.5px solid var(--line);
}

.post-preview__image img {
  object-position: center center;
}

.post-preview__body {
  gap: 8px;
  padding: 12px;
}

.post-preview__title {
  font-size: 0.98rem;
}

.post-preview__summary {
  font-size: 0.86rem;
}

@media (max-width: 920px) {
  .feature-grid,
  .feed-shell,
  .blog-grid,
  .cv-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px 10px;
  }

  .feature-card {
    flex-direction: column;
  }

  .feature-image {
    flex-basis: auto;
    min-height: 170px;
    border-right: 0;
    border-bottom: 0.5px solid var(--line-soft);
  }

  .feature-image.image-scan {
    min-height: 170px;
    border-right: 0;
    border-bottom: 0.5px solid var(--line-soft);
  }

  .cv-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid {
    gap: 22px;
  }
}

@media (max-width: 680px) {
  .nav-toggle,
  .panel-toggle {
    display: inline-flex;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: center;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 0.5px solid var(--line-soft);
  }

  .nav-link {
    width: fit-content;
  }

  .hero-title,
  .feed-heading h2,
  .archive-hero h1,
  .page-title,
  .article-hero h1 {
    font-size: 2.45rem;
  }

  .feature-image {
    min-height: 160px;
  }

  .feature-copy {
    padding: 10px 0 0;
  }

  .cv-top--with-portrait {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .cv-top__portrait{
    grid-row-end: none;
    margin: auto;
  }

  .feed-shell--home {
    padding-top: 36px;
  }

  .feed-band__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .post-row,
  .post-row--archive {
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 10px;
    min-height: auto;
    padding: 10px 0;
  }

  .archive-feed .feed-columns,
  .cv-feed .feed-columns,
  .cv-feed .post-row {
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .job-timeline::before {
    left: 5px;
  }

  .job-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 20px;
  }

  .job-item::before {
    left: 1px;
  }

  .filter-panel {
    padding-top: 12px;
    border-top: 0.5px solid var(--line);
  }

  .cv-link-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .cv-link-row em {
    grid-column: auto;
    white-space: normal;
  }

  .cv-top__portrait img {
    min-height: 220px;
  }

  .article-index-toggle {
    margin-top: 16px;
  }

  .article-aside {
    position: static;
    margin-bottom: 10px;
    padding-top: 12px;
    border-top: 0.5px solid var(--line);
  }

  .article-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(210, 213, 219, 0.18);
  }

  .article-meta div {
    padding: 8px 10px;
  }

  .article-meta__published,
  .article-meta__reading {
    border-bottom: 1px solid rgba(210, 213, 219, 0.18);
  }

  .article-meta__reading {
    border-right: 0;
  }

  .article-meta dt {
    font-size: 0.62rem;
  }

  .article-meta dd {
    margin-top: 0.42rem;
    font-size: 0.76rem;
  }

  .article-meta__topics {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .article-meta .tag-row {
    gap: 4px;
  }

  .article-meta .tag-row span {
    font-size: 0.58rem;
    padding: 0.14rem 0.32rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.52;
  }

  .article-body h2 {
    margin: 2.6rem 0 0.9rem;
    font-size: 1.45rem;
  }

  .article-body pre,
  .article-body table,
  .article-body figure,
  .article-body details {
    margin: 1.3rem 0;
  }

  .article-body th,
  .article-body td {
    padding: 10px 10px;
    font-size: 0.88rem;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.tag-row {
  gap: 8px;
  padding: 0 !important;
}

/* MntcrlCTF landing page */

.ctf-landing {
  --pixel: "Silkscreen", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background:
    radial-gradient(circle at top right, rgba(168, 255, 96, 0.08), transparent 30%),
    radial-gradient(circle at 14% 18%, rgba(88, 230, 217, 0.07), transparent 26%),
    linear-gradient(180deg, #07090f 0%, #0b1018 46%, #07090f 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 112px);
  font-family: var(--pixel);
  letter-spacing: 0.01em;
}

.ctf-landing .page-shell {
  padding-bottom: 48px;
}

.ctf-landing .brand-mark,
.ctf-landing .nav-link,
.ctf-landing .pill-button,
.ctf-landing .stripe-label,
.ctf-landing .ctf-status-pill,
.ctf-landing .ctf-timebox span,
.ctf-landing .ctf-summary span,
.ctf-landing .ctf-summary strong,
.ctf-landing .ctf-summary time,
.ctf-landing .ctf-track-chip,
.ctf-landing .ctf-footer {
  font-family: var(--pixel);
}

.ctf-header {
  padding: 22px 0 0;
}

.ctf-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.ctf-brand-name {
  display: grid;
  gap: 4px;
  line-height: 1.15;
}

.ctf-brand-name strong {
  color: var(--text-heading);
  font-size: 0.94rem;
  font-weight: 700;
}

.ctf-brand-name span {
  color: var(--muted-2);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.ctf-brand-badge {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.ctf-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.ctf-header .site-nav {
  gap: 6px;
}

.ctf-header .nav-link {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 6px 8px;
  color: var(--muted);
}

.ctf-header .nav-link:hover,
.ctf-header .nav-link:focus-visible {
  border-color: var(--line);
  background: var(--chip);
  color: var(--text-heading);
}

.ctf-main {
  position: relative;
}

.ctf-main::before {
  content: "";
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 0;
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(155, 140, 255, 0.14), transparent 70%);
  filter: blur(16px);
  opacity: 0.5;
  pointer-events: none;
}

.ctf-main > * {
  position: relative;
  z-index: 1;
}

.ctf-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 24px;
  align-items: start;
  min-height: auto;
  padding: 64px 0 26px;
}

.ctf-copy {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.ctf-title {
  max-width: 10ch;
  margin-top: 18px;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.ctf-title > span {
  display: block;
}

.ctf-title > span:first-child {
  color: var(--accent);
}

.ctf-title > span:last-child {
  color: var(--text-heading);
}

.ctf-copy .hero-lede {
  max-width: 38rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.ctf-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.ctf-actions .pill-button {
  min-height: 40px;
}

.ctf-hero-panel {
  display: grid;
}

.ctf-panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(21, 30, 43, 0.92), rgba(16, 23, 32, 0.96));
  box-shadow: var(--shadow);
  padding: 18px;
}

.ctf-panel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 255, 96, 0), rgba(168, 255, 96, 0.75), rgba(88, 230, 217, 0.35), rgba(168, 255, 96, 0));
  opacity: 0.8;
}

.ctf-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ctf-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(168, 255, 96, 0.3);
  border-radius: 999px;
  background: var(--chip-hot);
  padding: 0.28rem 0.56rem;
  color: var(--accent);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.ctf-countdown-state {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.ctf-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.ctf-timebox {
  display: grid;
  gap: 8px;
  min-height: 82px;
  align-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.ctf-timebox strong {
  color: var(--text-heading);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
}

.ctf-timebox span {
  color: var(--muted-2);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.ctf-summary {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.ctf-summary-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.ctf-summary-row span {
  color: var(--muted-2);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.ctf-summary-row strong,
.ctf-summary-row time {
  color: var(--text-heading);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
}

.ctf-section {
  padding-top: 24px;
}

.ctf-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ctf-section-title {
  margin: 14px 0 0;
  color: var(--text-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.ctf-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.ctf-track-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ctf-track-chip:hover {
  border-color: rgba(168, 255, 96, 0.45);
  background: rgba(168, 255, 96, 0.06);
  transform: translateY(-2px);
}

.ctf-track-chip strong {
  color: var(--text-heading);
  font-size: 0.74rem;
  font-weight: 400;
}

.ctf-track-chip span {
  color: var(--accent);
  font-size: 0.56rem;
}

.ctf-footer {
  display: grid;
  gap: 8px;
  margin-top: 38px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.ctf-footer strong {
  color: var(--text-heading);
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.6;
}

.ctf-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .ctf-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctf-hero-panel {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .ctf-header {
    padding-top: 18px;
  }

  .ctf-header .site-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ctf-header .site-nav {
    justify-content: flex-start;
  }

  .ctf-brand-badge {
    width: 42px;
    height: 42px;
  }

  .ctf-title {
    max-width: 100%;
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .ctf-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ctf-summary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .ctf-hero {
    padding-top: 50px;
  }

  .ctf-panel-card {
    padding: 16px;
  }

  .ctf-timebox {
    min-height: 76px;
  }

  .ctf-track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MntcrlCTF reference layout override */

.ctf-reference-layout {
  --pixel: "Pixelify Sans", "Silkscreen", monospace;
  --body-mono: "Chivo Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --page-gutter: 28px;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: var(--body-mono);
  letter-spacing: 0;
}

.ctf-reference-layout::before {
  content: none;
}

.ctf-reference-layout,
.ctf-reference-layout p,
.ctf-reference-layout a,
.ctf-reference-layout time,
.ctf-reference-layout summary {
  font-family: var(--body-mono);
}

.ctf-reference-layout h1,
.ctf-reference-layout h2,
.ctf-reference-layout h3,
.ctf-reference-layout span,
.ctf-reference-layout .ctf-kicker,
.ctf-reference-layout .ctf-section-label,
.ctf-reference-layout .ctf-timebox .ctf-value,
.ctf-faq summary {
  font-family: var(--pixel);
  letter-spacing: 0;
}

.ctf-reference-layout .grain {
  opacity: 0.1;
}

.pixel-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.72;
}

.pixel-sky::before,
.pixel-sky::after {
  content: "";
  position: absolute;
  top: -20vh;
  left: -10vw;
  width: 3px;
  height: 3px;
  background: rgba(215, 222, 234, 0.34);
  image-rendering: pixelated;
}

.pixel-sky::before {
  animation: pixel-drift-a 18s steps(12) infinite;
  box-shadow:
    7vw 9vh rgba(215, 222, 234, 0.16),
    16vw 42vh rgba(215, 222, 234, 0.22),
    23vw 18vh rgba(168, 255, 96, 0.18),
    34vw 66vh rgba(215, 222, 234, 0.28),
    43vw 31vh rgba(215, 222, 234, 0.2),
    51vw 76vh rgba(88, 230, 217, 0.18),
    62vw 12vh rgba(215, 222, 234, 0.18),
    71vw 49vh rgba(215, 222, 234, 0.3),
    83vw 23vh rgba(168, 255, 96, 0.16),
    92vw 72vh rgba(215, 222, 234, 0.22),
    12vw 92vh rgba(215, 222, 234, 0.18),
    27vw 111vh rgba(215, 222, 234, 0.16),
    46vw 99vh rgba(88, 230, 217, 0.14),
    68vw 108vh rgba(215, 222, 234, 0.2),
    88vw 96vh rgba(215, 222, 234, 0.26);
}

.pixel-sky::after {
  width: 5px;
  height: 5px;
  background: rgba(215, 222, 234, 0.12);
  animation: pixel-drift-b 24s steps(10) infinite;
  box-shadow:
    5vw 22vh rgba(215, 222, 234, 0.08),
    19vw 74vh rgba(215, 222, 234, 0.14),
    31vw 39vh rgba(215, 222, 234, 0.1),
    48vw 17vh rgba(215, 222, 234, 0.12),
    57vw 57vh rgba(168, 255, 96, 0.1),
    73vw 34vh rgba(215, 222, 234, 0.16),
    86vw 62vh rgba(88, 230, 217, 0.1),
    98vw 12vh rgba(215, 222, 234, 0.12),
    9vw 118vh rgba(215, 222, 234, 0.1),
    39vw 104vh rgba(215, 222, 234, 0.14),
    78vw 112vh rgba(215, 222, 234, 0.1);
}

@keyframes pixel-drift-a {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(26px, 18px, 0);
  }

  100% {
    transform: translate3d(-18px, 42px, 0);
  }
}

@keyframes pixel-drift-b {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-34px, 22px, 0);
  }

  100% {
    transform: translate3d(20px, 58px, 0);
  }
}

.ctf-reference-layout.is-loading {
  overflow: hidden;
}

.ctf-reference-layout.is-loading .ctf-page {
  opacity: 0;
}

.ctf-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: var(--text-heading);
}

.ctf-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0 1px,
    transparent 1px 5px
  );
  opacity: 0.18;
}

.ctf-loader::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.035), transparent);
}

.ctf-loader-grid {
  position: absolute;
  inset: -12%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(168, 255, 96, 0.26), rgba(168, 255, 96, 0.26)),
    linear-gradient(rgba(215, 222, 234, 0.2), rgba(215, 222, 234, 0.2)),
    linear-gradient(rgba(88, 230, 217, 0.18), rgba(88, 230, 217, 0.18)),
    linear-gradient(rgba(215, 222, 234, 0.11), rgba(215, 222, 234, 0.11)),
    linear-gradient(rgba(168, 255, 96, 0.16), rgba(168, 255, 96, 0.16)),
    linear-gradient(rgba(215, 222, 234, 0.14), rgba(215, 222, 234, 0.14));
  background-position: 12% 18%, 28% 69%, 43% 31%, 63% 79%, 79% 24%, 91% 58%;
  background-repeat: no-repeat;
  background-size: 14px 14px, 8px 8px, 18px 18px, 10px 10px, 22px 22px, 6px 6px;
  filter: drop-shadow(0 0 18px rgba(168, 255, 96, 0.12));
  opacity: 0.9;
}

.ctf-loader-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(88vw, 520px);
  justify-items: start;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.86);
  box-shadow:
    0 0 0 1px rgba(168, 255, 96, 0.12),
    0 26px 90px rgba(0, 0, 0, 0.72);
  padding: 24px;
}

.ctf-loader-shell img {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  image-rendering: pixelated;
  object-fit: cover;
}

.ctf-loader-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.ctf-loader-shell strong {
  margin-top: 10px;
  color: var(--text-heading);
  font-family: var(--pixel);
  font-size: 2.7rem;
  line-height: 0.9;
}

.ctf-loader-bar {
  width: 100%;
  height: 14px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 9px),
    rgba(255, 255, 255, 0.035);
}

.ctf-loader-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(168, 255, 96, 0.42);
}

.ctf-loader-shell p {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--body-mono);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .pixel-sky::before,
  .pixel-sky::after {
    animation: none;
  }
}

.ctf-reference-layout .ctf-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 64px;
}

.ctf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ctf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--text-heading);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 0;
  text-transform: uppercase;
}

.ctf-logo img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  image-rendering: pixelated;
}

.ctf-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.ctf-nav a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  min-height: 30px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctf-nav span {
  color: var(--accent);
  font-size: 0.82rem;
}

.ctf-nav a:hover,
.ctf-nav a:focus-visible {
  color: var(--text-heading);
}

.ctf-hero-block {
  max-width: 820px;
  padding: 70px 0 56px;
}

.ctf-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.ctf-hero-block h1 {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--text-heading);
  font-size: 6.8rem;
  font-weight: 700;
  line-height: 0.82;
  overflow-wrap: anywhere;
}

.ctf-hero-block h1 span {
  color: var(--accent);
}

.ctf-subtitle {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.ctf-event-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 34px;
}

.ctf-tracks-panel,
.ctf-countdown-panel {
  min-width: 0;
}

.ctf-section-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.ctf-section-label span:first-child {
  color: var(--muted);
}

.ctf-section-label span:last-child {
  text-align: right;
}

.ctf-track-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ctf-track-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(96px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 54px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 12px 0 0;
  transition: background 140ms ease, border-color 140ms ease;
}

.ctf-track-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.3);
  transform-origin: center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.ctf-track-row:hover {
  border-color: rgba(168, 255, 96, 0.32);
  background: rgba(168, 255, 96, 0.045);
}

.ctf-track-row:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.ctf-track-row span {
  color: var(--accent);
  font-size: 0.76rem;
  text-align: center;
}

.ctf-track-row h3 {
  color: var(--text-heading);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

.ctf-track-row p {
  margin: 0;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctf-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.ctf-timebox {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  padding: 16px 14px;
}

.ctf-timebox .ctf-value {
  color: var(--text-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.85;
}

.ctf-timebox span {
  color: var(--muted-2);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ctf-time-window {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.ctf-time-window p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 13px 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.ctf-time-window p:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ctf-time-window span {
  color: var(--muted-2);
  font-size: 0.78rem;
}

.ctf-time-window time {
  color: var(--text-heading);
  font: inherit;
}

.ctf-faq {
  padding: 58px 0 0;
}

.ctf-faq h2 {
  margin: 0 0 24px;
  color: var(--text-heading);
  font-size: 3.7rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.ctf-faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ctf-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ctf-faq summary {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  color: var(--text-heading);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  text-transform: uppercase;
}

.ctf-faq summary::-webkit-details-marker {
  display: none;
}

.ctf-faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-family: var(--pixel);
  font-size: 1.35rem;
}

.ctf-faq details[open] summary::after {
  content: "-";
}

.ctf-faq summary span {
  color: var(--accent);
  font-size: 0.86rem;
}

.ctf-faq details p {
  max-width: 780px;
  margin: 0;
  padding: 0 0 20px 48px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .ctf-hero-block h1 {
    font-size: 5.2rem;
  }

  .ctf-event-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctf-track-row {
    grid-template-columns: 56px minmax(120px, 0.8fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .ctf-reference-layout {
    --page-gutter: 22px;
  }

  .ctf-reference-layout .ctf-page {
    padding-bottom: 42px;
  }

  .ctf-topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 0;
  }

  .ctf-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .ctf-nav a {
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    padding: 0 8px;
  }

  .ctf-nav a:hover,
  .ctf-nav a:focus-visible {
    border-color: rgba(168, 255, 96, 0.36);
    background: rgba(168, 255, 96, 0.045);
  }

  .ctf-hero-block {
    padding: 50px 0 42px;
  }

  .ctf-hero-block h1 {
    font-size: 3.8rem;
    line-height: 0.9;
  }

  .ctf-subtitle {
    font-size: 0.96rem;
  }

  .ctf-event-grid {
    padding-bottom: 30px;
  }

  .ctf-track-row {
    grid-template-columns: 50px minmax(110px, 0.72fr) minmax(0, 1fr);
  }

  .ctf-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ctf-timebox .ctf-value {
    font-size: 2.6rem;
  }

  .ctf-time-window p {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .ctf-faq h2 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .ctf-reference-layout {
    --page-gutter: 18px;
  }

  .ctf-loader-shell {
    width: min(90vw, 420px);
    padding: 18px;
  }

  .ctf-loader-shell img {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .ctf-loader-shell strong {
    font-size: 2.05rem;
  }

  .ctf-loader-shell p {
    font-size: 0.72rem;
  }

  .ctf-nav {
    gap: 6px;
  }

  .ctf-nav a {
    gap: 5px;
    font-size: 0.68rem;
    min-height: 32px;
    padding: 0 5px;
  }

  .ctf-nav span {
    font-size: 0.72rem;
  }

  .ctf-kicker {
    font-size: 0.94rem;
  }

  .ctf-hero-block h1 {
    font-size: 3rem;
  }

  .ctf-subtitle {
    line-height: 1.48;
  }

  .ctf-event-grid {
    gap: 34px;
    padding-top: 18px;
  }

  .ctf-section-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ctf-section-label span:last-child {
    text-align: left;
  }

  .ctf-track-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 62px;
    padding: 10px 10px 10px 0;
  }

  .ctf-track-row h3 {
    font-size: 1.08rem;
  }

  .ctf-track-row p {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .ctf-timebox {
    min-height: 92px;
    padding: 12px 10px;
  }

  .ctf-timebox .ctf-value {
    font-size: 2rem;
  }

  .ctf-timebox span:not(.ctf-value) {
    font-size: 0.68rem;
  }

  .ctf-faq summary {
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
  }

  .ctf-faq details p {
    padding-left: 0;
  }
}

@media (max-width: 360px) {
  .ctf-reference-layout {
    --page-gutter: 14px;
  }

  .ctf-topbar {
    gap: 12px;
  }

  .ctf-logo {
    gap: 10px;
  }

  .ctf-logo img {
    width: 30px;
    height: 30px;
  }

  .ctf-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .ctf-nav a {
    justify-content: flex-start;
    font-size: 0.68rem;
    padding: 0 8px;
  }

  .ctf-hero-block {
    padding: 40px 0 34px;
  }

  .ctf-hero-block h1 {
    font-size: 2.45rem;
  }

  .ctf-subtitle {
    font-size: 0.88rem;
  }

  .ctf-countdown {
    gap: 8px;
  }

  .ctf-timebox {
    min-height: 84px;
  }

  .ctf-timebox .ctf-value {
    font-size: 1.75rem;
  }

  .ctf-faq h2 {
    font-size: 2.45rem;
  }
}
