/* ============================================
   PAVELKA DESIGN — Editorial Brutalist CSS
   2026 Awwwards-inspired design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&family=Space+Mono:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg: #FFFFFF;
  --bg-dark: #0A0A0A;
  --text: #0A0A0A;
  --text-light: #F0EBE3;
  --accent: #E8321A;
  --accent-2: #FFD600;
  --border: #0A0A0A;
  --border-light: rgba(10,10,10,0.12);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-mono: 'Space Mono', monospace;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}
/* Ambient colour wash on white — gives the frosted glass something to refract */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50vw 40vw at 85% -6%, rgba(232,50,26,0.13), transparent 60%),
    radial-gradient(48vw 44vw at -10% 106%, rgba(255,214,0,0.12), transparent 60%),
    radial-gradient(46vw 46vw at 18% 30%, rgba(120,90,255,0.07), transparent 65%),
    radial-gradient(40vw 40vw at 70% 75%, rgba(232,50,26,0.06), transparent 65%);
}
/* Fine grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-sans); cursor: none; }
ul { list-style: none; }

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s;
}
.cursor.hover { width: 8px; height: 8px; background: var(--accent); }
.cursor-follower.hover { width: 56px; height: 56px; border-color: var(--accent); }
.cursor.text-hover { width: 80px; height: 80px; background: var(--accent); mix-blend-mode: multiply; opacity: 0.15; }

/* ---- Page Loader ---- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
.loader-logo {
  font-family: var(--font-sans);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.04em;
  overflow: hidden;
}
.loader-logo span { display: block; transform: translateY(100%); }
.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 1s ease;
}
.loader-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

/* ---- Navigation ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  mix-blend-mode: normal;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.65);
  border-bottom-color: var(--border-light);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 101;
}
.nav-logo em {
  font-style: normal;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition-fast);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-cta:hover { background: var(--text); color: var(--text-light); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  padding: 4px 0;
  position: relative;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.nav-hamburger span:nth-child(2) { width: 75%; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(20px, 6vw, 80px);
  transform: translateX(100%);
  transition: transform var(--transition);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-light);
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.nav-mobile a:hover { color: var(--accent); padding-left: 16px; }
.nav-mobile-bottom {
  margin-top: auto;
  display: flex;
  gap: 24px;
}
.nav-mobile-bottom a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
}

/* ---- Marquee ---- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-dark);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  padding: 0 40px;
}
.marquee-track span.dot {
  color: var(--accent);
  padding: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Hero Section ---- */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--border);
}
.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: end;
  padding: clamp(40px, 8vw, 120px) clamp(20px, 4vw, 60px) clamp(40px, 6vw, 80px);
  border-bottom: 1.5px solid var(--border);
}
.hero-text-block { grid-column: 1 / -1; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.45);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.hero-h1 {
  font-family: var(--font-sans);
  font-size: clamp(56px, 10vw, 168px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line-inner { display: block; transform: translateY(110%); }
.hero-h1 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 0.9em;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  margin-top: clamp(40px, 6vw, 80px);
}
.hero-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(10,10,10,0.6);
  max-width: 380px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--text-light);
  padding: 18px 36px;
  border: 1.5px solid var(--text);
  position: relative;
  overflow: hidden;
  transition: color var(--transition-fast);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
  z-index: 0;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { color: var(--text-light); border-color: var(--accent); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.btn-secondary:hover { color: var(--text); border-color: var(--text); }
.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2vw, 24px) clamp(20px, 4vw, 60px);
}
.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--text);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scroll-anim 2s ease infinite;
}
@keyframes scroll-anim {
  0% { left: -100%; }
  100% { left: 100%; }
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.4);
}

/* Hero image block (right side) */
.hero-visual {
  position: absolute;
  right: 0; top: var(--nav-h);
  width: 42%;
  height: calc(100vh - var(--nav-h) - 56px);
  overflow: hidden;
  border-left: 1.5px solid var(--border);
  display: none; /* shown via media query */
}
.hero-visual-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  position: relative;
}
.hero-visual-label {
  position: absolute;
  bottom: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.hero-visual-number {
  position: absolute;
  top: 24px; left: 24px;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}
.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-visual-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border: 1px solid rgba(232, 50, 26, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}
.hero-visual-circle::after {
  content: '';
  position: absolute;
  top: 20px; right: -4px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---- Stats Bar ---- */
#stats {
  border-bottom: 1.5px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 60px);
  border-right: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.42);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  transition: background var(--transition-fast);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-dark); }
