/* ============================================================
   Sebastian Ferstl – Personal Landing Page
   Design: Ultra-modern, dark, typographic, premium
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --c-bg:       #080808;
  --c-surface:  #111111;
  --c-border:   rgba(255,255,255,0.08);
  --c-text:     #f0f0f0;
  --c-muted:    #a0a0a0;
  --c-accent:   #a8ff78;       /* electric lime-green */
  --c-accent2:  #78c6ff;       /* soft electric blue  */

  /* Type */
  --f-head: 'Syne', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a, button, label, select { cursor: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection {
  background: var(--c-accent);
  color: var(--c-bg);
}

/* ── GRAIN OVERLAY ───────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1000;
  width: 14px; height: 14px;
  background: var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: difference;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s, opacity 0.3s;
}
.cursor.hover {
  width: 48px; height: 48px;
  background: white;
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 2rem;
}
.section { padding: 120px 0; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s, border-bottom 0.4s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 2.5rem;
}
.nav-logo {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-accent);
}
.nav-links {
  display: flex; gap: 2.5rem; align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--c-accent); }
.nav-links a.nav--active {
  color: var(--c-accent);
}
.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--c-border) !important;
  border-radius: 100px;
  color: var(--c-text) !important;
  transition: background 0.25s, color 0.25s, border-color 0.25s !important;
}
.nav-cta:hover {
  background: var(--c-text) !important;
  color: var(--c-bg) !important;
}
.nav-burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--c-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Language Switcher */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}
.lang-selector a {
  color: var(--c-muted);
  transition: color 0.25s;
  text-transform: uppercase;
}
.lang-selector a:hover {
  color: var(--c-accent);
}
.lang-selector span.active {
  color: var(--c-accent);
  font-weight: 700;
}
.lang-selector .sep {
  opacity: 0.35;
  color: var(--c-muted);
}

.mm-lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  margin-top: 1.5rem;
}
.mm-lang-selector a {
  color: var(--c-muted);
  transition: color 0.2s;
  text-transform: uppercase;
}
.mm-lang-selector a:hover {
  color: var(--c-accent);
}
.mm-lang-selector span.active {
  color: var(--c-accent);
  font-weight: 700;
}
.mm-lang-selector .sep {
  opacity: 0.3;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 490;
  background: var(--c-bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }
.mm-link {
  font-family: var(--f-head);
  font-size: 2.5rem; font-weight: 800;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.mm-link:hover { color: var(--c-accent); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  contain: paint;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-spotlight {
  position: absolute;
  top: 0; left: 0;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,255,120,0.12) 0%, rgba(255,255,255,0.07) 30%, transparent 65%);
  pointer-events: none;
  will-change: transform;
  transform: translate(-9999px, -9999px);
  z-index: 1;
}
.orb {
  position: absolute; border-radius: 50%;
  animation: orbFloat 14s ease-in-out infinite alternate;
  will-change: transform;
  /* Prevent orbs from causing horizontal scroll */
  max-width: 100%;
}
.orb-1 {
  width: min(500px, 120vw); height: min(500px, 120vw);
  background: radial-gradient(circle, rgba(168,255,120,0.18) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation-duration: 18s;
}
.orb-2 {
  width: min(600px, 130vw); height: min(600px, 130vw);
  background: radial-gradient(circle, rgba(120,198,255,0.12) 0%, transparent 70%);
  bottom: -20%; right: -10%;
  animation-duration: 14s; animation-delay: -5s;
}
.orb-3 {
  width: min(300px, 80vw); height: min(300px, 80vw);
  background: radial-gradient(circle, rgba(168,255,120,0.08) 0%, transparent 70%);
  top: 50%; left: 45%;
  animation-duration: 22s; animation-delay: -9s;
}
@keyframes orbFloat {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 60px); }
}

