/* ============================================================
   TITODEVSEC — New Portfolio CSS
   Inspired by Dennis Snellenberg portfolio design
   ============================================================ */

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

:root {
  --bg: #f5f4f0;
  --bg-dark: #111110;
  --fg: #0e0e0c;
  --fg-muted: #6b6b68;
  --fg-muted2: #9e9e9a;
  --accent: #4a3af4;
  --accent-hover: #3628e0;
  --white: #ffffff;
  --border: rgba(0,0,0,0.1);
  --border-dark: rgba(255,255,255,0.1);
  --header-h: 80px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  cursor: default;
  overflow-x: hidden;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #111;
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease;
  opacity: 1;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0,0,0,0.55);
  opacity: 1;
  transition: transform 0.18s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s, background 0.3s;
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.4);
}
/* On dark bg sections the mix-blend-mode difference handles contrast automatically */
.cursor-ring.dark { border-color: rgba(255,255,255,0.7); }
.cursor-dot.dark { background: white; }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ─── HEADER ─────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 100;
  will-change: transform, opacity;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
/* Inner page header: white bg, black text */
#site-header.page-header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#site-header.page-header .logo,
#site-header.page-header .logo-text-default,
#site-header.page-header .logo-text-hover { color: #111 !important; }
#site-header.page-header .nav-link { color: rgba(0,0,0,0.65) !important; }
#site-header.page-header .nav-link:hover,
#site-header.page-header .nav-link.active { color: #111 !important; }
#site-header.page-header .nav-link::after { background: #111; }
#site-header.page-header .menu-btn span { background: #111; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--fg); text-decoration: none; letter-spacing: -0.02em;
}
.desktop-nav { display: flex; gap: 40px; list-style: none; }
.nav-link {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 400;
  color: var(--fg-muted); text-decoration: none; cursor: pointer;
  transition: color 0.3s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--fg);
  transition: width 0.4s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--fg); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-btn {
  width: 52px; height: 52px; border-radius: 50%; background: var(--fg);
  border: none; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  transition: background 0.3s, transform 0.3s; flex-shrink: 0;
}
.menu-btn span {
  display: block; width: 20px; height: 1.5px; background: var(--bg);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── FULLSCREEN MENU ────────────────────────────────────────── */
.fullscreen-menu {
  position: fixed; inset: 0; background: var(--bg-dark); z-index: 99;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%); transition: transform 0.7s var(--ease);
}
.fullscreen-menu.open { transform: translateY(0); }
.fs-nav-link {
  display: block; font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem); font-weight: 800;
  color: var(--white); text-decoration: none; line-height: 1;
  padding: 0.15em 0; letter-spacing: -0.03em; overflow: hidden;
  position: relative; transition: color 0.3s;
}
.fs-nav-link span {
  display: inline-block; transform: translateY(110%);
  transition: transform 0.6s var(--ease);
}
.fullscreen-menu.open .fs-nav-link span { transform: translateY(0); }
.fullscreen-menu.open .fs-nav-link:nth-child(1) span { transition-delay: 0.1s; }
.fullscreen-menu.open .fs-nav-link:nth-child(2) span { transition-delay: 0.15s; }
.fullscreen-menu.open .fs-nav-link:nth-child(3) span { transition-delay: 0.2s; }
.fullscreen-menu.open .fs-nav-link:nth-child(4) span { transition-delay: 0.25s; }
.fullscreen-menu.open .fs-nav-link:nth-child(5) span { transition-delay: 0.3s; }
.fs-nav-link:hover { color: rgba(255,255,255,0.4); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero-section {
  position: relative; height: 100vh; min-height: 600px;
  overflow: hidden; background: #A9A9A9;
}
.hero-photo { position: absolute; inset: 0; z-index: 1; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: grayscale(10%);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,197,188,0.45) 0%, rgba(200,197,188,0.05) 50%, rgba(200,197,188,0.35) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: var(--header-h);
}
.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 48px;
  flex: 1;
  padding-bottom: 180px;
}
.hero-location {
  display: flex; align-items: center; gap: 12px;
  background: rgba(14,14,12,0.82); color: var(--white);
  border-radius: 100px; padding: 8px 18px 8px 10px;
  font-size: 0.75rem; font-weight: 500; backdrop-filter: blur(8px);
  opacity: 1; transform: none;
}
.hero-location.visible { opacity: 1; transform: none; }
.hero-location-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-tagline {
  text-align: right; color: var(--white);
  opacity: 1; transform: none;
}
.hero-tagline.visible { opacity: 1; transform: none; }
.hero-tagline .arrow-icon { display: block; font-size: 1.4rem; margin-bottom: 6px; }
.hero-tagline p { font-family: var(--font-display); font-size: clamp(0.9rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.2; }

.hero-marquee-wrap { overflow: hidden; }
/* hero-marquee base styles now at bottom of file (scroll-direction aware) */
.hero-marquee-inner { display: flex; align-items: center; flex-shrink: 0; }
.hero-marquee-text {
  font-family: var(--font-display); font-size: clamp(5rem, 14vw, 170px);
  font-weight: 800; color: var(--white); letter-spacing: -0.04em;
  line-height: 1; padding-right: 0.25em; user-select: none;
  opacity: 1; transform: none;
}
.hero-marquee-text.visible { opacity: 1; transform: none; }
.hero-dash {
  font-family: var(--font-display); font-size: clamp(5rem, 14vw, 170px);
  font-weight: 300; color: var(--white); opacity: 0.5;
  line-height: 1; padding-right: 0.25em; user-select: none;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── INTRO SECTION ─────────────────────────────────────────── */
.intro-section { background: var(--white); padding: 100px 0 80px; }
.intro-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.intro-statement {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; max-width: 700px;
}
.intro-right { display: flex; flex-direction: column; align-items: flex-end; gap: 32px; min-width: 200px; }
.intro-sub { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; text-align: right; max-width: 220px; }
.btn-round {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--fg); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
  text-align: center; line-height: 1.3;
}
.btn-round:hover { transform: scale(1.1); background: var(--accent); }
.btn-round.accent { background: var(--accent); }
.btn-round.accent:hover { background: var(--accent-hover); transform: scale(1.1); }

.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-muted2); margin-bottom: 16px;
}

