/* ═══════════════════════════════════════════════════════════════
   ANDIE FACHREZI PORTFOLIO — STYLESHEET
   Design: Dark Luxury Minimal · Brand: #FF4500 Orange
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #0B0B0B;
  --bg-2:        #111111;
  --surface:     #161616;
  --surface-2:   #1C1C1C;
  --orange:      #FF4500;
  --orange-dim:  rgba(255, 69, 0, 0.12);
  --orange-glow: rgba(255, 69, 0, 0.25);
  --white:       #FFFFFF;
  --gray:        #777777;
  --gray-2:      #333333;
  --border:      rgba(255, 255, 255, 0.07);
  --border-2:    rgba(255, 255, 255, 0.12);
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   24px;
  --font-display:'Syne', sans-serif;
  --font-body:   'Inter', sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::selection { background: var(--orange); color: var(--white); }

/* ── UTILITIES ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.orange { color: var(--orange); }

em {
  font-style: italic;
  color: var(--orange);
}

/* ── SCROLL BAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 99px; }

/* ══════════════════════════════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.preloader-logo {
  width: 72px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  animation: preloaderLogoIn 0.6s var(--ease) 0.2s forwards;
}

@keyframes preloaderLogoIn {
  to { opacity: 1; transform: scale(1); }
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--gray-2);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 99px;
  animation: preloaderFill 1.6s var(--ease) 0.4s forwards;
}

@keyframes preloaderFill {
  to { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ══════════════════════════════════════════════════════════════ */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

#cursor-dot {
  width: 6px; height: 6px;
  background: var(--orange);
}

#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255, 69, 0, 0.5);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              border-color 0.35s, background 0.35s;
}

#cursor-ring.hovered {
  width: 56px; height: 56px;
  background: var(--orange-dim);
  border-color: var(--orange);
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

#nav.scrolled {
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo img { width: 36px; height: auto; transition: opacity 0.2s; }
.nav-logo:hover img { opacity: 0.7; }

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

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  color: var(--white) !important;
  background: var(--orange);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: #e03d00 !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  border-radius: 99px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:first-child { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:last-child  { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav ul { list-style: none; text-align: center; }

.mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  color: var(--white);
  padding: 12px 0;
  transition: color 0.2s;
}

.mobile-link:hover { color: var(--orange); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 99px;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #e03d00;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--orange-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
  font-size: 14px;
  padding: 12px 24px;
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.revealed {
  opacity: 1 !important;
  transform: translate(0) !important;
}

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* Line reveal for hero heading */
.line-wrap { display: block; overflow: hidden; }
.reveal-line {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.revealed .reveal-line,
.line-wrap.revealed .reveal-line { transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   SECTION COMMONS
   ══════════════════════════════════════════════════════════════ */
section { padding: 120px 0; }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 48px 120px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.shape-1 {
  width: 600px; height: 600px;
  background: rgba(255, 69, 0, 0.08);
  top: -200px; right: -100px;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
  width: 400px; height: 400px;
  background: rgba(255, 69, 0, 0.05);
  bottom: -100px; left: -100px;
  animation: floatShape 10s ease-in-out infinite reverse;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -20px) scale(1.05); }
}

.hero-content { max-width: 900px; position: relative; z-index: 1; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 var(--orange-glow); }
  50%       { box-shadow: 0 0 0 6px transparent; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--white);
}

.hero-role {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--gray);
  margin-bottom: 20px;
}

#role-rotator {
  color: var(--orange);
  font-weight: 500;
}

.hero-desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 480px;
}

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

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 48px; left: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
}

/* Hero Marquee */
.hero-marquee-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  z-index: 1;
}

.hero-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.hero-marquee span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  padding-right: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
#about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

.about-bio p {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-bio p strong { color: var(--white); font-weight: 600; }

.about-bio .btn { margin-top: 8px; }

/* Timeline */
.timeline-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 32px;
}

.timeline { position: relative; padding-left: 24px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border-2);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.timeline-period {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--gray);
}

/* Skills */
.skills-wrap { margin-bottom: 80px; }

.skills-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: all 0.2s var(--ease);
}

.skill-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
  transform: translateY(-2px);
}

