/* ============================================
   TwinIsle Digital — styles.css
   ============================================ */

/* ── Variables ── */
:root {
  --navy:        #0B2137;
  --navy-deep:   #060F1A;
  --blue:        #0F2A44;
  --gold:        #D4AF37;
  --gold-light:  #E8CC6A;
  --gold-dim:    rgba(212,175,55,0.12);
  --white:       #F7F4EE;
  --white-dim:   rgba(247,244,238,0.6);
  --white-faint: rgba(247,244,238,0.08);
  --slate:       #8A9BB0;
  --card-bg:     rgba(15,42,68,0.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ── */
body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ── Custom cursor ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.25s ease;
}

/* ── Ambient orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,42,68,0.8) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  bottom: 20%; left: -150px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(6,15,26,0.95) 0%, transparent 100%);
  backdrop-filter: blur(2px);
  transition: background 0.3s, border 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(6,15,26,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(247,244,238,0.06);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-mark { width: 36px; height: 36px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text span:first-child {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--white); letter-spacing: 0.02em;
}
.logo-text span:last-child {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300; font-size: 10px;
  color: var(--gold); letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 40px; list-style: none;
}
.nav-links a {
  color: var(--white-dim); text-decoration: none;
  font-size: 13px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 24px;
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold) !important;
  border-radius: 2px;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
}
.nav-cta::after { display: none !important; }

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  z-index: 1;
  gap: 60px;
}
.hero-left { position: relative; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-tag::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}
.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero-h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.4;
}
.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--white-dim);
  max-width: 420px; line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-actions {
  display: flex; gap: 16px; align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(247,244,238,0.06);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px; font-weight: 800;
  color: var(--white); line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--gold); }
.stat-label {
  font-size: 11px; font-weight: 400;
  color: var(--slate);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Hero visual ── */
.hero-visual {
  position: relative;
  height: 580px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.5s;
}
.hero-card {
  position: absolute;
  border-radius: 4px;
  border: 1px solid rgba(247,244,238,0.08);
  backdrop-filter: blur(10px);
  padding: 28px;
}
.hero-card-main {
  background: linear-gradient(135deg, rgba(15,42,68,0.9) 0%, rgba(11,33,55,0.95) 100%);
  width: 100%; top: 0; right: 0;
  height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-card-main::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.card-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.card-label {
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; position: relative;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--white); line-height: 1.2;
  position: relative;
}
.card-dots {
  display: flex; gap: 8px;
  position: absolute; top: 20px; right: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.hero-card-float {
  background: var(--navy-deep);
  border-color: rgba(212,175,55,0.2);
  bottom: 80px; right: -20px;
  width: 220px;
  animation: float 4s ease-in-out infinite;
}
.float-label { font-size: 10px; color: var(--slate); margin-bottom: 8px; }
.float-value {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--gold);
}
.float-sub { font-size: 11px; color: var(--slate); margin-top: 4px; }
.hero-card-badge {
  background: var(--gold);
  bottom: 0; left: 20px;
  padding: 20px 24px;
  border: none;
  width: 180px;
}
.badge-icon { font-size: 20px; margin-bottom: 8px; }
.badge-text {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--navy-deep); line-height: 1.2;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  padding: 16px 36px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: none;
  border-radius: 2px; cursor: none;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-ghost {
  padding: 16px 36px;
  background: transparent;
  color: var(--white-dim);
  font-family: 'Syne', sans-serif;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(247,244,238,0.15);
  border-radius: 2px; cursor: none;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: rgba(247,244,238,0.4);
  color: var(--white);
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
section { position: relative; z-index: 1; }

.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.section-tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}
.section-h2 em { font-style: normal; color: var(--gold); }
.section-sub {
  font-size: 16px; font-weight: 300;
  color: var(--white-dim); line-height: 1.7;
  max-width: 480px;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
  border-top: 1px solid rgba(247,244,238,0.06);
  border-bottom: 1px solid rgba(247,244,238,0.06);
  padding: 20px 0;
  overflow: hidden;
  background: rgba(6,15,26,0.6);
  position: relative; z-index: 1;
}
.marquee-track {
  display: flex;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 20px;
  padding: 0 40px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.marquee-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */
#services { padding: 120px 60px; }
.services-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end;
  margin-bottom: 80px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247,244,238,0.06);
  border: 1px solid rgba(247,244,238,0.06);
}
.service-card {
  background: var(--navy-deep);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: none;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.service-card:hover { background: rgba(15,42,68,0.8); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.15em;
  margin-bottom: 32px;
}
.service-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 28px;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.service-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: 14px;
  line-height: 1.2;
}
.service-desc {
  font-size: 14px; font-weight: 300;
  color: var(--white-dim); line-height: 1.7;
  margin-bottom: 32px;
}
.service-arrow {
  font-size: 20px; color: var(--gold);
  opacity: 0; transform: translateX(-8px);
  transition: all 0.3s;
  display: inline-block;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ============================================
   WORK
   ============================================ */
#work { padding: 120px 60px; background: rgba(6,15,26,0.4); }
.work-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}
.work-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2px;
  background: rgba(247,244,238,0.04);
}
.work-grid-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.work-card {
  position: relative; overflow: hidden;
  background: var(--card-bg);
  cursor: none;
  min-height: 320px;
}
.work-card-sm { min-height: 200px; }
.work-img {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(11,33,55,0.6) 100%);
  transition: transform 0.6s ease;
}
.work-card:hover .work-img { transform: scale(1.05); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,15,26,0.95) 0%, rgba(6,15,26,0.2) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.work-card:hover .work-overlay { transform: translateY(0); }
.work-tag {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.work-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--white); margin-bottom: 8px; line-height: 1.2;
}
.work-card-sm .work-title { font-size: 17px; }
.work-desc {
  font-size: 13px; color: var(--white-dim);
  margin-bottom: 16px; font-weight: 300;
}
.work-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}

