/* ============================================================
   Yahya Kemal Esen — Portfolio
   Midnight & Gold · handcrafted, no frameworks, no tracking
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #070a13;
  --bg-1: #0a0f1e;
  --bg-2: #0e1526;
  --ink: #ece9e2;
  --muted: #a7a49b;
  --faint: #757a8c;
  --gold: #d9ab52;
  --gold-2: #f2cf7e;
  --gold-deep: #a87c2e;
  --line: rgba(236, 233, 226, 0.09);
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.045);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(217, 171, 82, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #232a40; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #33406a; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 110px 0; }

/* ---------- Aurora background & grain ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(43, 58, 107, 0.55), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(74, 45, 94, 0.35), transparent 60%),
    var(--bg-0);
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aurora::before {
  background: radial-gradient(circle, rgba(217, 171, 82, 0.16), transparent 65%);
  top: -18vw;
  right: -12vw;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora::after {
  background: radial-gradient(circle, rgba(43, 74, 130, 0.5), transparent 65%);
  bottom: -22vw;
  left: -14vw;
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-9vw, 7vw) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(8vw, -6vw) scale(0.95); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress & nav ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 10, 19, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
  color: #14100a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 4px 18px rgba(217, 171, 82, 0.35);
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: none; }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.lang-switch {
  margin-left: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}
.lang-switch:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { text-decoration: none; }
.btn-gold {
  color: #14100a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 8px 30px rgba(217, 171, 82, 0.28);
}
.btn-gold:hover { box-shadow: 0 12px 40px rgba(217, 171, 82, 0.42); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  background: var(--card);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58d68d;
  box-shadow: 0 0 10px rgba(88, 214, 141, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.hero h1 .gold {
  background: linear-gradient(115deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-roles {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--muted);
  height: 1.5em;
  overflow: hidden;
  position: relative;
  margin-bottom: 26px;
}
.hero-roles span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
  white-space: nowrap;
}
.hero-roles span.active { opacity: 1; transform: translateY(0); }
.hero-roles span.leaving { opacity: 0; transform: translateY(-110%); }
.hero-lede {
  max-width: 46ch;
  color: var(--muted);
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Portrait */
.portrait-wrap { display: flex; justify-content: center; }
.portrait {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(160deg, rgba(242, 207, 126, 0.7), rgba(217, 171, 82, 0.08) 45%, rgba(43, 58, 107, 0.5));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.portrait-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, #1b2440, #0c101f 70%);
  display: grid;
  place-items: center;
}
.portrait-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait .monogram {
  font-family: var(--serif);
  font-size: 5.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.portrait.has-photo .monogram { display: none; }
.portrait-chip {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
  background: rgba(255, 255, 255, 0.012);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 650;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Section headers ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
}
h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 22ch;
}
.lede { color: var(--muted); max-width: 62ch; }

/* ---------- Cards (spotlight) ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease-out);
}
.card:hover {
  border-color: rgba(217, 171, 82, 0.35);
  background: var(--card-hover);
}
.card .spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 207, 126, 0.09), transparent 65%);
}
.card:hover .spot { opacity: 1; }
.card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p { font-size: 0.94rem; color: var(--muted); }
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.15rem;
  background: rgba(217, 171, 82, 0.1);
  border: 1px solid rgba(217, 171, 82, 0.22);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about-facts { display: grid; gap: 14px; }
.fact {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 0.95rem;
}
.fact b { color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.fact span { color: var(--muted); }

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.project + .project { margin-top: 130px; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--muted);
  background: var(--card);
}
.chip.gold {
  color: var(--gold-2);
  border-color: rgba(217, 171, 82, 0.3);
  background: rgba(217, 171, 82, 0.07);
}
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Phone mockups */
.phones {
  position: relative;
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}
.phone {
  position: absolute;
  width: 235px;
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  padding: 3px;
  background: linear-gradient(160deg, rgba(242, 207, 126, 0.5), rgba(60, 70, 110, 0.6));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: linear-gradient(170deg, #131a30, #0b0f1d 65%);
}
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 20px;
  border-radius: 999px;
  background: #05070d;
}
.phone-1 { transform: rotate(-7deg) translateX(-78px); z-index: 2; }
.phone-2 { transform: rotate(6deg) translateX(88px) scale(0.92); opacity: 0.92; }

