/* ============================================================
   DUINGZ CREATIVE — REDESIGNED STYLESHEET
   Palette: Dark Navy / Charcoal + Soft Gold + Muted Slate Blue
   ============================================================ */

/* Custom Properties */
:root {
  --bg: #0d0f14;
  --surface: #141720;
  --surface-2: #1c2030;
  --surface-3: #232840;
  --text: #e8eaf0;
  --text-muted: #7a8099;
  --accent: #c9a96e;
  /* soft gold */
  --accent-dim: rgba(201, 169, 110, 0.12);
  --accent-2: #7eb8d4;
  /* muted slate blue */
  --accent-2-dim: rgba(126, 184, 212, 0.10);
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(201, 169, 110, 0.25);

  --font-display: "Bebas Neue", cursive;
  --font-sans: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.4s var(--ease-out);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.2px;
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 6rem 2rem;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Section heading */
.section-title {
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3.5rem;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s, width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(0);
}

.custom-cursor-glow.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.06);
  backdrop-filter: blur(2px);
}

/* ============================================================
   NAV / HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 100;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
}

.logo-img {
  height: 46px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  gap: 5px;
  z-index: 101;
  transition: transform 0.3s;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
  border-radius: var(--radius-sm);
}

nav ul li a:hover {
  color: var(--text);
}

/* ============================================================
   HERO — REDESIGNED
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video — scale slightly so parallax has room to move */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

/* Layered cinematic gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13, 15, 20, 0.72) 0%, rgba(13, 15, 20, 0.18) 45%, rgba(13, 15, 20, 0.88) 100%),
    linear-gradient(105deg, rgba(13, 15, 20, 0.55) 0%, transparent 55%);
  z-index: 1;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particleFloat 9s ease-in-out infinite;
}

.p1 {
  top: 18%;
  left: 12%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.p2 {
  top: 65%;
  left: 82%;
  animation-delay: 1.8s;
  animation-duration: 11s;
}

.p3 {
  top: 40%;
  left: 70%;
  animation-delay: 3.5s;
  animation-duration: 7s;
}

.p4 {
  top: 78%;
  left: 22%;
  animation-delay: 5s;
  animation-duration: 9s;
}

.p5 {
  top: 12%;
  left: 55%;
  animation-delay: 2.5s;
  animation-duration: 12s;
}

.p6 {
  top: 50%;
  left: 40%;
  animation-delay: 4.2s;
  animation-duration: 8s;
  width: 2px;
  height: 2px;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  20% {
    opacity: 0.7;
  }

  80% {
    opacity: 0.25;
  }

  100% {
    transform: translateY(-90px) scale(0);
    opacity: 0;
  }
}

/* Decorative corner brackets */
.hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  opacity: 0.3;
}

.hero-corner::before,
.hero-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.hero-corner::before {
  width: 100%;
  height: 1.5px;
  top: 0;
  left: 0;
}

.hero-corner::after {
  width: 1.5px;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-corner-tl {
  top: 1.5rem;
  left: 1.5rem;
}

.hero-corner-tr {
  top: 1.5rem;
  right: 1.5rem;
  transform: scaleX(-1);
}

.hero-corner-bl {
  bottom: 1.5rem;
  left: 1.5rem;
  transform: scaleY(-1);
}

.hero-corner-br {
  bottom: 1.5rem;
  right: 1.5rem;
  transform: scale(-1);
}

/* Main content wrapper */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 2rem;
  max-width: 960px;
  width: 100%;
  will-change: transform;
}

/* Eyebrow label */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.hero-eyebrow span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Brand name — always visible identity */
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(232, 234, 240, 0.45);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

/* 3-row cinematic headline */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.02em;
  margin: 0 0 1rem;
  line-height: 0.9;
}

.hero-title-row {
  display: block;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 50px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

/* Outline / stroke middle row — visual centrepiece */
.hero-title-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  text-shadow: none;
  letter-spacing: 0.12em;
}

/* Subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 300;
  color: rgba(232, 234, 240, 0.6);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin: 0 auto 1.6rem;
  max-width: 500px;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.btn-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s, background 0.35s;
}

/* Primary — filled gold */
.btn-hero-primary {
  background: var(--accent);
  color: #0d0f14;
}

.btn-hero-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-110%);
  transition: transform 0.55s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}

.btn-hero-primary:hover .btn-hero-fill {
  transform: translateX(110%);
}

.btn-hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(201, 169, 110, 0.45);
}

/* Arrow icon circle */
.btn-hero-icon {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
}

