/* ==========================================================================
   Mario Michel — one-page site
   Theme: cinematic parallax scroller + FortiGate terminal profile card
   ========================================================================== */

@font-face {
  font-family: "JetBrains Mono";
  font-display: swap;
  src: local("JetBrains Mono");
}

:root {
  /* palette tokens — overwritten at runtime by theme.js, these are the
     "day" defaults so the page never flashes unstyled */
  --bg-0: #14181c;
  --bg-1: #1b2126;
  --bg-2: #232b31;
  --fg: #e7ecef;
  --fg-dim: #93a1a8;
  --accent: #c98a4b;
  --accent-dim: #8a6136;
  --border: #333e45;
  --danger: #b4483f;

  --font-display: "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(.16, .84, .44, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 900ms var(--ease), color 900ms var(--ease);
}

::selection {
  background: var(--accent);
  color: var(--bg-0);
}

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

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

.mono { font-family: var(--font-mono); }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* ---- section scaffolding ------------------------------------------------ */

section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
  transition: color 900ms var(--ease);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
}

.section-sub {
  color: var(--fg-dim);
  max-width: 46ch;
  margin-top: .75rem;
  font-size: 1.02rem;
}

/* ---- reveal-on-scroll ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 40ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 280ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > *, .parallax-layer, .hero-name span {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---- nav / theme control -------------------------------------------------- */

.sitenav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-0) 75%, transparent), transparent);
  pointer-events: none;
}
.sitenav * { pointer-events: auto; }

.brand {
  color: var(--fg);
  opacity: .85;
}
.brand b { color: var(--accent); }

.theme-control { position: relative; }

/* deliberately small — a quiet dot, not a UI centrepiece */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem; height: 1.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  opacity: .7;
  transition: border-color 300ms var(--ease), opacity 300ms var(--ease);
}
.theme-toggle:hover,
.theme-toggle[aria-expanded="true"] { opacity: 1; border-color: var(--border); }
.theme-toggle:focus-visible { opacity: 1; outline: 1px solid var(--accent); outline-offset: 2px; }
.theme-toggle .dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: background 900ms var(--ease);
}

.theme-menu {
  position: absolute;
  right: 0; top: calc(100% + .4rem);
  min-width: 10rem;
  margin: 0; padding: .3rem;
  list-style: none;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .4rem .55rem;
  background: none;
  border: 0;
  border-radius: 5px;
  color: var(--fg-dim);
  font: inherit;
  font-size: .76rem;
  text-align: left;
  cursor: pointer;
}
.theme-menu button:hover,
.theme-menu button:focus-visible { background: var(--bg-2); color: var(--fg); outline: none; }
.theme-menu button[aria-checked="true"] { color: var(--fg); }
.theme-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }
.theme-menu .swatch {
  width: .55rem; height: .55rem; border-radius: 50%;
  flex: none;
}
.theme-menu .swatch-auto {
  background: conic-gradient(#d98a6b, #c98a4b, #c9633f, #4fb6a8, #b4483f, #d98a6b);
}
.theme-menu .hint { color: var(--fg-dim); opacity: .7; }
.theme-menu .hint::before { content: "· "; }

/* ---- hero ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: opacity 1200ms var(--ease);
}

.layer-grid {
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 40%, transparent 78%);
  opacity: .55;
}

.layer-glow-a {
  background: radial-gradient(circle at 28% 30%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 55%);
  filter: blur(10px);
}
.layer-glow-b {
  background: radial-gradient(circle at 74% 68%, color-mix(in srgb, var(--accent-dim) 45%, transparent), transparent 60%);
  filter: blur(10px);
}
.layer-scan {
  background: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--fg) 3%, transparent) 0px,
    color-mix(in srgb, var(--fg) 3%, transparent) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: .35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 0 1.2rem;
}

.hero-boot {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent);
  min-height: 1.4em;
  letter-spacing: .02em;
}
.hero-boot::after {
  content: "";
  display: inline-block;
  width: .55em; height: 1em;
  margin-left: .15em;
  background: var(--accent);
  vertical-align: -.15em;
  animation: blink 1s steps(1) infinite;
}

.hero-name {
  font-size: clamp(2.6rem, 11vw, 7.2rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em);
  filter: blur(6px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
}
.hero-name.ready span {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-role {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(.72rem, 1.6vw, .95rem);
  color: var(--fg-dim);
}
.hero-role b { color: var(--accent); font-weight: 600; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: .4rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  padding: .35rem .7rem;
  border-radius: 999px;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.2rem, 4vh, 2.4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(6px); opacity: 1; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---- terminal card ------------------------------------------------------ */

.bg-alt { background: var(--bg-1); transition: background 900ms var(--ease); }

.terminal {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  transition: border-color 900ms var(--ease), box-shadow 900ms var(--ease);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--fg-dim);
}
.terminal-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--border); }
.terminal-bar .terminal-title { margin-left: .4rem; }
.terminal-body {
  padding: clamp(1.1rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: clamp(.78rem, 1.6vw, .92rem);
  line-height: 1.75;
  color: var(--fg-dim);
  white-space: pre-wrap;
  min-height: 22em;
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: var(--fg); }
.terminal-body .k { color: var(--fg); }
.terminal-body .v { color: var(--fg-dim); }
.terminal-body .up { color: #6fbf73; }
.terminal-body .hl { color: var(--accent); }
.cursor {
  display: inline-block;
  width: .55em; height: 1em;
  background: var(--accent);
  vertical-align: -.15em;
  animation: blink 1s steps(1) infinite;
}

/* ---- about ------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
}

.about-photo {
  position: relative;
  justify-self: center;
}
.about-photo img {
  width: min(320px, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  filter: grayscale(.25) contrast(1.05);
  transition: border-color 900ms var(--ease), transform 300ms var(--ease);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fact-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.fact-list li {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: .9rem;
  transition: border-color 900ms var(--ease);
}
.fact-list .fk {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  flex: 0 0 9.5rem;
}
.fact-list .fv { color: var(--fg); }

.age-live {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ---- timeline ------------------------------------------------------------ */

.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: clamp(1.6rem, 4vw, 2.6rem);
  border-left: 1px solid var(--border);
  transition: border-color 900ms var(--ease);
}

.tl-item {
  position: relative;
  padding: 0 0 clamp(2.4rem, 6vw, 3.6rem);
}
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.6rem, 4vw, 2.6rem) * -1 - 6px);
  top: .3rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  transition: border-color 900ms var(--ease);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.tl-org { font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin-top: .25rem; text-transform: uppercase; }
