/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
input, textarea, button { font-size: 16px; } /* prevent iOS zoom on focus */

:root {
  --red: #e50914;
  --red-hover: #f6121d;
  --bg: #141414;
  --bg-2: #181818;
  --bg-3: #232323;
  --text: #fff;
  --muted: #b3b3b3;
}

.hidden { display: none !important; }

/* ========== START SCREEN ========== */
.start {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  cursor: pointer;
}
.start-inner { text-align: center; }
.start-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 12vw, 160px);
  color: var(--red);
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 0 40px rgba(229, 9, 20, 0.4);
  animation: startPulse 2.2s ease-in-out infinite;
}
.start-hint {
  margin-top: 24px;
  font-size: 14px;
  color: #808080;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: hintBlink 1.4s ease-in-out infinite;
}
@keyframes startPulse {
  0%, 100% { text-shadow: 0 0 40px rgba(229, 9, 20, 0.4); }
  50%      { text-shadow: 0 0 80px rgba(229, 9, 20, 0.8), 0 0 120px rgba(229, 9, 20, 0.4); }
}
@keyframes hintBlink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ========== NETFLIX-STYLE INTRO ========== */
.intro {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 199;
  overflow: hidden;
  animation: introFadeOut 0.4s ease 3.6s forwards;
}
.intro-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Two red bars sweep up like the strokes of the N */
.intro-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(229,9,20,0.2) 10%,
    #e50914 50%,
    rgba(229,9,20,0.2) 90%,
    transparent 100%);
  filter: blur(0.5px);
  box-shadow:
    0 0 20px rgba(229, 9, 20, 0.8),
    0 0 60px rgba(229, 9, 20, 0.6);
  opacity: 0;
}
.intro-bar-left  { left: 50%; transform: translateX(-180px) scaleY(0); transform-origin: center; animation: barRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.intro-bar-right { left: 50%; transform: translateX(180px)  scaleY(0); transform-origin: center; animation: barRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards; }

@keyframes barRise {
  0%   { opacity: 0; transform: translateX(var(--x, 0)) scaleY(0); }
  20%  { opacity: 1; }
  60%  { opacity: 1; transform: var(--bar-final, translateX(0) scaleY(1)); }
  100% { opacity: 0; transform: var(--bar-final, translateX(0) scaleY(1)); }
}
.intro-bar-left  { animation-name: barRiseLeft; }
.intro-bar-right { animation-name: barRiseRight; }
@keyframes barRiseLeft {
  0%   { opacity: 0; transform: translateX(-180px) scaleY(0); }
  25%  { opacity: 1; transform: translateX(-180px) scaleY(1); }
  55%  { opacity: 1; transform: translateX(-30px)  scaleY(1); }
  75%  { opacity: 0.4; transform: translateX(0)    scaleY(1); }
  100% { opacity: 0; transform: translateX(0)      scaleY(1); }
}
@keyframes barRiseRight {
  0%   { opacity: 0; transform: translateX(180px) scaleY(0); }
  25%  { opacity: 1; transform: translateX(180px) scaleY(1); }
  55%  { opacity: 1; transform: translateX(30px)  scaleY(1); }
  75%  { opacity: 0.4; transform: translateX(0)   scaleY(1); }
  100% { opacity: 0; transform: translateX(0)     scaleY(1); }
}

/* Bright flash when bars meet */
.intro-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #fff 0%, rgba(229,9,20,0.5) 25%, transparent 60%);
  opacity: 0;
  animation: flashBurst 0.6s ease-out 1.2s forwards;
}
@keyframes flashBurst {
  0%   { opacity: 0; transform: scale(0.3); }
  40%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(2); }
}

/* Red ambient glow that lingers behind the wordmark */
.intro-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(229,9,20,0.45) 0%, transparent 55%);
  opacity: 0;
  animation: glowIn 2.4s ease 1.1s forwards;
}
@keyframes glowIn {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

/* The wordmark zooms in TUDUM-style */
.intro-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 14vw, 200px);
  color: var(--red);
  letter-spacing: 0.04em;
  margin: 0;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.2);
  text-shadow:
    0 0 30px rgba(229, 9, 20, 0.8),
    0 0 80px rgba(229, 9, 20, 0.5);
  animation: logoTudum 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}
