/* ============================================================
   Vincent ten Berge portfolio
   Design tokens (override via inline CSS vars on :root)
   ============================================================ */

:root {
  /* Color: warm dark by default (light theme overrides below) */
  --bg:        oklch(0.17 0.018 60);
  --paper:     oklch(0.22 0.020 60);
  --paper-2:   oklch(0.27 0.024 60);
  --ink:       oklch(0.96 0.010 80);
  --ink-soft:  oklch(0.78 0.012 75);
  --ink-faint: oklch(0.58 0.014 70);
  --line:      oklch(0.34 0.020 60);
  --line-soft: oklch(0.28 0.018 60);

  --accent:    oklch(0.86 0.20 130);   /* electric lime */
  --accent-ink: oklch(0.86 0.20 130);
  --accent-2:  oklch(0.72 0.20 25);    /* coral counterpoint */

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  /* Density */
  --gap-section: clamp(80px, 12vw, 160px);
  --gap-block:   clamp(40px, 6vw, 80px);
  --page-pad:    clamp(20px, 4vw, 56px);
  --container:   1240px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg:        oklch(0.965 0.018 78);
  --paper:     oklch(0.985 0.012 80);
  --paper-2:   oklch(0.93  0.020 76);
  --ink:       oklch(0.22  0.012 50);
  --ink-soft:  oklch(0.40  0.012 60);
  --ink-faint: oklch(0.60  0.012 60);
  --line:      oklch(0.85  0.018 70);
  --line-soft: oklch(0.91  0.014 76);
  --accent-ink: oklch(0.30 0.13 130);
  color-scheme: light;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none; /* hidden when blob is on; re-enabled when off */
}
body.no-blob { cursor: auto; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

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

/* ===== Subtle grain / paper texture ===== */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.5) 1px, transparent 0);
  background-size: 3px 3px;
}
[data-theme="light"] body::before {
  mix-blend-mode: multiply;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 1px 1px, oklch(0 0 0 / 0.06) 1px, transparent 0);
}
body.no-grain::before { display: none; }

/* ===== Cursor blob ===== */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.7,.3,1),
              height .25s cubic-bezier(.2,.7,.3,1),
              background .2s ease,
              opacity .2s ease;
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0.85;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  z-index: 9001;
  transform: translate(-50%, -50%);
}
[data-theme="light"] .cursor-blob { mix-blend-mode: multiply; }
[data-theme="light"] .cursor-dot  { background: var(--ink); }
body.no-blob .cursor-blob, body.no-blob .cursor-dot { display: none; }
.cursor-blob.hover { width: 64px; height: 64px; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  position: relative;
  z-index: 2;
}

/* ===== Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.brand:hover .brand-mark { transform: scale(1.4) rotate(8deg); }
.brand-italic { font-style: italic; }

.nav-links {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  color: var(--ink-soft);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-links a.active::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px; background: var(--ink-faint);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: italic; color: var(--accent); }

h1.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
h1.page-title em { font-style: italic; }

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 32ch;
  font-weight: 400;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ===== Buttons / links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .2s ease, color .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px) rotate(-1deg); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }

.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  font-weight: 500;
  transition: border-color .2s, color .2s, gap .25s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

/* ===== Sections ===== */
section { padding: var(--gap-section) 0; position: relative; }
section + section { padding-top: 0; }

/* ===== Hero (home) ===== */
.hero {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: var(--gap-section);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-meta strong {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  margin-top: 6px;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: oklch(0.72 0.15 145);
  box-shadow: 0 0 0 4px oklch(0.72 0.15 145 / 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px oklch(0.72 0.15 145 / 0.18); }
  50%      { box-shadow: 0 0 0 8px oklch(0.72 0.15 145 / 0.05); }
}

/* ===== Marquee strip ===== */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  white-space: nowrap;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 38s linear infinite;
  padding-left: 48px;
}
body.no-marquee .marquee { display: none; }
.marquee em { color: var(--accent); font-style: italic; }
.marquee .dot { color: var(--accent-2, var(--accent)); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Cards / lists ===== */
.cards {
  display: grid;
  gap: 24px;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .2s, box-shadow .25s;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 16px 40px -24px oklch(0 0 0 / 0.18);
}
.card-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

/* ===== Two-col content ===== */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-foot {
  border-top: 1px solid var(--line-soft);
  margin-top: var(--gap-section);
  padding: 48px 0 36px;
}
.site-foot .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-foot .big {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  font-style: italic;
}

/* ===== Tags / chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--paper-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Project card (free side-projects) ===== */
.project-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: background .25s ease, border-color .2s, transform .25s cubic-bezier(.2,.7,.3,1);
}
.project-card:hover {
  background: var(--paper-2);
  border-color: var(--line);
  transform: translateX(4px);
}
.project-glyph {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-style: italic;
  color: var(--bg);
  transform: rotate(-4deg);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.project-card:hover .project-glyph {
  transform: rotate(4deg) scale(1.08);
}
.project-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.project-desc { color: var(--ink-soft); font-size: 15px; }
.project-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 640px) {
  .project-card { grid-template-columns: 56px 1fr; }
  .project-card .project-meta { grid-column: 2; }
}

/* ===== Service item ===== */
.service {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}
.service:last-child { border-bottom: 1px solid var(--line-soft); }
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.service-desc { color: var(--ink-soft); max-width: 56ch; }
.service-rate {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-align: right;
  padding-top: 6px;
}
@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; }
  .service-rate { text-align: left; }
}

