:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --layer: rgba(17, 24, 39, 0.92);
  --card: #12172a;
  --card-soft: #151b30;
  --border-soft: rgba(148, 163, 184, 0.3);
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-strong: #a855f7;
  --accent-strong-soft: rgba(168, 85, 247, 0.3);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #151b3d 0, #050816 55%, #020617 100%);
}

/* background video */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: blur(2.5px) saturate(135%) brightness(1.18);
  transform: scale(1.1);
  opacity: 1;
  z-index: -3;
  pointer-events: none;
  background: #020617;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 0, rgba(94, 234, 212, 0.22), transparent 55%),
    radial-gradient(circle at 90% 0, rgba(129, 140, 248, 0.3), transparent 55%),
    radial-gradient(circle at 20% 100%, rgba(244, 114, 182, 0.15), transparent 60%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.45));
}

/* layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell {
  max-width: 1150px;
  width: 100%;
  margin: 16px auto 32px;
  padding: 0 18px 32px;
}

/* header */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at 0 0, rgba(148, 163, 253, 0.18), transparent 40%),
    radial-gradient(circle at 100% 0, rgba(244, 114, 182, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  background: radial-gradient(circle at 25% 0, #facc15, #fb7185 42%, #3b82f6 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 18px 40px rgba(129, 140, 248, 0.9);
}

.brand-text-main {
  font-size: 14px;
  font-weight: 600;
}
.brand-text-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
  padding: 4px 2px 10px;
  border-radius: 999px;
  position: relative;
  transition: color 0.16s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0;
  transform: translateY(3px);
  transition: all 0.18s ease;
}

.nav-links a:hover {
  color: #c7d2fe;
}
.nav-links a.active {
  color: #ffffff;
}
.nav-links a.active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 4px 10px;
  font-size: 16px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
}

/* language switcher */

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 2px;
}

.lang-switcher button {
  border-radius: 999px;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  color: #9ca3af;
}
.lang-switcher button.active {
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.55), rgba(168, 85, 247, 0.8));
  color: #f9fafb;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.9);
}

/* hero */

.hero-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 36px;
}

.hero-kicker {
  font-size: 15px;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.hero-title-main {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}

.hero-title-main-gradient {
  background: linear-gradient(120deg, #4f46e5, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-main-gradient span {
  border-right: 2px solid rgba(244, 244, 245, 0.85);
  padding-right: 4px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  margin: 10px 0 12px;
}

.hero-body {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 470px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

/* hero buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 9px 18px;
  color: #e5e7eb;
  text-decoration: none;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  transition: all 0.18s ease;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.7), rgba(168, 85, 247, 0.9));
  border-color: transparent;
  box-shadow: 0 20px 55px rgba(59, 130, 246, 0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 70px rgba(59, 130, 246, 0.9);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
}
.btn-ghost:hover {
  background: rgba(30, 64, 175, 0.75);
  border-color: rgba(129, 140, 248, 0.7);
}

/* scroll hint */

.scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 22px;
}
.scroll-pill-track {
  width: 26px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  overflow: hidden;
}
.scroll-pill-dot {
  width: 8px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, #a855f7, #22d3ee);
  animation: scrollDot 1.4s infinite ease-in-out;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(18px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-right-card {
  border-radius: 26px;
  padding: 20px 18px 22px;
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.14), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.1), transparent 45%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(129, 140, 248, 0.6);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.95);
}

/* stats */

.section-block {
  margin-top: 32px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 14px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}

.stat-item {
  min-width: 110px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #a5b4fc;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* generic card layout */

.sheet {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.18), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.15), transparent 45%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 26px;
}

.sheet h1.section-title {
  margin-top: 0;
}