.stat-item:hover .stat-number,
.stat-item:hover .stat-label,
.stat-item:hover .stat-desc { color: var(--text-light); }
.stat-number {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  transition: color var(--transition-fast);
}
.stat-number sup {
  font-size: 0.45em;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
  color: var(--accent);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.4);
  margin-top: 6px;
  transition: color var(--transition-fast);
}
.stat-desc {
  font-size: 13px;
  color: rgba(10,10,10,0.4);
  margin-top: 8px;
  transition: color var(--transition-fast);
  display: none;
}

/* ---- Section Globals ---- */
.section-header {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px) clamp(24px, 3vw, 48px);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.section-title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.9em;
}
.section-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: 8px;
  transition: gap var(--transition-fast);
}
.section-link:hover { gap: 16px; color: var(--accent); }

/* ---- Services Section ---- */
#services {
  border-bottom: 1.5px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-item {
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  position: relative;
  perspective: 1600px;
  min-height: clamp(300px, 24vw, 360px);
}
.service-item:nth-child(3n) { border-right: none; }
.service-item:nth-child(n+4) { border-bottom: none; }

/* flip card */
.service-card {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item.flipped .service-card { transform: rotateY(180deg); }
.service-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.service-front {
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  transition: background var(--transition-fast);
}
.service-back {
  transform: rotateY(180deg);
  background: var(--text); color: var(--text-light);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(10,10,10,0.3);
  margin-bottom: 22px;
  transition: color var(--transition-fast);
}
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  position: relative;
}
.service-icon svg { stroke-width: 1.5; transition: stroke var(--transition-fast); }
.service-name {
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  transition: color var(--transition-fast);
}
.service-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(10,10,10,0.55);
  max-width: 36ch;
}
/* front hover = dark invert */
.service-front:hover { background: var(--text); }
.service-front:hover .service-num { color: rgba(255,255,255,0.3); }
.service-front:hover .service-icon svg { stroke: var(--text-light); }
.service-front:hover .service-name { color: var(--text-light); }
.service-front:hover .service-desc { color: rgba(255,255,255,0.6); }

/* back face content */
.service-back .service-num { color: rgba(255,255,255,0.4); }
.service-back .service-name { color: var(--text-light); }
.service-detail { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.service-detail li {
  font-size: 13.5px; line-height: 1.5; color: rgba(240,235,227,0.74);
  padding-left: 20px; position: relative;
}
.service-detail li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg);
}

