/* camalan.de — warm, editorial, human */

:root {
  /* Light — warm paper */
  --paper: oklch(0.972 0.012 78);
  --paper-2: oklch(0.94 0.018 75);
  --paper-3: oklch(0.89 0.02 72);
  --ink: oklch(0.22 0.015 60);
  --ink-2: oklch(0.36 0.015 60);
  --ink-3: oklch(0.52 0.012 65);
  --rule: oklch(0.85 0.015 70);
  --accent: oklch(0.58 0.13 45);
  --accent-ink: oklch(0.42 0.13 40);
  --accent-soft: oklch(0.92 0.04 55);
  --hl: oklch(0.88 0.08 85);

  --radius: 14px;
  --radius-sm: 8px;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --serif: "Instrument Serif", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Söhne", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --paper: oklch(0.18 0.012 60);
  --paper-2: oklch(0.22 0.012 60);
  --paper-3: oklch(0.27 0.012 60);
  --ink: oklch(0.94 0.01 75);
  --ink-2: oklch(0.82 0.012 72);
  --ink-3: oklch(0.64 0.012 70);
  --rule: oklch(0.32 0.012 65);
  --accent: oklch(0.72 0.13 55);
  --accent-ink: oklch(0.82 0.13 55);
  --accent-soft: oklch(0.28 0.04 55);
  --hl: oklch(0.42 0.08 85);
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--paper); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

body {
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ——— Paper grain ——— */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.35; }

/* ——— Cursor ——— */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: oklch(0.98 0.02 75);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid oklch(0.98 0.02 75 / 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: oklch(0.98 0.02 75);
  background: oklch(0.98 0.02 75 / 0.08);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ——— Layout ——— */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

section {
  padding: clamp(60px, 7vw, 100px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
section:first-of-type { border-top: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 clamp(28px, 4vw, 48px);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  max-width: 28ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: color-mix(in oklab, var(--paper) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 10px;
}
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}
.brand .alt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav a:hover::after { right: 0; }

@media (max-width: 760px) {
  .nav .nav-link { display: none; }
}

.controls {
  display: flex; align-items: center; gap: 10px;
}
.ctrl {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.25s var(--ease);
}
.ctrl:hover { border-color: var(--ink); color: var(--ink); }
.ctrl.cta {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ctrl.cta:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  padding: 7px 11px;
  cursor: none;
  transition: all 0.25s var(--ease);
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  cursor: none;
  transition: all 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline-block; }

/* ——— Hero ——— */
.hero {
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(60px, 9vw, 110px);
  border-top: 0;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: pre-line;
  margin: 0 0 28px;
  font-weight: 400;
}
.hero-name .line { display: block; }

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: end;
  margin-top: 30px;
}
@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; }
}
.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-meta > div { min-width: 0; }
.hero-meta .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 8px;
}
.hero-meta .value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}

.scroll-ind { display: none; }

/* ——— About ——— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-title {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  max-width: 20ch;
}
.about-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 62ch;
}
.about-quote { display: none; }

/* ——— Experience ——— */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.xp {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s var(--ease);
}
.xp:first-child { border-top-color: var(--ink); }
.xp:hover { background: color-mix(in oklab, var(--paper-2) 60%, transparent); }
.xp:hover .xp-role { color: var(--accent-ink); }

