/* ==========================================================================
   DANIEL OKONAM — MATVEYAN TWIN DESIGN SYSTEM
   Senior Visual & Motion Designer
   ========================================================================== */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Colors - Matveyan Core (Black / White / Tech Gray) */
  --bg:              #000000;
  --bg-mid:          #080808;
  --bg-card:         #050505;
  --border:          rgba(255, 255, 255, 0.08);
  --border-hover:    rgba(255, 255, 255, 0.2);
  --accent:          #ffffff;
  --accent-dim:      rgba(255, 255, 255, 0.05);
  --white:           #ffffff;
  
  /* Text Grays */
  --n100:            #ffffff;
  --n200:            #cccccc;
  --n300:            #888888;
  --n400:            #555555;
  --n500:            #333333;
  --n600:            #1a1a1a;
  
  /* Fonts */
  --font-display:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:       'Space Mono', monospace;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:     0.2s var(--ease-out);
  --t-smooth:   0.4s var(--ease-out);
  --t-slow:     0.8s var(--ease-out);
}

/* Light Theme overrides */
[data-theme="light"] {
  --bg:              #ffffff;
  --bg-mid:          #f7f7f7;
  --bg-card:         #fafafa;
  --border:          rgba(0, 0, 0, 0.08);
  --border-hover:    rgba(0, 0, 0, 0.2);
  --accent:          #000000;
  --accent-dim:      rgba(0, 0, 0, 0.05);
  --white:           #000000;
  
  --n100:            #000000;
  --n200:            #333333;
  --n300:            #777777;
  --n400:            #aaaaaa;
  --n500:            #cccccc;
  --n600:            #eeeeee;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background-color: var(--bg);
}

/* Lenis smooth scrolling compatibility styles */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background: var(--bg);
  color: var(--n200);
  font-family: var(--font-display);
  font-size: 14pt;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--n500); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  text-transform: uppercase; /* Titles always All-Caps */
}

h1, h2, h3 {
  font-weight: 300; /* Light by default */
}

h1 strong, h2 strong, h3 strong,
h1 b, h2 b, h3 b {
  font-weight: 600; /* Semibold for bold parts */
}

h1, h2 {
  font-size: 30pt;
  line-height: 1.35;
}

h3 {
  font-size: 14pt;
  line-height: 1.45;
}

h4 { font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-display); border: none; background: none; }

/* Background Noise Overlay starting from 2nd section */
.noise-texture-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url('assets/images/noise-Ce_e3iUi.png');
  background-repeat: repeat;
  opacity: 0;
  transition: opacity var(--t-smooth);
}
.noise-texture-overlay.visible {
  opacity: 0.04;
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  z-index: 10;
  padding: 10px; /* offset for outer frame */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── VIDEO BACKGROUND ────────────────────────────────────────────────────── */
/**
 * mbg.mp4 — fixed full-viewport cover, z-index 0 (below everything).
 * Same technique as matveyan.com: video fills viewport via object-fit: cover,
 * fixed position so it doesn't scroll. No JS needed — pure CSS.
 */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Cover laterally and in height, cropping excess */
  object-position: center; /* Centered crop anchor */
  z-index: 0;              /* Lowest layer — behind everything */
  pointer-events: none;
  /* Hardware-accelerated compositing layer for zero-jank playback */
  will-change: transform;
  transform: translateZ(0);
}

/**
 * Dark lens overlay — rgba(0,0,0,0.72) sits between the video (z:0) and
 * the WebGL scene (z:2). This replicates the semi-transparent black veil
 * visible on matveyan.com: darkens the video without touching its opacity,
 * preserving full video quality while making text readable.
 *
 * Opacity tuning guide:
 *   0.60 = lighter, more video visible
 *   0.72 = reference match (matveyan.com)
 *   0.85 = heavier, almost black background
 */
.bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;              /* Above video (0), below WebGL (2) */
  pointer-events: none;
  background: rgba(0, 0, 0, 0.72);
}