/* about grid */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.about-photo {
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.35), transparent 55%),
    linear-gradient(135deg, #0b1020, #020617);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 10px;
  box-shadow: 0 26px 75px rgba(15, 23, 42, 0.95);
}
.about-photo-inner {
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
}
.about-photo-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-card {
  border-radius: 20px;
  padding: 16px 16px 18px;
  background: linear-gradient(145deg, #111827, #020617);
  border: 1px solid rgba(55, 65, 81, 0.85);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
  font-size: 13px;
}

/* docs */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.doc-card {
  border-radius: 18px;
  background: linear-gradient(145deg, #020617, #111827);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(59, 130, 246, 0.65);
  border-color: rgba(129, 140, 248, 0.9);
}
.doc-title {
  font-size: 15px;
  margin-bottom: 4px;
}
.doc-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.modal-backdrop.open {
  display: flex;
}
.modal-window {
  width: 94%;
  max-width: 980px;
  height: 80vh;
  border-radius: 24px;
  background: #020617;
  border: 1px solid rgba(129, 140, 248, 0.9);
  box-shadow: 0 40px 120px rgba(15, 23, 42, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.modal-body {
  flex: 1;
  background: #020617;
}
.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.modal-close {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  color: var(--text-main);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.contact-list li {
  margin-bottom: 8px;
}
.contact-list a {
  color: #a5b4fc;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 10px;
}
.contact-form label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 8px 10px;
  background: #020617;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
}
.contact-form textarea {
  min-height: 90px;
  resize: vertical;
}

/* login */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 32px;
}
.login-card {
  width: 100%;
  max-width: 430px;
  border-radius: 26px;
  padding: 22px 22px 22px;
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.22), transparent 55%),
    linear-gradient(140deg, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 1);
}
.login-logo {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: radial-gradient(circle at 25% 0, #facc15, #fb7185 42%, #3b82f6 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 18px 40px rgba(129, 140, 248, 0.9);
  margin-bottom: 12px;
}
.login-title {
  font-size: 24px;
  margin: 0 0 6px;
}
.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.login-form {
  margin-top: 10px;
}
.login-form input[type="password"] {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 9px 12px;
  font-size: 14px;
  background: #020617;
  color: var(--text-main);
}
.login-form button {
  width: 100%;
  margin-top: 10px;
}
.login-error {
  margin-top: 8px;
  font-size: 12px;
  color: var(--danger);
}

/* footer */

.site-footer {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto 26px;
  padding: 0 18px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a {
  color: #a5b4fc;
  text-decoration: none;
}

/* 404 */

.notfound-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 32px;
}
.notfound-card {
  max-width: 520px;
  width: 100%;
}

/* reveal
   Fallback-first: keep content visible if JS doesn't load.
   When JS loads it adds `html.js`, enabling the reveal animation. */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
html.js [data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Personal intro video block
   ========================= */
.intro-video-card{
  margin-top:18px;
  padding:14px;
  border-radius:18px;
  background:rgba(2,6,23,.42);
  border:1px solid rgba(148,163,184,.20);
  box-shadow:0 10px 40px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.intro-video-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.intro-video-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.35);
  border:1px solid rgba(148,163,184,.18);
  font-size:12px;
  color:#e2e8f0;
}
.intro-video-badge .dot{
  width:8px;height:8px;border-radius:50%;
  background:rgba(239,68,68,.95);
  box-shadow:0 0 0 4px rgba(239,68,68,.18);
}
.intro-video-note{
  font-size:12px;
  color:#cbd5e1;
  opacity:.9;
}
.intro-video-frame{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(2,6,23,.50);
}
.intro-video{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio:16/9;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.03);
}
.intro-video-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  color:#e2e8f0;
  background:rgba(2,6,23,.20);
  border:0;
  cursor:pointer;
  transition:opacity .2s ease, transform .2s ease;
}
.intro-video-card.is-playing .intro-video-play{
  opacity:0;
  pointer-events:none;
}
.intro-video-play:hover{ transform: scale(1.02); }

.intro-video-controls{
  position:absolute;
  right:10px;
  bottom:10px;
  display:flex;
  gap:8px;
}
.intro-btn{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(2,6,23,.45);
  color:#e2e8f0;
  cursor:pointer;
  backdrop-filter: blur(10px);
}
.intro-btn:hover{ background:rgba(2,6,23,.60); }

