/* ==========================================================================
   Herman Renden — hermanrenden.github.io
   Hand-built. No framework. No build step.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0e1a;
  --bg-2: #0e1422;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #eef2ff;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #38bdf8;       /* ice blue */
  --accent-2: #a78bfa;     /* aurora violet */
  --accent-3: #4ade80;     /* aurora green */
  --accent-warn: #f59e0b;
  --ring: 0 0 0 1px rgba(56, 189, 248, 0.35);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1160px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(167, 139, 250, 0.07), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(74, 222, 128, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
kbd {
  font: 500 0.72rem/1 "Space Grotesk", ui-monospace, monospace;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
}

::selection { background: rgba(56, 189, 248, 0.35); color: #fff; }

/* ---------- aurora canvas ---------- */
#aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  transition: width 60ms linear;
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 80ms var(--ease), opacity 200ms;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  transition: transform 280ms var(--ease), width 200ms, height 200ms, border-color 200ms;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: rgba(167, 139, 250, 0.7);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  height: var(--nav-h);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10, 14, 26, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav.nav-solid { background: rgba(10, 14, 26, 0.85); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
}
.nav-mono {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(56,189,248,0.12), rgba(167,139,250,0.08));
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-name { font-size: 15px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 180ms, background 180ms;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.nav-active { color: var(--text); background: var(--surface-2); }
.nav-fun {
  color: var(--accent) !important;
  position: relative;
}
.nav-fun::after {
  content: "";
  position: absolute;
  inset: auto 12px 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.4;
}
.nav-cv {
  border: 1px solid var(--border-strong);
  background: var(--surface) !important;
}
.nav-cv:hover { background: var(--surface-2) !important; border-color: var(--accent) !important; }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font: 500 14px/1 "Inter", sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 180ms, border-color 180ms, box-shadow 180ms, color 180ms;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #041322;
  font-weight: 600;
  box-shadow: 0 10px 30px -8px rgba(56,189,248,0.55);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(56,189,248,0.7); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-fun {
  color: var(--accent-2);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.08);
}
.btn-fun:hover { background: rgba(167, 139, 250, 0.16); border-color: var(--accent-2); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 40px max(20px, calc((100vw - var(--max)) / 2)) 60px;
  z-index: 1;
}
.hero-inner { max-width: 820px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 20px;
}
.dot-live {
  width: 8px; height: 8px;
  background: var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.15); }
  50%      { box-shadow: 0 0 0 9px rgba(74,222,128,0.03); }
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.title-line {
  display: block;
  overflow: hidden;
}
.title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 36px;
}
.hero-nor { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.flag-no {
  width: 18px; height: 13px;
  background:
    linear-gradient(to right, #ba0c2f 0 36%, transparent 36% 44%, #002868 44% 56%, transparent 56% 64%, #ba0c2f 64% 100%),
    linear-gradient(to bottom, #ba0c2f 0 36%, transparent 36% 44%, #002868 44% 56%, transparent 56% 64%, #ba0c2f 64% 100%),
    #fff;
  border-radius: 2px;
  display: inline-block;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 640px;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
}
.hero-meta span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
}
.scroll-indicator span {
  width: 2px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollHint 1.6s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 0.9; }
  60%  { transform: translateY(12px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 0.9; }
}

/* ---------- sections (shared) ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px max(20px, calc((100vw - var(--max)) / 2));
  max-width: 100vw;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 48px;
}
.section-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 13px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
}
.sub-head {
  margin: 96px 0 32px;
}
.sub-head h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy .lead {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}
.about-copy p { color: var(--muted); font-size: 1.02rem; }
.about-copy a { border-bottom: 1px dotted var(--accent); }
.about-copy a:hover { color: var(--accent-2); border-color: var(--accent-2); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  transition: border-color 180ms, color 180ms, transform 180ms var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.about-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(56,189,248,0.05), rgba(167,139,250,0.03)),
    var(--surface);
  backdrop-filter: blur(8px);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.monogram {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041322;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.card-title { font-weight: 600; font-size: 15px; }
.card-sub { font-size: 13px; color: var(--muted); }
.card-list { display: grid; gap: 10px; margin: 0 0 18px; }
.card-list > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  font-size: 14px;
  align-items: center;
}
.card-list dt { color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.card-list dd { margin: 0; color: var(--text); }
.blink { color: var(--accent-3); animation: blink 1.6s step-end infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 180ms, background 180ms;
}
.card-cta:hover { border-color: var(--accent); background: var(--surface-2); }

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border) 30%, var(--border) 70%, transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transition: border-color 220ms, transform 220ms var(--ease);
}
.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(56,189,248,0.1);
}
.timeline-content {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 220ms, transform 220ms var(--ease), background 220ms;
}
.timeline-item:hover .timeline-content {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateX(4px);
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.timeline-when {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timeline-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}
.badge-current {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56,189,248,0.08);
}
.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.timeline-where {
  color: var(--accent);
  font-size: 14px;
  margin: 0 0 10px;
  font-weight: 500;
}
.timeline-bullets { margin: 8px 0 0; display: grid; gap: 4px; }
.timeline-bullets li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
}
.timeline-bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.timeline-content p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* ---------- education ---------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.edu-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms, transform 180ms var(--ease);
}
.edu-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.edu-year { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.edu-name { font-weight: 600; font-size: 1.02rem; margin-bottom: 2px; }
.edu-program { color: var(--muted); font-size: 14px; }

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 220ms, transform 260ms var(--ease);
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(56,189,248,0.25) 50%, transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 240ms;
  pointer-events: none;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.skill-card:hover::before { opacity: 1; }
.skill-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(56,189,248,0.15), rgba(56,189,248,0.04));
  color: var(--accent);
  margin-bottom: 16px;
}
.skill-icon svg { width: 22px; height: 22px; }
.skill-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; }
.skill-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.skill-tags span {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56,189,248,0.08);
  color: var(--accent);
  border: 1px solid rgba(56,189,248,0.18);
}
.skill-fun .skill-icon {
  background: linear-gradient(180deg, rgba(167,139,250,0.2), rgba(167,139,250,0.04));
  color: var(--accent-2);
}
.skill-fun .skill-tags span {
  background: rgba(167,139,250,0.1);
  color: var(--accent-2);
  border-color: rgba(167,139,250,0.22);
}
.skill-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  border-bottom: 1px dotted var(--accent-2);
  padding-bottom: 2px;
  transition: transform 180ms var(--ease);
}
.skill-link:hover { transform: translateX(4px); }

/* ---------- contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-lede {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 28px;
  line-height: 1.45;
}
.contact-list {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}
.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: padding 180ms var(--ease), color 180ms;
  gap: 12px;
}
.contact-row:hover { padding-left: 16px; }
.contact-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-value {
  font-size: 1rem;
  color: var(--text);
}
a.contact-row:hover .contact-value { color: var(--accent); }
.contact-arrow {
  color: var(--muted);
  font-size: 14px;
  transition: transform 180ms var(--ease), color 180ms;
}
a.contact-row:hover .contact-arrow { transform: translate(4px, -2px); color: var(--accent); }
.contact-micro { font-size: 13px; color: var(--dim); }

.rink-invite {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(167,139,250,0.28);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(167,139,250,0.15), transparent 70%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.rink-invite-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.rink-invite h3 { font-size: 1.1rem; font-weight: 600; }
.rink-invite p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.rink-emoji { font-size: 22px; }

/* ---------- footer ---------- */
.footer {
  padding: 48px max(20px, calc((100vw - var(--max)) / 2)) 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: rgba(10, 14, 26, 0.6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.footer-mono {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.footer-meta { display: flex; gap: 18px; color: var(--dim); font-size: 13px; }
.footer-hint {
  width: 100%;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.footer-hint kbd { margin: 0 1px; font-size: 0.65rem; padding: 1px 5px; }

/* ---------- puck rain (easter egg) ---------- */
.puck-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  overflow: hidden;
}
.puck-rain .puck {
  position: absolute;
  width: 24px; height: 10px;
  background: radial-gradient(ellipse at 50% 30%, #333 0%, #111 60%, #000 100%);
  border-radius: 50%;
  box-shadow: 0 6px 10px rgba(0,0,0,0.6);
  animation: puckFall linear forwards;
}
@keyframes puckFall {
  to { transform: translateY(110vh) rotate(720deg); }
}

/* ==========================================================================
   Rink page
   ========================================================================== */
.rink-body { background: var(--bg); }
.rink-main {
  position: relative;
  z-index: 1;
  padding: 40px max(20px, calc((100vw - var(--max)) / 2)) 60px;
}
.rink-hero {
  max-width: 740px;
  margin: 24px 0 40px;
}
.rink-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 16px 0 14px;
  background: linear-gradient(135deg, #e0f2fe 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rink-sub { color: var(--muted); font-size: 1.1rem; max-width: 540px; }
.rink-sub-muted { color: var(--dim); }

.rink-stage {
  display: grid;
  gap: 16px;
  max-width: 1080px;
}
.scoreboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(56,189,248,0.04), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
}
.sb-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-right: 1px solid var(--border);
}
.sb-cell:last-child { border-right: none; }
.sb-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}
.sb-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sb-total { color: var(--dim); font-size: 0.95rem; font-weight: 400; }
.sb-accent .sb-value { color: var(--accent); }
.sb-hi .sb-value { color: var(--accent-2); }

.rink-canvas-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e8f4fb;
  aspect-ratio: 9 / 5;
  box-shadow: var(--shadow-lg);
}
#rink {
  display: block;
  width: 100%;
  height: 100%;
}

.rink-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 26, 0.68);
  backdrop-filter: blur(6px);
  transition: opacity 300ms, visibility 300ms;
}
.rink-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.overlay-card {
  max-width: 360px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  text-align: center;
}
.overlay-card h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.overlay-card p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.overlay-fineprint { font-size: 12px; color: var(--dim); margin-top: 14px; margin-bottom: 0; }

.rink-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
}

.rink-outro {
  margin-top: 80px;
  max-width: 900px;
}
.outro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.rink-outro h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.rink-outro p { color: var(--muted); font-size: 15px; }
.rink-outro .btn { margin-top: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px;
    background: rgba(10,14,26,0.96); border-bottom: 1px solid var(--border); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 40px; height: 40px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 16px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 200ms, opacity 200ms;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .about-grid, .contact-wrap, .outro-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-card { position: static; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .scoreboard { grid-template-columns: repeat(3, 1fr); }
  .sb-cell:nth-child(3) { border-right: none; }
  .section { padding: 80px 20px; }
  .hero { padding: 30px 20px 60px; }
  .hero-meta { gap: 20px; }
  .hero-meta strong { font-size: 1.3rem; }
  .footer-hint { display: none; }
}
@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr; }
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .sb-cell { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .contact-row { grid-template-columns: 80px 1fr auto; gap: 8px; }
  .rink-canvas-wrap { aspect-ratio: 4 / 3; }
}

/* ---------- motion prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #aurora { display: none; }
}
