/* ─── Skip navigation (accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

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

:root {
  --bg:          #F4F2EE;
  --surface:     #FFFFFF;
  --surface-2:   #EFEDE9;
  --border:      #E2DFD9;
  --border-dark: #C8C4BC;
  --text:        #1C1A18;
  --muted:       #79756E;
  --muted-light: #B5B0A8;
  --accent:      #C4704A;       /* muted terracotta */
  --accent-bg:   #F7EDE7;       /* accent tint for pills/hovers */
  --accent-dark: #9A5337;
  --navy:        #1f2638;       /* deep blue — dividers, footer, labels */
  --navy-muted:  rgba(31,38,56,0.08); /* light navy tint for borders */
  --white:       #FFFFFF;
  --radius-sm:   3px;
  --radius:      6px;
  --radius-lg:   10px;
  --transition:  200ms ease;
  --font:        -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-body:   Georgia, "Times New Roman", serif;
}

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

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

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

/* ─── Header ──────────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: var(--navy);
  border-bottom: none;
}

.logo {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
nav a:hover,
nav a.active { color: var(--white); }

.nav-contact {
  background: var(--accent);
  color: var(--white) !important;
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.02em !important;
  transition: background var(--transition) !important;
}
.nav-contact:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
}

/* ─── Hamburger button (hidden on desktop) ────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav drawer ───────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  background: var(--navy);
  z-index: 99;
  flex-direction: column;
  padding: 12px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--white); }
.mobile-nav .nav-contact {
  margin: 8px 24px 0;
  text-align: center;
  display: block;
  padding: 10px 18px;
}

/* ─── Body copy in Georgia ────────────────────────────────────────── */
p, .about-content p, .hero-sub, .video-desc, .strategy-card-desc {
  font-family: var(--font-body);
}

/* ─── Hero ────────────────────────────────────────────────────────── */
#hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 72px;
  min-height: 50vh;
  padding-top: 60px;
  border-bottom: 2px solid var(--navy);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
  font-weight: 400;
}

/* ─── Portfolio Section ───────────────────────────────────────────── */
#portfolio {
  padding: 64px 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Project count */
#project-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

/* ── Image grid ──────────────────────────────────────────────────── */
#grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

/* Tile */
.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: default;
}

/* tiles with a video are clickable */
.tile[role="button"] { cursor: pointer; }

/* placeholder colour when no image is set */
.tile--placeholder { background-color: var(--surface-2); }

/* Hover overlay — hidden by default */
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px 18px;
  background: linear-gradient(to top, rgba(20,18,16,0.82) 0%, rgba(20,18,16,0.3) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.tile:hover .tile-overlay { opacity: 1; }

.tile-client {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 3px;
  line-height: 1;
}

.tile-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}

.tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  padding-left: 3px; /* optical centre for ▶ */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.tile:hover .tile-play {
  background: rgba(255,255,255,0.28);
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

/* ─── Modal ───────────────────────────────────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 26, 24, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
#modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 280ms ease;
  box-shadow: 0 24px 64px rgba(28, 26, 24, 0.16);
}
#modal-overlay.open #modal {
  transform: translateY(0) scale(1);
}

.modal-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--bg);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.modal-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-2);
}

.modal-body {
  padding: 32px 36px 36px;
}

.modal-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.modal-client-year {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 28px;
}

.modal-awards-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 12px;
}

.modal-awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-awards-list li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-awards-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 10;
  line-height: 1;
}
.modal-close:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* ─── About ───────────────────────────────────────────────────────── */
#about {
  padding: 80px 48px;
  border-top: 2px solid var(--navy);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
  align-self: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.about-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}
.about-content p:last-of-type { margin-bottom: 32px; }

.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}

.highlight-item {
  background: var(--surface);
  padding: 20px 20px 18px;
}
.highlight-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.highlight-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.about-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(196, 112, 74, 0.2);
  padding: 10px 20px;
  border-radius: 99px;
  transition: background var(--transition), border-color var(--transition);
}
.about-contact a:hover {
  background: rgba(196, 112, 74, 0.15);
  border-color: rgba(196, 112, 74, 0.4);
}

/* ─── Brand logos (strategy sidebar) ─────────────────────────────── */
.brand-logos {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 8px;
}

.brand-logo {
  width: 100%;
  max-width: 64px;
  height: auto;
  display: block;
  color: var(--navy);
  filter: brightness(0) opacity(0.75);
}

/* ─── LinkedIn icon (about contact) ──────────────────────────────── */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(196, 112, 74, 0.2);
  padding: 10px 20px;
  border-radius: 99px;
  transition: background var(--transition), border-color var(--transition);
}
.linkedin-link:hover {
  background: rgba(196, 112, 74, 0.15);
  border-color: rgba(196, 112, 74, 0.4);
}
.linkedin-icon {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
footer {
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--navy);
}

footer p {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  font-family: var(--font);
}

footer a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
footer a:hover { color: var(--accent); }

/* ─── Reveal animation ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Placeholder (HoP/EP, Strategy coming soon) ─────────────────── */
.placeholder-message {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.placeholder-message p {
  font-size: 0.9rem;
  color: var(--muted);
}
.placeholder-message code {
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.82rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  color: var(--accent);
}

/* ─── Director line on card ───────────────────────────────────────── */
.card-director {
  font-size: 0.75rem;
  color: var(--muted-light);
  font-style: italic;
}

/* ─── Director line in modal ──────────────────────────────────────── */
.modal-director {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  header { padding: 0 20px; height: 56px; }
  nav { display: none; }
  .nav-toggle { display: flex; }

  #hero { padding: 56px 20px 52px; min-height: 42vh; }
  #portfolio { padding: 44px 20px; }
  #about { padding: 56px 20px; grid-template-columns: 1fr; gap: 28px; }
  .about-sidebar { position: static; flex-direction: row; align-items: center; gap: 20px; }
  .about-photo { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; aspect-ratio: unset; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }

  #grid { grid-template-columns: 1fr 1fr; gap: 2px; }

  .modal-body { padding: 24px 20px 28px; }
  .modal-title { font-size: 1.4rem; }
  .filters { padding: 3px; }
}

@media (max-width: 480px) {
  .hero-name { letter-spacing: -0.025em; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  #grid { grid-template-columns: 1fr; gap: 2px; }
}