.intro-video-caption{
  margin-top:10px;
  font-size:13px;
  color:#cbd5e1;
  line-height:1.4;
}

/* =========================
   Profile photo inside hero card
   ========================= */
.profile-photo-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:10px;
}
.profile-photo-wrap.missing{
  min-height:0;
}
.profile-photo{
  width:120px;
  height:120px;
  border-radius:26px;
  object-fit:cover;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(2,6,23,.35);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}

@media (max-width: 900px){
  .profile-photo{ width:96px; height:96px; border-radius:22px; }
}

/* =========================
   CV-style photo (replaces quick stats)
   ========================= */
.cv-photo-wrap{
  width:100%;
  max-width:320px;
  margin: 12px auto 0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.22);
  background: rgba(2,6,23,.28);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cv-photo-wrap.missing{ display:none; }
.cv-photo{
  width:100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  display:block;
}
@media (max-width: 900px){
  .cv-photo-wrap{ max-width: 100%; border-radius: 16px; }
}

/* custom cursor */

.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  z-index: 9999;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.9);
}
.cursor-ring {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

/* responsive */

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 58px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    padding: 10px 10px 12px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.8);
    box-shadow: 0 26px 75px rgba(15, 23, 42, 1);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* animations */

@keyframes float-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


.admin-layout .login-main {
  align-items: flex-start;
  padding-top: 80px;
}


/* page fade transitions */

body {
  opacity: 1;
}

html.js body {
  opacity: 0;
  transition: opacity 0.35s ease;
}

html.js body.page-loaded {
  opacity: 1;
}

html.js body.page-exit {
  opacity: 0;
}

/* cookie banner */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: 640px;
  width: calc(100% - 32px);
  z-index: 50;
}

.cookie-banner-inner {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

.cookie-banner-text {
  flex: 1 1 220px;
  font-size: 11px;
  color: #9ca3af;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
}

.cookie-banner .btn {
  padding-inline: 14px;
  font-size: 11px;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}


/* Reveal animations — progressive enhancement:
   Default: visible (works even if JS is blocked on Safari/iOS).
   With JS enabled: elements animate in when .visible is added. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.js [data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Luxury polish patches ===== */

/* iOS Safari viewport stability */
.hero, .home-hero, .login-page, .page-shell {
  min-height: 100svh;
}

/* Background video container stability */
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Subtle intro animation (once per session) */
html.intro-once .page-shell,
html.intro-once .login-page,
html.intro-once .site-header,
html.intro-once main {
  animation: introFade 0.9s ease both;
}
@keyframes introFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Private badge */
.private-badge{
  font-size: 12px;
  letter-spacing: .04em;
  opacity: .85;
  margin-top: 6px;
}

/* Redirect page (if ever shown) */
.redirect-shell{
  min-height: 100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.redirect-card{
  width:min(520px, 100%);
  background: rgba(15, 23, 42, 0.75);
  border:1px solid rgba(148,163,184,0.35);
  border-radius: 18px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(10px);
  text-align:center;
}
.redirect-title{ font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.redirect-sub{ opacity: .9; margin-bottom: 12px; }

/* CV photo box: never stretch the page */
.cv-photo-box{
  width: 100%;
  max-width: 260px;
  height: 340px;
  overflow: hidden;
  border-radius: 14px;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}
.cv-photo-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display:block;
}
@media (max-width: 768px){
  .cv-photo-box{ max-width: 100%; height: 380px; }
}

/* Video card small badges */
.video-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:12px;
  opacity:.9;
}
.video-tag{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.45);
}

/* CV photo (right card) hard limits */
.cv-photo-wrap{width:100%;max-width:260px;height:340px;overflow:hidden;border-radius:14px;margin-top:14px;border:1px solid rgba(255,255,255,0.18);background:rgba(255,255,255,0.04);backdrop-filter:blur(6px);} 
.cv-photo{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;}
@media (max-width:768px){.cv-photo-wrap{max-width:100%;height:380px;}}
