/* ─── RUTABONE.COM — INNER PAGE STYLES ─────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; background: #fff; color: #0a0a0a; overflow-x: hidden; }

/* ─── FADE-IN ───────────────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.22s; }
.fade-in.d3 { transition-delay: 0.36s; }
.fade-in.d4 { transition-delay: 0.52s; }

/* ─── LEFT NAV ──────────────────────────────────────────────── */
.nav {
  position: fixed; left: 0; top: 0; bottom: 0; width: 56px;
  z-index: 300; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 30px 0;
}
.nav-logo {
  font-family: 'Zalando Sans Expanded', sans-serif; font-weight: 500;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: #fff; text-decoration: none; transition: color 0.4s;
}
.nav-links { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nav-links a {
  font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 9px;
  letter-spacing: 3px; color: rgba(255,255,255,0.55); text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg);
  text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover { color: rgba(255,255,255,0.9); }
.nav-links a.active { color: #fff; }
.nav-copy {
  font-size: 9px; color: rgba(255,255,255,0.2); writing-mode: vertical-rl;
  transform: rotate(180deg); letter-spacing: 1px; transition: color 0.4s;
}
.nav.on-light .nav-logo { color: #0a0a0a; }
.nav.on-light .nav-links a { color: rgba(0,0,0,0.45); }
.nav.on-light .nav-links a:hover { color: #0a0a0a; }
.nav.on-light .nav-links a.active { color: #0a0a0a; }
.nav.on-light .nav-copy { color: rgba(0,0,0,0.25); }

/* ─── MOBILE NAV ────────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 20px 24px; align-items: center; justify-content: space-between;
}
.mobile-nav-logo {
  font-family: 'Zalando Sans Expanded', sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; text-decoration: none; transition: color 0.4s;
}
.mobile-nav.on-light .mobile-nav-logo { color: #0a0a0a; }
.mobile-nav.on-light .hamburger span { background: #0a0a0a; }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: background 0.4s, transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: #0a0a0a; z-index: 250;
  flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 40px; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Zalando Sans Expanded', sans-serif; font-weight: 700;
  font-size: clamp(36px,10vw,56px); text-transform: uppercase;
  color: #fff; text-decoration: none;
  letter-spacing: -1px; line-height: 1.1; transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity: 0.5; }
.mobile-menu-foot {
  position: absolute; bottom: 40px; left: 40px;
  font-size: 9px; letter-spacing: 3px; color: rgba(255,255,255,0.2); text-transform: uppercase;
}

/* ─── PROJECT HERO ──────────────────────────────────────────── */
.proj-hero {
  position: relative; height: 100vh; width: 100%; overflow: hidden; background: #111;
}
.proj-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); will-change: transform;
}
.proj-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.7) 100%);
}
.proj-hero-content {
  position: absolute; inset: 0; padding: 36px 48px 48px 80px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.proj-hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.proj-category {
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 9px;
  letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.back-link {
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.3s;
}
.back-link:hover { color: #fff; }

.close-btn {
  position: fixed;
  top: 24px; right: 28px;
  z-index: 400;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: background 0.25s, color 0.25s;
}
.close-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.proj-hero-bottom {}
.proj-title {
  font-family: 'Zalando Sans Expanded', sans-serif; font-weight: 700;
  font-size: clamp(42px,7vw,96px); letter-spacing: -2px; line-height: 0.9;
  text-transform: uppercase; color: #fff;
}
.proj-location {
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 9px;
  letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-top: 16px;
}
.proj-coming-soon {
  display: inline-block; margin-top: 18px;
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 9px;
  letter-spacing: 5px; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px; border-radius: 2px;
}

/* ─── PROJECT INTRO ─────────────────────────────────────────── */
.proj-intro {
  background: #fff; padding: 56px 56px 56px 88px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: start;
}
.proj-brief {
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 17px;
  line-height: 1.85; color: rgba(0,0,0,0.6);
}
.proj-meta { padding-top: 2px; }
.proj-meta-item {
  display: flex; align-items: baseline; gap: 0;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.07);
}
.proj-meta-item:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
.proj-meta-label {
  font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 7px;
  letter-spacing: 3px; text-transform: uppercase; color: #bbb;
  width: 80px; flex-shrink: 0;
}
.proj-meta-value {
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.2px; color: #0a0a0a;
}

/* ─── PROJECT GALLERY ───────────────────────────────────────── */
.proj-gallery { background: #fff; padding: 40px 88px 80px; display: flex; flex-direction: column; gap: 48px; }

.proj-img-full { overflow: hidden; }
.proj-img-full img { width: 62%; height: auto; display: block; margin: 0 auto; transition: transform 1.2s ease; }
.proj-img-full:hover img { transform: scale(1.02); }

.proj-img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proj-img-pair-item { overflow: hidden; }
.proj-img-pair-item img { width: 100%; height: auto; display: block; transition: transform 1.2s ease; }
.proj-img-pair-item:hover img { transform: scale(1.02); }

.proj-img-wide { overflow: hidden; }
.proj-img-wide img { width: 100%; height: auto; display: block; }

/* ─── IMAGE CAPTION ─────────────────────────────────────────── */
.proj-caption {
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 9px;
  letter-spacing: 1px; color: #bbb; padding: 10px 88px;
}

/* ─── END CARD ──────────────────────────────────────────────── */
.proj-end {
  background: #0a0a0a;
  padding: 48px 88px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.proj-end-text {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
}
.proj-end-label {
  flex: 0 0 100%;
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.proj-end-tags {
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.proj-end-title {
  font-family: 'Zalando Sans Expanded', sans-serif; font-weight: 700;
  font-size: clamp(22px, 3vw, 48px); letter-spacing: -0.5px; line-height: 1;
  text-transform: uppercase; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 14px;
  transition: opacity 0.3s;
}
.proj-end-title::after { content: ''; }
.proj-end-tags::after { content: '  >'; }
.proj-end-title:hover { opacity: 0.6; }
.proj-end-img { display: none; }

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-nav { display: flex; }
  .close-btn { display: none; }

  .proj-hero-content { padding: 24px 24px 44px 24px; }
  .proj-title { font-size: clamp(40px,12vw,58px); letter-spacing: -1px; }
  .proj-location { font-size: 11px; letter-spacing: 2px; }
  .proj-coming-soon { font-size: 11px; letter-spacing: 4px; padding: 7px 16px; }

  .proj-intro { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px; }
  .proj-meta-item { flex-direction: column; gap: 3px; }
  .proj-meta-label { width: auto; }

  .proj-brief { font-size: 16px; line-height: 1.9; }

  .proj-gallery { padding: 24px 0 48px; gap: 4px; }
  .proj-img-full img { width: 100%; margin: 0; }
  .proj-img-pair { grid-template-columns: 1fr; gap: 4px; }

  .proj-end { padding: 32px 24px; }
  .proj-end-img { display: none; }

  .proj-caption { padding: 8px 24px; }
}
