@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;900&display=swap');

:root {
  --bg: #1F1A17;
  --bg2: #3A2E28;
  --cream: #F4EFE9;
  --cream-dim: rgba(244,239,233,0.6);
  --green: #33473b;
  --copper: #844b25;
  --font-display: 'Rubik', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: var(--bg);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(244,239,233,0.08);
}
.nav-logo {
  flex-shrink: 0;
  width: clamp(220px, 22vw, 420px);
}
.nav-logo img {
  height: auto;
  width: 100%;
  max-width: none !important;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; /* 16:9 */
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31,26,23,0.3) 0%, rgba(31,26,23,0.1) 50%, rgba(31,26,23,0.7) 100%);
}
.hero-content {
  position: absolute;
  bottom: 80px;
  left: 48px;
  right: 48px;
}
.hero-tagline {
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  opacity: 0.4;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--cream);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTIONS ── */
.section {
  padding: 100px 48px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.section-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream-dim);
  max-width: 560px;
  text-wrap: pretty;
}

/* ── PROJECT GRID ── */
.projects-section {
  padding: 100px 48px;
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.view-all-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.55;
  border-bottom: 1px solid rgba(244,239,233,0.3);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.view-all-link:hover { opacity: 1; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg2);
}
.project-card::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}
.project-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0,0,1), filter 0.4s;
  filter: brightness(0.75);
}
.project-card:hover .project-card-thumb {
  transform: scale(1.04);
  filter: brightness(0.55);
}
.project-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px 28px;
  background: linear-gradient(to top, rgba(31,26,23,0.9) 0%, transparent 100%);
}
.project-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.8);
}
.project-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.project-card-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid rgba(244,239,233,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-card-arrow {
  opacity: 1;
  transform: translateY(0);
}
.project-card-arrow svg {
  width: 14px; height: 14px;
  stroke: var(--cream);
  fill: none;
}

/* Full grid for projects page */
.projects-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── ABOUT STRIP (home) ── */
.about-strip {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid rgba(244,239,233,0.08);
}
.about-strip-visual {
  aspect-ratio: 4/3;
  background: var(--bg2);
  overflow: hidden;
  position: relative;
}
.about-strip-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.about-strip-visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg2) 0px,
    var(--bg2) 8px,
    rgba(244,239,233,0.04) 8px,
    rgba(244,239,233,0.04) 16px
  );
  color: var(--cream-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: monospace;
  text-align: center;
  padding: 24px;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 32px;
  border-bottom: 1px solid rgba(244,239,233,0.3);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-link:hover {
  color: var(--copper);
  border-color: var(--copper);
}
.cta-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s;
}
.cta-link:hover svg { transform: translateX(4px); }

/* ── CONTACT STRIP ── */
.contact-strip {
  padding: 100px 48px;
  border-top: 1px solid rgba(244,239,233,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.contact-item-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
}
.contact-item-value a:hover { color: var(--copper); }

/* ── FOOTER ── */
.footer {
  padding: 40px 48px;
  border-top: 1px solid rgba(244,239,233,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
}
.footer-logo img { height: 24px; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 160px 48px 80px;
  border-bottom: 1px solid rgba(244,239,233,0.08);
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.02em;
}

/* ── PROJECT DETAIL ── */
.project-detail { padding: 40px 48px 100px; }
.project-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 42%;
  background: #000;
  margin-bottom: 64px;
}
.project-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.project-video-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  cursor: pointer;
}
.project-video-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-video-link:hover img { transform: scale(1.03); }
.project-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.project-video-link:hover .project-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}
@media (max-width: 768px) {
  .project-play-btn svg { width: 56px; height: 56px; }
}
.project-meta {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(244,239,233,0.08);
}
.project-meta-sidebar {}
.project-meta-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
  margin-top: 32px;
}
.project-meta-tag:first-child { margin-top: 0; }
.project-meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.5;
}
.project-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--cream-dim);
  text-wrap: pretty;
}

/* ── ABOUT PAGE ── */
.about-hero {
  padding: 160px 48px 0;
}
.about-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.0;
  color: var(--cream);
  max-width: 900px;
  text-wrap: pretty;
}
.about-image-full {
  width: 100%;
  margin-top: 64px;
  aspect-ratio: 32/10;
  overflow: hidden;
  position: relative;
}
.about-image-full img {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
}
.about-body {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--cream-dim);
  text-wrap: pretty;
}
.about-body p + p { margin-top: 24px; }
.about-values {
  padding: 0 48px 100px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.value-item {}
.value-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 12px;
}
.value-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 10px;
}
.value-body {
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* ── CONTACT PAGE ── */
.contact-page {
  padding: 160px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0;
  color: var(--cream);
  margin-bottom: 24px;
}
.contact-page-intro {
  font-size: 18px;
  line-height: 1.75;
  color: var(--cream-dim);
  text-wrap: pretty;
}
.contact-page-details {
  padding-top: 80px;
}
.contact-big-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--cream);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.contact-big-link:hover { color: var(--copper); }
.contact-divider {
  width: 48px;
  height: 1px;
  background: rgba(244,239,233,0.15);
  margin: 32px 0;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 22px; }
  .nav-hamburger { display: flex; z-index: 101; }
  .section, .projects-section { padding: 64px 24px; }
  .about-strip { grid-template-columns: 1fr; padding: 64px 24px; gap: 40px; }
  .contact-strip { grid-template-columns: 1fr; padding: 64px 24px; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid-full { grid-template-columns: 1fr 1fr; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-content { left: 24px; right: 24px; bottom: 60px; }
  .page-hero { padding: 120px 24px 60px; }
  .project-detail { padding: 24px 24px 80px; }
  .project-meta { grid-template-columns: 1fr; gap: 40px; }
  .about-hero { padding: 120px 24px 0; }
  .about-body { grid-template-columns: 1fr; padding: 48px 24px; }
  .about-values { padding: 0 24px 64px; }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-page { grid-template-columns: 1fr; padding: 120px 24px 80px; }
  .contact-page-details { padding-top: 0; }
  .footer { padding: 32px 24px; flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 600px) {
  .projects-grid-full { grid-template-columns: 1fr; }
  .about-image-full { aspect-ratio: 4/3; }
}
