/* =============================================================
   Antonis Pishias — Console MMXXVI
   Neo-brutalist / quant-terminal / editorial zine
   ============================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --bone: #ece6d6;
  --bone-2: #e1dac6;
  --bone-3: #c8bfa6;
  --paper: #f3eedd;
  --ink: #0b0b0b;
  --ink-soft: #141414;
  --ink-2: #1c1c1c;
  --volt: #d6fb4f;
  --volt-dark: #b8d940;
  --blood: #e8412a;
  --sky: #1d4ed8;
  --mute: #7d7a70;

  /* lines & shadow */
  --line: 3px solid var(--ink);
  --line-thick: 5px solid var(--ink);
  --line-xthick: 7px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --shadow-lg: 14px 14px 0 var(--ink);
  --shadow-xl: 18px 18px 0 var(--ink);

  /* type */
  --font-display: "Big Shoulders Display", "Impact", "Arial Black", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --ticker-h: 38px;
  --hud-h: 32px;
}

html {
  background: var(--bone);
  scrollbar-gutter: stable;
}

body {
  background:
    radial-gradient(ellipse 80vw 40vh at 20% -10%, rgba(214, 251, 79, 0.14), transparent 60%),
    radial-gradient(ellipse 70vw 50vh at 110% 10%, rgba(232, 65, 42, 0.08), transparent 60%),
    var(--bone);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* NOTE: no `overflow-x: hidden` — it breaks position:sticky on the ticker in
     Chrome/Safari. Clip horizontally only if truly needed. */
}

::selection {
  background: var(--volt);
  color: var(--ink);
}

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

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--volt);
  box-shadow: 0 0 0 1px var(--ink);
  transition: width 0.08s linear;
}

/* ---------- Grain ---------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Ticker ---------- */
.ticker {
  position: sticky;
  z-index: 50;
  overflow: hidden;
  display: flex;
  background: var(--ink);
  color: var(--volt);
  height: var(--ticker-h);
  border-bottom: var(--line-thick);
}

.ticker--top {
  top: 0;
}

.ticker--bottom {
  position: relative;
  margin-top: 72px;
  border-top: var(--line-thick);
  border-bottom: 0;
  background: var(--volt);
  color: var(--ink);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px 0 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: ticker-scroll 55s linear infinite;
}

.ticker__track--reverse {
  animation-direction: reverse;
  animation-duration: 48s;
}

.ticker__track span {
  display: inline-block;
}

.ticker__sep {
  opacity: 0.55;
}

.ticker--top .ticker__sep {
  color: var(--bone);
}

.ticker--bottom .ticker__sep {
  color: var(--ink);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- HUD ---------- */
.hud {
  position: sticky;
  top: var(--ticker-h);
  z-index: 49;
  display: flex;
  gap: 0;
  background: var(--bone-2);
  border-bottom: var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  height: var(--hud-h);
  overflow-x: auto;
  scrollbar-width: none;
}

.hud::-webkit-scrollbar { display: none; }

.hud__cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 2px solid var(--ink);
  height: 100%;
  white-space: nowrap;
}

.hud__cell:last-child {
  border-right: 0;
}

.hud__cell--clock {
  margin-left: auto;
  background: var(--ink);
  color: var(--volt);
}

.hud__k {
  opacity: 0.55;
  font-weight: 700;
}

.hud__v {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.hud .pulse {
  width: 7px;
  height: 7px;
  background: var(--blood);
  display: inline-block;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.55); opacity: 0.45; }
}

/* ---------- Shell ---------- */
.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 64px) 48px;
  position: relative;
}

/* gutter coordinate labels */
.gutter {
  position: absolute;
  top: 40px;
  bottom: 40px;
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.45;
  pointer-events: none;
}

.gutter--left  { left: 4px;  align-items: flex-start; }
.gutter--right { right: 4px; align-items: flex-end; }

@media (max-width: 900px) {
  .gutter { display: none; }
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  border: var(--line-xthick);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  padding: clamp(14px, 2vw, 28px);
  overflow: hidden;
  animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) 0.05s backwards;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(-45deg,
      transparent 0 22px,
      rgba(0, 0, 0, 0.035) 22px 23px);
}

