:root {
  --paper: #faf6f1;
  --paper-2: #f3ebe3;
  --ink: #3a1e2e;
  --ink-soft: #4e3944;
  --muted: #5c3a4c;
  --line: rgba(58, 30, 46, 0.14);
  --amber: #e08a3c;
  --amber-text: #8a4b12;
  --amber-deep: #c56e24;
  --shadow: 0 24px 50px rgba(58, 30, 46, 0.12);
  --header: 72px;
  --sans: Manrope, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin-inline: auto;
  min-width: 0;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
  padding: 10px 20px;
  background: rgba(250, 246, 241, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: none;
  overflow: hidden;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--amber);
}

.site-nav {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  background: rgba(58, 30, 46, 0.06);
}

.nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background: #f0a15d;
}

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

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

.hero {
  position: relative;
  padding: 28px 0 72px;
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
}

.blob-a {
  width: 340px;
  height: 340px;
  right: -60px;
  top: -40px;
  background: rgba(224, 138, 60, 0.35);
  animation: drift-a 16s ease-in-out infinite alternate;
}

.blob-b {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: 10%;
  background: rgba(58, 30, 46, 0.12);
  animation: drift-b 18s ease-in-out infinite alternate;
}

.blob-c {
  width: 180px;
  height: 180px;
  right: 28%;
  bottom: 8%;
  background: rgba(224, 138, 60, 0.2);
  animation: drift-c 14s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(36px, -24px, 0); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-20px, -30px, 0) scale(1.12); }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text);
  font-weight: 500;
  margin-bottom: 16px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.name {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22em;
  font-size: clamp(2.5rem, 6.4vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.name-line {
  display: inline-flex;
}

.ch {
  display: inline-block;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.45em); }
  to { opacity: 1; transform: none; }
}

.roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 14px;
  min-height: 1.6em;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
}

.role-prefix {
  color: var(--muted);
  font-weight: 600;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--amber);
  border-radius: 1px;
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.lede {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.portrait {
  position: relative;
  justify-self: center;
  width: min(460px, 100%);
  perspective: 900px;
}

.portrait-tilt {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.portrait-frame {
  position: relative;
  border-radius: 1.7rem;
  overflow: clip;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.portrait-offset {
  position: absolute;
  inset: 1.15rem -1rem -1rem 1.15rem;
  background: var(--amber);
  border-radius: 1.7rem;
  z-index: 0;
  animation: frame-drift 7s ease-in-out infinite;
}

@keyframes frame-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -6px); }
}

.portrait-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 18px;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: 999px;
  background: #f6d7b8;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(224, 138, 60, 0.28);
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 8px rgba(224, 138, 60, 0); }
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover { background: #2b1622; }

.btn svg { width: 1rem; height: 1rem; flex: none; }

.play-ball {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--amber) 19% 100%);
  box-shadow: 0 2px 0 rgba(138, 75, 18, 0.45);
  vertical-align: -2px;
  animation: court-bounce 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes court-bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  40% { transform: translateY(-14px) scale(0.95, 1.08); }
  50% { transform: translateY(0) scale(1.15, 0.8); }
  60% { transform: translateY(-6px) scale(1, 1); }
}

.chip.chip-sport {
  background: #f6d7b8;
  border-color: transparent;
}

.chip-sport svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.icon-football { animation: spin-slow 8s linear infinite; transform-origin: 50% 50%; }
.icon-golf { animation: bob 2.2s ease-in-out infinite; }
.icon-padel { animation: swing 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.icon-tennis { animation: bounce-ball 1.15s ease-in-out infinite; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes swing {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}
@keyframes bounce-ball {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}

.stats-band {
  background: var(--ink);
  color: var(--paper);
  padding: 42px 0;
}

.stats-band .stat {
  background: transparent;
  border-color: rgba(250, 246, 241, 0.18);
  color: var(--paper);
}

.stats-band .stat b { color: #f6d7b8; }
.stats-band .stat span { color: rgba(250, 246, 241, 0.82); }

.edu-grid {
  display: grid;
  gap: 14px;
}

.edu {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.edu .kicker { margin-bottom: 8px; }
.edu h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.edu p { margin-top: 4px; color: var(--ink-soft); }

.contact-note {
  margin-top: 14px;
  color: rgba(250, 246, 241, 0.78);
  font-size: 0.95rem;
}

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.6);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

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

.section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 40rem;
}

.section h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.about-grid,
.cred-grid {
  display: grid;
  gap: 28px;
}

.prose p + p {
  margin-top: 14px;
}

.skill-card,
.cred-card,
.project,
.stat {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skill-card {
  padding: 22px;
}

.skill-group + .skill-group {
  margin-top: 16px;
}

.skill-group h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text);
  font-weight: 500;
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.92rem;
  font-weight: 650;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stats-band .stats { margin: 0; }

.stat {
  padding: 18px 16px 16px;
}

.stat b {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--amber);
  transform-origin: top;
}

.js .timeline::before {
  transform: scaleY(0);
  transition: transform 1.5s ease;
}

.js .timeline.is-drawn::before {
  transform: scaleY(1);
}

.tl-item {
  position: relative;
  padding: 8px 0 22px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.tl-when {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text);
}

.tl-item h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.tl-where {
  color: var(--muted);
  font-weight: 600;
}

.tl-item p:last-child {
  margin-top: 6px;
  color: var(--ink-soft);
}

.project-grid {
  display: grid;
  gap: 16px;
  perspective: 1200px;
}

.project {
  position: relative;
  padding: 22px;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(224, 138, 60, 0.2), transparent 42%),
    #fffdfb;
}