@keyframes logoTudum {
  0%   { opacity: 0; transform: scale(0.2); filter: blur(20px); }
  40%  { opacity: 1; transform: scale(1.05); filter: blur(0); }
  70%  { opacity: 1; transform: scale(1);    filter: blur(0); }
  100% { opacity: 0; transform: scale(1.4);  filter: blur(2px); }
}
@keyframes introFadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ========== PROFILE PICKER ========== */
.profiles {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.5s ease;
}
.profiles-inner { text-align: center; padding: 24px; }
.profiles h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: #e5e5e5;
  margin: 0 0 48px;
}
.profile-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}
.profile:hover { transform: scale(1.05); }
.profile:hover .profile-avatar { outline: 4px solid #fff; }
.profile:hover span { color: #fff; }
.profile span {
  font-size: 16px;
  color: #808080;
  transition: color 0.2s;
}
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: outline 0.2s;
}
.profile-avatar svg { width: 60%; height: 60%; }
.avatar-blue   { background: #2cb5d6; }
.avatar-gray   { background: #8b8b8b; }
.avatar-red    { background: #e50914; }
.avatar-yellow { background: #f5b50a; }

@media (max-width: 720px) {
  .profile-avatar { width: 100px; height: 100px; }
  .profile-list { gap: 16px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== APP ========== */
#app { animation: fadeIn 0.6s ease; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  transition: background 0.3s ease;
}
.nav.scrolled { background: #141414; }
.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--red);
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a {
  font-size: 14px;
  color: #e5e5e5;
  transition: color 0.2s;
}
.nav-links a:hover { color: #b3b3b3; }
.switch-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, border-color 0.15s;
}
.switch-profile:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--red);
}
.mini-avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  flex-shrink: 0;
}
.persona-label {
  font-size: 14px;
  font-weight: 500;
  color: #e5e5e5;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .nav-links { gap: 14px; overflow-x: auto; }
  .nav-links a { font-size: 13px; white-space: nowrap; }
  .brand { font-size: 20px; }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 14vh;
  overflow: hidden;
  background: #000;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-visitor.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.4s ease;
}
/* Per-persona hero backgrounds */
.hero[data-persona="recruiter"] .hero-photo { background-image: url('assets/hero-recruiter.png'); }
.hero[data-persona="developer"] .hero-photo { background-image: url('assets/hero-developer.png'); }
.hero[data-persona="client"]    .hero-photo { background-image: url('assets/hero-client.png'); }
.hero[data-persona="visitor"]   .hero-photo { background-image: url('assets/hero-visitor.png'); }
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 25%, transparent 75%, rgba(20,20,20,0.4) 100%);
  z-index: 1;
}
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent 0%, #141414 100%);
  z-index: 1;
}
@media (max-width: 720px) {
  .hero-photo { background-position: 70% center; }
  .hero-gradient {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.9) 100%);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-tag {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 16px;
  color: #e5e5e5;
}
.hero-desc {
  font-size: 16px;
  color: #d9d9d9;
  line-height: 1.5;
  margin: 0 0 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.btn-play {
  background: #fff;
  color: #000;
}
.btn-play:hover { background: rgba(255,255,255,0.75); }
.btn-info {
  background: rgba(109, 109, 110, 0.7);
  color: #fff;
}
.btn-info:hover { background: rgba(109, 109, 110, 0.4); }

/* === ROWS === */
.rows {
  background: #141414;
  padding: 0 0 80px;
  position: relative;
  z-index: 2;
}
.row {
  margin-bottom: 48px;
  padding: 0 4%;
}
.row-title {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  margin: 0 0 14px;
  color: #e5e5e5;
}
.row-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  padding-bottom: 16px;
}
.row-track::-webkit-scrollbar { height: 6px; }
.row-track::-webkit-scrollbar-track { background: transparent; }
.row-track::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.card {
  flex: 0 0 280px;
  height: 158px;
  border-radius: 4px;
  background: var(--bg-3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: flex-end;
}
.card:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 2;
}
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.card:hover .card-bg { transform: scale(1.05); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
}
.card-content {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  width: 100%;
}
.card-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}
.card-content p {
  font-size: 12px;
  color: #b3b3b3;
  margin: 0;
}

@media (max-width: 720px) {
  .card { flex: 0 0 220px; height: 130px; }
}