.hero-inner {
  position: relative; z-index: 1;
  padding: 0 2.5rem;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  /* Prevent very long eyebrow text from overflowing on mobile */
  max-width: 100%;
}
.hero-headline {
  font-family: var(--f-head);
  /* Min: fits "Sebastian" on one line even at 360px viewport */
  font-size: clamp(2.4rem, 6.5vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  /* Never break mid-word — let viewport + font-size handle it */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-headline .line { display: block; }
.hero-headline .accent { color: var(--c-accent); }
.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--c-muted);
  max-width: 420px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; color: var(--c-muted);
  animation: scrollBob 2.5s ease-in-out infinite;
}
.hero-scroll-hint span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--c-muted), transparent);
}
@keyframes scrollBob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease-out);
  border: none; cursor: none;
  white-space: nowrap;
}
.btn-light {
  background: var(--c-accent); color: var(--c-bg);
}
.btn-light:hover {
  background: white; box-shadow: 0 0 30px rgba(168,255,120,0.35);
}
.btn-ghost {
  background: transparent; color: var(--c-muted);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { color: var(--c-text); border-color: rgba(255,255,255,0.6); }
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── TICKER STRIP ────────────────────────────────────────── */
.ticker-strip {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  overflow: hidden;
  padding: 1rem 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: ticker 40s linear infinite;
  will-change: transform;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-track .sep {
  color: var(--c-accent);
  font-size: 0.9rem;
  opacity: 0.5;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── TYPOGRAPHY SHARED ───────────────────────────────────── */
.section-label {
  font-family: var(--f-mono); font-size: 0.8rem;
  color: var(--c-accent); letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-headline {
  font-family: var(--f-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}
.section-headline em { font-style: normal; color: var(--c-muted); }
.body-text {
  color: var(--c-muted); line-height: 1.8;
  margin-bottom: 1.25rem; font-size: 1rem;
}
.body-text strong { color: var(--c-text); font-weight: 500; }
.section-intro {
  color: var(--c-muted); max-width: 620px;
  margin-bottom: 4rem; font-size: 1.05rem; line-height: 1.8;
}

/* ── SPLIT LAYOUT ────────────────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about { background: var(--c-surface); }

.about-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0a0a0a;
  /* Subtle accent: thin lime border + soft outer glow */
  box-shadow:
    0 0 0 1px rgba(168, 255, 120, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.6);
}

.photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--c-surface), transparent);
  z-index: 2;
  pointer-events: none;
}

.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.5s;
}

.photo-frame:hover img {
  filter: grayscale(80%) contrast(1.05);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2rem;
}
.tag {
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  font-size: 0.8rem; color: var(--c-muted);
  font-family: var(--f-mono);
  transition: border-color 0.4s, color 0.4s, background 0.4s, box-shadow 0.4s;
}
.tag:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* Mobile auto-highlight state */
.tag.tag--active {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(168, 255, 120, 0.08);
  box-shadow: 0 0 12px rgba(168, 255, 120, 0.2);
}

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 4rem;
}
.skills-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px; padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.skills-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168,255,120,0.06), transparent 40%);
  opacity: 0; transition: opacity 0.5s;
  pointer-events: none; z-index: 0;
}
.skills-card > * { position: relative; z-index: 1; }
.skills-card:hover {
  border-color: rgba(168,255,120,0.3);
  transform: translateY(-4px);
}
.skills-card:hover::before { opacity: 1; }
.skills-card-icon {
  width: 48px; height: 48px;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.skills-card h3 {
  font-family: var(--f-head); font-size: 1.5rem;
  font-weight: 700; margin-bottom: 1.25rem;
}
.skills-card ul { display: flex; flex-direction: column; gap: 0.6rem; }
.skills-card li {
  color: var(--c-muted); font-size: 0.95rem;
  padding-left: 1rem; position: relative;
}
.skills-card li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--c-accent);
}