/* ─── WORKS LIST SECTION ─────────────────────────────────────── */
.works-section { background: var(--white); padding: 0 0 80px; }
.works-list { border-top: 1px solid var(--border); }
.work-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--fg); cursor: pointer; position: relative;
}
.work-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  transition: color 0.3s;
}
.work-row:hover .work-title { color: var(--fg-muted2); }
.work-meta { font-size: 0.85rem; color: var(--fg-muted); text-align: right; }

/* Preview */
.work-preview {
  position: fixed; width: 340px; pointer-events: none; z-index: 50;
  opacity: 0; transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.work-preview.visible { opacity: 1; transform: scale(1) rotate(0deg); }
.work-preview-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  display: flex; align-items: center; justify-content: center;
}
.work-preview-placeholder span {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: rgba(255,255,255,0.25); letter-spacing: 0.08em;
}
.work-preview-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; font-weight: 600;
  color: var(--white); font-family: var(--font-display);
}

.more-work-wrap { display: flex; justify-content: center; padding: 48px 0 0; }
.btn-more-work {
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 16px 40px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; color: var(--fg); text-decoration: none; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  display: flex; align-items: center; gap: 8px;
}
.btn-more-work sup { font-size: 0.7em; color: var(--fg-muted); }
.btn-more-work:hover { background: var(--fg); color: var(--white); border-color: var(--fg); }

/* ─── SERVICES SECTION ───────────────────────────────────────── */
.services-section { background: #ebebea; padding: 80px 0; }
.services-header {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 64px;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.service-item { border-top: 1px solid rgba(0,0,0,0.15); padding: 32px 32px 32px 0; }
.service-num { font-size: 0.8rem; color: var(--fg-muted2); margin-bottom: 24px; }
.service-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.service-desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.7; }

/* ─── ABOUT SNIPPET ──────────────────────────────────────────── */
.about-section { background: var(--white); padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 32px;
}
.about-body p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.8; margin-bottom: 16px; }
.about-body p em { color: var(--fg); font-style: normal; font-weight: 500; }
.about-img-frame { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; }
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.about-img-frame:hover img { transform: scale(1.04); }
.cert-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--white); border-radius: 16px; padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.cert-badge p { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; }
.cert-badge span { font-size: 0.7rem; color: var(--fg-muted); }

/* ─── SKILLS SECTION ─────────────────────────────────────────── */
.skills-section { background: var(--bg); padding: 80px 0; }
.skills-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 48px;
}
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.skill-item { border-top: 1px solid var(--border); padding: 28px 24px 28px 0; }
.skill-item-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-muted2); margin-bottom: 12px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 0.8rem; font-weight: 500; color: var(--fg);
  background: rgba(0,0,0,0.06); border-radius: 100px; padding: 4px 12px;
}

