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

:root {
  --sand:    #F5F0E8;
  --cream:   #FAFAF7;
  --stone:   #E8E2D8;
  --bark:    #2C2416;
  --driftwood: #8C7B6B;
  --ocean:   #2A6B8A;
  --foam:    #FFFFFF;
  --accent:  #D4622A;
  --nav-h:   68px;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--bark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
}

.nav-left {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--driftwood);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bark);
  border-bottom-color: var(--bark);
}

.site-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--bark);
  transition: color 0.2s;
}

.site-name:hover { color: var(--ocean); }

.nav-right {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
}

.nav-icon {
  color: var(--driftwood);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.nav-icon:hover { color: var(--bark); }

/* ── Work Grid ── */
main {
  margin-top: var(--nav-h);
  flex: 1;
  padding: 60px 40px 80px;
}

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

.work-item {
  display: block;
  cursor: pointer;
}

.work-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  background: var(--stone);
}

.work-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.work-item:hover .work-img-wrap img {
  transform: scale(1.04);
}

/* Red Bull placeholder (no image yet) */
.placeholder-block {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  gap: 4px;
}

.placeholder-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  color: #fff;
  letter-spacing: 0.06em;
}

.placeholder-campaign {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 1.5vw, 16px);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* hide the missing img tag */
.placeholder-img { display: none; }

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 107, 138, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}

.work-item:hover .work-overlay {
  background: rgba(42, 107, 138, 0.18);
}

.work-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 10px 22px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-item:hover .work-label {
  opacity: 1;
  transform: translateY(0);
}

.work-meta {
  padding: 16px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.work-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--bark);
}

.work-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--driftwood);
}

.work-type {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-left: auto;
  opacity: 0.7;
}

/* ── Project Pages ── */
.project-hero {
  margin-top: var(--nav-h);
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero .hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  gap: 8px;
}

.project-body {
  max-width: 1400px;      
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.project-header {
  margin-bottom: 52px;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 40px;
}

.project-header .brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--bark);
}

.project-header .campaign {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--driftwood);
  margin-top: 6px;
}

.project-header .meta-row {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--driftwood);
  opacity: 0.7;
}

.meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--bark);
}

/* ── Slideshow ── */
.slideshow {
  position: relative;
  width: 70vw;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 1920 / 1080;
  background: var(--bark);
  overflow: hidden;
  margin-bottom: 16px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
  color: var(--driftwood);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.slide-dots {
  display: none;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stone);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}

.dot.active {
  background: var(--bark);
  transform: scale(1.3);
}

.slide-arrows {
  display: flex;
  gap: 12px;
}

.arrow-btn {
  background: none;
  border: 1px solid var(--stone);
  border-radius: 2px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bark);
  transition: background 0.2s, border-color 0.2s;
}

.arrow-btn:hover {
  background: var(--bark);
  border-color: var(--bark);
  color: var(--cream);
}

.slide-counter {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--driftwood);
}

.project-description {
  margin-top: 52px;
}

.project-description h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--bark);
}

.project-description p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--driftwood);
  max-width: 80vw;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 48px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--bark); }

.back-link svg { transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }

/* ── About Page ── */
.about-wrap {
  margin-top: var(--nav-h);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-block {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--stone);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--driftwood);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.about-img-secondary {
  width: 55%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bark);
  position: absolute;
  bottom: -28px;
  right: -28px;
  border: 6px solid var(--cream);
  display: block;
}

.about-img-secondary-placeholder {
  width: 55%;
  aspect-ratio: 1;
  background: var(--bark);
  border-radius: 4px;
  position: absolute;
  bottom: -28px;
  right: -28px;
  border: 6px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-text { padding-top: 16px; }

.about-text .greeting {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 16px;
}

.about-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--bark);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--driftwood);
  margin-bottom: 20px;
}

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bark);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--ocean); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stone);
  color: var(--bark);
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--bark);
  background: var(--sand);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--stone);
  padding: 24px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--driftwood);
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* ── Page load fade ── */
body { opacity: 0; animation: fadeIn 0.4s var(--ease) forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.work-item {
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp 0.5s var(--ease) forwards;
}
.work-item:nth-child(1) { animation-delay: 0.1s; }
.work-item:nth-child(2) { animation-delay: 0.2s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  main { padding: 40px 20px 60px; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-wrap { grid-template-columns: 1fr; gap: 48px; padding: 48px 20px 80px; }
  .about-img-secondary, .about-img-secondary-placeholder { display: none; }
  .project-body { padding: 40px 20px 80px; }
  .project-header .brand { font-size: 40px; }
}