.project-feature {
  background:
    radial-gradient(520px circle at var(--mx, 80%) var(--my, 20%), rgba(224, 138, 60, 0.28), transparent 46%),
    var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.project-feature p,
.project-feature .project-kicker {
  color: #f6d7b8;
}

.project-feature h3 {
  color: var(--paper);
  max-width: 18ch;
}

.project-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text);
}

.project h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
  max-width: 22ch;
}

.project p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.project-feature p {
  color: rgba(250, 246, 241, 0.9);
}

.project-feature .btn-ghost {
  color: var(--paper);
  border-color: rgba(250, 246, 241, 0.45);
}

.project-feature .btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(250, 246, 241, 0.08);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cred-card {
  padding: 22px;
}

.cred-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.cred-card li + li {
  margin-top: 12px;
}

.cred-card strong {
  display: block;
}

.cred-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.contact .kicker {
  color: #f6d7b8;
}

.contact h2 {
  max-width: 14ch;
}

.contact .lede {
  color: rgba(250, 246, 241, 0.86);
}

.email-link {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--amber);
  text-decoration: none;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.email-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact :focus-visible {
  outline-color: #f6d7b8;
}

.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 241, 0.78);
  padding: 8px 0 28px;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  border-top: 1px solid rgba(250, 246, 241, 0.16);
  padding-top: 18px;
}

.site-footer a {
  color: var(--paper);
}

.cursor {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--amber);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--ink);
  transition: width 0.15s ease, height 0.15s ease, margin 0.15s ease;
}

.cursor.is-hot .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--amber);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s ease both;
  animation-play-state: paused;
}

.js .reveal.is-in {
  animation-play-state: running;
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

.page-404 {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 40px 0 80px;
}

html:not([lang="de"]) .only-de { display: none; }
html[lang="de"] .only-en { display: none; }

.page-404 h1 {
  font-size: clamp(4rem, 16vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.page-404 p {
  margin-top: 12px;
  max-width: 36ch;
  color: var(--ink-soft);
}

.page-404 .hero-actions {
  margin-top: 24px;
}

@media (min-width: 720px) {
  .edu-grid { grid-template-columns: 1fr 1fr; }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-feature,
  .project-span {
    grid-column: 1 / -1;
  }

  .cred-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 900px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }

  .stats-band .stats {
    grid-template-columns: repeat(5, 1fr);
  }

  .portrait {
    justify-self: end;
  }

  .timeline {
    padding-left: 48px;
  }

  .timeline::before {
    left: 15px;
  }

  .tl-item::before {
    left: -37px;
  }
}

@media (max-width: 720px) {
  .hero-copy { display: contents; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 124px;
    grid-template-areas:
      "eyebrow photo"
      "title photo"
      "role photo"
      "intro intro"
      "status status"
      "actions actions";
    column-gap: 0.85rem;
    row-gap: 0;
    align-items: start;
  }
  .kicker { grid-area: eyebrow; margin-bottom: 6px; }
  .name { grid-area: title; font-size: 2.15rem; margin: 0; }
  .kicker,
  .name,
  .roles,
  .lede,
  .status { min-width: 0; }
  .roles { grid-area: role; font-size: 0.9rem; margin: 0; }
  #typewriter { white-space: normal; }
  .lede { grid-area: intro; font-size: 0.98rem; margin-top: 14px; }
  .status { grid-area: status; font-size: 0.78rem; margin-top: 12px; }
  .hero-actions { grid-area: actions; margin-top: 14px; }
  .portrait {
    grid-area: photo;
    width: 124px;
    justify-self: end;
  }
  .portrait-frame,
  .portrait-tilt,
  .portrait-frame img {
    width: 124px;
    height: 155px;
    aspect-ratio: auto;
    border-radius: 1.05rem;
  }
  .portrait-offset {
    inset: 0.45rem -0.35rem -0.35rem 0.4rem;
    border-radius: 1rem;
    animation: none;
  }
  .portrait-badge { display: none; }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 6px);
    flex-direction: column;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cv {
    display: none;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .contact-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .js .timeline::before {
    transform: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .marquee ul[aria-hidden="true"] {
    display: none;
  }

  .caret,
  .icon-football,
  .icon-golf,
  .icon-padel,
  .icon-tennis,
  .play-ball,
  .status i,
  .portrait-offset {
    animation: none;
  }

  .caret { display: none; }
}

@media print {
  .progress,
  .cursor,
  .hero-bg,
  .nav-toggle,
  .marquee,
  .site-header {
    display: none !important;
  }

  body,
  .contact,
  .site-footer {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}
