/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --white: #FFFFFF;
  --ink: #0B0B0B;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --rule: #E5E5E5;
  --rule-strong: #1A1A1A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: 64px;
  --max-width: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: background 200ms ease, backdrop-filter 200ms ease, box-shadow 200ms ease;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Primary nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-muted);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 150ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Right zone: social icons + lang toggle */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-social a {
  display: flex;
  align-items: center;
  color: var(--text);
  transition: opacity 150ms ease;
}

.nav-social a:hover {
  opacity: 0.6;
}

.nav-social svg {
  width: 16px;
  height: 16px;
}

.lang-toggle {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.lang-toggle .active {
  opacity: 1;
}

.lang-toggle .inactive {
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.lang-toggle .inactive:hover {
  opacity: 0.7;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--text);
}

.nav-hamburger svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 0 24px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  flex-shrink: 0;
}

.mobile-menu-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--text);
}

.mobile-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.mobile-close svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 32px 0;
}

.mobile-nav-links li {
  height: 56px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.mobile-menu.open .mobile-nav-links li:nth-child(1) { transition-delay: 30ms; opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-links li:nth-child(2) { transition-delay: 60ms; opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-links li:nth-child(3) { transition-delay: 90ms; opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-links li:nth-child(4) { transition-delay: 120ms; opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-links li:nth-child(5) { transition-delay: 150ms; opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-links li:nth-child(6) { transition-delay: 180ms; opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-links li:nth-child(7) { transition-delay: 210ms; opacity: 1; transform: none; }

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  width: 100%;
}

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

.mobile-social {
  display: flex;
  gap: 20px;
}

.mobile-social a {
  color: var(--text);
  display: flex;
}

.mobile-social svg {
  width: 18px;
  height: 18px;
}

.mobile-lang-toggle {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  background: #111;
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Pagination dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, opacity 200ms ease;
}

.hero-dot.active {
  background: rgba(255, 255, 255, 1);
}

/* ============================================================
   SELECTED PROJECTS
   ============================================================ */
.projects {
  padding: 96px var(--gutter);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-top: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-image-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f0f0f0;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease-out;
}

.project-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-top: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.projects-footer {
  max-width: var(--max-width);
  margin: 64px auto 0;
  text-align: right;
}

.view-all {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 150ms ease;
}

.view-all:hover {
  opacity: 0.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 96px var(--gutter);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Column 1 — Identity */
.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--white);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  line-height: 1.5;
}

.footer-privacy {
  display: inline-block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  transition: color 150ms ease;
}

.footer-privacy:hover {
  color: rgba(255, 255, 255, 1);
}

/* Column 2 — Newsletter */
.footer-section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}

.newsletter-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.newsletter-form input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 8px 0;
  width: 100%;
  outline: none;
  transition: border-color 200ms ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.newsletter-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 16px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 14px 32px;
  border-radius: 0;
  cursor: pointer;
  border: none;
  transition: background 200ms ease;
}

.newsletter-form button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.88);
}

.newsletter-micro {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  line-height: 1.5;
}

/* Columns 3 & 4 headings */
.footer-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

/* Column 3 — Connect */
.footer-connect a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  transition: color 150ms ease;
}

.footer-connect a:first-of-type {
  margin-top: 0;
}

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

/* Column 4 — Studio */
.footer-studio p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 8px;
}

.footer-studio p:first-of-type {
  margin-top: 0;
}

.footer-email {
  display: block;
  font-size: 14px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 10px;
  transition: opacity 150ms ease;
}

.footer-email:hover {
  opacity: 0.7;
}

/* ============================================================
   RESPONSIVE — TABLET (760px–1280px)
   ============================================================ */
@media (max-width: 1280px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (<900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  /* Nav: hide links and right zone, show hamburger */
  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero height */
  .hero {
    height: 75vh;
  }

  /* Projects: single column */
  .projects {
    padding: 64px var(--gutter);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 36px;
  }

  /* Footer: single column with hairline dividers */
  .site-footer {
    padding: 64px var(--gutter);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-col {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-col:first-child {
    border-top: none;
    padding-top: 0;
  }

  .footer-col:last-child {
    padding-bottom: 0;
  }
}

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