.btn-hero-primary:hover .btn-hero-icon {
  transform: translateX(5px);
}

.btn-hero-text {
  position: relative;
  z-index: 1;
}

/* Secondary — glass outlined */
.btn-hero-secondary {
  background: rgba(13, 15, 20, 0.3);
  color: rgba(232, 234, 240, 0.85);
  border: 1px solid rgba(232, 234, 240, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-hero-secondary .btn-hero-icon {
  background: rgba(232, 234, 240, 0.08);
}

.btn-hero-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  background: rgba(201, 169, 110, 0.06);
}

.btn-hero-secondary:hover .btn-hero-icon {
  color: var(--accent);
}

/* Preserve .btn class for other pages */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: var(--accent);
  color: #0d0f14;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.35);
}

.btn.secondary {
  border: 1.5px solid rgba(201, 169, 110, 0.5);
  color: var(--accent);
  background: transparent;
}

.btn.secondary:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.lens-flare {
  display: none;
}

/* Mini stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
}

.hero-stat span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 234, 240, 0.38);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(232, 234, 240, 0.1);
  flex-shrink: 0;
}

/* ============================================================
   SCROLL DOWN INDICATOR — vertical animated track
   ============================================================ */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-down span {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 234, 240, 0.32);
  order: -1;
}

.scroll-track {
  width: 1.5px;
  height: 52px;
  background: rgba(232, 234, 240, 0.1);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.scroll-thumb {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  border-radius: 1px;
  animation: scrollTrack 1.9s var(--ease-in-out) infinite;
}

@keyframes scrollTrack {
  0% {
    top: -50%;
  }

  100% {
    top: 120%;
  }
}

/* ============================================================
   ABOUT / WHO WE ARE
   ============================================================ */
.about {
  background: var(--bg);
}

.about-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
  font-weight: 300;
}

/* Stats bar */
.stats-glass-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 4rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 2rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: var(--surface-2);
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.stat-item:hover .stat-icon {
  transform: scale(1.15) rotate(8deg);
}

.stat-content h3 {
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font-sans);
  margin: 0 0 0.2rem 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stat-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.stat-number {
  font-size: 1.8rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

/* Photos — Cinematic Feature Image */
.photos {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto 0;
  max-width: 900px;
}

.photos img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  display: block;
}

.photos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 20, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.photos:hover img {
  transform: scale(1.03);
}

/* ============================================================
   SERVICES — What Can DuingZ Do
   ============================================================ */
.services-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.services-section .section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 160px;
  cursor: default;
}

/* Remove bento wide/tall spans — use uniform 2-col layout */
.bento-card.card-wide,
.bento-card.card-tall {
  grid-column: auto;
  grid-row: auto;
}

.card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.bento-card h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin: 0;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Left border accent */
.bento-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.4s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-accent);
}

.bento-card:hover::before {
  transform: scaleY(1);
}

.bento-card:hover .card-icon {
  transform: scale(1.15);
  color: var(--accent);
}

/* Subtle glow (kept but toned down) */
.card-glow {
  display: none;
}

/* ============================================================
   TEAM — GLASSMORPHISM CARDS
   ============================================================ */
.team {
  background: var(--surface);
}

.team-dense-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 0;
}

.member {
  position: relative;
}

.member-inner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}

.member:hover .member-inner {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-accent);
  border-radius: var(--radius);
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
}

.member:hover img {
  transform: scale(1.08);
}

/* Overlay info */
.member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(13, 15, 20, 0.97) 0%, rgba(13, 15, 20, 0.75) 60%, transparent 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.member:hover .member-info {
  opacity: 1;
  transform: translateY(0);
}

.member-info h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.member-info p {
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-family: var(--font-sans);
}

/* Social links inside card */
.member-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.member-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.7rem;
  transition: background 0.25s, transform 0.25s;
}

.member-social a:hover {
  background: var(--accent);
  color: #0d0f14;
  transform: scale(1.1);
}

/* Permanent name tag at bottom */
.member-name-tag {
  margin-top: 0.6rem;
  text-align: center;
}

.member-name-tag h4 {
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin: 0 0 0.1rem 0;
}

.member-name-tag span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   PORTFOLIO — OUR WORKS
   ============================================================ */
.portfolio {
  background: var(--bg);
}

