/* =====================================
   Easemotion — Motion & Illustration
   White · Masonry · Rounded
   ===================================== */

:root {
  --bg: #fafafa;
  --bg2: #ffffff;
  --bg3: #f2f2f2;
  --text: #1a1a1a;
  --text-dim: #888;
  --text-muted: #bbb;
  --border: #e0e0e0;
  --border-light: #eee;
  --accent: #c9973e;
  --shadow: 0 1px 6px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Outfit', sans-serif;
  --max-w: 1400px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: rgba(201, 151, 62, 0.2); }

/* Containers */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* ============ HERO ============ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 36px;
}

.hero-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: all 0.25s;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg2);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ SECTION HEADER ============ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-header .count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ MASONRY GRID ============ */
.project-grid {
  column-count: 3;
  column-gap: 16px;
  padding: 0;
}

@media (max-width: 1024px) {
  .project-grid { column-count: 2; }
}
@media (max-width: 640px) {
  .project-grid { column-count: 1; }
}

.project-card {
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 16px;
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
  position: relative;
  display: inline-block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-card .thumb-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}

.project-card .thumb-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.project-card:hover .thumb-wrap img {
  transform: scale(1.05);
}

/* Force base aspect, then vary */
.project-card .thumb-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card.short .thumb-wrap {
  aspect-ratio: 16 / 9;
}

.project-card.tall .thumb-wrap {
  aspect-ratio: 4 / 5;
}

.project-card.xl .thumb-wrap {
  aspect-ratio: 3 / 4;
}

.project-card .overlay {
  padding: 10px 12px 12px;
  background: #fff;
}

.project-card .overlay h3 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1px;
  line-height: 1.3;
  color: #111;
}

.project-card .overlay .label {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.project-card:hover .play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.play-indicator::after {
  content: '';
  border-left: 14px solid var(--text);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 64px 0 40px;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 480px;
}

.page-section {
  padding: 0 0 80px;
}

/* ============ ABOUT PAGE ============ */
.about-content {
  max-width: 680px;
  margin: 0 auto;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.about-content p strong {
  color: var(--text);
}

/* ============ CONTACT PAGE ============ */
.contact-content {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-item {
  padding: 20px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.contact-item .label {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-item .value {
  font-size: 1rem;
  color: var(--text);
}

.contact-item .value a {
  color: var(--text);
}

.contact-item .value a:hover {
  color: var(--accent);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  backdrop-filter: blur(4px);
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color 0.2s;
  z-index: 10;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-video {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-sm);
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  padding: 12px 16px;
  transition: all 0.2s;
  z-index: 10;
  border-radius: var(--radius-sm);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-title {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg2);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 32px;
    gap: 14px;
    box-shadow: var(--shadow);
  }

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

  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 0.95rem; }

  .page-header { padding: 48px 0 32px; }
  .page-header h1 { font-size: 1.6rem; }

  .section-header {
    flex-direction: column;
    gap: 4px;
  }

  .container { padding: 0 20px; }
  .header-inner { padding: 14px 20px; }
  .footer-inner { padding: 0 20px; }

  .lightbox { padding: 16px; }
  .lightbox-nav { font-size: 1.5rem; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .btn { padding: 8px 20px; font-size: 0.75rem; }
  .project-card .overlay { padding: 10px 12px 12px; }
  .project-card .overlay h3 { font-size: 0.8rem; }
}