/* ============================================
   PROCESS
   ============================================ */
#process { padding: 120px 60px; }
.process-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: start;
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 28px; padding: 36px 0;
  border-bottom: 1px solid rgba(247,244,238,0.06);
  cursor: none;
  transition: all 0.3s;
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 40px; font-weight: 800;
  color: rgba(247,244,238,0.06);
  line-height: 1;
  transition: color 0.3s;
}
.process-step:hover .step-num { color: var(--gold); }
.step-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.step-desc {
  font-size: 14px; color: var(--white-dim);
  font-weight: 300; line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 120px 60px;
  background: rgba(6,15,26,0.4);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-visual { position: relative; height: 500px; }
.about-img-main {
  position: absolute;
  width: 75%; height: 75%;
  top: 0; right: 0;
  background: linear-gradient(135deg, #0F2A44 0%, #0B2137 100%);
  border: 1px solid rgba(247,244,238,0.08);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  overflow: hidden;
}
.about-img-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, transparent 60%);
}
.about-badge-tl {
  position: absolute; bottom: 0; left: 0;
  background: var(--navy-deep);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 24px 28px; border-radius: 4px;
  width: 200px;
}
.about-badge-val {
  font-family: 'Syne', sans-serif;
  font-size: 38px; font-weight: 800;
  color: var(--gold); line-height: 1;
  margin-bottom: 6px;
}
.about-badge-lbl {
  font-size: 12px; color: var(--slate);
  font-weight: 400; letter-spacing: 0.05em;
}
.about-line {
  position: absolute; top: 55%; right: -20px;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.about-body {
  font-size: 16px; color: var(--white-dim);
  font-weight: 300; line-height: 1.8;
  margin-bottom: 24px;
}
.about-body strong { color: var(--white); font-weight: 500; }
.about-skills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 36px;
}
.skill-tag {
  padding: 8px 16px;
  background: var(--white-faint);
  border: 1px solid rgba(247,244,238,0.1);
  border-radius: 2px;
  font-size: 12px; font-weight: 500;
  color: var(--white-dim);
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.skill-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials { padding: 120px 60px; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(247,244,238,0.04);
  margin-top: 60px;
}
.testimonial-card {
  background: var(--navy-deep);
  padding: 48px 40px;
  position: relative;
}
.quote-mark {
  font-family: 'Syne', sans-serif;
  font-size: 80px; font-weight: 800;
  color: var(--gold); line-height: 0.8;
  margin-bottom: 24px; opacity: 0.4;
}
.testimonial-text {
  font-size: 15px; font-weight: 300;
  color: var(--white-dim); line-height: 1.8;
  margin-bottom: 32px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.author-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--white);
}
.author-role { font-size: 12px; color: var(--slate); margin-top: 2px; }

/* ============================================
   CTA
   ============================================ */
#cta {
  padding: 120px 60px;
  background: linear-gradient(135deg, rgba(15,42,68,0.6) 0%, rgba(6,15,26,0.8) 100%);
  border-top: 1px solid rgba(247,244,238,0.06);
  border-bottom: 1px solid rgba(247,244,238,0.06);
  text-align: center;
  position: relative; overflow: hidden;
}
#cta::before {
  content: 'TwinIsle';
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-size: 220px; font-weight: 800;
  color: rgba(247,244,238,0.02);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none;
  letter-spacing: -0.04em;
}
.cta-tag { justify-content: center; }
.cta-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 24px;
  position: relative;
}
.cta-sub {
  font-size: 17px; color: var(--white-dim);
  font-weight: 300; line-height: 1.7;
  max-width: 500px; margin: 0 auto 48px;
  position: relative;
}
.cta-actions {
  display: flex; gap: 16px;
  justify-content: center; align-items: center;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 60px;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px; align-items: start;
  border-top: 1px solid rgba(247,244,238,0.06);
  position: relative; z-index: 1;
}
.footer-tagline {
  font-size: 13px; color: var(--slate);
  font-weight: 300; line-height: 1.6; margin-top: 12px;
}
.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: var(--slate);
  text-decoration: none; font-weight: 300;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  grid-column: 1/-1;
  padding-top: 40px;
  border-top: 1px solid rgba(247,244,238,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: var(--slate); font-weight: 300; }
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  font-size: 12px; color: var(--slate);
  text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase; transition: color 0.3s;
}
.footer-social a:hover { color: var(--gold); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SCROLLBAR + SELECTION
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }
::selection { background: rgba(212,175,55,0.2); color: var(--white); }