.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  aspect-ratio: 4/3;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.65);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 20, 0.95) 0%, rgba(13, 15, 20, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  transform: translateY(16px);
  transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover .project-overlay h3 {
  transform: translateY(0);
}

.decor-line {
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.6s ease 0.1s;
}

.gallery-item:hover .decor-line {
  width: 50px;
}

/* ============================================================
   NEWS & ACTIVITIES
   ============================================================ */
.news {
  background: var(--surface);
  padding: 6rem 2rem;
}

.news-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-timeline .post {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.news-timeline .post:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.post-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

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

.news-timeline .post:hover .post-image-wrapper img {
  transform: scale(1.07);
}

/* Date pill */
.post-image-wrapper .post-date-pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-date {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.post-content h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s;
}

.news-timeline .post:hover h3 {
  color: var(--accent);
}

.post-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.post-read {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 0.5rem;
  transition: gap 0.3s;
}

.news-timeline .post:hover .post-read {
  gap: 0.6rem;
}

/* ============================================================
   JOIN US / CTA
   ============================================================ */
.join {
  background: var(--bg);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Decorative radial background */
.join::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.join-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.join h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
}

.join-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.join-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
}

.btn-join {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--accent);
  color: #0d0f14;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.btn-join::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-join:hover::before {
  left: 100%;
}

.btn-join:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 169, 110, 0.4);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--surface);
  padding: 6rem 2rem;
}

.contact h2 {
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact>.container>p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-item h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  transition: background 0.3s, transform 0.3s;
}

.social-icon:hover {
  background: var(--accent);
  color: #0d0f14;
  transform: translateY(-3px);
}