/* ── WebGL CANVAS & NOISE GRAIN ────────────────────────────────────────── */
#webgl-root {
  position: fixed;
  inset: 0;
  z-index: 2;              /* Above video overlay */
  pointer-events: auto; /* Allow raycasting click events */
}

/* Rich Animated Film/VHS Noise grain overlay */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-shift 0.5s steps(2) infinite;
}

@keyframes grain-shift {
  0%  { transform: translate(0,0); }
  25% { transform: translate(-1%,-2%); }
  50% { transform: translate(2%,1%); }
  75% { transform: translate(-1%,2%); }
  100%{ transform: translate(1%,-1%); }
}

/* Bright Ambient spotlight glow cast in background center of hero */
.hero-light-cast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 950px;
  height: 950px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 35%, transparent 68%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* ── VIEWPORT OUTER SCREEN FRAME ───────────────────────────────────────── */
.frameScreen {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  pointer-events: none;
  z-index: 900;
}

.frame-line {
  position: absolute;
  background: var(--border);
}

.f-top { top: 0; left: 0; right: 0; height: 1px; }
.f-bottom { bottom: 0; left: 0; right: 0; height: 1px; }
.f-left { top: 0; bottom: 0; left: 0; width: 1px; }
.f-right { top: 0; bottom: 0; right: 0; width: 1px; }

/* Corner Crosshair Ticks */
.crosshair {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(255,255,255,0.25);
  [data-theme="light"] & { border-color: rgba(0, 0, 0, 0.25); }
  border-style: solid;
  z-index: 10;
  transition: all 0.3s var(--ease-out);
}