/* ─── FACTS BAND ──────────────────────────────────────────────── */
.facts-band { background: var(--fg); padding: 24px 0; overflow: hidden; }
.facts-marquee { display: flex; white-space: nowrap; animation: marquee 28s linear infinite; }
.facts-marquee-inner { display: flex; align-items: center; flex-shrink: 0; }
.fact-item {
  display: flex; align-items: center; gap: 20px;
  color: var(--white); font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; padding-right: 48px; white-space: nowrap;
}
.fact-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials-section { background: var(--white); padding: 100px 0; }
.testimonials-header-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 64px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em;
}
.testimonial-card { background: var(--bg); border-radius: 20px; padding: 48px; position: relative; }
.testimonial-card-quote {
  font-family: var(--font-display); font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600; line-height: 1.5; letter-spacing: -0.01em;
  margin-bottom: 32px; color: var(--fg);
}
.testimonial-card-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--fg);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testimonial-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.testimonial-affil { font-size: 0.8rem; color: var(--fg-muted); }
.testimonial-stars { margin-left: auto; color: var(--accent); font-size: 0.9rem; }
.t-slide { display: none; }
.t-slide.active { display: block; animation: fadeSlide 0.5s var(--ease); }
@keyframes fadeSlide { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
.testimonial-nav { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.t-nav-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background 0.3s, border-color 0.3s;
}
.t-nav-btn:hover { background: var(--fg); color: var(--white); border-color: var(--fg); }
.t-nav-count { font-size: 0.8rem; color: var(--fg-muted); }
.review-toggle-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); background: transparent; border-radius: 100px;
  padding: 12px 24px; font-size: 0.85rem; font-weight: 500; cursor: pointer;
  color: var(--fg); font-family: var(--font-body); transition: background 0.3s, color 0.3s;
}
.review-toggle-btn:hover { background: var(--fg); color: var(--white); }
.review-form-panel {
  display: none; background: var(--bg); border-radius: 20px;
  padding: 48px; margin-bottom: 48px;
}
.review-form-panel.open { display: block; animation: fadeSlide 0.4s var(--ease); }
.review-form-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.review-form-sub { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 32px; }

/* ─── CONTACT SECTION (DARK) ─────────────────────────────────── */
.contact-section { background: var(--bg-dark); padding: 100px 0 60px; position: relative; }
.contact-hero-text {
  display: flex; align-items: flex-start; gap: 24px; margin-bottom: 64px;
}
.contact-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-headline {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800; color: var(--white); letter-spacing: -0.04em; line-height: 0.95; flex: 1;
}
.contact-divider { border: none; border-top: 1px solid var(--border-dark); margin-bottom: 40px; }
.contact-btn-wrap { position: absolute; right: 48px; top: 160px; }
.contact-row { display: flex; gap: 20px; margin-bottom: 24px; }
.contact-pill {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 100px;
  padding: 16px 28px; color: var(--white); text-decoration: none;
  font-size: 0.9rem; cursor: pointer; transition: border-color 0.3s, background 0.3s;
  font-family: var(--font-body);
}
.contact-pill:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.contact-form-section { padding-top: 64px; border-top: 1px solid var(--border-dark); }
.contact-form-row {
  display: flex; align-items: baseline; border-bottom: 1px solid var(--border-dark);
  padding: 24px 0;
}
.contact-form-num {
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
  margin-right: 24px; flex-shrink: 0; padding-top: 4px;
}
.contact-form-label {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600; color: var(--white); margin-right: 24px; flex-shrink: 0;
}
.contact-form-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: 1rem;
  color: rgba(255,255,255,0.4); cursor: pointer;
}
.contact-form-input:focus { color: rgba(255,255,255,0.9); }
.contact-form-input::placeholder { color: rgba(255,255,255,0.2); }
.contact-form-submit { display: flex; justify-content: center; padding-top: 64px; }

