*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ── Customizable tokens (updated by customizer.js) ── */
  --accent: #2D4A3E;
  --accent-hover: #1E3329;
  --bg-primary: #FAFAF8;
  --bg-secondary: #FFFFFF;
  --bg-surface: #EDECEA;
  --bg-surface-dark: #E0DFDB;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6860;
  --text-tertiary: #9B978F;
  --cta-bg: #2D4A3E;
  --cta-text: #FFFFFF;
  --footer-bg: #1A1A1A;
  --footer-text: rgba(255,255,255,0.6);
  --border: #E0DFDB;

  /* ── Non-customizable ── */
  --font: 'DM Sans', -apple-system, sans-serif;
  --max-w: 1320px;
  --section-pad: clamp(80px, 10vw, 140px);
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 12px; left: 16px; right: 16px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, top 0.3s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  filter: invert(1);
  transition: opacity 0.2s;
}

.nav-logo-img:hover { opacity: 0.7; }

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.nav-links a.nav-cta {
  color: white;
}

.nav-links a.nav-cta:hover {
  color: white;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover { color: var(--text-primary); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 5px;
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 88px; left: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 16px;
  padding: 8px 0;
}

.mobile-nav a:hover { color: var(--text-primary); }

.mobile-nav .btn {
  text-align: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--cta-text);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--cta-text);
}

.btn-large {
  padding: 16px 40px;
  font-size: 15px;
  border-radius: calc(var(--radius) + 2px);
}

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

.btn-white:hover {
  background: var(--bg-primary);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   PLACEHOLDERS
   ═══════════════════════════════════════ */
.img-placeholder {
  background: var(--bg-surface);
  border: 1.5px dashed var(--bg-surface-dark);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s;
}

.img-placeholder:hover { border-color: var(--text-tertiary); }

.ph-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-icon svg {
  width: 18px; height: 18px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section { padding: var(--section-pad) 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 720px;
}

.section-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin-top: 20px;
  font-weight: 300;
}

.section-header { margin-bottom: clamp(48px, 6vw, 72px); }

.section-header.centered { text-align: center; }
.section-header.centered .section-title,
.section-header.centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════ */
.hero {
  padding-top: 88px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(40px, 6vw, 80px) 0;
}

.hero-content { max-width: 580px; }

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
  font-weight: 300;
}

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

.hero-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  min-height: 480px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 400;
}

/* ═══════════════════════════════════════
   2. CAPABILITIES
   ═══════════════════════════════════════ */
.capabilities { background: var(--bg-secondary); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cap-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: var(--bg-primary);
}

.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.cap-card .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: 0;
  border: none;
  border-bottom: 1.5px dashed var(--bg-surface-dark);
}

.cap-card-body { padding: 24px; }

.cap-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cap-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}

.cap-card:hover .card-arrow { gap: 10px; }

/* ═══════════════════════════════════════
   3. WHY PUTNAM
   ═══════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.why-image {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
}

.why-content .section-title { margin-bottom: 24px; }

.why-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 300;
}

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

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why-feature-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s;
}

.why-feature-icon svg {
  width: 16px; height: 16px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-feature h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.why-feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   4. FEATURED WORK
   ═══════════════════════════════════════ */
.work { background: var(--bg-secondary); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.work-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.work-item .img-placeholder {
  aspect-ratio: 3/2;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}

.work-item:hover .img-placeholder { transform: scale(1.02); }

.work-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.work-item:first-child .img-placeholder {
  aspect-ratio: auto;
  height: 100%;
}

.work-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(26,26,26,0.7), transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s;
}

.work-item:hover .work-overlay { opacity: 1; }

.work-overlay h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.work-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   5. HOW IT WORKS
   ═══════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1.5px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, background 0.3s;
}

.process-step:hover .process-number {
  border-color: var(--accent);
  background: var(--accent);
}

.process-number svg {
  width: 32px; height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.process-step:hover .process-number svg { stroke: white; }

.process-step-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 auto;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   6. CLIENTS
   ═══════════════════════════════════════ */
.clients { background: var(--bg-secondary); }

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.client-logo {
  width: 120px; height: 48px;
  background: var(--bg-surface);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.client-logo:hover { background: var(--bg-surface-dark); }

.client-logo span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}

.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   7. FINAL CTA
   ═══════════════════════════════════════ */
.final-cta {
  background: var(--cta-bg);
  color: var(--cta-text);
  text-align: center;
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.final-cta .container { position: relative; }

.final-cta h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--cta-text);
}

.final-cta p {
  font-size: clamp(16px, 1.6vw, 19px);
  opacity: 0.75;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 300;
  color: var(--cta-text);
}

/* ═══════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  /* Logo is already white, no invert needed on dark footer */
  filter: none;
  opacity: 0.8;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
  font-weight: 300;
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  font-weight: 300;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 300;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item:first-child { grid-column: span 2; grid-row: span 1; }
  .work-item:first-child .img-placeholder { aspect-ratio: 2/1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 0 64px;
  }

  .hero-image { min-height: 320px; order: -1; }
  .hero-stats { gap: 32px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-image { aspect-ratio: 16/9; }
  .why-features { grid-template-columns: 1fr; }

  .cap-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item:first-child { grid-column: span 1; }
  .work-item:first-child .img-placeholder { aspect-ratio: 3/2; }

  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-grid::before { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