.crosshair.topleft { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.crosshair.topleft2 { top: 3px; left: 3px; border-width: 1px 0 0 1px; opacity: 0.4; }

.crosshair.topright { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.crosshair.topright2 { top: 3px; right: 3px; border-width: 1px 1px 0 0; opacity: 0.4; }

.crosshair.bottomleft { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.crosshair.bottomleft2 { bottom: 3px; left: 3px; border-width: 0 0 1px 1px; opacity: 0.4; }

.crosshair.bottomright { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.crosshair.bottomright2 { bottom: 3px; right: 3px; border-width: 0 1px 1px 0; opacity: 0.4; }

/* ── SIDEBAR SCROLL PROGRESS TRACKER ───────────────────────────────────── */
.sidebar-progress {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sidebar-progress-track {
  width: 1px;
  height: 120px;
  background: var(--border);
  position: relative;
}

.sidebar-progress-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transform-origin: top;
  transition: height 0.1s linear;
}

.sidebar-anchors {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-anchor {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  color: var(--n400);
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 1px;
  transition: var(--t-fast);
}

.sidebar-anchor.active {
  color: var(--white);
}

.sidebar-anchor:hover {
  color: var(--n100);
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 500;
  height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  [data-theme="light"] & { background: rgba(255,255,255,0.85); }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Border-free header logo image */
.logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--n300);
  text-transform: uppercase;
  padding: 8px 16px;
  letter-spacing: 0.5px;
  transition: var(--t-fast);
}

.nav-link:hover {
  color: var(--white);
}

/* Slide outlines for active menu elements */
.mainMenuHover {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  [data-theme="light"] & { border: 1px solid rgba(0, 0, 0, 0.15); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--n300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pulse {
  width: 4px; height: 4px;
  background: #ffffff;
  [data-theme="light"] & { background: #000000; }
  border-radius: 50%;
  animation: pulse-ring 1.8s ease infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}

.lang-toggle {
  border: 1px solid var(--border);
  color: var(--n300);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--t-fast);
}

.lang-toggle:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ── HERO (Centered & Orbiting Coins setup) ─────────────────────────────── */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Cinematic transform parameters for hero transition scroll */
.hero-center-content {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
  will-change: transform, filter, opacity;
  transition: transform 0.1s linear, filter 0.1s linear, opacity 0.1s linear;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Hero logo entrance animation */
@keyframes hero-logo-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes hero-desc-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-cta-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo-container { animation: hero-logo-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-title          { animation: hero-title-in 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-desc           { animation: hero-desc-in 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-ctas           { animation: hero-cta-in 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }


/* Border-free hero logo image */
.hero-center-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Aggressive Black/900 H1 — 64-128px range, "Wall Street terminal" energy */
.hero-title {
  font-size: 30pt;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 36px;
  color: var(--white);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 16px body, Regular, generous line-height — contrast with massive H1 */
.hero-desc {
  font-family: var(--font-display);
  font-size: 14pt;
  font-weight: 300;
  color: var(--n300);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 52px;
  letter-spacing: 0.01em;
  text-align: left;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Magnetic button — translate support for JS magnetic effect */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
  position: relative;
  border: 1px solid var(--border);
  background: transparent;
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 8px 32px rgba(255,255,255,0.06);
}

.btn-ghost {
  color: var(--n200);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.icon-inline {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

/* Button corner ticks outward hover slide */
.btn:hover .crosshair.topleft { transform: translate(-3px, -3px); }
.btn:hover .crosshair.topright { transform: translate(3px, -3px); }
.btn:hover .crosshair.bottomleft { transform: translate(-3px, 3px); }
.btn:hover .crosshair.bottomright { transform: translate(3px, 3px); }

/* ── PROFILE & BIO BRIEF (Second Section) ───────────────────────────────── */
#sec-profile {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}

.profile-inner {
  max-width: 860px;
  margin: 0 auto;
}

.profile-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n400);
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 28px;
  line-height: 1.8;
}

.profile-headline {
  font-size: 30pt;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.45); /* Dim gray for light text */
  margin-bottom: 28px;
}

.profile-headline strong {
  font-weight: 600;
  color: var(--white) !important; /* Bright white for bold keywords */
}

.inline-icon {
  display: inline-block;
  height: 24pt;
  width: auto;
  vertical-align: middle;
  margin: 0 4px;
}

.profile-description {
  font-size: 14pt;
  color: var(--n300);
  line-height: 1.7;
  margin-bottom: 36px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.section {
  padding: 140px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.section-header {
  margin-bottom: 80px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n300);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-heading {
  font-size: 30pt;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 600px;
}

/* ── MIXED SELECTED WORKS HEADER (Exactly matching print 3.png) ──────────── */
.section-header-custom {
  margin-bottom: 100px;
  text-align: center;
}

/* Regular/light-medium bold custom title matching Matveyan's size pattern */
.works-headline-custom {
  font-size: 30pt;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

/* Behance styled text / SVG */
.logo-behance-style {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
  transition: opacity 0.2s;
}
.logo-behance-style:hover {
  opacity: 0.8;
}

/* Dribbble styled text in pink script */
.logo-dribbble-style {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
  transition: opacity 0.2s;
}
.logo-dribbble-style:hover {
  opacity: 0.8;
}

.svg-logo-behance {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.svg-logo-dribbble {
  height: 22px;
  width: auto;
  vertical-align: middle;
}

/* Underline details custom copy */
.works-subtitle-custom {
  font-family: var(--font-display);
  font-size: 14pt;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.works-tags-custom {
  font-family: var(--font-mono);
  font-size: 8pt;
  color: var(--n400);
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 36px;
}

/* Corporate client logos layout ticker strip */
.clients-ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.ticker-client-logo {
  height: 24px;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.28;
  transition: opacity var(--t-fast), transform var(--t-fast);
  filter: brightness(0) invert(1); /* Forces logos to white */
}

.ticker-client-logo:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

.client-logo {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--n300);
  letter-spacing: 0.08em;
  opacity: 0.28;
  transition: opacity var(--t-fast), color var(--t-fast);
}

.client-logo:hover {
  opacity: 0.8;
  color: var(--white);
}

.client-logo-divider {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--n500);
  opacity: 0.2;
}

/* ── ALTERNATING VERTICAL CASES LIST ────────────────────────────────────── */
.caseList {
  display: flex;
  flex-direction: column;
  gap: 200px; /* Spaced vertical rows matching Matveyan */
}

.case {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

/* Alternate order */
.case:nth-child(even) {
  direction: rtl;
}

.case:nth-child(even) > * {
  direction: ltr;
}

/* Card image wrapper enclosing visual elements */
.c-glitch {
  position: relative;
  overflow: visible; /* Allows "+" ticks to overlap the boundaries slightly */
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.c-glitch:hover {
  border-color: var(--border-hover);
}

/* Display colorful normal images (no grayscale) */
.c-glitch__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: none; /* Colorful */
  transform: translate3d(0, 0, 0);
  transition: transform var(--t-smooth);
}

/* Keep original base visible, scale slightly on hover */
.c-glitch:hover .c-glitch__img:nth-child(1) {
  transform: scale(1.02);
}

/* Hide other glitch layers unless hovered */
.c-glitch__img:nth-child(n+2) {
  opacity: 0;
  mix-blend-mode: screen;
}

/* Dynamic VHS Glitch effects (on card hover) with chromatic filters and clip-path keyframes */
.c-glitch:hover .c-glitch__img:nth-child(2) {
  opacity: 0.45;
  filter: hue-rotate(0deg) saturate(2.5);
  animation: glitch-anim-1 1.2s infinite linear alternate-reverse;
}

.c-glitch:hover .c-glitch__img:nth-child(3) {
  opacity: 0.45;
  filter: hue-rotate(180deg) saturate(2.5);
  animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

.c-glitch:hover .c-glitch__img:nth-child(4) {
  opacity: 0.35;
  filter: hue-rotate(90deg) saturate(2.5);
  animation: glitch-anim-3 1.8s infinite linear alternate-reverse;
}

.c-glitch:hover .c-glitch__img:nth-child(5) {
  opacity: 0.5;
  filter: contrast(1.5) brightness(1.1);
  animation: glitch-anim-4 2.2s infinite linear alternate-reverse;
}

/* Image corners "+" border crosshair ticks style (matching print 4.png) */
.c-plus {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  pointer-events: none;
  z-index: 15;
}

.c-plus.topleft { top: -8px; left: -5px; }
.c-plus.topright { top: -8px; right: -5px; }
.c-plus.bottomleft { bottom: -9px; left: -5px; }
.c-plus.bottomright { bottom: -9px; right: -5px; }

/* Case Information Details Panel */
.caseInfo {
  padding: 20px 0;
}

.caseIndex {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n400);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

/* Glassmorphism Category pill (matching print 4.png tags) */
.caseCategory {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--n100);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.caseTitle {
  font-size: 14pt;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--white);
}

/* Technical Details Specs Grid */
.caseSpecTable {
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.caseSpecRow {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.caseSpecRow:last-child {
  border-bottom: none;
}

.caseSpecLabel {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--n400);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.caseSpecValue {
  font-size: 13px;
  color: var(--n300);
  line-height: 1.5;
}

.caseActions {
  display: flex;
  gap: 12px;
}

/* ── DEDICATED SHOWREEL CARD ────────────────────────────────────────────── */
.showreel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  position: relative;
  transition: border-color var(--t-smooth);
}

.showreel-card:hover {
  border-color: var(--border-hover);
}

.showreel-media {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  background: #000;
}

.showreel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none; /* Colorful */
  opacity: 0.85;
  transition: transform var(--t-slow);
}

.showreel-card:hover .showreel-media img {
  transform: scale(1.02);
}

.showreel-info {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.showreel-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n300);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.showreel-title {
  font-size: 30pt;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
}

.showreel-desc {
  font-size: 14pt;
  color: var(--n300);
  line-height: 1.65;
}

.showreel-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showreel-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--n200);
}

.showreel-feat-bullet {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── DIGITAL GRID SHOWCASE ──────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: border-color var(--t-smooth);
}

.project-card:hover {
  border-color: var(--border-hover);
}

.project-card-thumb {
  height: 220px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none; /* Colorful */
  opacity: 1;
  transition: transform var(--t-slow);
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.03);
}

.project-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.project-card:hover .project-card-thumb-overlay {
  opacity: 1;
}

.project-card-actions {
  display: flex;
  gap: 12px;
}

.project-card-action-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 8px 16px;
  background: transparent;
  transition: var(--t-fast);
  cursor: pointer;
}

.project-card-action-btn:hover {
  background: var(--white);
  color: var(--bg);
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Glassmorphism Grid tag category pill */
.project-card-category {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--n100);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
}

.project-card-desc {
  font-size: 13px;
  color: var(--n300);
  line-height: 1.5;
}

/* ── BIOGRAPHY / THREE-COLUMN LAST GRID (Exactly copying Matveyan) ──────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: transform 0.1s linear; /* Smooth hardware transforms for parallax */
  will-change: transform;
}

.info-col-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.info-col-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n400);
  font-weight: 700;
}

.info-col-title {
  font-family: var(--font-display);
  font-size: 14pt;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 300;
}

/* Timeline experience rules */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--n400);
}

.timeline-role {
  font-size: 14pt;
  font-weight: 600;
  color: var(--n200);
}

.timeline-location {
  font-size: 11pt;
  color: var(--n400);
  margin-top: -4px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.timeline-bullets li {
  font-size: 14pt;
  color: var(--n300);
  line-height: 1.55;
  position: relative;
  padding-left: 14px;
}

.timeline-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--n400);
}

/* ELEGANT SKILLS PRESENTATION LIST (Matching print 6.png) ──────────────── */
.skills-elegant-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.skill-elegant-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.skill-elegant-item:last-child {
  border-bottom: none;
}

.skill-elegant-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.skill-elegant-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.skill-elegant-index {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--n400);
}

.skill-elegant-desc {
  font-size: 12.5px;
  color: var(--n300);
  line-height: 1.5;
}

/* Automation spotlight */
.automation-spotlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.spotlight-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--n400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.spotlight-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
}

.spotlight-desc {
  font-size: 12px;
  color: var(--n300);
  line-height: 1.6;
}

/* Column 3: Education & Languages panels */
.edu-languages-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edu-item, .lang-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-degree, .lang-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.edu-meta, .lang-level {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--n400);
  text-transform: uppercase;
  font-weight: 700;
}

.edu-desc, .lang-desc {
  font-size: 12px;
  color: var(--n300);
  line-height: 1.5;
}

/* Resume and Download panels */
.contact-download-panel {
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
}

.panel-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n300);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.resume-download-btn, .email-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all var(--t-fast);
}