.skill-icon { color: var(--orange); font-size: 10px; }

.skill-chip--highlight {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  display: inline-block;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
}

.stat-item p {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO / WORK
   ══════════════════════════════════════════════════════════════ */
#work { background: var(--bg); }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--border-2);
}

.filter-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portfolio-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

.portfolio-card--wide {
  grid-column: span 2;
}

/* 3D work: square renders, three across */
.portfolio-grid--3d { grid-template-columns: repeat(3, 1fr); }
.portfolio-grid--3d .card-image { aspect-ratio: 1 / 1; }
.portfolio-grid--3d .card-info { padding: 20px 22px 24px; }
.portfolio-grid--3d .card-info h3 { font-size: 18px; }
.portfolio-card[role="button"] { cursor: pointer; }
.portfolio-card[role="button"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover .card-image img {
  transform: scale(1.06);
}

.portfolio-card--wide .card-image {
  aspect-ratio: 21 / 9;
}

.card-img-placeholder {
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.card-img-placeholder span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: -0.02em;
  line-height: 1;
}

.card-img-placeholder small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(4px);
}

.card-overlay svg {
  transform: rotate(0deg) scale(0.8);
  transition: transform 0.4s var(--ease);
}

.portfolio-card:hover .card-overlay { opacity: 1; }
.portfolio-card:hover .card-overlay svg { transform: rotate(0deg) scale(1); }

.card-info {
  padding: 24px 28px 28px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.card-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  padding: 4px 12px;
  border-radius: 99px;
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-info p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PROJECTS
   ══════════════════════════════════════════════════════════════ */
#projects { background: var(--bg-2); }

.projects-list { display: flex; flex-direction: column; gap: 2px; }

.project-row {
  display: grid;
  grid-template-columns: 80px 1fr 320px;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project-row:first-child { border-top: 1px solid var(--border); }

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}

.project-row:hover .project-cta { opacity: 1; transform: translateX(0); }

.project-row:hover { padding-left: 16px; }

.project-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-2);
  letter-spacing: 0.05em;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.project-row:hover .project-content h3 { color: var(--orange); }

.project-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 480px;
}

.project-visual {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.4s var(--ease);
}

.project-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-row:hover .project-visual img {
  transform: scale(1.06);
}

.project-row:hover .project-visual { transform: scale(1.03); }

.project-visual-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -0.02em;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   WHY HIRE ME
   ══════════════════════════════════════════════════════════════ */
#why { background: var(--bg); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.why-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: sticky;
  top: 120px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.3s var(--ease);
}

.why-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.why-icon {
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-dim);
  border-radius: 14px;
}

.why-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
#contact {
  background: var(--bg-2);
  padding-bottom: 0;
  overflow: hidden;
}

.contact-inner {
  text-align: center;
  padding: 120px 32px 80px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 20px 0 24px;
}

.contact-sub {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 48px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  color: var(--white);
  padding: 20px 40px;
  border: 1px solid var(--border-2);
  border-radius: 99px;
  transition: all 0.3s var(--ease);
  letter-spacing: -0.01em;
}

.contact-email:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--orange-glow);
}

.contact-email svg {
  transition: transform 0.3s var(--ease);
}

.contact-email:hover svg {
  transform: translate(4px, -4px);
}

/* Contact Marquee */
.contact-marquee-wrap {
  margin-top: 80px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.contact-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 16s linear infinite reverse;
}

.contact-marquee span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-inner > .footer-logo  { justify-self: start; }
.footer-inner > .footer-copy  { justify-self: center; text-align: center; }
.footer-inner > .footer-links { justify-self: end; }

.footer-logo img { width: 28px; height: auto; opacity: 0.7; transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 1; }