/* CSS mock UI inside phone (fallback without screenshots) */
.mock { position: absolute; inset: 0; padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-title {
  font-family: var(--serif);
  text-align: center;
  color: var(--gold-2);
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-grid i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3d4a75, #232c4a);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.mock-grid i.out { opacity: 0.28; }
.mock-grid i.hot { border-color: var(--gold); box-shadow: 0 0 12px rgba(217, 171, 82, 0.5); }
.mock-bubble {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  color: var(--muted);
  max-width: 85%;
}
.mock-bubble.me {
  align-self: flex-end;
  background: rgba(217, 171, 82, 0.14);
  color: var(--gold-2);
}
.mock-bar {
  margin-top: auto;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Terminal card (esen_seo) */
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0b101d;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4258;
}
.terminal-bar i:nth-child(1) { background: #e0655f; }
.terminal-bar i:nth-child(2) { background: #e0b35f; }
.terminal-bar i:nth-child(3) { background: #67c47c; }
.terminal-bar span {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--faint);
}
.terminal pre {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.75;
  color: #c7cbe0;
}
.terminal .c1 { color: #6d7590; }         /* comment */
.terminal .c2 { color: var(--gold-2); }   /* gold */
.terminal .c3 { color: #8ec5a8; }         /* string */

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(217, 171, 82, 0.05));
  transform-origin: top;
}
html.js .timeline::before {
  transform: scaleY(0);
  transition: transform 1.6s var(--ease-out);
}
html.js .timeline.visible::before { transform: scaleY(1); }
.t-item { position: relative; padding: 0 0 44px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 171, 82, 0.15), 0 0 14px rgba(217, 171, 82, 0.6);
}
.t-period {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.t-item h3 { font-size: 1.12rem; font-weight: 600; margin: 6px 0 2px; }
.t-item .t-org { color: var(--muted); font-size: 0.95rem; }
.t-item p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; max-width: 60ch; }

/* ---------- Skills ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 60px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span::after {
  content: '✦';
  margin-left: 42px;
  color: var(--gold);
  font-size: 0.8rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.skills-grid .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

/* Certs */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}
.cert {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 550;
}
.cert small { color: var(--gold); font-variant-numeric: tabular-nums; }

/* Languages */
.langs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.lang-card { padding: 20px 22px; }
.lang-card h3 { font-size: 0.98rem; }
.lang-card small { color: var(--faint); font-size: 0.82rem; }
.lang-bar {
  margin-top: 12px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.lang-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform-origin: left;
}
html.js .lang-bar i {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out) 0.2s;
}
html.js .visible .lang-bar i { transform: scaleX(1); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: 140px; }
.contact h2 {
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 18px auto 22px;
}
.contact .lede { margin: 0 auto 44px; }
.contact-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-meta {
  margin-top: 46px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  font-size: 0.86rem;
  color: var(--faint);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-inner .spacer { margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold-2); }

/* ---------- Reveal animations (JS-gated) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out) var(--rd, 0ms), transform 0.9s var(--ease-out) var(--rd, 0ms);
}

/* Snap-Modus (?snap): kompakter Hero für Ganzseiten-Screenshots/Tests. */
html.snap .hero { min-height: auto; padding: 130px 0 70px; }

/* Ohne JS können fehlende optionale Bilder nicht entfernt werden —
   dann greifen die CSS-Fallbacks (Monogramm, Mock-UI). */
html.no-js img[data-optional] { display: none; }

/* ---------- Legal page ---------- */
.legal-body { padding: 140px 0 80px; max-width: 760px; margin: 0 auto; }
.legal-body h1 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 24px; }
.legal-body h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 0.96rem; }
.legal-body .placeholder {
  padding: 14px 18px;
  border: 1px dashed rgba(217, 171, 82, 0.45);
  border-radius: 12px;
  color: var(--gold-2);
  font-size: 0.92rem;
  margin: 12px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait-wrap { order: -1; }
  .portrait { width: min(250px, 70vw); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .project { grid-template-columns: 1fr; gap: 48px; }
  .project + .project { margin-top: 90px; }
  .phones { height: 480px; transform: scale(0.9); }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .langs { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .highlights { grid-template-columns: 1fr; }
  .phones { transform: scale(0.78); height: 430px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none; }
  .marquee-track { animation: none; }
  .hero-badge .dot { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .timeline::before { transform: scaleY(1); transition: none; }
  .lang-bar i { transform: scaleX(1); transition: none; }
  .phone { transition: none !important; }
}
