/* ══════════════════════════════════════════════════
   THINKING DC — Design System
   ══════════════════════════════════════════════════ */


/* ─── CUSTOM PROPERTIES ──────────────────────────── */

:root {
  --black:     #0c0b0e;
  --dark:      #141317;
  --mid:       #1e1c22;
  --border:    #2a2832;
  --muted:     #5c5868;
  --dim:       #9590a0;
  --cream:     #ede8df;
  --white:     #f7f4ee;
  --accent:    #c49a5c;
  --accent-hi: #dbb577;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'IBM Plex Sans', -apple-system, Helvetica, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', monospace;

  --gutter: 48px;
}


/* ─── RESET & BASE ───────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background: var(--black);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }


/* ─── NAV ────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(12,11,14,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wordmark {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }


/* ─── HERO ───────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 80px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: -10%; left: 0;
  width: 100%; height: 120%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  will-change: transform;
  animation: hero-reveal 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes hero-reveal {
  from { opacity: 0; }
  to   { opacity: 0.4; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,11,14,0.15) 0%,
    rgba(12,11,14,0.45) 50%,
    rgba(12,11,14,0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 40px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}

.hero-cta:hover {
  color: var(--accent-hi);
  border-color: var(--accent-hi);
}


/* ─── EYEBROW (reusable) ────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}


/* ─── REEL BAR ───────────────────────────────────── */

.reel-bar {
  padding: var(--gutter);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.reel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.reel-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.reel-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.25s;
}

.reel-link:hover { color: var(--accent-hi); }


/* ─── SECTION HEADERS ────────────────────────────── */

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 12px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}


/* ─── FEATURED PROJECTS ──────────────────────────── */

.featured {
  padding: 80px var(--gutter) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
}


/* ─── PROJECT CARDS (featured) ───────────────────── */

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--mid);
  display: block;
  aspect-ratio: 16/10;
}

.project-card.tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.project-card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) brightness(0.9);
  opacity: 0.85;
  transition: filter 0.6s ease, opacity 0.5s ease, transform 0.7s ease;
}

.project-card:hover .project-card-thumb {
  filter: saturate(1) brightness(1);
  opacity: 0.95;
  transform: scale(1.02);
}

.project-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  background: linear-gradient(transparent, rgba(12,11,14,0.92));
}

.card-client {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}

.card-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dim);
}


/* ─── MORE PROJECTS GRID ─────────────────────────── */

.more-projects {
  padding: 80px var(--gutter);
  border-top: 1px solid var(--border);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.more-card {
  position: relative;
  overflow: hidden;
  background: var(--mid);
  display: block;
  aspect-ratio: 4/3;
}

.more-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
  opacity: 0.8;
  transition: filter 0.6s ease, opacity 0.5s ease, transform 0.7s ease;
}

.more-card:hover .more-card-img {
  filter: saturate(1) brightness(1);
  opacity: 0.95;
  transform: scale(1.02);
}

.more-card-overlay {
  position: absolute; inset: 0;
  z-index: 1;
}

.more-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(12,11,14,0.92));
  z-index: 2;
}

.more-card-client {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.more-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}


/* ─── WIP TILE ───────────────────────────────────── */

.wip-tile {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  text-align: center;
  gap: 10px;
  padding: 28px;
  transition: border-color 0.3s;
}

.wip-tile:hover { border-color: var(--accent); }

.wip-tile:hover .wip-label { color: var(--accent); }
.wip-tile:hover .wip-arrow { transform: translateX(5px); color: var(--accent); }

.wip-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.wip-heading {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}

.wip-arrow {
  font-size: 18px;
  color: var(--dim);
  margin-top: 4px;
  transition: transform 0.25s, color 0.25s;
  display: inline-block;
}


/* ─── ABOUT ──────────────────────────────────────── */

.about {
  padding: 80px var(--gutter);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  position: sticky;
  top: 120px;
}

.about-heading em {
  font-style: italic;
  color: var(--accent);
}

.about-body {
  font-size: 16px;
  color: var(--cream);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 540px;
}

.about-tools {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 36px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.3s;
}

.contact-link:hover { color: var(--accent); }


/* ─── MODAL ──────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12,11,14,0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-panel {
  background: var(--dark);
  border: 1px solid var(--border);
  max-width: 680px;
  width: 100%;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  position: relative;
}

.modal-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.modal-body {
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute; top: 14px; right: 16px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.modal-close:hover { color: var(--white); }

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
}

.modal-copy {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 10px;
}

.modal-cta {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.25s;
}

.modal-cta:hover { color: var(--accent-hi); }


/* ─── FOOTER ─────────────────────────────────────── */

footer {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}

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

.footer-links .sep { color: var(--border); }


/* ─── WORK PAGE ──────────────────────────────────── */

.page-header {
  margin-top: 61px;
  padding: 80px var(--gutter) 48px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
}

.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-subtitle {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 300;
  color: var(--dim);
  max-width: 520px;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.work-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark);
  display: block;
}

.work-card img,
.work-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
  transition: transform 0.6s ease, filter 0.5s ease, opacity 0.4s ease;
}

.work-card:hover img,
.work-card:hover video {
  transform: scale(1.02);
  filter: saturate(1) brightness(1);
}

.work-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,14,0.85) 0%, rgba(12,11,14,0.15) 50%, transparent 100%);
  transition: background 0.3s ease;
  z-index: 1;
}

.work-card:hover .work-card-overlay {
  background: linear-gradient(to top, rgba(12,11,14,0.92) 0%, rgba(12,11,14,0.3) 60%, rgba(12,11,14,0.1) 100%);
}

.work-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 2;
}

.work-card-client {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

.work-card-role {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.wip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background: var(--dark);
  border: 1px solid var(--border);
  text-align: center;
  gap: 10px;
  padding: 28px;
  transition: border-color 0.3s;
}

.wip-card:hover { border-color: var(--accent); }
.wip-card:hover .wip-label { color: var(--accent); }
.wip-card:hover .wip-arrow { transform: translateX(5px); color: var(--accent); }


/* ─── PROJECT DETAIL PAGES ───────────────────────── */

.hero--project {
  height: calc(100vh - 61px);
  height: calc(100dvh - 61px);
  margin-top: 61px;
  padding: 0 var(--gutter) 64px;
  align-items: flex-end;
}

.nav-back {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s;
}

.nav-back:hover { color: var(--white); }


/* ─── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .project-card.tall {
    grid-row: span 1;
    aspect-ratio: 16/10;
  }

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

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-heading {
    position: static;
  }

  .nav-links { gap: 24px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.1em; }

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

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  .modal-panel { grid-template-columns: 1fr; }
  .modal-photo { height: 220px; object-position: center 20%; }
}

@media (max-width: 520px) {
  .more-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
  }
}