/* flip button (was .service-arrow) */
.service-arrow {
  position: absolute;
  bottom: 26px; right: 26px;
  width: 38px; height: 38px;
  border: 1px solid var(--border-light);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.service-arrow svg { stroke: currentColor; transition: stroke var(--transition-fast); }
.service-front .service-arrow:hover,
.service-front:hover .service-arrow { background: var(--accent); border-color: var(--accent); }
.service-front:hover .service-arrow svg, .service-front .service-arrow:hover svg { stroke: #fff; }
.service-back .service-arrow { border-color: rgba(255,255,255,0.3); color: var(--text-light); }
.service-back .service-arrow:hover { background: var(--accent); border-color: var(--accent); }

/* ---- Portfolio Section ---- */
#portfolio {
  border-bottom: 1.5px solid var(--border);
}
.portfolio-filters {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.portfolio-filters::-webkit-scrollbar { display: none; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: none;
  border: none;
  border-right: 1px solid var(--border-light);
  color: rgba(10,10,10,0.4);
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.filter-btn:last-child { border-right: none; }
.filter-btn.active { background: var(--text); color: var(--text-light); }
.filter-btn:hover:not(.active) { background: rgba(10,10,10,0.04); color: var(--text); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  cursor: none;
}
/* Grid layout: 2-col then 3-col alternating */
.portfolio-item:nth-child(1) { grid-column: span 7; min-height: clamp(280px, 40vw, 520px); }
.portfolio-item:nth-child(2) { grid-column: span 5; min-height: clamp(280px, 40vw, 520px); border-right: none; }
.portfolio-item:nth-child(3),
.portfolio-item:nth-child(4),
.portfolio-item:nth-child(5) { grid-column: span 4; min-height: clamp(240px, 28vw, 380px); }
.portfolio-item:nth-child(5) { border-right: none; }
.portfolio-item:nth-child(6),
.portfolio-item:nth-child(7),
.portfolio-item:nth-child(8) { grid-column: span 4; min-height: clamp(240px, 28vw, 380px); border-bottom: none; }
.portfolio-item:nth-child(8) { border-right: none; }
.portfolio-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-item:hover .portfolio-bg { transform: scale(1.08); transition-duration: 1.1s; }
.portfolio-bg-1 { background: linear-gradient(135deg, #1e1e2e 0%, #16213e 100%); }
.portfolio-bg-2 { background: linear-gradient(135deg, #2d1515 0%, #1a0a0a 100%); }
.portfolio-bg-3 { background: linear-gradient(135deg, #0d2318 0%, #071a10 100%); }
.portfolio-bg-4 { background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%); }
.portfolio-bg-5 { background: linear-gradient(135deg, #1e0a0a 0%, #2d1515 100%); }
.portfolio-bg-6 { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 40px);
}
.portfolio-item:hover .portfolio-overlay { background: rgba(0,0,0,0.3); }
.portfolio-meta {
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.portfolio-item:hover .portfolio-meta { transform: translateY(0); opacity: 1; }
.portfolio-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.portfolio-title {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1.15;
}
.portfolio-num {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
}
.portfolio-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition), background var(--transition-fast);
}
.portfolio-item:hover .portfolio-arrow { transform: scale(1); }
.portfolio-arrow:hover { background: var(--accent); border-color: var(--accent); }
.portfolio-arrow svg { stroke: white; }

/* whole-tile clickable link */
.portfolio-link { position: absolute; inset: 0; z-index: 6; }
.portfolio-arrow { pointer-events: none; }

/* Decorative shapes on portfolio items */
.portfolio-shape {
  position: absolute;
  pointer-events: none;
}
.portfolio-shape.circle {
  width: 120px; height: 120px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.portfolio-shape.line {
  width: 1px;
  background: rgba(255,255,255,0.06);
  top: 0; bottom: 0;
  left: 50%;
}

/* ---- About Section ---- */
#about {
  border-bottom: 1.5px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-left {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-right {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-big-text {
  font-size: clamp(24px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.about-big-text em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--accent);
}
.about-body {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: rgba(10,10,10,0.6);
}
.about-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}
.about-visual-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #111 0%, #1e1e1e 100%);
}
.about-visual-text {
  position: absolute;
  bottom: 28px; left: 28px;
  right: 28px;
}
.about-visual-name {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1.05;
}
.about-visual-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.about-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-visual-cross {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.05);
}
.about-visual-cross::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 1px;
  background: rgba(255,255,255,0.05);
}
.about-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.skill-chip {
  padding: 14px 18px;
  background: rgba(255,255,255,0.4);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
          backdrop-filter: blur(10px) saturate(140%);
  font-size: 13px;
  font-weight: 500;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.skill-chip:hover { background: var(--text); color: var(--text-light); }
.skill-chip:nth-child(2n) { border-right: none; }
.skill-chip:last-child, .skill-chip:nth-last-child(2) { border-bottom: none; }
.about-awards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
}
.award-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  transition: background var(--transition-fast);
}
.award-item:last-child { border-bottom: none; }
.award-item:hover { background: rgba(10,10,10,0.03); }
.award-name { font-weight: 600; }
.award-year { font-family: var(--font-mono); font-size: 11px; color: rgba(10,10,10,0.35); }

/* ---- Process Section ---- */
#process {
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-dark);
}
#process .section-header { border-bottom-color: rgba(255,255,255,0.08); }
#process .section-tag { color: var(--accent); }
#process .section-title { color: var(--text-light); }
#process .section-link { color: var(--text-light); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.process-step {
  padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.process-step:nth-child(4n) { border-right: none; }
.process-step-num {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  margin-bottom: -16px;
}
.process-step-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 14px;
}
.process-step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}
.process-step-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-step.in-view .process-step-line { width: 100%; }

/* ---- Contact Section ---- */
#contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--border);
}
.contact-left {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact-right {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
}
.contact-big-email {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color var(--transition-fast), gap var(--transition-fast);
}
.contact-big-email:hover { color: var(--accent); gap: 20px; }
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.35);
}
.contact-info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1.5px solid var(--border-light);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.social-link:hover { background: var(--text); border-color: var(--text); color: var(--text-light); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.half-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.4);
}
.form-input, .form-textarea, .form-select {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
          backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(10,10,10,0.10);
  border-radius: 14px;
  padding: 15px 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 22px rgba(10,10,10,0.05);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(10,10,10,0.30); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 0 0 3px rgba(232,50,26,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  appearance: none;
  cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230A0A0A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--text-light);
  padding: 18px 32px;
  border: none;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-fast);
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
  z-index: 0;
}
.form-submit:hover::before { transform: scaleX(1); }
.form-submit span { position: relative; z-index: 1; }
.form-submit svg { position: relative; z-index: 1; transition: transform var(--transition-fast); }
.form-submit:hover svg { transform: translateX(6px); }