.footer-copy {
  font-size: 13px;
  color: var(--gray);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.2s;
}

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

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .portfolio-grid--3d { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-row  { grid-template-columns: repeat(2, 1fr); }
  /* tablet: number + content + smaller thumbnail */
  .project-row { grid-template-columns: 48px 1fr 200px; gap: 24px; }
  .project-visual { aspect-ratio: 4 / 3; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-title { position: static; }
}

@media (max-width: 768px) {
  #nav { padding: 20px 24px; }
  #nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  #hero { padding: 120px 24px 100px; min-height: 100vh; min-height: 100svh; }
  .hero-scroll-indicator { display: none; } /* avoid overlap with marquee */
  .hero-name { font-size: clamp(36px, 11vw, 56px); }
  .hero-desc br { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .shape-1 { width: 360px; height: 360px; top: -120px; right: -80px; }
  .shape-2 { width: 280px; height: 280px; bottom: -80px; left: -80px; }

  section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .section-header { margin-bottom: 48px; }

  /* About */
  .about-grid { gap: 40px; margin-bottom: 56px; }
  .about-bio p { font-size: 16px; }
  .skills-wrap { margin-bottom: 56px; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 28px 20px; }
  .stat-number { font-size: clamp(36px, 9vw, 52px); }
  .stat-plus { font-size: clamp(20px, 6vw, 28px); }

  /* Portfolio: 2 col on tablet, 1 col on mobile handled below */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card--wide { grid-column: span 2; }
  .portfolio-card--wide .card-image { aspect-ratio: 16 / 9; }
  .card-info { padding: 20px 22px 24px; }

  /* mobile: stack content then image full width */
  .project-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .project-number { display: none; }
  .project-row:hover { padding-left: 0; }
  .project-visual { display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); }
  .project-cta { opacity: 1; transform: none; }

  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 28px 24px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner > .footer-logo,
  .footer-inner > .footer-copy,
  .footer-inner > .footer-links { justify-self: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }

  /* Contact */
  .contact-inner { padding: 80px 24px 60px; }
  .contact-title { font-size: clamp(32px, 8vw, 60px); }
  .contact-sub { margin-bottom: 32px; font-size: 15px; }
  .contact-email { font-size: 15px; padding: 16px 24px; max-width: 100%; width: 100%; justify-content: center; box-sizing: border-box; }
  .contact-marquee-wrap { margin-top: 56px; }
}

@media (max-width: 480px) {
  /* Global */
  section { padding: 64px 0; }
  .container { padding: 0 18px; }
  #nav { padding: 16px 18px; }
  #nav.scrolled { padding: 12px 18px; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: clamp(28px, 8vw, 40px); }

  /* Hero */
  #hero { padding: 110px 18px 90px; }
  .hero-name { font-size: clamp(34px, 10vw, 44px); }
  .hero-role { font-size: 16px; }
  .hero-desc { font-size: 15px; margin-bottom: 32px; }
  .hero-label { margin-bottom: 24px; }
  .btn { font-size: 14px; padding: 12px 24px; }

  /* About */
  .about-grid { gap: 32px; margin-bottom: 48px; }
  .about-bio p { font-size: 15px; }
  .skill-chip { font-size: 13px; padding: 8px 16px; }
  .skills-wrap { margin-bottom: 48px; }

  /* Stats: 2x2 with smaller numbers */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 22px 14px; }
  .stat-number { font-size: clamp(30px, 9vw, 40px); }
  .stat-item p { font-size: 12px; }

  /* Work */
  .filter-bar { gap: 6px; margin-bottom: 36px; }
  .filter-btn { padding: 8px 16px; font-size: 12px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 18px; }
  .portfolio-card--wide { grid-column: span 1; }
  .card-info h3 { font-size: 18px; }
  .card-info p { font-size: 13px; }

  /* Projects (client work) */
  .project-row { padding: 28px 0; }
  .project-content h3 { font-size: clamp(22px, 6.5vw, 28px); }
  .project-content p { font-size: 14px; }
  .project-tags span { font-size: 10px; padding: 3px 10px; }

  /* Why */
  .why-card { padding: 24px 20px; }
  .why-icon { width: 48px; height: 48px; margin-bottom: 16px; }
  .why-icon img { width: 30px; height: 30px; }

  /* Contact */
  .contact-inner { padding: 64px 18px 48px; }
  .contact-title { font-size: clamp(28px, 8.5vw, 38px); }
  .contact-email { font-size: 13px; padding: 14px 20px; gap: 10px; }
  .contact-email svg { width: 24px; height: 24px; }

  /* Footer */
  #footer { padding: 32px 0; }
  .footer-links { gap: 20px; }
}