/* newspaper-style top line */
.masthead__topline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: clamp(10px, 1.6vw, 18px);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.masthead__topline span {
  position: relative;
}

.masthead__topline span + span::before {
  content: "·";
  position: absolute;
  left: -10px;
  opacity: 0.4;
}

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: clamp(10px, 1.6vw, 18px);
  position: relative;
}

.stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--bone);
  transform: rotate(var(--s-rot, -1deg));
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  animation: sticker-heavy-drop 0.5s cubic-bezier(.25, .55, .35, 1) both;
}

.stamp--ink   { --s-rot: -1.4deg; background: var(--bone); animation-delay: 0.85s; }
.stamp--volt  { --s-rot:  1.4deg; background: var(--volt); animation-delay: 1.0s; }
.stamp--live  { --s-rot: -0.4deg; background: var(--ink); color: var(--bone); animation-delay: 1.15s; }
.stamp--blood { --s-rot:  1deg;   background: var(--blood); color: var(--bone); animation-delay: 1.3s; }

.pulse {
  width: 8px;
  height: 8px;
  background: var(--blood);
  display: inline-block;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.stamp--live .pulse { background: var(--volt); }

/* giant wordmark */
.masthead__name {
  position: relative;
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: clamp(12px, 1.6vw, 18px);
}

.masthead__first {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(54px, 12vw, 170px);
  color: var(--ink);
  text-shadow: 6px 6px 0 rgba(232, 65, 42, 0.18);
}

.masthead__last {
  display: block;
  text-align: right;
  margin-top: -0.08em;
  padding-right: 0.05em;
}

.masthead__last em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 8.5vw, 140px);
  line-height: 1;
  color: var(--blood);
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.masthead__last em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.12em;
  height: 0.12em;
  background: var(--volt);
  z-index: -1;
  transform: skewY(-1.5deg);
}

.masthead__role {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 700;
  margin-bottom: clamp(12px, 1.6vw, 20px);
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--ink);
  display: inline-block;
}

.masthead__specs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--line);
  padding-top: 16px;
  gap: 12px;
}

.masthead__specs > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
  border-left: 2px solid var(--ink);
}

.masthead__specs > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.masthead__specs dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: 0.7;
  font-weight: 700;
}

.masthead__specs dd {
  font-weight: 700;
  font-size: 13px;
}

/* registration marks */
.corner {
  position: absolute;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.5;
  font-family: var(--font-mono);
}

.corner--tl { top: 8px; left: 10px; }
.corner--tr { top: 8px; right: 10px; }
.corner--bl { bottom: 6px; left: 10px; }
.corner--br { bottom: 6px; right: 10px; }

/* ---------- Section head ---------- */
.section-head {
  margin: clamp(56px, 8vw, 96px) 0 clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 20px;
  border-bottom: var(--line-thick);
  padding-bottom: 14px;
  animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) 0.2s backwards;
}

.section-head__label,
.section-head__count {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  align-self: end;
}

.section-head__label {
  background: var(--ink);
  color: var(--volt);
}

.section-head__count {
  background: var(--bone);
  box-shadow: 3px 3px 0 var(--ink);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 88px);
  line-height: 0.88;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blood);
  letter-spacing: -0.01em;
}

/* ---------- Projects grid ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.card {
  --tilt: 0deg;
  grid-column: span 6;
  position: relative;
  border: var(--line-thick);
  background: var(--bone-2);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.4vw, 28px);
  transform: rotate(var(--tilt));
  transition:
    transform 0.22s cubic-bezier(.2, .7, .3, 1.2),
    box-shadow 0.22s cubic-bezier(.2, .7, .3, 1.2);
  animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(0.32s + var(--i, 0) * 0.1s);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: rotate(var(--tilt)) translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}

/* corner bracket marks on cards */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.card::before {
  top: -2px; left: -2px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform: translate(-6px, -6px);
}

.card::after {
  bottom: -2px; right: -2px;
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: translate(6px, 6px);
}

/* card header */
.card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
  position: relative;
}