.tl-body { color: var(--fg-dim); margin-top: .7rem; max-width: 62ch; }
.tl-body p { margin: 0 0 .8rem; }
.tl-body h6 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1rem 0 .4rem;
}
.tl-body a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.tl-body a:hover { border-color: var(--accent); }

/* ---- tools grid ---------------------------------------------------------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.tool-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease), background 900ms var(--ease);
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.tool-card img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 1rem; }
.tool-card h4 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.tool-card p { color: var(--fg-dim); font-size: .88rem; margin: 0; }

/* ---- counter section ------------------------------------------------------ */

.counter-wrap { text-align: center; }
.countup {
  display: inline-flex;
  gap: .5rem;
  font-family: var(--font-mono);
  margin-bottom: 1.6rem;
}
.countup .cel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem 1.1rem;
  min-width: 4.2rem;
  transition: border-color 900ms var(--ease);
}
.countup .cel .num { font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--accent); font-weight: 700; }
.countup .cel .lbl { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); margin-top: .2rem; }

/* ---- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  padding: .8rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 300ms var(--ease), color 300ms var(--ease), background 300ms var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn::before { content: "$"; color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---- contact / social ------------------------------------------------------ */

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  transition: all 300ms var(--ease);
}
.icon-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.icon-link svg { width: 1.4rem; height: 1.4rem; }

/* ---- footer / links -------------------------------------------------------- */

footer {
  padding: 3rem 0 2.4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--fg-dim);
  letter-spacing: .04em;
}
footer .btn-row { margin-bottom: 1.6rem; }

footer .archive-note { margin: -.6rem 0 1.4rem; }
footer .archive-note a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---- timeline: link to full one-pager ------------------------------------- */

.tl-more { margin-top: 2.4rem; }

/* ---- nav links ------------------------------------------------------------ */