/* card backgrounds by theme */
.bg-experience { background: linear-gradient(135deg, #003973, #e5e5be); }
.bg-experience-2 { background: linear-gradient(135deg, #1d2671, #c33764); }
.bg-experience-3 { background: linear-gradient(135deg, #232526, #414345); }
.bg-experience-4 { background: linear-gradient(135deg, #00467f, #a5cc82); }
.bg-experience-5 { background: linear-gradient(135deg, #4b6cb7, #182848); }

.bg-skill-1 { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.bg-skill-2 { background: linear-gradient(135deg, #0f2027, #2c5364); }
.bg-skill-3 { background: linear-gradient(135deg, #cb2d3e, #ef473a); }
.bg-skill-4 { background: linear-gradient(135deg, #16a085, #f4d03f); }
.bg-skill-5 { background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b); }
.bg-skill-6 { background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); }

.bg-edu-1 { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.bg-edu-2 { background: linear-gradient(135deg, #614385, #516395); }

.bg-ind-1 { background: linear-gradient(135deg, #ff512f, #dd2476); }
.bg-ind-2 { background: linear-gradient(135deg, #4568dc, #b06ab3); }
.bg-ind-3 { background: linear-gradient(135deg, #134e5e, #71b280); }
.bg-ind-4 { background: linear-gradient(135deg, #ee0979, #ff6a00); }
.bg-ind-5 { background: linear-gradient(135deg, #36d1dc, #5b86e5); }
.bg-ind-6 { background: linear-gradient(135deg, #c33764, #1d2671); }
.bg-ind-7 { background: linear-gradient(135deg, #485563, #29323c); }

.bg-contact-1 { background: linear-gradient(135deg, #e50914, #8b0000); }
.bg-contact-2 { background: linear-gradient(135deg, #00b09b, #96c93d); }
.bg-contact-3 { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.bg-contact-4 { background: linear-gradient(135deg, #f7971e, #ffd200); }

/* === STATS STRIP === */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -8vh;
  padding: 0 4% 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #141414;
}
.stat-card {
  background: linear-gradient(135deg, #1f1f1f, #161616);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--red); transform: translateY(-2px); }
.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--red);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: #b3b3b3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === CONTACT FORM === */
.form-intro {
  color: #b3b3b3;
  font-size: 15px;
  margin: 0 0 20px;
  max-width: 600px;
}
.contact-form {
  max-width: 720px;
  background: linear-gradient(135deg, #1c1c1c, #141414);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field span {
  font-size: 12px;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.field input, .field textarea {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #111;
}
.field input::placeholder, .field textarea::placeholder { color: #555; }
.form-submit {
  padding: 12px 28px;
  font-size: 15px;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.form-status.ok    { color: #46d369; }
.form-status.err   { color: #e87c03; }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
}

/* === FOOTER === */
.footer {
  padding: 24px 4%;
  text-align: center;
  color: #808080;
  font-size: 13px;
  border-top: 1px solid #222;
}
.footer p { margin: 4px 0; }
.footer-sub { font-size: 11px; color: #555; }

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  animation: fadeIn 0.2s ease;
}
.modal-card {
  position: relative;
  background: #181818;
  border-radius: 8px;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #181818;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: #2a2a2a; }
.modal-banner {
  height: 220px;
  background: linear-gradient(135deg, #1d2671, #c33764);
  position: relative;
}
.modal-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, #181818);
}
.modal-body {
  padding: 28px 40px 40px;
  overflow-y: auto;
}
.modal-body h2 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 700;
}
.modal-body .modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #b3b3b3;
}
.modal-body .modal-meta span.tag-green { color: #46d369; font-weight: 600; }
.modal-body p, .modal-body li {
  font-size: 15px;
  line-height: 1.6;
  color: #d9d9d9;
}
.modal-body p { margin: 0 0 14px; }
.modal-body ul {
  margin: 12px 0;
  padding-left: 0;
}
.modal-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.modal-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
}
.modal-body a.modal-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--red);
  font-weight: 600;
}
.modal-body a.modal-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .modal-body { padding: 20px; }
  .modal-banner { height: 140px; }
}

/* ========== COMPREHENSIVE MOBILE RESPONSIVE ========== */

/* Tablets & small laptops */
@media (max-width: 900px) {
  .hero { min-height: 75vh; padding: 0 4% 10vh; }
  .hero-content { max-width: 100%; }
  .stats { margin-top: -6vh; padding: 0 4% 36px; }
  .row { margin-bottom: 36px; }
}

/* Phones (portrait) */
@media (max-width: 720px) {
  /* Start screen */
  .start-logo { font-size: clamp(40px, 13vw, 90px); letter-spacing: 0.02em; }
  .start-hint { font-size: 12px; margin-top: 18px; letter-spacing: 0.15em; }

  /* Intro animation */
  .intro-logo { font-size: clamp(44px, 16vw, 120px); }
  .intro-bar-left  { animation-name: barRiseLeftMobile; }
  .intro-bar-right { animation-name: barRiseRightMobile; }

  /* Profile picker */
  .profiles h1 { font-size: 28px; margin-bottom: 32px; }
  .profile-list { gap: 14px; }
  .profile-avatar { width: 80px; height: 80px; }
  .profile span { font-size: 13px; }

  /* Nav — switch to compact mode */
  .nav { padding: 12px 0; }
  .nav-inner { gap: 12px; padding: 0 4%; flex-wrap: nowrap; }
  .brand { font-size: 18px; flex-shrink: 0; }
  .nav-links {
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 16px), transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; white-space: nowrap; }
  .switch-profile { flex-shrink: 0; gap: 6px; padding: 3px 8px 3px 3px; }
  .mini-avatar { width: 26px; height: 26px; }
  .persona-label { font-size: 12px; }

  /* Hero */
  .hero {
    min-height: 88vh;
    padding: 80px 5% 8vh;
    align-items: flex-end;
  }
  .hero-photo {
    background-position: right center;
    background-size: cover;
  }
  .hero-gradient {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 70%, #141414 100%);
  }
  .hero-tag { font-size: 12px; margin-bottom: 10px; }
  .hero-title { font-size: clamp(32px, 9vw, 48px); margin-bottom: 12px; }
  .hero-sub { font-size: 15px; margin-bottom: 12px; }
  .hero-desc { font-size: 14px; margin-bottom: 22px; line-height: 1.45; }
  .hero-actions { gap: 8px; }
  .btn { padding: 10px 18px; font-size: 14px; }

  /* Stats — 2 columns on phone */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -4vh;
    padding: 0 5% 28px;
    gap: 8px;
  }
  .stat-card { padding: 14px 16px; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 11px; }

  /* Rows */
  .rows { padding-bottom: 48px; }
  .row { margin-bottom: 28px; padding: 0 0 0 5%; }
  .row-title { font-size: 16px; margin-bottom: 10px; padding-right: 5%; }
  .row-track {
    gap: 6px;
    padding-right: 5%;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }
  .card {
    flex: 0 0 200px;
    height: 120px;
    scroll-snap-align: start;
  }
  .card:hover { transform: none; box-shadow: none; } /* disable hover lift on touch */
  .card-content { padding: 10px 12px; }
  .card-content h3 { font-size: 14px; }
  .card-content p { font-size: 11px; }

  /* Contact form */
  #row-form { padding: 0 5%; }
  .contact-form { padding: 18px; border-radius: 8px; }
  .form-grid { gap: 12px; margin-bottom: 16px; }
  .field input, .field textarea { padding: 10px 12px; }
  .form-submit { width: 100%; justify-content: center; }
  .form-intro { font-size: 14px; }

  /* Footer */
  .footer { padding: 20px 5%; font-size: 12px; }
  .footer-sub { font-size: 10px; }

  /* Modal */
  .modal { padding: 0; align-items: stretch; }
  .modal-card { max-height: 100vh; height: 100%; border-radius: 0; }
  .modal-banner { height: 160px; }
  .modal-body { padding: 20px 18px 32px; }
  .modal-body h2 { font-size: 22px; }
  .modal-body p, .modal-body li { font-size: 14px; }
  .modal-body .modal-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
  }
}

/* Very small phones (iPhone SE etc.) */
@media (max-width: 380px) {
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 13px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .stat-value { font-size: 24px; }
  .card { flex: 0 0 170px; height: 100px; }
  .profile-avatar { width: 68px; height: 68px; }
  .persona-label { display: none; } /* avatar only on tiny phones */
}

/* Mobile intro animation — bars start closer in */
@keyframes barRiseLeftMobile {
  0%   { opacity: 0; transform: translateX(-90px) scaleY(0); }
  25%  { opacity: 1; transform: translateX(-90px) scaleY(1); }
  55%  { opacity: 1; transform: translateX(-18px) scaleY(1); }
  75%  { opacity: 0.4; transform: translateX(0)   scaleY(1); }
  100% { opacity: 0; transform: translateX(0)     scaleY(1); }
}
@keyframes barRiseRightMobile {
  0%   { opacity: 0; transform: translateX(90px) scaleY(0); }
  25%  { opacity: 1; transform: translateX(90px) scaleY(1); }
  55%  { opacity: 1; transform: translateX(18px) scaleY(1); }
  75%  { opacity: 0.4; transform: translateX(0)  scaleY(1); }
  100% { opacity: 0; transform: translateX(0)    scaleY(1); }
}

/* Landscape phones — pull hero down so content isn't cropped */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100vh; padding: 70px 4% 60px; }
  .stats { margin-top: 0; }
}
