/* ==========================================================================
   YASHA ROGACHOV — DESIGN ENGINEERING PORTFOLIO
   Crafted following Emil Kowalski's Design Engineering & Motion Philosophy
   ========================================================================== */

:root {
  /* Surfaces & Canvas (Deep Luxury Dark Aesthetic) */
  --bg-primary: #090a0c;
  --bg-secondary: #121316;
  --bg-tertiary: #191a20;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --bg-glass: rgba(12, 13, 16, 0.82);

  /* Typography */
  --text-primary: #f5f5f7;
  --text-secondary: #9aa0a6;
  --text-tertiary: #60646c;
  --text-accent: #ffffff;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-active: rgba(255, 255, 255, 0.32);

  /* Accents & Status */
  --status-online: #10b981;
  --status-glow: rgba(16, 185, 129, 0.38);
  --brand-pill: #ffffff;
  --brand-pill-text: #090a0c;

  /* Emil Kowalski's Motion Tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
  --ease-sonner: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
  --shadow-toast: 0 12px 32px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Dimensions & Radius */
  --max-width: 1400px;
  --header-height: 70px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base Reset & Native Mobile Foundations */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: -0.012em;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Ambient Radial Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.045) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Controls vs Content Selection Rule */
button, a, [role="button"], .filter-btn, .nav-pill, .pill-btn, .channel-card, .discipline-card {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* TACTILE FEEDBACK (:active scale(0.97)) */
.button-tactile {
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  will-change: transform;
}

.button-tactile:active {
  transform: scale(0.965);
}

/* ==========================================================================
   EMIL KOWALSKI'S SONNER-STYLE TOAST SYSTEM
   ========================================================================== */
.sonner-toaster {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 32px);
}

.sonner-toast {
  pointer-events: auto;
  background: rgba(22, 23, 28, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-toast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.4;
  animation: sonnerEnter 300ms var(--ease-sonner) forwards;
  transition: transform 220ms var(--ease-sonner), opacity 200ms var(--ease-out);
}

.sonner-toast.dismissing {
  animation: sonnerExit 240ms var(--ease-out) forwards;
}

.sonner-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sonner-toast-icon {
  font-size: 16px;
  display: inline-flex;
}

.sonner-toast-title {
  font-weight: 500;
  color: #ffffff;
}

.sonner-toast-msg {
  font-size: 12.5px;
  color: var(--text-secondary);
}

@keyframes sonnerEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sonnerExit {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
}

/* ==========================================================================
   FLOATING DOCK HEADER
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 200ms var(--ease-out);
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: var(--status-online);
  box-shadow: 0 0 8px var(--status-glow);
  animation: pulse-dot 2.5s infinite var(--ease-in-out);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.brand-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Nav Dock */
nav.nav-dock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.06);
  }
}

.nav-link.active {
  color: var(--brand-pill-text);
  background-color: var(--brand-pill);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   MAIN VIEWS & TRANSITIONS (Never animate from scale(0))
   ========================================================================== */
main#app {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 28px 80px;
  position: relative;
  z-index: 1;
}

.view-section {
  display: none;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}

.view-section.active {
  display: block;
  animation: enterSection 220ms var(--ease-out) forwards;
}

@keyframes enterSection {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Section Header Meta */
.section-meta {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
}

/* ==========================================================================
   HERO / HOME SECTION
   ========================================================================== */
#view-home {
  padding: 0;
}

.hero-card {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--header-height) - 140px);
  max-height: 800px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 48px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  background-size: cover;
  background-position: center 30%;
  box-shadow: var(--shadow-lg);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.25) 0%, rgba(10, 10, 12, 0.85) 75%, rgba(10, 10, 12, 0.98) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
  font-size: clamp(16px, 1.8vw, 19px);
  color: #c4c7cf;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.btn-primary {
  background-color: #ffffff;
  color: #090a0c;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: #e5e5e7;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 255, 255, 0.25);
  }
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-highlight);
  backdrop-filter: blur(12px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
  }
}