.sitenav .nav-right { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.nav-links { display: flex; gap: clamp(.8rem, 2vw, 1.4rem); margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--fg-dim); font-size: .74rem; letter-spacing: .08em; transition: color 300ms var(--ease); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
@media (max-width: 760px) { .nav-links { display: none; } }
a.brand:hover { opacity: 1; }

/* ---- experience ------------------------------------------------------------ */

.tl-group { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); margin: 3.2rem 0 1.6rem; }
.tl-group:first-of-type { margin-top: 0; }
.tl-role { color: var(--fg); font-weight: 600; margin: .15rem 0 0; font-size: .98rem; }
.tl-item.minor .tl-org { font-size: clamp(1rem, 2vw, 1.2rem); }
.tl-item.minor { padding-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.tl-body ul { margin: 0 0 .8rem; padding-left: 1.1rem; }
.tl-body li { margin-bottom: .3rem; }

/* ---- certifications ---------------------------------------------------------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.cert {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  transition: border-color 300ms var(--ease), background 900ms var(--ease);
}
.cert:hover { border-color: var(--accent); }
.cert .issuer { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cert h4 { font-size: 1rem; line-height: 1.3; }
.cert .when { color: var(--fg-dim); font-size: .8rem; }
.cert .links { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .9rem; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.cert .links a { color: var(--fg-dim); border-bottom: 1px solid var(--border); }
.cert .links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- footer: visitor panel ------------------------------------------------------ */

.visitor {
  max-width: 560px;
  margin: 0 auto 2rem;
  text-align: left;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: .76rem;
  line-height: 1.8;
}
.visitor .prompt { color: var(--accent); }
.visitor dl { display: grid; grid-template-columns: max-content 1fr; gap: 0 1.2rem; margin: .4rem 0 0; }
.visitor dt { color: var(--fg-dim); }
.visitor dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.visitor .flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; margin-right: .35rem; }
.visitor .note { color: var(--fg-dim); opacity: .75; margin: .6rem 0 0; font-size: .68rem; }
footer .footer-line { margin: 0; }
footer .footer-line a { color: var(--fg-dim); border-bottom: 1px solid var(--border); }
footer .footer-line a:hover { color: var(--accent); }

/* ---- sub pages ------------------------------------------------------------------- */

.page { padding-top: 7rem; min-height: 70vh; }
.page .lead { color: var(--fg-dim); max-width: 60ch; }
.page .lead a, .prose a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.embed {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-1);
  margin: 0 0 1.4rem;
}
.embed.player { height: 160px; }
.embed.requests { height: min(70vh, 640px); }
.embed.snowflake { height: 300px; max-width: 420px; }

/* ---- version viewer ---------------------------------------------------------------- */

.version-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.version-tabs .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.version-meta { color: var(--fg-dim); font-family: var(--font-mono); font-size: .78rem; margin: 0 0 1rem; }
.version-frame {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

/* ---- crypto timeline ------------------------------------------------------------------ */

.crypto-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.4rem; }
.crypto-filter .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.crypto-year { font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent); margin: 3rem 0 1.4rem; letter-spacing: .08em; }
.crypto-year:first-of-type { margin-top: 0; }
.ctl { border-left: 1px solid var(--border); padding-left: clamp(1.2rem, 3vw, 2rem); }
.ctl-item { position: relative; padding: 0 0 1.6rem; }
.ctl-item::before {
  content: ""; position: absolute;
  left: calc(clamp(1.2rem, 3vw, 2rem) * -1 - 5px); top: .45rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--accent);
}
.ctl-item h3 { font-size: 1.05rem; margin: .1rem 0 .4rem; }
.ctl-meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--fg-dim); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.ctl-meta .price { color: var(--accent); }
.ctl-item:not(.mark) .ctl-meta { margin-bottom: .45rem; }
.ctl-item.mark .ctl-body { margin-top: .3rem; font-size: .88rem; }
.ctl-body { color: var(--fg-dim); max-width: 68ch; font-size: .95rem; }
.ctl-body p { margin: 0 0 .6rem; }
.ctl-body a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ctl-body table { border-collapse: collapse; margin: .4rem 0 .8rem; font-family: var(--font-mono); font-size: .8rem; }
.ctl-body th, .ctl-body td { border: 1px solid var(--border); padding: .3rem .8rem; text-align: right; }
.ctl-body th:first-child, .ctl-body td:first-child { text-align: left; }
.ctl-item.mark { padding-bottom: .7rem; }
.ctl-item.mark::before { width: 5px; height: 5px; left: calc(clamp(1.2rem, 3vw, 2rem) * -1 - 3px); top: .5rem; border-width: 1px; }
.ctl-item.mark h3 { display: inline; font-size: .86rem; font-weight: 600; font-family: var(--font-mono); margin-right: .8rem; }
.ctl-item.mark .ctl-meta { display: inline-flex; }
.ctl-item.milestone h3 { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.ctl-footnote { color: var(--fg-dim); font-size: .78rem; font-family: var(--font-mono); margin-top: 2rem; }
.ctl[data-filter="events"] .mark,
.ctl[data-filter="marks"] .ctl-item:not(.mark) { display: none; }

/* ---- 404 ----------------------------------------------------------------------------------- */

.notfound { min-height: 100svh; display: flex; align-items: center; }
.notfound .terminal { max-width: 640px; }
.notfound .terminal-body { min-height: 0; }

/* utility */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-head.spaced { margin-top: 4rem; }
.counter-caption { text-transform: uppercase; color: var(--fg-dim); font-weight: 600; }
.mt { margin-top: 2rem; }