.card__index {
  font-family: var(--font-display);
  font-size: clamp(62px, 7vw, 96px);
  line-height: 0.75;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  position: relative;
}

.card__index::after {
  content: attr(data-index);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  opacity: 0.15;
  transform: translate(6px, 6px);
  z-index: -1;
}

.card__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.card__tag {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--bone);
  --s-rot: 2.5deg;
  transform: rotate(var(--s-rot));
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
}

.card__tag + .card__tag {
  --s-rot: -1.8deg;
}

.card.is-visible .card__tag {
  animation: sticker-heavy-drop 0.5s cubic-bezier(.25, .55, .35, 1) 0.28s both;
}

.card.is-visible .card__tag + .card__tag {
  animation-delay: 0.46s;
}

.card h3 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
}

.card p {
  font-size: 14px;
  margin-bottom: 10px;
}

.card__lede {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}

.card__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}

.card__chips li {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  background: var(--bone);
}

.card__note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--ink);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 14px;
}

.accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  color: var(--blood);
}

/* ---------- Card variants ---------- */
/* 01 — JMBLD: hatched paper, volt tag */
.card--01 {
  --tilt: -0.4deg;
  background:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(-45deg,
      transparent 0 22px,
      rgba(0, 0, 0, 0.05) 22px 23px);
  background-blend-mode: multiply;
}

.card--01 .card__tag { background: var(--volt); }

/* 02 — Groove Grind: full chartreuse wash */
.card--02 {
  --tilt: 0.5deg;
  background: var(--volt);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0,0,0,0.06) 0 1px, transparent 1.5px);
  background-size: 18px 18px;
}

.card--02 .card__tag {
  background: var(--ink);
  color: var(--volt);
  border-color: var(--ink);
}

.card--02 .card__chips li {
  background: rgba(0,0,0,0.06);
}

.card--02 .card__note {
  border-top-color: var(--ink);
  opacity: 0.7;
}

/* 03 — Queens: wider column, blood-accent */
.card--03 {
  grid-column: span 7;
}

.card--03 .card__tag {
  background: var(--blood);
  color: var(--bone);
}

.card--03 .card__index {
  color: var(--blood);
}

.card--03 .card__index::after {
  -webkit-text-stroke-color: var(--blood);
}

/* 04 — Vol Surface: narrow terminal */
.card--04 {
  grid-column: span 5;
  --tilt: -0.3deg;
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    repeating-linear-gradient(0deg,
      transparent 0 24px, rgba(214, 251, 79, 0.05) 24px 25px),
    repeating-linear-gradient(90deg,
      transparent 0 24px, rgba(214, 251, 79, 0.05) 24px 25px);
  background-blend-mode: normal, screen, screen;
}

.card--04 h3,
.card--04 .card__index {
  color: var(--volt);
}

.card--04 .card__index::after {
  -webkit-text-stroke-color: var(--volt);
}

.card--04 .card__tag {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
}

.card--04 .card__chips li {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}

.card--04 .card__note {
  border-top-color: var(--bone);
  opacity: 0.7;
}

.card--04 input[type="text"] {
  background: var(--ink-soft);
  color: var(--bone);
  border-color: var(--bone);
}

.card--04 input[type="text"]:focus {
  outline-color: var(--volt);
}

.card--04 .btn {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
  box-shadow: 6px 6px 0 var(--bone);
}

.card--04 .btn:hover {
  box-shadow: 2px 2px 0 var(--bone);
}

.card--04 iframe {
  background: var(--ink-soft);
  border-color: var(--bone);
}

.card--04 .btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
  box-shadow: none;
}

.card--04 .btn--ghost:hover {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
}

.card--04 .field__label {
  color: var(--bone);
  opacity: 0.75;
}

/* terminal chrome on vol-surface card */
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bone);
  color: var(--ink);
  border: 2px solid var(--bone);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: -8px -8px 14px;
}

.terminal-bar__dots {
  display: inline-flex;
  gap: 5px;
}

.terminal-bar__dots i {
  width: 9px;
  height: 9px;
  background: var(--ink);
  display: inline-block;
}