/* Footer dark */
.footer-dark { background: var(--bg-dark); padding: 40px 0; border-top: 1px solid var(--border-dark); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 48px; }
.footer-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 8px; }
.footer-val { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-socials { display: flex; gap: 24px; }
.footer-social-link { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; cursor: pointer; transition: color 0.3s; }
.footer-social-link:hover { color: var(--white); }

/* ─── FORM SHARED ────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.form-input {
  background: rgba(0,0,0,0.04); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 18px; font-family: var(--font-body); font-size: 0.9rem;
  color: var(--fg); outline: none; transition: border-color 0.3s; width: 100%; cursor: pointer;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--fg-muted2); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-error { font-size: 0.75rem; color: #e74c3c; display: block; }
.star-rating { display: flex; gap: 4px; }
.star { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--border); transition: color 0.2s; padding: 0; }
.star.active { color: var(--accent); }
.review-form-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.form-label { font-size: 0.8rem; font-weight: 500; color: var(--fg-muted); display: block; }
.btn-outline {
  border: 1.5px solid var(--border); border-radius: 100px; padding: 12px 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  color: var(--fg); background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-outline:hover { background: var(--fg); color: var(--white); border-color: var(--fg); }

/* ─── TOAST ─────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 32px; right: 32px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px; border-radius: 12px; font-size: 0.875rem;
  color: var(--white); background: var(--fg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); animation: toastIn 0.4s var(--ease);
  font-family: var(--font-body);
}
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
@keyframes toastIn { from { opacity:0; transform: translateY(20px) scale(0.9); } to { opacity:1; transform: translateY(0) scale(1); } }

/* ─── PAGE HERO (works/about/gallery pages) ──────────────────── */
.page-hero { padding: calc(var(--header-h) + 80px) 0 48px; background: var(--white); }
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 10rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1; overflow: hidden;
}
.page-hero-title span { display: inline-block; animation: revealUp 0.8s var(--ease) 0.2s both; }
.page-hero-sub { font-family: var(--font-display); font-size: 1rem; color: var(--fg-muted); margin-top: 16px; }
@keyframes revealUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ─── WORKS PAGE ─────────────────────────────────────────────── */
.filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; justify-content: space-between; padding-top: 48px; }
.filter-btns { display: flex; gap: 10px; }
.filter-btn {
  border: 1.5px solid var(--border); border-radius: 100px; padding: 10px 22px;
  font-size: 0.85rem; font-weight: 500; color: var(--fg-muted); background: transparent;
  cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 4px;
  font-family: var(--font-body);
}
.filter-btn.active { background: var(--fg); color: var(--white); border-color: var(--fg); }
.filter-btn sup { font-size: 0.65em; color: var(--fg-muted2); }
.filter-btn.active sup { color: rgba(255,255,255,0.5); }
.view-toggle { display: flex; gap: 8px; }
.view-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: background 0.3s, border-color 0.3s;
}
.view-btn.active { background: var(--fg); border-color: var(--fg); color: var(--white); }

.works-table-header {
  display: grid; grid-template-columns: 1fr 180px 220px 100px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.works-table-col { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted2); }
.works-table-row {
  display: grid; grid-template-columns: 1fr 180px 220px 100px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none; color: var(--fg);
  align-items: center;
}
.works-table-row:hover .works-table-name { opacity: 0.4; }
.works-table-name {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em; transition: opacity 0.3s;
}
.works-table-cell { font-size: 0.875rem; color: var(--fg-muted); }
.works-grid-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding-bottom: 80px; }
.project-card {
  border-radius: 16px; overflow: hidden; background: var(--white);
  cursor: pointer; transition: transform 0.4s var(--ease); box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.project-card:hover { transform: translateY(-8px); }
.project-cover { aspect-ratio: 16/10; background: #1a1a1a; overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.project-card:hover .project-cover img { transform: scale(1.04); }
.project-cover-placeholder {
  aspect-ratio: 16/10; background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.2); font-family: var(--font-display); letter-spacing: 0.1em;
}
.project-body { padding: 24px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding-top: 20px; }
.project-tech span {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); background: rgba(74,58,244,0.08); border-radius: 100px; padding: 3px 10px;
}
.project-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.project-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 16px; }
.project-links { display: flex; gap: 8px; }
.btn-live, .btn-github {
  font-size: 0.75rem; font-weight: 600; padding: 7px 14px; border-radius: 100px;
  text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all 0.3s;
}
.btn-live { background: var(--fg); color: var(--white); }
.btn-live:hover { background: var(--accent); }
.btn-github { border: 1.5px solid var(--border); color: var(--fg); }
.btn-github:hover { border-color: var(--fg); background: var(--fg); color: var(--white); }

