/* ===== PORTFOLIO PAGE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF9F7;
  --fg: #111111;
  --fg-muted: #6B6B6B;
  --accent: #C7521A;
  --accent-hover: #A84416;
  --surface: #FFFFFF;
  --border: #E5E3DF;
  --border-dark: #C8C5BF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Hero */
.portfolio-hero {
  padding: 80px 64px;
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-hero .eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.portfolio-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}
.portfolio-hero p {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Client Section */
.client-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px;
  border-bottom: 1px solid var(--border);
}
.client-section:last-of-type { border-bottom: none; }

.client-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.logo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.client-meta { padding-top: 4px; }
.client-industry {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.client-name {
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}
.client-desc {
  color: var(--fg-muted);
  font-size: 15px;
  max-width: 560px;
  line-height: 1.6;
}
.client-stat {
  margin-top: 16px;
  display: flex;
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--font-display);
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Clips Grid */
.clips-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.clip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.clip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.clip-thumb {
  height: 180px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.clip-thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.clip-thumb .thumb-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clip-thumb .thumb-icon svg { width: 14px; height: 14px; }
.clip-platform {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 4px;
}
.clip-thumb-luxury { background: linear-gradient(135deg, #1a1a1a 0%, #2d1f12 100%); }
.clip-thumb-credit { background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 100%); }
.clip-thumb-fitness { background: linear-gradient(135deg, #1c1a12 0%, #2a2410 100%); }

/* Brand geometric elements in thumbs */
.geo-n {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 64px;
}
.geo-p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 64px;
}
.geo-i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 72px;
}

.clip-body { padding: 16px; }
.clip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.4;
}
.clip-meta {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.clip-tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Before / After */
.ba-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ba-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ba-label.before { color: var(--fg-muted); }
.ba-label.after { color: var(--accent); }

.ba-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.ba-card.after-card { border-color: var(--accent); }
.ba-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.ba-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.ba-highlight {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.ba-highlight.before-hl {
  background: #f5f4f2;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.ba-highlight.after-hl {
  background: #fff5f0;
  border: 1px solid #f5d0c0;
  color: var(--accent);
}
.ba-stat-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.ba-stat {
  font-size: 12px;
  color: var(--fg-muted);
}
.ba-stat strong { color: var(--fg); }

/* Footer CTA */
.cta-section {
  background: #111111;
  color: #fff;
  padding: 80px 64px;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  font-size: 16px;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .portfolio-hero, .client-section { padding: 40px 24px; }
  .clips-grid { grid-template-columns: 1fr; }
  .ba-section { grid-template-columns: 1fr; }
  .client-header { grid-template-columns: 1fr; }
  .logo-wrap { width: 80px; height: 80px; }
  .nav-links { display: none; }
}