/* ---- Footer ---- */
footer {
  border-top: 1.5px solid var(--border);
  padding: 0 clamp(20px, 4vw, 60px);
  background: var(--bg);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-logo em { color: var(--accent); font-style: normal; }
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.45);
  transition: color var(--transition-fast);
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(10,10,10,0.3);
}
.footer-made {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(10,10,10,0.3);
}
.footer-made a { color: var(--accent); }

/* ---- Scroll Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (min-width: 1100px) {
  .hero-main { grid-template-columns: 58% 42%; }
  .hero-text-block { grid-column: 1; }
  .hero-visual { display: block; }
  .stat-desc { display: block; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(3n) { border-right: 1.5px solid var(--border); }
  .service-item:nth-child(2n) { border-right: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2n) { border-right: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  #stats { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1.5px solid var(--border); border-top: 1.5px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1.5px solid var(--border); }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; }
  .portfolio-item { grid-column: span 6 !important; min-height: clamp(220px, 42vw, 320px) !important; }
  .portfolio-item:nth-child(odd) { border-right: 1.5px solid var(--border); }
  .portfolio-item:nth-child(even) { border-right: none; }
  .portfolio-item:nth-child(7), .portfolio-item:nth-child(8) { border-bottom: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-left { border-right: none; border-bottom: 1.5px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1.5px solid var(--border); }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .form-group.half-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-skills-grid { grid-template-columns: 1fr; }
  .skill-chip { border-right: none !important; }
  .portfolio-item { grid-column: span 12 !important; border-right: none !important; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; }
  #stats { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-top: none !important; }
}

/* ============================================
   ADD-ON: Hero face reveal, portfolio images,
   Alysum links
   ============================================ */

/* ---- External / Alysum links ---- */
.nav-ext { color: var(--accent); }
.footer-alysum {
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.footer-alysum:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Portfolio real images ---- */
.portfolio-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* subtle bottom shade so titles stay legible on hover */
.portfolio-overlay::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.portfolio-item:hover .portfolio-overlay::after { opacity: 1; }

/* ---- Hero face reveal effect ---- */
@property --r {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}
/* Hero visual uses the same page background as the rest of the site */
.hero-glass-bg { display: none; }
.glass-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  will-change: transform;
}
.blob-a { width: 46%; padding-bottom: 46%; left: -8%; top: 6%;
  background: radial-gradient(circle at 50% 50%, rgba(232,50,26,0.85), rgba(232,50,26,0));
  animation: blobDrift 17s ease-in-out infinite; }
.blob-b { width: 52%; padding-bottom: 52%; right: -12%; bottom: -6%;
  background: radial-gradient(circle at 50% 50%, rgba(255,214,0,0.7), rgba(255,214,0,0));
  animation: blobDrift 21s ease-in-out infinite reverse; }
.blob-c { width: 40%; padding-bottom: 40%; left: 30%; top: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(10,10,10,0.5), rgba(10,10,10,0));
  animation: blobDrift2 25s ease-in-out infinite; }
@keyframes blobDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(18%, 12%) scale(1.12); }
  66% { transform: translate(-10%, 20%) scale(0.94); }
}
@keyframes blobDrift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-16%, -14%) scale(1.15); }
}