/* ─── ABOUT PAGE ──────────────────────────────────────────────── */
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; padding: 80px 0; }
.about-lead {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 32px;
}
.about-text p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.8; margin-bottom: 16px; }
.about-photo-wrap { position: sticky; top: calc(var(--header-h) + 32px); }
.about-photo-wrap img { width: 100%; border-radius: 16px; display: block; }

/* ─── GALLERY PAGE ───────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 0 0 80px; }
.gallery-item { border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-empty { padding: 80px 0; text-align: center; color: var(--fg-muted); font-family: var(--font-display); }

/* ─── SKELETON ───────────────────────────────────────────────── */
.project-skeleton {
  border-radius: 16px; overflow: hidden; background: var(--border);
  animation: pulse 1.5s ease-in-out infinite;
}
.project-skeleton::before { content: ''; display: block; aspect-ratio: 16/10; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid, .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .works-table-header, .works-table-row { grid-template-columns: 1fr 160px 180px; }
  .works-table-header .works-table-col:last-child,
  .works-table-row .works-table-cell:last-child { display: none; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .desktop-nav { display: none; }
  .services-grid, .skills-grid { grid-template-columns: 1fr; }
  .about-grid, .about-intro-grid, .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-btn-wrap { position: static; margin-bottom: 40px; }
  .contact-hero-text { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .works-grid-view { grid-template-columns: 1fr; }
  .works-table-header, .works-table-row { grid-template-columns: 1fr 1fr; }
  .works-table-header .works-table-col:nth-child(2),
  .works-table-row .works-table-cell:nth-child(2),
  .works-table-header .works-table-col:last-child,
  .works-table-row .works-table-cell:last-child { display: none; }
  .hero-top { padding: 16px 24px 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; }
  .testimonials-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-right { align-items: flex-start; }
  body { cursor: default; }
  .cursor-dot, .cursor-ring { display: none; }
  .review-form-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── PAGE LOADER ────────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #111110;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s cubic-bezier(0.76,0,0.24,1), transform 0.7s cubic-bezier(0.76,0,0.24,1);
}
#page-loader.loader-exit {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  width: 100%; padding: 0 48px; max-width: 700px;
}
.loader-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) skewY(4deg);
  transition: none;
}
.loader-text.in {
  opacity: 1;
  transform: translateY(0) skewY(0deg);
  transition: opacity 0.22s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.loader-progress {
  width: 100%; height: 1px; background: rgba(255,255,255,0.12);
  border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0; background: #fff;
  transition: width 0.28s cubic-bezier(0.76,0,0.24,1);
  border-radius: 2px;
}

/* ─── HERO SCROLL-DIRECTION MARQUEE ─────────────────────────── */
.hero-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee-ltr 18s linear infinite;
}
.hero-marquee.rtl {
  animation: marquee-rtl 18s linear infinite;
}
@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ─── HERO PERSON PNG ────────────────────────────────────────── */
.hero-person-png {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  height: 92%;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(0,0,0,0.25));
  animation: personRise 1.2s cubic-bezier(0.34,1.1,0.64,1) 0.3s both;
}
@keyframes personRise {
  from { opacity: 0; transform: translateX(-50%) translateY(80px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ================================================================
   PREMIUM HERO — Clean, Exact Reference Match
   ================================================================ */

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #A9A9A9;
}

/* Grain overlay */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── HERO PERSON IMAGE ───────────────────────────────────── */
.hero-person-png {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-44%);
  height: 95%;
  width: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
  /* No blend mode — just a clean PNG on grey bg */
}

/* ── HERO CONTENT LAYER ──────────────────────────────────── */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

/* ── HERO TOP: center section with location + tagline ────── */
.hero-top {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  /* Start below header, end above marquee */
  padding-top: 80px;
  padding-bottom: 200px;
  pointer-events: auto;
}

/* ── LOCATION CARD ─────────────────────────────────────── */
/* Dark pill: text left, globe icon right — exact reference */
.hero-location {
  display: flex;
  align-items: center;
  background: rgba(14,14,12,0.88);
  color: white;
  border-radius: 999px;
  padding: 18px 8px 18px 22px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: locFloat 4s ease-in-out infinite;
  /* always visible — GSAP only adds entrance */
}
@keyframes locFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.hero-location-text {
  padding-right: 18px;
}
.hero-location-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── RIGHT TAGLINE ─────────────────────────────────────── */
/* Arrow + Freelance / FullStack Developer / Cybersecurity */
.hero-tagline {
  text-align: right;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.hero-tagline .arrow-icon {
  display: block;
  font-size: 1.6rem;
  opacity: 0.7;
  line-height: 1;
}
.hero-tagline p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ── MARQUEE WRAP: sits at bottom of hero ───────────────── */
.hero-marquee-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* negative margin so text bleeds slightly below */
  margin-bottom: -0.1em;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── MARQUEE TRACK ──────────────────────────────────────── */
.hero-marquee {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.hero-marquee-inner {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}
.hero-marquee-text {
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 175px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
  line-height: 0.9;
  padding-right: 0.15em;
  user-select: none;
}
.hero-dash {
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 175px);
  font-weight: 200;
  color: rgba(255,255,255,0.5);
  line-height: 0.9;
  padding-right: 0.12em;
  user-select: none;
}

/* ── NOISE OVERLAY (global) ─────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── HEADER PREMIUM OVERRIDE ────────────────────────────── */
#site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: transform, opacity;
  z-index: 100 !important;
}
/* Home: white text */
#site-header:not(.page-header) .logo,
#site-header:not(.page-header) .logo-text-default,
#site-header:not(.page-header) .logo-text-hover { color: white !important; }
#site-header:not(.page-header) .nav-link { color: rgba(255,255,255,0.82) !important; }
#site-header:not(.page-header) .nav-link:hover,
#site-header:not(.page-header) .nav-link.active { color: white !important; }
#site-header:not(.page-header) .nav-link::after { background: white !important; }
/* Inner pages: white bg + black text */
#site-header.page-header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
#site-header.page-header .logo,
#site-header.page-header .logo-text-default,
#site-header.page-header .logo-text-hover { color: #111 !important; }
#site-header.page-header .nav-link { color: rgba(0,0,0,0.6) !important; }
#site-header.page-header .nav-link:hover,
#site-header.page-header .nav-link.active { color: #111 !important; }
#site-header.page-header .nav-link::after { background: #111 !important; }

/* header-inner always flex space-between */
.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.desktop-nav {
  display: flex !important;
  gap: 36px !important;
  margin-left: auto !important;
}
.menu-btn { display: none !important; }
@media (max-width: 768px) {
  .menu-btn { display: flex !important; }
  .desktop-nav { display: none !important; }
}

/* Logo hover morph */
.logo {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  position: relative !important;
  display: inline-block !important;
  overflow: hidden !important;
  height: 1.2em !important;
}
.logo-text-default,
.logo-text-hover {
  display: block;
  transition: transform 0.5s cubic-bezier(0.76,0,0.24,1), opacity 0.4s;
  white-space: nowrap;
}
.logo-text-hover {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(110%);
  opacity: 0;
}
.logo:hover .logo-text-default { transform: translateY(-110%); opacity: 0; }
.logo:hover .logo-text-hover   { transform: translateY(0);     opacity: 1; }

/* ── FLOATING HAMBURGER ─────────────────────────────────── */
#floating-menu-btn {
  position: fixed;
  top: 28px;
  right: 40px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* GSAP controls visibility */
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
#floating-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: white;
  border-radius: 2px;
}
#floating-menu-btn:hover { background: #333; }