/* ============================================
   MOBILE NAV TOGGLE
   ============================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Work coming soon label */
.work-coming-soon {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  flex-shrink: 0;
}
.work-link--muted {
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: default;
}
.work-link--live {
  font-size: 11px;
  color: #8b6a2a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: default;
}

/* Museum featured card */
.work-card--museum { min-height: 420px; }
.work-img--museum {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1208 0%, #2e1f08 40%, #0F2A44 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.museum-icon {
  font-size: 72px;
  position: relative; z-index: 2;
  filter: drop-shadow(0 4px 24px rgba(139,106,42,0.4));
}
.museum-badge {
  position: absolute; top: 20px; right: 20px;
  background: #8b6a2a;
  color: #f6f1e7;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
  z-index: 3;
}
.work-overlay--museum {
  background: linear-gradient(0deg, rgba(6,15,26,0.97) 0%, rgba(6,15,26,0.4) 55%, transparent 100%);
  transform: translateY(0);
}
.work-overlay--museum .work-title { font-size: 24px; }
.work-overlay--museum .work-desc { font-size: 13.5px; line-height: 1.65; max-width: 520px; }
.work-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.work-stack span {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(139,106,42,0.85);
  border: 1px solid rgba(139,106,42,0.3);
  padding: 3px 9px; border-radius: 12px;
  font-weight: 500;
}

/* ============================================
   RESPONSIVE — TABLET (max 1100px)
   ============================================ */
@media (max-width: 1100px) {
  /* Nav */
  nav { padding: 20px 40px; }

  /* Hero — stack vertically */
  #hero {
    grid-template-columns: 1fr;
    padding: 120px 40px 80px;
    gap: 0;
  }
  .hero-visual { display: none; }
  .hero-h1 { font-size: clamp(44px, 7vw, 72px); }

  /* Services — 2 col */
  #services { padding: 100px 40px; }
  .services-header { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Work */
  #work { padding: 100px 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid-right { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .work-card { min-height: 280px; }

  /* Process */
  #process { padding: 100px 40px; }
  .process-layout { grid-template-columns: 1fr; gap: 48px; }
  .process-layout > div:first-child { display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; }

  /* About */
  #about { padding: 100px 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { height: 300px; }
  .about-img-main { width: 65%; height: 100%; }

  /* Testimonials */
  #testimonials { padding: 100px 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* CTA */
  #cta { padding: 100px 40px; }

  /* Footer */
  footer {
    padding: 60px 40px;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Restore default cursor on touch devices */
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  /* Nav */
  nav { padding: 18px 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6,15,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    z-index: 150;
    padding: 100px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    font-size: 22px !important;
    letter-spacing: 0.05em !important;
    padding: 16px 0;
    display: block;
    border-bottom: 1px solid rgba(247,244,238,0.06);
    color: var(--white) !important;
  }
  .nav-links a::after { display: none; }
  .nav-cta {
    margin-top: 16px;
    padding: 16px 40px !important;
    font-size: 14px !important;
    width: 100%;
    text-align: center;
    border-radius: 2px;
  }

  /* Hero */
  #hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }
  .hero-h1 { font-size: clamp(38px, 10vw, 56px); }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 16px 24px;
  }
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
  }
  .stat-num { font-size: 26px; }

  /* Marquee */
  .marquee-item { padding: 0 24px; font-size: 11px; }

  /* Services */
  #services { padding: 80px 24px; }
  .services-header { margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px; }
  .service-arrow { opacity: 1; transform: translateX(0); }

  /* Work */
  #work { padding: 80px 24px; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid-right { grid-template-columns: 1fr; }
  .work-card { min-height: 260px; }
  .work-card-sm { min-height: 200px; }
  .work-overlay { transform: translateY(0); }

  /* Process */
  #process { padding: 80px 24px; }
  .process-layout { gap: 32px; }
  .process-step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step-num { font-size: 28px; }

  /* About */
  #about { padding: 80px 24px; }
  .about-grid { gap: 0; }
  .about-visual { display: none; }
  .about-skills { gap: 8px; }

  /* Testimonials */
  #testimonials { padding: 80px 24px; }
  .testimonials-grid { gap: 2px; }
  .testimonial-card { padding: 32px 24px; }

  /* CTA */
  #cta {
    padding: 80px 24px;
  }
  #cta::before { font-size: 70px; }
  .cta-h2 { font-size: clamp(34px, 9vw, 52px); }
  .cta-actions { flex-direction: column; gap: 12px; width: 100%; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  footer {
    padding: 48px 24px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 400px)
   ============================================ */
@media (max-width: 400px) {
  .hero-h1 { font-size: 34px; }
  .section-h2 { font-size: 28px; }
  .service-card { padding: 28px 20px; }
  .testimonial-card { padding: 28px 20px; }
}