.hero-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
  cursor: none;
  --mx: 50%;
  --my: 40%;
  --r: 0px;
}
.hero-face { background: transparent; }
.hero-face-zoom {
  position: absolute;
  inset: 0;
  transform-origin: center 32%;
  animation: heroZoom 15s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.055); }
}
.hero-face img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center 100%;
  filter: drop-shadow(0 24px 40px rgba(10,10,10,0.22));
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-face-reveal {
  -webkit-mask: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 60%, rgba(0,0,0,0) 100%);
          mask: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 60%, rgba(0,0,0,0) 100%);
  will-change: mask;
}
.hero-face.active { --r: 170px; }
@keyframes scanGlitch {
  0%, 92% { transform: translateX(0); filter: none; }
  94% { transform: translateX(1.5px); filter: hue-rotate(-12deg) saturate(1.4); }
  97% { transform: translateX(-1.5px); filter: hue-rotate(10deg); }
  100% { transform: translateX(0); filter: none; }
}
.hero-visual-label .lbl-robot { display: none; color: #E8321A; letter-spacing: 0.14em; }
.hero-face.active .hero-visual-label .lbl-human { display: none; }
.hero-face.active .hero-visual-label .lbl-robot { display: inline; }
.hero-face.active .hero-visual-label { background: rgba(12,12,12,0.75); border: 1px solid rgba(232,50,26,0.4); color: #fff; }

/* Accent ring tracking the cursor */
.hero-face-ring {
  position: absolute;
  left: var(--mx); top: var(--my);
  width: 330px; height: 330px;
  margin: -165px 0 0 -165px;
  border: 1px solid rgba(232, 50, 26, 0.55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-face.active .hero-face-ring { opacity: 1; transform: scale(1); }

/* Decorative bits recoloured for the light photo */
.hero-face .hero-visual-grid {
  background-image:
    linear-gradient(rgba(10,10,10,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.045) 1px, transparent 1px);
  mix-blend-mode: multiply;
}
.hero-face .hero-visual-number { color: rgba(10,10,10,0.10); }
.hero-face .hero-visual-label {
  color: rgba(10,10,10,0.6);
  background: rgba(255,255,255,0.6);
  padding: 5px 9px;
  backdrop-filter: blur(4px);
}
.hero-face-hint {
  position: absolute;
  left: 24px; bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.65);
  padding: 7px 12px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(5px);
  animation: hintFloat 2.4s ease-in-out infinite;
  transition: opacity 0.3s;
}
.hero-face.active .hero-face-hint { opacity: 0; }
@keyframes hintFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Show the portrait on tablet / mobile too (static block under the text) */
@media (max-width: 1099px) {
  .hero-visual {
    display: block;
    position: relative;
    top: auto; right: auto;
    width: 100%;
    height: clamp(360px, 62vw, 540px);
    border-left: none;
    border-top: 1.5px solid var(--border);
  }
  .hero-face-hint { left: 16px; bottom: 16px; }
}

@media (hover: none) {
  .hero-face-ring { display: none; }
}

/* Smaller reveal circle on tablets / phones */
@media (max-width: 768px) {
  .hero-face.active { --r: 118px; }
  .hero-face-ring { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
}
@media (max-width: 480px) {
  .hero-face.active { --r: 88px; }
  .hero-face-ring { width: 182px; height: 182px; margin: -91px 0 0 -91px; }
}

/* ---- About: portrait + motion ---- */
.about-visual-inner {
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-visual-grid { transform: translateZ(10px); }
.about-glow {
  position: absolute;
  left: 50%; top: 42%;
  width: 64%; padding-bottom: 64%;
  transform: translate(-50%, -50%) translateZ(20px);
  background: radial-gradient(circle at 50% 50%, rgba(232,50,26,0.55), rgba(232,50,26,0) 66%);
  filter: blur(18px);
  animation: aboutPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
.about-visual-inner { --scan: 0; }
.about-photo-reveal {
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 calc(var(--scan) * 1% - 4%), rgba(0,0,0,0) calc(var(--scan) * 1% + 3%));
          mask: linear-gradient(to bottom, #000 0%, #000 calc(var(--scan) * 1% - 4%), rgba(0,0,0,0) calc(var(--scan) * 1% + 3%));
  will-change: mask;
}
.about-visual-inner.scanning .about-photo-reveal { animation: scanGlitch 0.9s steps(2) infinite; }
.about-scanline {
  position: absolute;
  left: 5%; right: 5%;
  top: calc(var(--scan) * 1%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,50,26,0.9) 18%, #ff5a45 50%, rgba(232,50,26,0.9) 82%, transparent);
  box-shadow: 0 0 18px 3px rgba(232,50,26,0.55), 0 0 60px 12px rgba(232,50,26,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 3;
}
.about-visual-inner.scanning .about-scanline { opacity: 1; }
.about-hint {
  position: absolute;
  left: 20px; bottom: auto; top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(12,12,12,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 12px;
  backdrop-filter: blur(5px);
  z-index: 4;
  animation: hintFloat 2.4s ease-in-out infinite;
  transition: opacity 0.3s;
  pointer-events: none;
}
.about-visual-inner.scanning .about-hint,
.about-visual-inner.revealed .about-hint { opacity: 0; }
.about-hint .ah-mobile { display: none; }
@media (hover: none) {
  .about-hint .ah-desktop { display: none; }
  .about-hint .ah-mobile { display: inline; }
}
@media (max-width: 767px) {
  .about-hint { left: 12px; top: 12px; font-size: 9px; padding: 6px 9px; }
}
.about-visual-role .role-robot { display: none; color: #E8321A; letter-spacing: 0.12em; }
.about-visual-inner.revealed .about-visual-role .role-human { display: none; }
.about-visual-inner.revealed .about-visual-role .role-robot { display: inline; }
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center 100%;
  transform: translateZ(30px) scale(0.98);
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,0.55));
}
/* sweeping scan line */
.about-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26%;
  transform: translateZ(40px);
  background: linear-gradient(to bottom, rgba(232,50,26,0) 0%, rgba(232,50,26,0.18) 45%, rgba(232,50,26,0) 100%);
  border-bottom: 1px solid rgba(232,50,26,0.5);
  pointer-events: none;
  animation: aboutScan 6s cubic-bezier(0.45,0,0.55,1) infinite;
}
/* corner ticks for a "viewfinder" feel */
.about-visual-inner::before,
.about-visual-inner::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(232,50,26,0.55);
  transform: translateZ(30px);
  pointer-events: none;
}
.about-visual-inner::before { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.about-visual-inner::after { bottom: 18px; right: 18px; border-left: none; border-top: none; }
/* readability shade behind name */
.about-visual-text {
  z-index: 3;
  transform: translateZ(70px);
}
.about-visual-text::before {
  content: '';
  position: absolute;
  left: -28px; right: -28px; bottom: -28px; top: -40px;
  background: linear-gradient(to top, rgba(10,10,10,0.9), rgba(10,10,10,0));
  z-index: -1;
}
@keyframes aboutBob { 0%,100% { transform: translateZ(60px) scale(0.72) translateY(0); } 50% { transform: translateZ(60px) scale(0.72) translateY(-10px); } }
@keyframes aboutPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }
@keyframes aboutScan { 0% { top: -28%; } 60%,100% { top: 104%; } }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .glass-blob, .about-photo, .about-glow, .about-scan,
  .hero-visual-circle, .marquee-track,
  .machine-bg::before, .machine-bg::after { animation: none !important; }
  .hero-face.scanning .hero-face-reveal { animation: none; }
  .hero-face-zoom { animation: none !important; }
  .about-visual-inner.scanning .about-photo-reveal { animation: none; }
  .w-line > span { transition: none !important; transform: none !important; }
  .plist-row { transition: none; opacity: 1; transform: none; }
}

/* ---- Sci-fi pozadie (plexus siet) ---- */
.fx-scifi {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-face { z-index: 1; }
.about-visual-inner .fx-scifi { z-index: 1; }
.about-visual-inner .about-photo { z-index: 2; }

/* ---- Scroll progress ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 300;
  pointer-events: none;
}

/* ---- Portfólio — editorial zoznam ---- */
.plist { border-top: 1.5px solid var(--border); }
.plist-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto 44px;
  align-items: center;
  gap: 28px;
  padding: 36px 14px;
  border-bottom: 1.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.plist-row.in { opacity: 1; transform: none; }
.plist-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0A0A0A;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.plist-row:hover::before { transform: scaleY(1); transform-origin: top; }
.plist-row > * { position: relative; z-index: 1; }
.plist-num { font-family: var(--font-mono); font-size: 12px; color: rgba(10,10,10,0.4); transition: color 0.4s; }
.plist-name {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 4.4vw, 58px);
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), color 0.4s;
}
.plist-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(10,10,10,0.45); transition: color 0.4s; }
.plist-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.5s;
}
.plist-row:hover .plist-num { color: var(--accent); }
.plist-row:hover .plist-name { color: #fff; transform: translateX(20px); }
.plist-row:hover .plist-cat { color: rgba(255,255,255,0.6); }
.plist-row:hover .plist-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.plist-thumb { display: none; }
.plist-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 220px;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 30px 60px -18px rgba(10,10,10,0.45);
}
.plist-preview img { width: 100%; height: 100%; object-fit: cover; }
.plist-preview.on { opacity: 1; }
@media (hover: none), (max-width: 767px) {
  .plist-preview { display: none; }
  .plist-row { grid-template-columns: 40px 1fr 76px; gap: 14px; padding: 24px 6px; }
  .plist-cat, .plist-arrow { display: none; }
  .plist-thumb { display: block; width: 76px; height: 56px; object-fit: cover; border-radius: 5px; }
}