.resume-download-btn:hover, .email-copy-btn:hover {
  border-color: var(--white);
}

.icon-copy {
  width: 11px;
  height: 11px;
}

.email-copied-toast-msg {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* ── GIGANTIC bottom text logo OKONAM ────────────────────────────────────── */
.huge-name-container {
  width: 100%;
  overflow: hidden;
  margin-top: 100px;
  user-select: none;
  pointer-events: none;
}

.huge-name {
  font-size: clamp(6rem, 18vw, 20rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.05em;
  line-height: 0.8;
  opacity: 0.85;
  mask-image: linear-gradient(to bottom, white 35%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, white 35%, transparent 95%);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--n300);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-credit {
  font-size: 11px;
  color: var(--n400);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n300);
  text-transform: uppercase;
  transition: color var(--t-fast);
}

.footer-link:hover { color: var(--white); }

/* ── HUD COORDINATES DEBUG PANEL (Exact Matveyan Clone) ───────────────── */
.footNumbers {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--n400);
  pointer-events: none;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hud-item {
  display: flex;
  gap: 4px;
}

.hud-label {
  color: var(--n500);
}

/* ── PRICE TICKER BAR ─────────────────────────────────────────────────── */
.ticker-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--n400);
  font-weight: 700;
  pointer-events: none;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.ticker-divider {
  color: var(--n500);
}

