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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #e8e0d0;
  --accent-warm: #c8b89a;
  --tag-bg: rgba(255,255,255,0.06);
  --tag-hover: rgba(255,255,255,0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

/* Theme variables (light default, dark via class) */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f0ece4;
  --border: rgba(0,0,0,0.08);
  --text: #171717;
  --text-muted: #555555;
  --text-dim: #888888;
  --accent: #2b2110;
  --accent-warm: #b58c4a;
  --tag-bg: rgba(0,0,0,0.03);
  --tag-hover: rgba(0,0,0,0.06);
    
   --sup: #000;

}

body.theme-dark {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #e8e0d0;
  --accent-warm: #c8b89a;
  --tag-bg: rgba(255,255,255,0.06);
  --tag-hover: rgba(255,255,255,0.12);
  --sup: #fff;

}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Typography ───────────────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 400; }

/* ─── Header / Nav ─────────────────────────────────────── */
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: 72px;
  border-bottom: 1px solid var(--border);
  background: #f7f4ef;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.theme-dark header {
  background: rgba(10,10,10,0.85);
}

.header-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.theme-toggle {
  margin-left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #000;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  background: var(--tag-hover);
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

body.theme-dark .theme-toggle {
  border: 1px solid #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

body.theme-dark .theme-toggle:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-1px);
}


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

nav a {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

nav a:hover { color: var(--text); background: var(--tag-bg); }
nav a.active { color: var(--text); }

nav a .nav-num {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  transition: color var(--transition);
}

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

.header-email {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ─── Clock ────────────────────────────────────────────── */
.clock-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.clock-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Page Wrapper ─────────────────────────────────────── */
.page { padding-top: 72px; min-height: 100vh; }

/* ─── Works Page ───────────────────────────────────────── */
.works-hero {
  padding: 80px 48px 60px;
  border-bottom: 1px solid var(--border);
}

.works-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 8px;
}

/* ─── Filters ──────────────────────────────────────────── */
.works-filters {
  padding: 32px 48px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: var(--tag-bg);
}

.filter-btn.active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

/* ─── Works Grid ───────────────────────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.work-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.work-card:hover { background: var(--surface); }

.work-card-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.work-card-image img {
  width: 100%; height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

.work-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  color: var(--text-dim);
}

.work-card-body { flex: 1; }

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

.work-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.work-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.work-card .arrow-link {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.work-card:hover .arrow-link {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.work-card.hidden {
  display: none;
}

/* ─── CTA Banner ───────────────────────────────────────── */
.cta-section {
  padding: 96px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder { color: var(--text-dim); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.25); }

.newsletter-form button {
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.newsletter-form button:hover { opacity: 0.85; }

.cta-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.cta-link:hover { opacity: 0.85; }

/* ─── Footer ───────────────────────────────────────────── */
footer {
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand .copyright {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--text); }

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

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Project Page ─────────────────────────────────────── */
.project-hero {
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.project-hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}

.project-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--text-dim);
}

.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text);
}

.project-intro-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 520px;
}

.project-intro-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* ─── Featured Image ───────────────────────────────────── */
.featured-image-section {
  padding: 48px;
  border-bottom: 1px solid var(--border);
}

.featured-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  height: 500px !important;
  aspect-ratio: unset !important;
  position: relative;
}

.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.featured-image-wrap video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.featured-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  color: var(--text-dim);
}

.featured-image-caption {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ─── Overview ─────────────────────────────────────────── */
.overview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.overview-left {
  padding: 64px 48px;
  border-right: 1px solid var(--border);
}

.overview-left .section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}

.overview-left .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}

.meta-item label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.meta-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.overview-right {
  padding: 64px 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
}

.body-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ─── Results Section ──────────────────────────────────── */
.results-section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.results-section .section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
  display: flex; align-items: center; gap: 12px;
}

.results-section .section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--border);
}

.results-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 56px;
  max-width: 600px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-card {
  background: var(--surface);
  padding: 40px 32px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Gallery ──────────────────────────────────────────── */
.gallery-section {
  padding: 48px 48px 80px;
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item.tall { aspect-ratio: 4/3; }
.gallery-item.short { aspect-ratio: 3/4; }

.gallery-item-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  color: var(--text-dim);
}

.gallery-side { display: flex; flex-direction: column; gap: 16px; }

/* ─── Related Works ────────────────────────────────────── */
.related-section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.related-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 48px;
}

.related-header .section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.related-header .section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
}

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

/* ─── Scroll Reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Mobile ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  header { padding: 0 24px; }
  .header-email { display: none; }
.gallery-grid, .stats-grid { grid-template-columns: 1fr; }
  nav a { padding: 7px 10px; font-size: 12px; }

  .works-hero, .works-filters, .works-grid { padding-left: 0; padding-right: 0; }

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

  .project-hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 48px; }

  .overview-section { grid-template-columns: 1fr; }
  .overview-left { border-right: none; border-bottom: 1px solid var(--border); padding: 48px 24px; }
  .overview-right { padding: 48px 24px; }
.theme-toggle { font-size: 9px; }
.clock-pill { display: none;
  footer { grid-template-columns: 1fr 1fr; padding: 48px 24px; }

  .featured-image-section,
  .results-section,
  .gallery-section,
  .related-section,
  .cta-section { padding-left: 24px; padding-right: 24px; }

  .stats-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .works-hero { padding: 48px 20px 40px; }
}