/* ── LIGHTBOX ─────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.95);
  transition: transform 0.35s var(--ease);
}

.lightbox.open .lightbox-inner { transform: scale(1); }

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}

.lightbox-caption {
  font-size: 14px;
  color: var(--gray);
  text-align: center;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: var(--orange); }

/* Make portfolio cards clearly clickable */
.portfolio-card[data-lightbox] { cursor: zoom-in; }

/* Link card (e.g. AHA.id → external site) */
.portfolio-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   STUDIO BUILDS
   ══════════════════════════════════════════════════════════════ */
#studio { background: var(--bg); position: relative; overflow: hidden; }

#studio::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orange-dim) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

#studio .container { position: relative; z-index: 1; }

.section-sub {
  font-size: 16px;
  color: var(--gray);
  max-width: 640px;
  margin-top: 24px;
  line-height: 1.65;
  font-weight: 300;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.studio-card {
  display: block;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.studio-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--orange-glow);
}

.studio-card--wide { grid-column: span 3; }

.studio-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.studio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

.studio-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 99px;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}

.studio-card:hover .studio-cta { transform: translateY(0); }

.studio-meta {
  padding: 24px 28px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.studio-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding-top: 5px;
}

.studio-meta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  transition: color 0.25s;
}

.studio-card:hover .studio-meta h3 { color: var(--orange); }

.studio-meta p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 300;
}

/* Bottom CTA card */
.studio-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 64px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.studio-cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orange-dim) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.7;
}

.studio-cta-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.studio-cta-text { position: relative; z-index: 2; }

.studio-cta-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.studio-cta-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--white);
}

.studio-cta-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 18px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 99px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
}

.studio-cta-card:hover .studio-cta-button {
  background: var(--white);
  color: var(--bg);
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 980px) {
  .studio-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .studio-card { grid-column: span 1; }
  .studio-card--wide { grid-column: span 1; }
  .studio-cta-card { padding: 40px 36px; }
}

@media (max-width: 640px) {
  .studio-grid { grid-template-columns: 1fr; gap: 16px; }
  .studio-card { grid-column: span 1; }
  .studio-card--wide { grid-column: span 1; }
  .studio-meta { padding: 20px 22px 24px; gap: 14px; }
  .studio-meta h3 { font-size: 19px; }
  .studio-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 24px;
  }
  .studio-cta-button { width: 100%; justify-content: center; }
  /* on mobile, always show overlay so CTA is reachable */
  .studio-overlay { opacity: 1; background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7) 100%); }
  .studio-cta { transform: none; padding: 10px 18px; font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY — focus, screen-reader, skip link, reduced motion
   ══════════════════════════════════════════════════════════════ */

/* Skip link — only visible on focus */
.skip-link {
  position: absolute;
  top: 12px;
  left: -9999px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 99px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  top: 16px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Visually hidden, but available for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus states for keyboard users */
:focus { outline: none; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.mobile-link:focus-visible,
.filter-btn:focus-visible,
.skill-chip:focus-visible,
.portfolio-card:focus-visible,
.project-row:focus-visible,
.studio-card:focus-visible,
.studio-cta-card:focus-visible,
.contact-email:focus-visible,
.footer-links a:focus-visible,
.footer-logo:focus-visible,
.nav-logo:focus-visible,
.nav-hamburger:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 6px;
}

.btn:focus-visible {
  outline-offset: 4px;
}

/* Reduced-motion: respect user system preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Decorative motion: turn off entirely */
  .hero-marquee,
  .contact-marquee,
  .shape-1,
  .shape-2,
  .scroll-line,
  .dot { animation: none !important; }

  .preloader-fill { animation: none !important; width: 100% !important; }
  .preloader-logo { animation: none !important; opacity: 1 !important; transform: none !important; }

  #cursor-dot,
  #cursor-ring { display: none !important; }

  /* Force reveal-state visible immediately so content is not stuck hidden */
  .reveal-up,
  .reveal-left,
  .reveal-right { opacity: 1 !important; transform: none !important; }
  .reveal-line { transform: none !important; }
}