/* ── INTERACTIVE DETAILS MODAL ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 16px 0;
  background: var(--bg-card);
  z-index: 10;
}

.modal-close-btn {
  border: 1px solid var(--border);
  color: var(--n300);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: var(--t-fast);
}

.modal-close-btn:hover { border-color: var(--white); color: var(--white); }

.modal-body {
  padding: 8px 32px 32px;
  position: relative;
}

.modal-category {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--n400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.modal-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--n400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.modal-text {
  font-size: 13px;
  color: var(--n300);
  line-height: 1.6;
}

.modal-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── INTERACTIVE TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--white);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2500;
}

.toast-icon {
  font-size: 10px;
  color: var(--white);
}

/* ── SLIDE IN UP LAZY REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL DOWN INDICATOR & PROFILE BADGE ────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8pt;
  color: var(--n300);
  letter-spacing: 1.5px;
  z-index: 15;
  pointer-events: none;
  animation: bounce 2s infinite;
}

.mouse-icon {
  width: 14px;
  height: 22px;
  stroke: var(--n300);
  stroke-width: 2.2;
}

.wheel-line {
  animation: scroll-wheel 1.6s infinite;
  transform-origin: center;
}

.hero-profile-badge {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 10pt;
  font-weight: 300;
  color: var(--n200);
  max-width: 240px;
  text-align: left;
}

.hero-profile-badge span {
  flex: 1;
  line-height: 1.4;
}

.hp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

@keyframes scroll-wheel {
  0% { opacity: 0; transform: translateY(-2px); }
  20% { opacity: 1; }
  60% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 0; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -6px); }
  60% { transform: translate(-50%, -3px); }
}

/* ── RESPONSIVE OVERRIDES ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { padding-top: 60px; min-height: auto; }
  .case { grid-template-columns: 1fr; gap: 32px; }
  .case:nth-child(even) { direction: ltr; }
  .showreel-card { grid-template-columns: 1fr; }
  .showreel-media { min-height: 320px; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .sidebar-progress { display: none; }
  .scroll-indicator, .hero-profile-badge { display: none !important; }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .header-actions { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footNumbers { bottom: 10px; left: 10px; }
  .ticker-bar { bottom: 10px; right: 10px; }
  .logo-behance-style, .logo-dribbble-style { display: block; margin-left: 0; margin-top: 8px; }
}

/* ── VHS GLITCH EFFECT KEYFRAMES ────────────────────────────────────────── */
@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(40% 0 61% 0);
    transform: translate3d(-1px, 0, 0) scale(1.01);
  }
  10% {
    clip-path: inset(92% 0 1% 0);
    transform: translate3d(1px, 1px, 0) scale(1.01);
  }
  20% {
    clip-path: inset(25% 0 58% 0);
    transform: translate3d(-1px, -1px, 0) scale(1.01);
  }
  30% {
    clip-path: inset(75% 0 15% 0);
    transform: translate3d(1px, 0, 0) scale(1.01);
  }
  40% {
    clip-path: inset(3% 0 92% 0);
    transform: translate3d(0, 1px, 0) scale(1.01);
  }
  50% {
    clip-path: inset(62% 0 18% 0);
    transform: translate3d(1px, 0, 0) scale(1.01);
  }
  60% {
    clip-path: inset(18% 0 72% 0);
    transform: translate3d(-1px, 1px, 0) scale(1.01);
  }
  70% {
    clip-path: inset(85% 0 5% 0);
    transform: translate3d(0, -1px, 0) scale(1.01);
  }
  80% {
    clip-path: inset(45% 0 45% 0);
    transform: translate3d(-1px, 0, 0) scale(1.01);
  }
  90% {
    clip-path: inset(10% 0 82% 0);
    transform: translate3d(1px, -1px, 0) scale(1.01);
  }
  100% {
    clip-path: inset(55% 0 25% 0);
    transform: translate3d(0, 1px, 0) scale(1.01);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(25% 0 58% 0);
    transform: translate3d(1px, 0, 0) scale(1.01);
  }
  11% {
    clip-path: inset(3% 0 92% 0);
    transform: translate3d(0, 1px, 0) scale(1.01);
  }
  22% {
    clip-path: inset(62% 0 18% 0);
    transform: translate3d(1px, 0, 0) scale(1.01);
  }
  33% {
    clip-path: inset(18% 0 72% 0);
    transform: translate3d(-1px, 1px, 0) scale(1.01);
  }
  44% {
    clip-path: inset(85% 0 5% 0);
    transform: translate3d(0, -1px, 0) scale(1.01);
  }
  55% {
    clip-path: inset(45% 0 45% 0);
    transform: translate3d(-1px, 0, 0) scale(1.01);
  }
  66% {
    clip-path: inset(10% 0 82% 0);
    transform: translate3d(1px, -1px, 0) scale(1.01);
  }
  77% {
    clip-path: inset(55% 0 25% 0);
    transform: translate3d(0, 1px, 0) scale(1.01);
  }
  88% {
    clip-path: inset(92% 0 1% 0);
    transform: translate3d(1px, 1px, 0) scale(1.01);
  }
  100% {
    clip-path: inset(40% 0 61% 0);
    transform: translate3d(-1px, 0, 0) scale(1.01);
  }
}