/* Glassmorphism form panel */
.contact-form {
  background: rgba(28, 32, 48, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Input with animated bottom border only */
.form-field {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.85rem 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input:focus+.form-line {
  transform: scaleX(1);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
  display: block;
}

.btn-send {
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #0d0f14;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.btn-send::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.btn-send:hover::before {
  left: 100%;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #090b10;
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem 1.25rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  transition: transform 0.3s;
}

.footer-logo-img:hover {
  transform: scale(1.08);
}

.footer-logo span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.3s;
}

.footer-social-icon:hover {
  background: var(--accent);
  color: #0d0f14;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   MUSIC PLAYER
   ============================================================ */
.music-player {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.music-player:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.music-player.playing {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.15);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(201, 169, 110, 0);
  }
}

/* ============================================================
   BTS GALLERY (other pages)
   ============================================================ */
.bts-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.bts-gallery img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.3s ease;
}

.bts-gallery img:hover {
  transform: scale(1.02);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  section {
    padding: 5rem 1.5rem;
  }

  .team-dense-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-item.wide {
    grid-column: auto;
    aspect-ratio: 4/3;
  }

  .gallery-item.tall {
    grid-row: auto;
    aspect-ratio: 4/3;
  }

  .news-timeline {
    grid-template-columns: 1fr;
  }

  .bts-gallery img {
    max-height: 300px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================================ */
@media (max-width: 767px) {
  section {
    padding: 4rem 1.25rem;
  }

  /* Nav mobile */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 15, 20, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease-in-out), opacity 0.4s ease;
  }

  .nav-menu.active {
    max-height: 100vh;
    opacity: 1;
  }

  .nav-menu li {
    padding: 1rem;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 1.5rem;
  }

  /* Hero mobile — new layout */
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-brand {
    font-size: 1rem;
    letter-spacing: 0.25em;
    margin-bottom: 0.5rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.5rem;
  }

  .hero-title-row {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .hero-title-outline {
    font-size: clamp(3rem, 13vw, 5rem);
    -webkit-text-stroke-width: 1.5px;
  }

  .hero-title {
    gap: 0.02em;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
  }

  .hero-cta {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .btn-hero {
    padding: 0.85rem 1.6rem;
    font-size: 0.76rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat strong {
    font-size: 1.4rem;
  }

  .particle {
    display: none;
  }

  /* performance on mobile */
  .hero-corner {
    display: none;
  }

  /* Scroll down */
  .scroll-down {
    bottom: 1.5rem;
  }

  /* Stats */
  .stats-glass-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.3rem 1.2rem;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Photos */
  .photos img {
    height: 250px;
  }

  /* Services */
  .services-bento {
    grid-template-columns: 1fr;
  }

  .bento-card {
    min-height: 130px;
    padding: 1.4rem 1.5rem;
  }

  /* Team */
  .team-dense-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .member-name-tag h4 {
    font-size: 0.75rem;
  }

  .member-name-tag span {
    font-size: 0.6rem;
  }

  /* Portfolio */
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 16/9;
  }

  /* News */
  .news-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-image-wrapper {
    height: 180px;
  }

  /* Contact */
  .contact-form {
    padding: 1.75rem 1.25rem;
  }

  /* Footer */
  .footer-content {
    justify-content: center;
    text-align: center;
  }

  /* Music player */
  .music-player {
    bottom: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  .bts-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .bts-gallery img {
    max-height: 200px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }

  .hero-title-row {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .hero-title-outline {
    font-size: clamp(2.8rem, 15vw, 5rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat strong {
    font-size: 1.4rem;
  }

  .stats-glass-bar {
    grid-template-columns: 1fr 1fr;
  }

  .team-dense-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .bts-gallery {
    grid-template-columns: 1fr;
  }

  .bts-gallery img {
    max-height: 200px;
  }
}

/* Nav menu animation items */
@media (max-width: 767px) {
  .nav-menu li {
    opacity: 0;
    transform: translateY(-10px);
  }

  .nav-menu.active li {
    animation: slideInMenu 0.4s ease forwards;
  }

  .nav-menu.active li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .nav-menu.active li:nth-child(2) {
    animation-delay: 0.10s;
  }

  .nav-menu.active li:nth-child(3) {
    animation-delay: 0.15s;
  }

  .nav-menu.active li:nth-child(4) {
    animation-delay: 0.20s;
  }

  .nav-menu.active li:nth-child(5) {
    animation-delay: 0.25s;
  }

  .nav-menu.active li:nth-child(6) {
    animation-delay: 0.30s;
  }

  @keyframes slideInMenu {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================================
   BLOG PAGES — CINEMATIC EDITORIAL DESIGN
   ============================================================ */

/* Reading Progress Bar */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.6);
}

/* ============================================================
   BLOG HERO
   ============================================================ */
.blog-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 0.1s linear;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(13, 15, 20, 0.55) 0%,
      rgba(13, 15, 20, 0.15) 35%,
      rgba(13, 15, 20, 0.85) 75%,
      rgba(13, 15, 20, 0.98) 100%),
    linear-gradient(105deg, rgba(13, 15, 20, 0.5) 0%, transparent 60%);
  z-index: 1;
}

/* Corner decoration brackets (reuse hero pattern) */
.blog-hero-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 3;
  opacity: 0.25;
}
.blog-hero-corner::before,
.blog-hero-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.blog-hero-corner::before { width: 100%; height: 1.5px; top: 0; left: 0; }
.blog-hero-corner::after  { width: 1.5px; height: 100%; top: 0; left: 0; }
.blog-hero-corner-tl { top: 1.5rem; left: 1.5rem; }
.blog-hero-corner-tr { top: 1.5rem; right: 1.5rem; transform: scaleX(-1); }
.blog-hero-corner-bl { bottom: 1.5rem; left: 1.5rem; transform: scaleY(-1); }
.blog-hero-corner-br { bottom: 1.5rem; right: 1.5rem; transform: scale(-1); }

.blog-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(16px);
}

.blog-hero-eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

.blog-hero-category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  max-width: 850px;
  text-shadow: 0 4px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(40px);
}

.blog-hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.blog-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(12px);
}

.blog-hero-meta-item i {
  color: var(--accent);
  font-size: 0.75rem;
}

/* Scroll indicator (reuse homepage pattern) */
.blog-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.blog-scroll-indicator span {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 234, 240, 0.28);
}

/* ============================================================
   BLOG CONTENT — EDITORIAL LAYOUT
   ============================================================ */
.blog-content {
  padding: 6rem 2rem;
  background: var(--bg);
}

.blog-content-inner {
  max-width: 780px;
  margin: 0 auto;
}

.blog-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.blog-body > p,
.blog-body > ul,
.blog-body > ol {
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(20px);
}

.blog-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text);
  letter-spacing: 0.06em;
  margin: 4rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.blog-body h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.blog-body h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  opacity: 0;
  transform: translateY(18px);
}

/* Highlighted / lead paragraph */
.blog-body p.lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Inline link */
.blog-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
  transition: border-color 0.3s, color 0.3s;
}

.blog-body a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* Blog list */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.blog-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.blog-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ============================================================
   BLOG QUOTE / BLOCKQUOTE
   ============================================================ */
.blog-quote {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 2rem 2rem 2.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-24px);
  transition: box-shadow 0.4s ease;
}