/* ── SLIDE PANEL ────────────────────────────────────────── */
#slide-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 100vw);
  background: #0e0e0c;
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 52px 56px 56px;
  transform: translateX(100%);
  transition: transform 0.75s cubic-bezier(0.76,0,0.24,1);
  overflow-y: auto;
}
#slide-panel.open { transform: translateX(0); }

.slide-panel-close {
  position: absolute;
  top: 28px; right: 32px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #6366f1;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
}
.slide-panel-close:hover { background: #4f46e5; transform: rotate(90deg) scale(1.08); }

.slide-panel-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
  margin-top: 56px;
}
.slide-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.slide-panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.panel-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: white;
  text-decoration: none;
  line-height: 1.05;
  letter-spacing: -0.03em;
  padding: 4px 0;
  transition: color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateX(40px);
}
.panel-nav-link:hover { color: rgba(255,255,255,0.4); transform: translateX(8px); }
#slide-panel.open .panel-nav-link {
  animation: panelLinkIn 0.6s cubic-bezier(0.34,1.1,0.64,1) both;
}
#slide-panel.open .panel-nav-link:nth-child(1) { animation-delay: 0.08s; }
#slide-panel.open .panel-nav-link:nth-child(2) { animation-delay: 0.14s; }
#slide-panel.open .panel-nav-link:nth-child(3) { animation-delay: 0.20s; }
#slide-panel.open .panel-nav-link:nth-child(4) { animation-delay: 0.26s; }
#slide-panel.open .panel-nav-link:nth-child(5) { animation-delay: 0.32s; }
@keyframes panelLinkIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.slide-panel-socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.panel-social-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.panel-social-link:hover { color: white; }

