:root {
  --bg: #f6f7f8;
  --bg-deep: #eceef0;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-soft: rgba(255, 255, 255, 0.9);
  --text: #1a1c1f;
  --muted: #4f5965;
  --accent: #0f6d6f;
  --accent-2: #c9a16b;
  --accent-glow: rgba(15, 109, 111, 0.24);
  --border: rgba(29, 29, 31, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
  --line: rgba(29, 29, 31, 0.12);
  --hero-grad: none;
}

html[data-theme="dark"] {
  --bg: #0f1113;
  --bg-deep: #14161a;
  --surface: #171a1e;
  --surface-2: #1f2328;
  --surface-soft: rgba(23, 26, 30, 0.92);
  --text: #f5f6f7;
  --muted: #c5ccd4;
  --accent: #2aa8a1;
  --accent-2: #e0b676;
  --accent-glow: rgba(42, 168, 161, 0.32);
  --border: rgba(245, 246, 247, 0.1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --line: rgba(245, 246, 247, 0.12);
  --hero-grad: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: var(--scroll-offset, 184px);
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.005em;
}

.page {
  min-height: 100vh;
  background: var(--hero-grad);
}

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

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

a:hover {
  color: var(--accent);
}

a .accent,
.accent {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header,
.tech-card,
.skill-card,
.timeline-item,
.cta-card,
.legal-content,
.lang-toggle,
.theme-toggle {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand img {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 1rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover {
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.theme-toggle {
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  gap: 6px;
  position: relative;
}

.menu-toggle {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  gap: 4px;
  position: relative;
}

.menu-toggle .icon-menu,
.menu-toggle .icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.9);
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.menu-toggle .icon-menu {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.site-header.is-menu-open .menu-toggle .icon-menu {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.9);
}

.site-header.is-menu-open .menu-toggle .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.mobile-nav {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav a {
  display: block;
  padding: 14px 5vw;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.site-header.is-menu-open .mobile-nav {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.9);
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.theme-toggle .icon-sun {
  color: #f5c542;
}

.theme-toggle .icon-moon {
  color: #1c2d6b;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: 96px;
  height: 40px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-switch .lang-label {
  text-align: center;
  z-index: 1;
  transition: color 0.25s ease;
}

.lang-switch .lang-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.lang-switch.is-de .lang-knob {
  transform: translateX(100%);
}

.lang-switch.is-en .lang-label:first-child,
.lang-switch.is-de .lang-label:last-child {
  color: var(--text);
}

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

.hero {
  padding: 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 600;
  margin: 0 0 12px;
}

.hero .lead {
  font-size: 1.25rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 520px;
}

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

.cta,
.ghost {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  appearance: none;
}

.cta {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
  border: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  color: #ffffff;
  background: color-mix(in oklab, var(--accent) 90%, #000 10%);
  box-shadow: none;
  transform: translateY(-1px);
}

.ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.ghost:hover,
.ghost:focus-visible {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-panorama {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(68vw, 980px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  clip-path: polygon(45% 0%, 100% 0%, 100% 100%, 0% 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 12%, #000 32%, #000 100%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.hero-panorama::after {
  content: none;
  pointer-events: none;
}

.hero-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 140px 0 110px;
  max-width: 720px;
  margin-left: clamp(24px, 8vw, 140px);
  margin-right: auto;
}

html[data-theme="dark"] .hero-panorama {
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 12%, #000 32%, #000 100%);
}

.section {
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 600;
  margin: 0 0 18px;
}

.section-head p.eyebrow {
  color: var(--muted);
}

.section-body.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  color: var(--muted);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: start;
}

.split-copy {
  color: var(--muted);
  line-height: 1.7;
}

.split-copy p {
  margin-top: 0;
  margin-bottom: 18px;
}

.split-media {
  display: flex;
  justify-content: flex-end;
}

.media-block {
  width: min(320px, 90%);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(29, 29, 31, 0.05), rgba(0, 113, 227, 0.16));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.media-block--alt {
  background: linear-gradient(160deg, rgba(0, 113, 227, 0.22), rgba(29, 29, 31, 0.04));
}

.about-portrait {
  width: min(320px, 90%);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.tech-slider {
  position: relative;
  margin-top: 16px;
  padding: 0 48px;
}

.tech-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 8px 6px 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.tech {
  position: relative;
  padding-bottom: 130px;
}

.tech::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg) 70%, var(--bg) 100%);
  pointer-events: none;
}

.tech-track::-webkit-scrollbar {
  display: none;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
}

.tech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.tech-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(calc(1 - var(--color-intensity, 0))) contrast(1.05);
  opacity: calc(0.55 + (var(--color-intensity, 0) * 0.45));
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.tech-card span {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

.slider-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
}

.slider-btn .icon {
  width: 20px;
  height: 20px;
}

.slider-btn:hover {
  border-color: #3a3d41;
  transform: translateY(calc(-50% - 1px));
}

.slider-btn[data-slide="prev"] {
  left: 8px;
}

.slider-btn[data-slide="next"] {
  right: 8px;
}

.skills-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.16);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
}

.skill-card.is-active .skill-bar span {
  transform: scaleX(1);
}

.timeline {
  display: grid;
  gap: 26px;
  position: relative;
  padding-left: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  opacity: 0.55;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.6s ease, box-shadow 0.6s ease;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(29, 29, 31, 0.45);
  box-shadow: 0 0 0 0 rgba(29, 29, 31, 0.18);
  transition: transform 0.5s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

.timeline-item[data-kind="education"] {
  background: color-mix(in oklab, var(--accent-2) 14%, var(--surface));
  border-color: color-mix(in oklab, var(--accent-2) 42%, var(--border));
}

.timeline-item[data-kind="education"]::before {
  border-color: color-mix(in oklab, var(--accent-2) 70%, #6a5a45);
  box-shadow: 0 0 0 0 rgba(201, 161, 107, 0.22);
}

.timeline-item.is-active {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 18px 40px rgba(10, 12, 14, 0.08);
}

.timeline-item.is-active::before {
  border-color: var(--accent);
  transform: scale(1.12);
  box-shadow: 0 0 0 10px rgba(15, 109, 111, 0.22), 0 0 0 20px rgba(15, 109, 111, 0.12);
  animation: pulse 2.6s ease-out infinite;
}

.timeline-item[data-kind="education"].is-active::before {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 10px rgba(201, 161, 107, 0.24), 0 0 0 20px rgba(201, 161, 107, 0.12);
  animation: pulse-edu 2.6s ease-out infinite;
}

.timeline-item .time {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-item .details h3 {
  margin-top: 4px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 109, 111, 0.28), 0 0 0 8px rgba(15, 109, 111, 0.14);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(15, 109, 111, 0.16), 0 0 0 24px rgba(15, 109, 111, 0.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 109, 111, 0.0), 0 0 0 0 rgba(15, 109, 111, 0.0);
  }
}

@keyframes pulse-edu {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 161, 107, 0.32), 0 0 0 8px rgba(201, 161, 107, 0.16);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(201, 161, 107, 0.18), 0 0 0 24px rgba(201, 161, 107, 0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 161, 107, 0.0), 0 0 0 0 rgba(201, 161, 107, 0.0);
  }
}

.timeline-item h3 {
  margin: 6px 0 6px;
}

.timeline-item .type {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.cta-section {
  padding-bottom: 100px;
  border-bottom: none;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(140deg, rgba(29, 29, 31, 0.04), rgba(0, 113, 227, 0.12));
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  border: 1px solid var(--border);
  gap: 24px;
}

.cta-card img {
  width: 140px;
  opacity: 0.8;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 0 46px;
  background:
    radial-gradient(120% 120% at 85% -20%, rgba(42, 168, 161, 0.18) 0%, rgba(42, 168, 161, 0) 40%),
    linear-gradient(180deg, #11151a 0%, #0c1014 100%);
}

.section:last-of-type {
  border-bottom: none;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(229, 232, 237, 0.78);
  font-size: 0.9rem;
}

.footer-brand img {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 500;
}

.footer-links a {
  color: rgba(237, 240, 244, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.footer-copy p {
  margin: 0;
}

.legal {
  padding: 90px 0 80px;
}

.legal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--muted);
  line-height: 1.7;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: var(--text);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.legal-note {
  margin-top: 20px;
  font-style: italic;
}

.legal-consent-actions {
  margin-top: 12px;
  margin-bottom: 8px;
}

.not-found-actions {
  margin-top: 20px;
}

.contact-section {
  padding-bottom: 140px;
}

.contact-panel {
  margin-top: 28px;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px 36px;
  box-shadow: var(--shadow);
  overflow: visible;
}

.contact-copy .lead {
  margin-bottom: 18px;
  max-width: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
  padding: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, margin-top 0.6s ease;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.contact-form[aria-hidden="true"] {
  visibility: hidden;
}

.contact-section.is-revealed .contact-form {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 600px;
  margin-top: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.contact-form .required {
  color: var(--accent);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

.contact-copy .cta {
  gap: 10px;
}

.contact-chevron {
  transition: transform 0.3s ease;
}

.contact-section.is-open .contact-chevron {
  transform: rotate(180deg);
}

.contact-form .cta[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.char-counter {
  margin: -6px 2px 2px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.1em;
}

.char-counter.is-valid {
  color: #0f766e;
}

.char-counter.is-invalid {
  color: #b91c1c;
}

.contact-status {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.contact-status.is-success {
  color: #0f766e;
}

.contact-status.is-error {
  color: #b91c1c;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  max-width: min(92vw, 560px);
  width: max-content;
  background: #0f766e;
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  font-weight: 600;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: #b91c1c;
}

.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.14);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.consent-page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(7, 10, 14, 0.56);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.26s ease;
}

.consent-page-backdrop.is-visible {
  opacity: 1;
}

.consent-scroll-lock {
  overflow: hidden;
}

.consent-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.consent-bar.is-hiding {
  transform: translateY(100%);
  opacity: 0;
}

.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.consent-copy h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.consent-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.consent-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.45);
}

.consent-dialog {
  position: relative;
  width: min(640px, 92vw);
  margin: 8vh auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}

.consent-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.consent-option {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.consent-option--stack {
  display: block;
}

.consent-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.consent-option-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.consent-option h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.consent-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.consent-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 2px 4px;
  cursor: pointer;
}

.consent-accordion-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s ease;
}

.consent-option--stack.is-open .consent-accordion-toggle svg {
  transform: rotate(180deg);
}

.consent-accordion-panel {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
}

.consent-option--stack.is-open .consent-accordion-panel {
  margin-top: 12px;
  max-height: 360px;
  opacity: 1;
}

.consent-accordion-panel p {
  margin: 0;
  color: var(--muted);
}

.consent-definition-list {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(130px, 170px) 1fr;
  row-gap: 8px;
  column-gap: 12px;
}

.consent-definition-list div {
  display: contents;
}

.consent-definition-list dt {
  color: var(--muted);
  font-weight: 600;
}

.consent-definition-list dd {
  margin: 0;
}

.consent-switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  --switch-width: 46px;
  --switch-height: 26px;
  --switch-padding: 3px;
  --thumb-size: 20px;
  --thumb-shift: calc(var(--switch-width) - var(--thumb-size) - (var(--switch-padding) * 2));
}

.consent-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.consent-switch span {
  width: var(--switch-width);
  height: var(--switch-height);
  background: #b9bec8;
  border: 1px solid #b9bec8;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.24s ease, border-color 0.24s ease;
}

.consent-switch span::after {
  content: "";
  position: absolute;
  width: var(--thumb-size);
  height: var(--thumb-size);
  left: var(--switch-padding);
  top: 50%;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  transform: translate(0, -50%);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.26, 1);
}

.consent-switch input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-switch input:checked + span::after {
  transform: translate(var(--thumb-shift), -50%);
}

.consent-switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.consent-switch--disabled span {
  cursor: not-allowed;
  opacity: 0.9;
}

.consent-switch--disabled input:checked + span {
  background: color-mix(in oklab, var(--accent) 76%, #ffffff 24%);
  border-color: color-mix(in oklab, var(--accent) 76%, #ffffff 24%);
}

.consent-switch--disabled input:checked + span::after {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.consent-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .section-body.columns {
    grid-template-columns: 1fr;
  }

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

  .split-media {
    justify-content: flex-start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 18px;
  }

  .timeline-item::before {
    left: -22px;
    top: 20px;
  }

  .contact-panel {
    padding: 24px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .tech-slider {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .slider-btn {
    display: none;
  }

  .hero {
    padding: 0;
  }

  .hero-copy {
    padding: 110px 24px 80px;
    margin-left: 0;
    max-width: none;
    z-index: 2;
    color: #ffffff;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
  }

  .hero-panorama {
    width: 100%;
    clip-path: none;
    mask-image: none;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 17, 19, 0.7) 0%, rgba(15, 17, 19, 0.25) 45%, rgba(15, 17, 19, 0) 70%);
    pointer-events: none;
    z-index: 1;
  }

  .hero-copy .lead,
  .hero-copy .eyebrow,
  .hero-copy .muted {
    color: rgba(255, 255, 255, 0.85);
  }

  .hero-copy .cta,
  .hero-copy .ghost {
    border-color: rgba(255, 255, 255, 0.6);
  }

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

  .consent-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .consent-option-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .consent-option-controls {
    width: 100%;
    justify-content: space-between;
  }

  .consent-definition-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .timeline-item.is-active::before {
    animation: none !important;
  }

  .tech-card:hover,
  .skill-card:hover,
  .cta:hover,
  .cta:focus-visible,
  .slider-btn:hover {
    transform: none !important;
  }
}