/* ===== Case study (work) ===== */
.case-list { display: grid; gap: 8px; }
.case-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 32px;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding .25s ease;
  position: relative;
}
.case-row:hover { padding-left: 20px; padding-right: 20px; background: var(--paper); border-radius: var(--radius); }
.case-row:hover .case-arrow { transform: translateX(4px) rotate(-45deg); color: var(--accent); }
.case-year { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.case-client {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.015em;
}
.case-desc { color: var(--ink-soft); font-size: 14px; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.case-arrow {
  transition: transform .3s cubic-bezier(.2,.7,.3,1), color .2s;
  color: var(--ink-faint);
}
@media (max-width: 760px) {
  .case-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .case-row:hover { padding: 20px 16px; }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background .2s, border-color .2s;
}
.contact-card:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  transform: translateY(-4px) rotate(-0.5deg);
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.contact-card .value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-card .arrow { font-size: 18px; transition: transform .25s; }
.contact-card:hover .arrow { transform: translate(3px, -3px); }

/* ===== Playful flourishes ===== */
.asterisk {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  animation: spin 14s linear infinite;
  font-style: normal;
}
.asterisk-big {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  line-height: 1;
  animation: spin 24s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.stamp {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  transform: rotate(-3deg);
  background: transparent;
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.stamp:hover { transform: rotate(-1deg) scale(1.04); }

.stamp-2 {
  border-color: var(--accent-2, var(--accent));
  color: var(--accent-2, var(--accent));
  box-shadow: 3px 3px 0 var(--accent-2, var(--accent));
  transform: rotate(4deg);
}
.stamp-2:hover { transform: rotate(2deg) scale(1.04); }

.stamp-ghost {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(2deg);
}
.stamp-ghost:hover { transform: rotate(0) scale(1.04); }

.sticker-collage {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 24px;
}

.wobble:hover { animation: wobble 0.6s cubic-bezier(.2,.7,.3,1); }
@keyframes wobble {
  0%   { transform: rotate(0); }
  25%  { transform: rotate(-2deg); }
  50%  { transform: rotate(2deg); }
  75%  { transform: rotate(-1deg); }
  100% { transform: rotate(0); }
}

.squiggle {
  display: block;
  width: 100%;
  height: 14px;
  margin: var(--gap-block) 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'><path d='M0 5 Q 10 0 20 5 T 40 5' fill='none' stroke='%23ffffff' stroke-opacity='.25' stroke-width='1.4'/></svg>");
  background-repeat: repeat-x;
  background-size: 40px 10px;
  opacity: 0.7;
}
[data-theme="light"] .squiggle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'><path d='M0 5 Q 10 0 20 5 T 40 5' fill='none' stroke='%23000000' stroke-opacity='.18' stroke-width='1.4'/></svg>");
}

/* Sticker dot: small rotated colored dot */
.dot-sticker {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--accent-2, var(--accent));
}

/* Wavy hand-drawn underline highlight: uses native text-decoration so it follows --accent */
.wavy {
  text-decoration: underline wavy var(--accent);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 5px;
}
/* Pen-circle highlight (a hand-drawn circle around a word): mask so it inherits --accent */
.circle-it {
  position: relative;
  display: inline-block;
  padding: 0 0.18em;
  white-space: nowrap;
}
.circle-it::before {
  content: "";
  position: absolute;
  inset: -16% -10%;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'><path d='M14 16 C 35 4, 70 4, 92 18 C 100 30, 92 46, 70 52 C 40 58, 18 50, 8 38 C 2 26, 6 18, 14 16 Z' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'><path d='M14 16 C 35 4, 70 4, 92 18 C 100 30, 92 46, 70 52 C 40 58, 18 50, 8 38 C 2 26, 6 18, 14 16 Z' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
  pointer-events: none;
  transform: rotate(-2deg);
}

/* Sparkle puff (cursor trail) */
.sparkle {
  position: fixed;
  width: var(--sparkle-size, 5px);
  height: var(--sparkle-size, 5px);
  background: var(--accent);
  border-radius: 999px;
  pointer-events: none;
  z-index: 8999;
  transform: translate(-50%, -50%) rotate(var(--sparkle-rot, 0deg));
  animation: sparkle-fade .7s ease-out forwards;
}
@keyframes sparkle-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(0.2); }
}

/* Confetto */
.confetto {
  position: fixed;
  width: 8px; height: 12px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 8998;
  transform: translate(-50%, -50%);
  animation: confetto-fly 1.2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes confetto-fly {
  0%   { transform: translate(-50%, -50%) translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--tx, 100px), calc(var(--ty, -50px) + 220px)) rotate(var(--rot, 180deg)); opacity: 0; }
}

/* Brand mark: gentle constant breathe */
.brand-mark { animation: breathe 4.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* Letter wiggle on display headings hover */
.display em:hover, .page-title em:hover {
  animation: hop 0.55s cubic-bezier(.2,.7,.3,1);
  cursor: default;
}
@keyframes hop {
  0%   { transform: translateY(0) rotate(0); }
  30%  { transform: translateY(-12px) rotate(-3deg); }
  60%  { transform: translateY(4px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* Rotating status */
.rotating-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.rotating-status::before {
  content: "currently · ";
  color: var(--ink-faint);
}
.rotating-status span {
  display: inline-block;
  color: var(--accent);
}

/* PS note: handwritten feel via display italic */
.ps-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--ink-soft);
  transform: rotate(-1.2deg);
  display: inline-block;
  max-width: 32ch;
  text-transform: none;
  letter-spacing: 0;
}
.ps-note b {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  transform: rotate(1.2deg);
}
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-soft);
}

/* ===== Page intro block ===== */
.page-intro {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-intro .lede { margin-top: 28px; max-width: 60ch; }

/* ===== Aside / quote ===== */
.aside {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.aside em { font-style: italic; color: var(--accent); }

/* ===== Big oversized name ===== */
.bigname {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  pointer-events: none;
}
.bigname em { font-style: italic; }