/* ---- Odkrývanie nadpisov po slovách ---- */
.w-line { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.09em 0.16em 0.12em; margin: -0.09em -0.16em -0.12em; }
.w-line > span { display: inline-block; transform: translateY(135%); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); transition-delay: var(--wd, 0s); }
.words-in .w-line > span { transform: none; }

/* ---- Magnetické tlačidlá ---- */
.btn-primary, .btn-secondary, .nav-cta, .form-submit {
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, box-shadow 0.3s;
}

/* ---- Footer legal links ---- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0 clamp(20px, 4vw, 60px) clamp(24px, 4vw, 40px);
  border-top: 1.5px solid var(--border-light);
  padding-top: 22px;
}
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--accent); }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-body { cursor: auto; }
.legal-body a, .legal-body button { cursor: pointer; }
.legal-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 60px);
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1.5px solid var(--border);
}
.legal-nav .nav-logo { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.legal-nav .nav-logo em { color: var(--accent); font-style: normal; }
.legal-back {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid transparent; transition: border-color var(--transition-fast);
}
.legal-back:hover { border-color: var(--accent); color: var(--accent); }
.legal-hero {
  padding: clamp(48px, 9vw, 120px) clamp(20px, 4vw, 60px) clamp(28px, 4vw, 48px);
  border-bottom: 1.5px solid var(--border);
}
.legal-hero .section-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: clamp(34px, 6vw, 76px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 0.98; text-transform: uppercase;
}
.legal-hero h1 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); text-transform: none; }
.legal-meta {
  margin-top: 18px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; color: rgba(10,10,10,0.5);
}
.legal-wrap {
  max-width: 860px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 60px) clamp(60px, 8vw, 100px);
}
.legal-toc {
  border: 1.5px solid var(--border); padding: 24px clamp(20px,3vw,32px);
  margin-bottom: 48px; background: rgba(10,10,10,0.02);
}
.legal-toc h2 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(10,10,10,0.5); margin-bottom: 14px;
}
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 9px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { font-size: 15px; color: var(--text); border-bottom: 1px solid transparent; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero) " · "; color: var(--accent); font-family: var(--font-mono); font-size: 12px; }
.legal-toc a:hover { border-color: var(--accent); color: var(--accent); }
.legal-section { margin-bottom: 44px; scroll-margin-top: 90px; }
.legal-section > h2 {
  font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1.5px solid var(--border-light);
}
.legal-section > h2 .num { color: var(--accent); font-family: var(--font-mono); font-size: 0.6em; margin-right: 10px; vertical-align: middle; }
.legal-section h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.legal-section p { font-size: 15.5px; line-height: 1.75; color: rgba(10,10,10,0.78); margin-bottom: 14px; }
.legal-section ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.legal-section ul li {
  font-size: 15px; line-height: 1.65; color: rgba(10,10,10,0.78);
  padding-left: 22px; position: relative;
}
.legal-section ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg);
}
.legal-section a { color: var(--accent); border-bottom: 1px solid var(--border-light); }
.legal-section a:hover { border-color: var(--accent); }
.legal-card {
  border: 1.5px solid var(--border); padding: clamp(20px,3vw,32px); margin: 18px 0 24px;
}
.legal-card p { margin-bottom: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 14px; }
.legal-table th, .legal-table td {
  border: 1px solid var(--border-light); padding: 11px 14px; text-align: left; vertical-align: top;
}
.legal-table th { background: rgba(10,10,10,0.04); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-note {
  font-size: 13px; color: rgba(10,10,10,0.55); border-left: 3px solid var(--accent);
  padding: 8px 0 8px 16px; margin: 16px 0; font-style: italic;
}
.legal-updated { font-family: var(--font-mono); font-size: 12px; color: rgba(10,10,10,0.45); margin-top: 40px; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 9000;
  background: var(--bg-dark);
  color: var(--text-light);
  border: 1.5px solid var(--text);
  box-shadow: 8px 8px 0 rgba(232,50,26,0.9);
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: clamp(16px, 2.4vw, 24px) clamp(18px, 2.6vw, 32px);
}
.cookie-text {
  flex: 1 1 360px;
  font-size: 14px; line-height: 1.55; color: rgba(240,235,227,0.8);
}
.cookie-text a { color: var(--accent); border-bottom: 1px solid rgba(232,50,26,0.5); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 22px; border: 1.5px solid var(--text-light);
  background: transparent; color: var(--text-light);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cookie-reject:hover { background: rgba(240,235,227,0.12); }
.cookie-accept { background: var(--accent); border-color: var(--accent); }
.cookie-accept:hover { background: #ff4326; border-color: #ff4326; }
@media (max-width: 540px) {
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ---- 3D machine (rotating helmet) ---- */
#machine {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  height: 100vh;
  overflow: hidden;
  border-top: 1.5px solid var(--border);
}
.machine-sticky {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.machine-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.machine-bg::before {
  content: '';
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(232,50,26,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,50,26,0.13) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(120% 90% at 50% 42%, #000 45%, transparent 92%);
          mask: radial-gradient(120% 90% at 50% 42%, #000 45%, transparent 92%);
  animation: machineGrid 20s linear infinite;
}
.machine-bg::after {
  content: '';
  position: absolute;
  left: 18%; top: 20%;
  width: 70%; padding-bottom: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,50,26,0.38), rgba(232,50,26,0) 62%);
  filter: blur(44px);
  animation: machineGlow 9s ease-in-out infinite;
}
@keyframes machineGrid { to { background-position: 46px 46px; } }
@keyframes machineGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(12%, -8%) scale(1.18); opacity: 1; }
}
#helmet-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none;
  z-index: 1;
  pointer-events: none;
}
#machine.is3d #helmet-canvas { display: block; }
.machine-fallback {
  position: absolute;
  right: 6vw; top: 50%;
  transform: translateY(-50%);
  height: 56%; width: auto;
  max-width: 42vw;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}