/* Backdrop */
#panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
#panel-backdrop.open { opacity: 1; pointer-events: auto; }

/* ── CURSOR ─────────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: transform 0.1s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.7);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s;
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.1);
}

/* ── GALLERY PAGE ────────────────────────────────────────── */
body.gallery-page { background: #080808 !important; color: white; }
body.gallery-page #site-header { background: transparent !important; }
.gallery-hero-section {
  background: #080808;
  padding: 140px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gallery-hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin: 0;
}
.gallery-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.gallery-meta-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.gallery-meta-val { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.gallery-cinematic-grid { background: #080808; padding: 0 0 120px; }
.gallery-project-item {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 0;
}
.gallery-project-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.07); }
.gallery-project-header { display: flex; align-items: baseline; gap: 24px; padding: 0 48px 24px; }
.gallery-project-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; color: white; letter-spacing: -0.03em;
}
.gallery-project-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: white; margin-bottom: 2px; }
.gallery-project-cat { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); font-weight: 500; }
.gallery-img-row { display: grid; gap: 12px; padding: 0 48px; }
.gallery-img-row.one   { grid-template-columns: 1fr; max-width: 60%; }
.gallery-img-row.two   { grid-template-columns: 1.4fr 1fr; }
.gallery-img-row.three { grid-template-columns: 1fr 0.7fr 1.1fr; }
.gallery-img-row.offset { grid-template-columns: 0.3fr 1fr; max-width: 70%; margin-left: auto; }
.gallery-thumb { position: relative; overflow: hidden; cursor: pointer; background: #1a1a1a; }
.gallery-thumb img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform 0.7s cubic-bezier(0.76,0,0.24,1), filter 0.5s; filter: brightness(0.85); }
.gallery-thumb:hover img { transform: scale(1.04); filter: brightness(1); }
.gallery-thumb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gallery-thumb-overlay span { color: white; font-size: 1.8rem; opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.gallery-thumb:hover .gallery-thumb-overlay span { opacity: 1; transform: scale(1); }
.premium-lightbox { position: fixed; inset: 0; z-index: 8000; background: rgba(4,4,4,0.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.45s; }
.premium-lightbox.open { opacity: 1; pointer-events: auto; }
.premium-lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; transform: scale(0.92); transition: transform 0.5s cubic-bezier(0.34,1.1,0.64,1); }
.premium-lightbox.open img { transform: scale(1); }
.premium-lightbox-close { position: absolute; top: 36px; right: 40px; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: white; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s, transform 0.4s; }
.premium-lightbox-close:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg) scale(1.1); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-top { padding: 0 24px; padding-top: 70px; padding-bottom: 160px; }
  .hero-tagline p { font-size: 0.95rem; }
  .hero-location { font-size: 0.72rem; padding: 12px 6px 12px 16px; }
  .hero-location-icon { width: 40px; height: 40px; }
  #floating-menu-btn { right: 20px; top: 20px; }
  #slide-panel { padding: 40px 28px 48px; }
  .panel-nav-link { font-size: clamp(2rem, 9vw, 3.2rem); }
  .gallery-hero-title { font-size: clamp(4rem, 22vw, 10rem); }
  .gallery-img-row { padding: 0 24px; }
  .gallery-img-row.one, .gallery-img-row.offset { max-width: 100%; }
  .gallery-img-row.two, .gallery-img-row.three { grid-template-columns: 1fr; }
  .gallery-project-header { padding: 0 24px 20px; }
}


/* ════════════════════════════════════════════════════════
   HEADER — DEFINITIVE SCROLL-BASED SYSTEM
   ════════════════════════════════════════════════════════ */