@media (max-width: 720px) {
  .xp { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}

.xp-meta {
  position: sticky;
  top: 100px;
  align-self: start;
}
.xp-period {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.xp-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
}
.xp-tag.current {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.xp-role {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  margin: 0 0 4px;
  transition: color 0.3s var(--ease);
}
.xp-org {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.xp-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 0 20px;
}
.xp-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 8px;
}
.xp-project {
  background: var(--paper);
  padding: 22px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: none;
  position: relative;
}
.xp-project:hover {
  background: var(--paper-2);
  transform: translateY(-2px);
}
.xp-project::after {
  content: "↗";
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--mono);
  color: var(--ink-3);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.3s var(--ease);
}
.xp-project:hover::after {
  opacity: 1;
  color: var(--accent);
  transform: translate(0, 0);
}
.xp-project .pname {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 4px;
  padding-right: 24px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.xp-project .pclient {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.xp-project .pnote {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ——— Education ——— */
.edu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.edu-card {
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--paper-2) 40%, var(--paper));
  transition: all 0.4s var(--ease);
}
.edu-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.edu-period {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.edu-period::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.edu-school {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.edu-degree {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.edu-note {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

/* ——— Skills ——— */
.skills-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
@media (max-width: 860px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-group { margin-bottom: 40px; }
.skill-group h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.skill-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.skill-list span {
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  transition: all 0.25s var(--ease);
}
.skill-list span:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.side-panel {
  display: flex; flex-direction: column; gap: 32px;
}
.panel-block h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.cert-list, .lang-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.cert-list li, .lang-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: padding 0.3s var(--ease);
}
.cert-list li:hover, .lang-list li:hover {
  padding-left: 8px;
}
.cert-list li::before {
  content: "◆";
  color: var(--accent);
  font-size: 10px;
  margin-right: 10px;
}
.cert-list li span { font-size: 15px; color: var(--ink); flex: 1; }
.lang-list .lang { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink); }
.lang-list .level {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ——— Interests ——— */
.interests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.interest {
  background: var(--paper);
  padding: 32px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.interest::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.interest:hover::before { opacity: 1; }
.interest h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px;
  position: relative;
  letter-spacing: -0.005em;
}
.interest p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  position: relative;
}
.interest .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: block;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-title {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.contact-title .accent { color: var(--ink); }
.contact-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 32px;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: none;
  transition: all 0.3s var(--ease);
}
.btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }

.contact-links {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.contact-links a, .contact-links .link-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s var(--ease), color 0.3s var(--ease);
  gap: 20px;
}
.contact-links a:hover {
  padding-left: 12px;
  color: var(--accent-ink);
}
.contact-links .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
  min-width: 90px;
}
.contact-links .value {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-align: right;
  word-break: break-word;
  letter-spacing: -0.005em;
}

/* ——— Footer ——— */
.foot {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 2;
}
.foot .easter { opacity: 0.6; font-style: italic; text-transform: none; letter-spacing: 0; }

/* ——— Reveal animation ——— */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* ——— Easter egg ——— */
.hero-name .dancer {
  display: inline-block;
  will-change: transform;
  transform-origin: center bottom;
}

/* Stage-lights mode: subtle warm tint on the whole page during the dance */
body.forro-stage {
  transition: filter 0.6s var(--ease), background 0.6s var(--ease);
  filter: saturate(1.15) contrast(1.02);
}
body.forro-stage::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9996;
  background: radial-gradient(ellipse at 50% 35%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 62%);
  animation: stageFlicker 0.4s ease-in-out infinite alternate;
}
@keyframes stageFlicker {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

.forro-cue {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(30px, 8vh, 90px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.forro-cue.active { opacity: 1; }
.forro-cue .msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 10vw, 140px);
  color: var(--accent);
  text-align: center;
  line-height: 1;
  text-shadow: 0 6px 40px color-mix(in oklab, var(--accent) 30%, transparent);
  opacity: 1;
  transform: scale(1);
  will-change: transform, opacity;
}
.forro-cue .msg.stamp {
  animation: stamp 0.42s cubic-bezier(0.2, 1.6, 0.3, 1) both;
}
@keyframes stamp {
  0%   { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  40%  { transform: scale(1.2) rotate(2deg);  opacity: 1; }
  70%  { transform: scale(0.95) rotate(-1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg);   opacity: 0.95; }
}
.forro-cue .sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 20px;
  display: block;
  text-align: center;
  opacity: 0.7;
}

/* Floating musical notes */
.forro-notes {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
  overflow: hidden;
}
.forro-notes .note {
  position: absolute;
  bottom: -10vh;
  font-family: var(--serif);
  color: var(--accent);
  opacity: 0;
  animation: noteFloat linear forwards;
  text-shadow: 0 4px 18px color-mix(in oklab, var(--accent) 35%, transparent);
  will-change: transform, opacity;
}
@keyframes noteFloat {
  0%   { transform: translate(0, 0) rotate(0deg);                           opacity: 0; }
  15%  {                                                                      opacity: 1; }
  100% { transform: translate(var(--drift, 0px), -120vh) rotate(40deg);     opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .forro-notes .note { display: none; }
  body.forro-stage::before { animation: none; }
}

/* Text balance / wrap fallback */
@supports (text-wrap: pretty) {
  p, li { text-wrap: pretty; }
}