#machine.is3d .machine-fallback { display: none; }
.machine-copy {
  position: relative;
  z-index: 3;
  padding: 0 clamp(20px, 5vw, 90px);
  max-width: 840px;
  pointer-events: none;
}
.machine-copy .section-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.machine-title {
  font-size: clamp(30px, 3.8vw, 54px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.02; text-transform: uppercase;
  white-space: nowrap;
}
.machine-title em {
  font-family: var(--font-serif); font-style: italic;
  color: var(--accent); text-transform: none;
}
.machine-desc {
  margin-top: 22px; max-width: 400px;
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65;
  color: rgba(240, 235, 227, 0.62);
}
.machine-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(240, 235, 227, 0.5);
  z-index: 3;
}
#machine:not(.is3d) .machine-hint { display: none; }
.machine-hint svg { animation: hintFloat 2s ease-in-out infinite; }
@media (max-width: 768px) {
  #machine, #machine.is3d { height: auto; }
  .machine-sticky {
    position: static; height: auto; min-height: 0;
    display: flex; flex-direction: column; align-items: stretch;
  }
  .machine-copy {
    order: 0; position: relative; z-index: 3;
    padding: 92px 22px 12px; max-width: none; text-align: left;
  }
  #machine.is3d #helmet-canvas {
    order: 1; position: relative; inset: auto;
    display: block; width: 100%; height: 40vh;
  }
  .machine-fallback {
    order: 1; position: relative; right: auto; top: auto; transform: none;
    height: 34vh; max-width: 72vw; margin: 0 auto 18px; display: block; opacity: 0.95;
  }
  #machine.is3d .machine-fallback { display: none; }
  .machine-hint {
    order: 2; position: relative; left: auto; bottom: auto; transform: none;
    margin: 8px 0 30px 22px;
  }
}