/* ── SERVICES ────────────────────────────────────────────── */
.services { background: var(--c-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168,255,120,0.06), transparent 40%);
  opacity: 0; transition: opacity 0.5s;
  pointer-events: none; z-index: 0;
}
.svc-card > * { position: relative; z-index: 1; }
.svc-card:hover {
  border-color: rgba(168,255,120,0.25);
  transform: translateY(-6px);
}
.svc-card:hover::before { opacity: 1; }
.svc-num {
  font-family: var(--f-mono); font-size: 0.7rem;
  color: var(--c-accent); letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.svc-icon {
  width: 36px; height: 36px;
  color: var(--c-accent); margin-bottom: 1rem;
}
.svc-card h3 {
  font-family: var(--f-head); font-size: 1.15rem;
  font-weight: 700; margin-bottom: 0.75rem;
}
.svc-card p { color: var(--c-muted); font-size: 0.9rem; line-height: 1.7; }
.svc-card--cta {
  background: linear-gradient(135deg, rgba(168,255,120,0.08), rgba(120,198,255,0.06));
  border-color: rgba(168,255,120,0.2);
  display: flex; flex-direction: column;
  justify-content: center; gap: 1rem;
}
.svc-card--cta::after { display: none; }
.svc-cta-text {
  font-family: var(--f-mono); font-size: 0.75rem;
  color: var(--c-accent); letter-spacing: 0.08em;
}
.svc-card--cta h3 {
  font-size: 1.3rem; margin-bottom: 0.5rem;
}
.svc-card--cta .btn {
  align-self: flex-start;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact { background: var(--c-surface); }

.contact-links {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 2.5rem;
}
.profile-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--c-muted); font-size: 0.9rem;
  transition: color 0.25s;
}
.profile-link:hover { color: var(--c-accent); }
.profile-link svg { flex-shrink: 0; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
label {
  font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--c-muted);
  font-family: var(--f-mono);
}
input, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--c-text); font-family: var(--f-body); font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s;
  outline: none; cursor: none; resize: none;
}
input:focus, textarea:focus {
  border-color: var(--c-accent);
  background: rgba(168,255,120,0.04);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.38); }
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 80, 80, 0.5);
}
.form-note {
  text-align: center; font-size: 0.78rem;
  color: rgba(160,160,160,0.75); font-family: var(--f-mono);
}

/* Pflichtfeld-Sternchen */
.req { color: var(--c-accent); margin-left: 0.15em; }

/* Honeypot – absolut unsichtbar für Menschen */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* Formular-Feedback */
.form-feedback {
  display: none;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}
.form-feedback.success {
  display: block;
  background: rgba(168,255,120,0.1);
  border: 1px solid rgba(168,255,120,0.3);
  color: var(--c-accent);
}
.form-feedback.error {
  display: block;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff9999;
}

/* Button: Ladezustand */
#submitBtn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--f-head); font-weight: 700;
  font-size: 1rem; color: var(--c-text);
}
.footer-copy {
  font-size: 0.8rem; color: var(--c-muted);
  font-family: var(--f-mono);
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  font-size: 0.8rem; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--c-accent); }

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1; transform: translate(0, 0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body, input, textarea { cursor: auto !important; }
  a, button, .btn, .nav-burger { cursor: pointer !important; }
  .cursor { display: none !important; }

  /* Ensure no element can cause horizontal scroll */
  body, .hero, .ticker-strip, .section, .container { max-width: 100vw; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { padding: 1.1rem 1.25rem; }

  .hero {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  /* Hero: force a font size that fits "Sebastian" on one line at 360px+ */
  .hero-inner { padding: 0 1.25rem; padding-top: 0; }
  .hero-headline { font-size: clamp(2rem, 10.5vw, 3.5rem); line-height: 1.05; }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.05em; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 2rem; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-actions .btn { width: auto; padding: 0.65rem 1.5rem; font-size: 0.85rem; }

  .section { padding: 80px 0; }
  .section-headline { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .split-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 280px; margin: 0 auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  /* Ticker: prevent animation from expanding the page width */
  .ticker-strip { overflow: hidden; max-width: 100%; }

  /* Mobile menu: keep it within viewport */
  .mobile-menu { width: 100%; overflow: hidden; }

  /* CTA card heading should not be oversized */
  .svc-card--cta h3 { font-size: 1rem; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* Compact scroll hint on mobile */
  .hero-scroll-hint { bottom: 1.5rem; gap: 0.5rem; }
  .hero-scroll-hint span { height: 20px; }
}

/* ── SCROLL PROGRESS BAR ────────────────────────────────── */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  pointer-events: none;
  background: transparent;
  display: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--c-accent), var(--c-accent2));
  will-change: width;
}
@media (max-width: 768px) {
  .scroll-progress-container {
    display: block;
  }
}