.blog-quote::before {
  content: '"';
  position: absolute;
  top: -0.4rem;
  left: 1.2rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

.blog-quote::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.blog-quote p {
  font-size: 1.12rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-weight: 300;
}

.blog-quote cite {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.blog-quote:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 4px 0 0 var(--accent);
}

/* ============================================================
   BLOG IMAGES
   ============================================================ */
.blog-img-wrap {
  margin: 2.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  position: relative;
  opacity: 0;
  transform: scale(0.96);
  background: var(--surface);
}

.blog-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out);
  max-height: 500px;
  object-fit: cover;
}

.blog-img-wrap:hover img {
  transform: scale(1.03);
}

.blog-img-caption {
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ============================================================
   BLOG GALLERY — MASONRY GRID + LIGHTBOX
   ============================================================ */
.blog-gallery-section {
  margin: 3rem 0;
}

.blog-gallery-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.blog-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  display: block;
}

.gallery-thumb:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gallery-thumb:hover img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 15, 20, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-thumb-overlay i {
  font-size: 1.5rem;
  color: #fff;
}

.gallery-thumb:hover .gallery-thumb-overlay {
  opacity: 1;
}

/* Lightbox */
#blogLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 6, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#blogLightbox.active {
  display: flex;
}

#blogLightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border-accent);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  animation: lightboxIn 0.35s var(--ease-out) forwards;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  font-size: 1rem;
  color: var(--text);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.25s, transform 0.25s;
  font-size: 0.9rem;
  z-index: 1;
}

.lightbox-nav:hover {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--border-accent);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

/* ============================================================
   BLOG AUTHOR CARD — GLASSMORPHISM
   ============================================================ */
.blog-author-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 4rem 0 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(24px);
}

.blog-author-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.blog-author-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-accent);
  transform: translateY(-4px);
}

.blog-author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12), 0 8px 24px rgba(0,0,0,0.4);
  transition: box-shadow 0.4s ease;
}

.blog-author-card:hover .blog-author-avatar {
  box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.2), 0 12px 32px rgba(0,0,0,0.5);
}

.blog-author-info {
  flex: 1;
}

.blog-author-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: block;
}

.blog-author-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
}

.blog-author-bio {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.blog-related {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.blog-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-related-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-post-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(32px);
}

.related-post-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-accent);
}

.related-post-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-3);
}

.related-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  display: block;
}

.related-post-card:hover .related-post-img img {
  transform: scale(1.07);
  filter: brightness(0.7);
}

.related-post-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 20, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.related-post-card:hover .related-post-img-overlay {
  opacity: 1;
}

.related-post-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-post-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

.related-post-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
  transition: color 0.3s;
}

.related-post-card:hover .related-post-title {
  color: var(--accent);
}

.related-post-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.related-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.3s;
}

.related-post-card:hover .related-post-link {
  gap: 0.7rem;
}

/* ============================================================
   BLOG PAGE — MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .blog-hero {
    min-height: 90vh;
    padding-bottom: 4rem;
    align-items: flex-end;
  }

  .blog-hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
    margin-bottom: 1.2rem;
  }

  .blog-hero-meta {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .blog-hero-meta-item {
    font-size: 0.72rem;
  }

  .blog-content {
    padding: 4rem 1.25rem;
  }

  .blog-body {
    font-size: 1rem;
  }

  .blog-body h2 {
    font-size: 1.5rem;
    margin: 3rem 0 1.2rem;
  }

  .blog-body h3 {
    font-size: 0.85rem;
    margin: 2rem 0 0.8rem;
  }

  .blog-quote {
    padding: 1.5rem 1.5rem 1.5rem 1.8rem;
    margin: 2rem 0;
  }

  .blog-quote p {
    font-size: 1rem;
  }

  .blog-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .blog-author-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
  }

  .blog-author-avatar {
    width: 88px;
    height: 88px;
  }

  .blog-related {
    padding: 4rem 1.25rem;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    min-height: 88vh;
    padding-bottom: 3.5rem;
  }

  .blog-hero-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .blog-hero-meta {
    gap: 0.75rem;
  }

  .blog-hero-meta-item {
    font-size: 0.68rem;
  }

  .blog-content {
    padding: 3rem 1rem;
  }

  .blog-body {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .blog-body h2 {
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem;
  }

  .blog-body h3 {
    font-size: 0.8rem;
  }

  .blog-quote {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    margin: 1.5rem 0;
  }

  .blog-quote p {
    font-size: 0.95rem;
  }

  .blog-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .blog-author-card {
    padding: 1.5rem 1.25rem;
  }

  .blog-author-avatar {
    width: 76px;
    height: 76px;
  }

  .blog-author-name {
    font-size: 1.2rem;
  }

  .blog-related {
    padding: 3rem 1rem;
  }
}