/* ── HEADER BASE ──────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 200;
  display: flex;
  align-items: center;
  background: transparent;
  /* GSAP controls transform/opacity — no CSS transition here */
  will-change: transform, opacity;
  /* Ensure it starts visible */
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── HEADER INNER ─────────────────────────────────────── */
.header-inner {
  width: 100%;
  max-width: 100%;
  padding: 0 48px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ── LOGO ─────────────────────────────────────────────── */
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  white-space: nowrap;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.logo-text-default,
.logo-text-hover {
  display: block;
  transition: transform 0.5s cubic-bezier(0.76,0,0.24,1), opacity 0.4s ease;
}
.logo-text-hover {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
}
.logo:hover .logo-text-default { transform: translateY(-110%); opacity: 0; }
.logo:hover .logo-text-hover   { transform: translateY(0);     opacity: 1; }

/* Home page: white text on grey hero */
body:not(.inner-page) #site-header .logo { color: white; }
body:not(.inner-page) #site-header .nav-link { color: rgba(255,255,255,0.85); }
body:not(.inner-page) #site-header .nav-link::after { background: white; }
body:not(.inner-page) #site-header .nav-link:hover,
body:not(.inner-page) #site-header .nav-link.active { color: white; }

/* Inner pages: dark text on white bg */
body.inner-page #site-header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
body.inner-page #site-header .logo { color: #111; }
body.inner-page #site-header .nav-link { color: rgba(0,0,0,0.6); }
body.inner-page #site-header .nav-link::after { background: #111; }
body.inner-page #site-header .nav-link:hover,
body.inner-page #site-header .nav-link.active { color: #111; }

/* ── DESKTOP NAV ──────────────────────────────────────── */
.desktop-nav {
  display: flex !important;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  transition: width 0.3s cubic-bezier(0.76,0,0.24,1);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── HIDE OLD MENU BTN ────────────────────────────────── */
.menu-btn { display: none !important; }

/* ── FLOATING HAMBURGER ───────────────────────────────── */
/* Starts hidden — JS shows it after header hides */
#floating-menu-btn {
  position: fixed;
  top: 20px;
  right: 36px;
  z-index: 500;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #111;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  /* Start invisible + scaled down */
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  transition: background 0.2s ease, transform 0.1s ease;
}
#floating-menu-btn:hover { background: #2a2a2a; }
#floating-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ── SLIDE PANEL ──────────────────────────────────────── */
#slide-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 92vw);
  background: #0d0d0b;
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 0 52px 52px;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.76,0,0.24,1);
  overflow-y: auto;
}
#slide-panel.open { transform: translateX(0); }

/* Panel header row */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 0 0;
  margin-bottom: 8px;
}

/* Purple close button */
.slide-panel-close {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #6366f1;
  border: none;
  color: white;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 4px 20px rgba(99,102,241,0.45);
  flex-shrink: 0;
}
.slide-panel-close:hover { background: #4f46e5; transform: rotate(90deg) scale(1.1); }

.slide-panel-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 14px;
  margin-top: 36px;
}
.slide-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

/* Big nav links */
.slide-panel-nav {
  display: flex;
  flex-direction: column;
}
.panel-nav-link {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  color: white;
  text-decoration: none;
  line-height: 1.08;
  letter-spacing: -0.03em;
  padding: 2px 0;
  position: relative;
  transition: color 0.25s ease;
  /* hidden until panel opens */
  opacity: 0;
  transform: translateX(50px);
}
.panel-nav-link:hover { color: rgba(255,255,255,0.38); }

/* Staggered entrance when panel opens */
#slide-panel.open .panel-nav-link {
  animation: panelLinkIn 0.55s cubic-bezier(0.34,1.1,0.64,1) both;
}
#slide-panel.open .panel-nav-link:nth-child(1) { animation-delay: 0.06s; }
#slide-panel.open .panel-nav-link:nth-child(2) { animation-delay: 0.12s; }
#slide-panel.open .panel-nav-link:nth-child(3) { animation-delay: 0.18s; }
#slide-panel.open .panel-nav-link:nth-child(4) { animation-delay: 0.24s; }
#slide-panel.open .panel-nav-link:nth-child(5) { animation-delay: 0.30s; }
@keyframes panelLinkIn {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Socials row */
.slide-panel-socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.panel-social-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.25s;
}
.panel-social-link:hover { color: white; }

/* ── BACKDROP ─────────────────────────────────────────── */
#panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 599;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
#panel-backdrop.open { opacity: 1; pointer-events: auto; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 0 24px; }
  .desktop-nav { gap: 24px; }
  .nav-link { font-size: 0.78rem; }
  #floating-menu-btn { right: 20px; top: 16px; width: 48px; height: 48px; }
  #slide-panel { padding: 0 28px 40px; }
  .panel-nav-link { font-size: clamp(2rem, 9vw, 3rem); }
}