@keyframes glitch-anim-3 {
  0% {
    clip-path: inset(3% 0 92% 0);
    transform: translate3d(1px, 0, 0) scale(1.01);
  }
  15% {
    clip-path: inset(62% 0 18% 0);
    transform: translate3d(-1px, 1px, 0) scale(1.01);
  }
  30% {
    clip-path: inset(18% 0 72% 0);
    transform: translate3d(0, -1px, 0) scale(1.01);
  }
  45% {
    clip-path: inset(85% 0 5% 0);
    transform: translate3d(-1px, 0, 0) scale(1.01);
  }
  60% {
    clip-path: inset(45% 0 45% 0);
    transform: translate3d(1px, -1px, 0) scale(1.01);
  }
  75% {
    clip-path: inset(10% 0 82% 0);
    transform: translate3d(0, 1px, 0) scale(1.01);
  }
  90% {
    clip-path: inset(55% 0 25% 0);
    transform: translate3d(1px, 1px, 0) scale(1.01);
  }
  100% {
    clip-path: inset(25% 0 58% 0);
    transform: translate3d(-1px, -1px, 0) scale(1.01);
  }
}

@keyframes glitch-anim-4 {
  0% {
    clip-path: inset(85% 0 5% 0);
    transform: translate3d(-1px, 0, 0) scale(1.01);
  }
  20% {
    clip-path: inset(45% 0 45% 0);
    transform: translate3d(1px, -1px, 0) scale(1.01);
  }
  40% {
    clip-path: inset(10% 0 82% 0);
    transform: translate3d(0, 1px, 0) scale(1.01);
  }
  60% {
    clip-path: inset(55% 0 25% 0);
    transform: translate3d(1px, 1px, 0) scale(1.01);
  }
  80% {
    clip-path: inset(25% 0 58% 0);
    transform: translate3d(-1px, -1px, 0) scale(1.01);
  }
  100% {
    clip-path: inset(3% 0 92% 0);
    transform: translate3d(1px, 0, 0) scale(1.01);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE OVERRIDES — adicionado via cyclical-modular-coding
   REGRA ABSOLUTA: Nunca editar acima desta linha. Apenas adicionar aqui.
   ══════════════════════════════════════════════════════════════════════════ */

/* Hamburger oculto globalmente em desktop — sobrescrito pelo @media abaixo */
.hamburger { display: none; }
@media (max-width: 480px) {

  /* M6: Decorativos */
  .frameScreen          { display: none; }
  .page-wrapper         { padding: 0; }
  .hero-light-cast      { display: none; }
  .footNumbers          { display: none; }
  .ticker-bar           { display: none; }
  .scroll-indicator,
  .hero-profile-badge   { display: none !important; }

  /* Header mobile: logo | hamburger | lang-toggle (status-badge oculto) */
  .header-inner   { justify-content: flex-start; }
  .hamburger      { margin-left: auto; }
  .header-actions { display: flex; gap: 6px; margin-left: 8px; }
  .status-badge   { display: none; }  /* Escondido — aparece no menu aberto */
  .lang-toggle    { font-size: 9px; padding: 6px 10px; letter-spacing: 0; }

  /* M1: Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: 1px solid var(--border);
    background: none;
    flex-shrink: 0;
    transition: border-color var(--t-fast);
  }
  .hamburger:hover { border-color: var(--border-hover); }
  .hamburger span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--white);
    transition: var(--t-fast);
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* M1: Nav mobile */
  .nav-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    z-index: 600;
  }
  .nav-menu.open       { display: flex; }
  .nav-link            { padding: 14px 16px; font-size: 12px; border-bottom: 1px solid var(--border); }
  .nav-link:last-child { border-bottom: none; }
  .mainMenuHover       { display: none; }

  /* M2: Tipografia Global */
  .container { padding: 0 20px; }
  h1, h2 { font-size: clamp(22px, 7vw, 32px); line-height: 1.3; }
  h3 { font-size: 14px; }
  body { font-size: 13px; }

  /* M2: Hero */
  .hero           { padding-top: 48px; padding-bottom: 48px; }
  .hero-title     { font-size: clamp(22px, 7vw, 32px); margin-bottom: 20px; }
  .hero-desc      { font-size: 14px; margin-bottom: 32px; text-align: center; }
  .hero-ctas      { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn            { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-logo-container { margin-bottom: 24px; }

  /* M2: Profile */
  #sec-profile          { padding: 60px 0; }
  .profile-headline     { font-size: clamp(20px, 6vw, 28px); line-height: 1.4; }
  .profile-description  { font-size: 14px; }
  .profile-actions      { flex-direction: column; gap: 10px; }

  /* M2: Sections */
  .section          { padding: 60px 0; }
  .section-header   { margin-bottom: 40px; }
  .section-heading  { font-size: clamp(20px, 6vw, 28px); }

  /* M3: Cases */
  .caseList     { gap: 64px; }
  .caseTitle    { font-size: 15px; }
  .caseSpecRow  { grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; }
  .caseSpecLabel  { margin-bottom: 2px; font-size: 8px; }
  .caseSpecValue  { font-size: 12px; }
  .caseActions    { flex-direction: column; gap: 8px; }
  .caseActions .btn { width: 100%; }
  /* Selected Cases heading — flex para manter logos na mesma linha centralizada */
  .works-headline-custom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: clamp(18px, 5.5vw, 26px);
  }
  .logo-behance-style,
  .logo-dribbble-style  { margin-left: 0; display: inline-flex; }
  .client-logo-divider  { flex-shrink: 0; }

  /* Logos de clientes: 75% do tamanho original (24px -> 18px) */
  .clients-ticker       { gap: 16px; }
  .ticker-client-logo   { height: 18px; max-width: 80px; }

  .section-header-custom { margin-bottom: 48px; }

  /* M4: Showreel */
  .showreel-info    { padding: 28px 20px; gap: 16px; }
  .showreel-title   { font-size: clamp(20px, 6vw, 26px); }
  .showreel-desc    { font-size: 14px; line-height: 1.6; }
  .showreel-media   { min-height: 220px; }

  /* M5: Info Grid */
  .info-grid            { gap: 32px; }
  .info-column          { transform: none !important; }  /* Desativa parallax JS em mobile */
  .timeline-meta        { flex-direction: column; align-items: flex-start; gap: 2px; }
  .timeline-role        { font-size: 14px; }
  .timeline-location    { font-size: 12px; }
  .timeline-bullets li  { font-size: 13px; }
  .timeline             { gap: 28px; }
  .automation-spotlight { padding: 18px; }
  .contact-download-panel { padding: 20px; }

  /* M5: Huge Name — margin reduzido para não distanciar da última seção */
  .huge-name-container  { margin-top: 40px; }
  .huge-name            { font-size: clamp(3.5rem, 18vw, 7rem); }

  /* M2: Footer */
  .footer-inner   { gap: 10px; }
  .footer-credit  { font-size: 10px; text-align: center; }
  .footer-links   { justify-content: center; }

}
/* FIM DOS MOBILE OVERRIDES */