/* ---- Projects page (projekty.html) ---- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  border-top: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
}
.proj-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-dark);
}
.proj-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.proj-card:hover img { transform: scale(1.05); }
.proj-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px, 2vw, 28px);
  background: linear-gradient(to top, rgba(10,10,10,0.82), rgba(10,10,10,0.08) 55%, transparent);
}
.proj-cat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.proj-title {
  font-size: clamp(20px, 2vw, 26px); font-weight: 700;
  letter-spacing: -0.02em; color: #fff; line-height: 1.12;
}
.proj-arrow {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.proj-card:hover .proj-arrow { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.proj-arrow svg { stroke: #fff; }
.proj-link { position: absolute; inset: 0; z-index: 6; }
.proj-intro {
  max-width: 720px;
  padding: 0 clamp(20px, 4vw, 60px) clamp(28px, 4vw, 40px);
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: rgba(10,10,10,0.6);
}

/* ---- Touch: no image save/copy callout on interactive photos ---- */
.hero-face, .hero-face img,
.about-visual-inner, .about-photo,
.machine-fallback {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-face img, .about-photo { pointer-events: none; }
.hero-face { touch-action: pan-y; }

/* ---- Touch devices: no custom cursor dot ---- */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-follower { display: none !important; }
  body { cursor: auto; }
  a, button, .hero-face, .service-item, .portfolio-item, .stat-item { cursor: pointer; }
}