.terminal-bar__dots i:nth-child(1) { background: var(--blood); }
.terminal-bar__dots i:nth-child(2) { background: var(--volt); }
.terminal-bar__dots i:nth-child(3) { background: var(--ink); }

.terminal-bar__title {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.terminal-bar__meta {
  color: var(--blood);
  font-weight: 700;
}

@media (max-width: 980px) {
  .card,
  .card--03,
  .card--04 {
    grid-column: span 12;
  }
}

/* ---------- Card media (Queens preview) ---------- */
.card__media {
  position: relative;
  border: var(--line);
  background: var(--bone);
  padding: 8px;
  margin-bottom: 16px;
  background-image:
    linear-gradient(var(--bone), var(--bone)),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(0,0,0,0.06) 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(0,0,0,0.06) 15px 16px);
  background-blend-mode: normal, multiply, multiply;
}

.card__media img {
  width: 100%;
  display: block;
  filter: contrast(1.04) saturate(0.92);
}

.card__media figcaption {
  position: absolute;
  right: -10px;
  top: -12px;
  background: var(--volt);
  border: 2px solid var(--ink);
  padding: 3px 9px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  transform: rotate(4deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.card__media-mark {
  position: absolute;
  left: -8px;
  bottom: -10px;
  background: var(--blood);
  color: var(--bone);
  border: 2px solid var(--ink);
  padding: 3px 9px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.card__result {
  display: none;
  width: 100%;
  border: var(--line);
  margin-top: 6px;
}

.card__result[src]:not([src=""]) {
  display: block;
}

/* ---------- Forms ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--row {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.field--row .field__label {
  min-width: 64px;
}

.field__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  opacity: 0.85;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: var(--line);
  background: var(--bone);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}

input[type="text"]:focus,
input[type="file"]:focus {
  outline: 3px solid var(--volt);
  outline-offset: 2px;
}

input[type="file"]::file-selector-button {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--volt);
  padding: 6px 10px;
  margin-right: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: var(--volt);
  border: 3px solid var(--ink);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
  width: 100%;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
}

.btn__arrow {
  font-size: 18px;
  transition: transform 0.22s cubic-bezier(.2, .7, .3, 1.5);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--ghost {
  background: var(--bone);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--ghost .btn__arrow {
  color: var(--blood);
}

#volVisitLink { display: none; }
#volVisitLink[href]:not([href=""]) { display: inline-flex; }

/* ---------- Status ---------- */
.status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--volt);
  border: 2px solid var(--ink);
  min-height: 0;
  word-break: break-word;
}

.status:empty { display: none; }

.status::before {
  content: "[status] ";
  opacity: 0.6;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card--04 .status {
  background: var(--ink-soft);
  border-color: var(--bone);
}

/* ---------- Iframe ---------- */
iframe {
  width: 100%;
  height: 340px;
  border: var(--line);
  background: var(--bone);
}

/* ---------- Colophon ---------- */
.colophon {
  margin-top: 80px;
  padding-top: 24px;
  border-top: var(--line-thick);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.colophon__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.colophon__marks {
  display: flex;
  gap: 10px;
  font-size: 16px;
  color: var(--ink);
}

.colophon__marks span:nth-child(2) {
  color: var(--volt);
  -webkit-text-stroke: 1px var(--ink);
}

.colophon__marks span:nth-child(3) {
  color: var(--blood);
}

.colophon__sig {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  opacity: 0.7;
}

.colophon__text {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
}

.colophon__muted {
  opacity: 0.6;
}

/* ---------- Featured section ---------- */
.featured-section .section-head {
  margin-top: clamp(32px, 5vw, 56px);
}

/* break card out of shell side padding so it bleeds edge-to-edge */
.featured-section .projects {
  margin-left: calc(-1 * clamp(18px, 4vw, 64px));
  margin-right: calc(-1 * clamp(18px, 4vw, 64px));
  gap: 0;
}

@keyframes border-pulse {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(214, 251, 79, 0); }
  50%       { box-shadow: var(--shadow-lg), 0 0 0 6px rgba(214, 251, 79, 0.35); }
}

@keyframes sticker-heavy-drop {
  0%   { transform: rotate(var(--s-rot, 0deg)) translateY(-68px); opacity: 0; }
  68%  { transform: rotate(var(--s-rot, 0deg)) translateY(7px);   opacity: 1; }
  84%  { transform: rotate(var(--s-rot, 0deg)) translateY(-1px); }
  100% { transform: rotate(var(--s-rot, 0deg)) translateY(0);    opacity: 1; }
}

@keyframes sticker-land {
  0%   { transform: rotate(-14deg) translateY(-100px) scale(1.5); opacity: 0; }
  44%  { transform: rotate(7deg)   translateY(12px)   scale(0.91); opacity: 1; }
  58%  { transform: rotate(-5deg)  translateY(-11px)  scale(1.07); }
  70%  { transform: rotate(4deg)   translateY(5px); }
  81%  { transform: rotate(-3deg)  translateY(-4px); }
  90%  { transform: rotate(2deg)   translateY(2px); }
  100% { transform: rotate(-3deg)  translateY(0)    scale(1); opacity: 1; }
}

.card--featured {
  grid-column: span 12;
  --tilt: 0deg;
  background: var(--sky);
  color: var(--bone);
  border-left: none;
  border-right: none;
  box-shadow: var(--shadow-lg);
  animation:
    rise 0.8s cubic-bezier(.2, .7, .2, 1) 0.1s backwards,
    border-pulse 2.8s ease-in-out 1.2s infinite;
  padding: clamp(24px, 3vw, 40px) clamp(18px, 4vw, 64px);
}

.card--featured h3 {
  color: var(--bone);
  font-size: clamp(40px, 5.5vw, 80px);
}

.card--featured .card__index { color: var(--volt); }

.card--featured .card__index::after {
  -webkit-text-stroke-color: var(--volt);
}

.card--featured .card__tag {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
}

.card--featured .card__lede {
  color: rgba(236, 230, 214, 0.9);
}

.card--featured .accent-serif {
  color: var(--ink);
}

.card--featured .card__chips li {
  background: transparent;
  color: var(--bone);
  border-color: rgba(236, 230, 214, 0.4);
}

.card--featured .btn--ghost {
  color: var(--bone);
  border-color: rgba(236, 230, 214, 0.6);
  background: transparent;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.card--featured .btn--ghost:hover {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
  box-shadow: 6px 6px 0 var(--ink);
}

.featured__body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: 16px;
}

@media (max-width: 700px) {
  .featured__body { grid-template-columns: 1fr; }
}

/* sticker — same system as .stamp in the masthead */
.card__sticker {
  position: absolute;
  top: clamp(24px, 3vw, 40px);
  left: clamp(80px, 14vw, 180px);
  background: var(--blood);
  color: var(--bone);
  border: 2px solid var(--ink);
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
  z-index: 2;
  opacity: 0;
}

.card--featured.is-visible .card__sticker {
  animation: sticker-land 0.65s cubic-bezier(.2, .7, .3, 1.4) 0.95s both;
}

/* ---------- Entrance animation ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(var(--tilt, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker__track {
    animation: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .masthead__topline {
    font-size: 9px;
    gap: 10px 18px;
  }

  .masthead__topline span + span::before { display: none; }

  .masthead__specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .masthead__specs > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed var(--ink);
    padding-top: 10px;
    grid-column: 1;
  }

  .masthead__specs > div:nth-child(4) {
    border-top: 1px dashed var(--ink);
    padding-top: 10px;
  }

  .section-head {
    grid-template-columns: auto auto;
    grid-template-areas:
      "label count"
      "title title";
    gap: 12px;
  }

  .section-head__label { grid-area: label; justify-self: start; }
  .section-head__count { grid-area: count; justify-self: end; }
  .section-head h2 { grid-area: title; }

  .colophon {
    flex-direction: column;
    align-items: flex-start;
  }

  .colophon__text {
    text-align: left;
  }

  .hud__cell { padding: 0 12px; }
}

@media (max-width: 520px) {
  .masthead__specs { grid-template-columns: 1fr; }
  .masthead__specs > div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed var(--ink);
    padding-top: 10px;
  }
  .masthead__specs > div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}