/* Discipline Quick Cards Grid */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.discipline-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .discipline-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md);
  }

  .discipline-card:hover .discipline-arrow {
    transform: translateX(4px) translateY(-4px);
    color: #ffffff;
  }
}

.discipline-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.discipline-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.discipline-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.discipline-arrow {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 160ms var(--ease-out), color 160ms var(--ease-out);
}

/* ==========================================================================
   GALLERY NAVIGATION & FILTER PILLS
   ========================================================================== */
.gallery-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-count-badge {
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   STAGGERED GALLERY GRIDS & CARDS (Optimized with Shimmer Skeleton)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  will-change: transform;
}

.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: cardSkeleton 1.8s infinite linear;
  pointer-events: none;
  z-index: 0;
}

@keyframes cardSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-card.img-loaded::before {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md);
  }

  .gallery-card:hover .gallery-img {
    transform: scale(1.04);
  }

  .gallery-card:hover .gallery-card-overlay {
    opacity: 1;
  }
}

.gallery-card:active {
  transform: scale(0.975);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 380ms var(--ease-out), opacity 200ms var(--ease-out);
  background-color: var(--bg-tertiary);
  opacity: 0;
}

.gallery-img.loaded {
  opacity: 1;
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9, 10, 12, 0.88) 100%);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  pointer-events: none;
}

.gallery-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-action {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ==========================================================================
   EDITORIAL PROFILE, ABOUT & CV LAYOUT
   ========================================================================== */
.profile-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  box-shadow: var(--shadow-sm);
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-portrait-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  background: var(--bg-tertiary);
}

.profile-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.profile-info h3 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

.quick-action-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
  }
}

.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.editorial-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #e5e5e7;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.cta-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 10px;
}

.cta-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.cta-box p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* CV Timeline with Refined Precision */
.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  margin-top: 8px;
}

.cv-item {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border-subtle);
  transition: border-color 200ms var(--ease-out);
}

.cv-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.cv-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.cv-company {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.cv-role {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cv-url a {
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  opacity: 0.75;
  transition: opacity 140ms var(--ease-out);
}

.cv-url a:hover {
  opacity: 1;
  text-decoration: underline;
}

.cv-quick-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   CONTACT CHANNELS & FORM
   ========================================================================== */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .channel-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-highlight);
  }
}

.channel-icon {
  font-size: 18px;
}

.channel-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.channel-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.channel-val {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-action {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  outline: none;
}

.form-control:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ==========================================================================
   LIGHTBOX MODAL (Emil Kowalski's Spring Entrance)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 10, 12, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: transform 220ms var(--ease-out);
  transform-origin: center center;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  user-select: none;
  border: 1px solid var(--border-subtle);
  transition: opacity 150ms var(--ease-out);
}

.lightbox-meta {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.lightbox-title {
  color: #ffffff;
  font-weight: 500;
}

.lightbox-counter {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.lightbox-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-highlight);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.22);
  }
}

.lightbox-close {
  top: 24px;
  right: 28px;
  font-size: 20px;
}

.lightbox-prev {
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

.lightbox-next {
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 28px;
  margin-top: auto;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .profile-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }

  .profile-portrait-wrap {
    max-width: 240px;
  }

  .hero-card {
    padding: 36px 24px;
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  main#app {
    padding: 24px 16px 64px;
  }

  .mobile-toggle {
    display: flex;
  }

  nav.nav-dock {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }

  nav.nav-dock.open {
    display: block;
    animation: slideDownMobile 180ms var(--ease-drawer) forwards;
  }

  @keyframes slideDownMobile {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }

  .nav-link {
    padding: 10px 16px;
    font-size: 14.5px;
    border-radius: var(--radius-sm);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .lightbox-prev {
    left: 12px;
    width: 38px;
    height: 38px;
  }

  .lightbox-next {
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

/* Prevent iOS Zoom on Input Focus */
@media (pointer: coarse) {
  input, textarea, select {
    font-size: 16px !important;
  }
}
