/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:       #0e0e0e;
  --bg-dark:  #000;
  --accent:   #db7748;
  --text:     #bfbfbf;
  --nav-text: rgba(255,255,255,0.6);
  --sans:     'DM Sans', sans-serif;
  --nav-h:    60px;
  --pad:      10%;
  --ease:     cubic-bezier(0.76, 0, 0.24, 1);
  --gap:      4px;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { font-family: var(--sans); cursor: none; }

section { display: none; width: 100%; min-height: 100vh; }
section.active { display: block; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; mix-blend-mode: difference;
}
#cursorDot {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  position: absolute; transform: translate(-50%, -50%);
}
#cursorRing {
  width: 32px; height: 32px;
  border: 1px solid #fff; border-radius: 50%;
  position: absolute; transform: translate(-50%, -50%);
  transition: width 0.1s var(--ease), height 0.1s var(--ease);
}
body:has(.proj-card:hover) #cursorRing,
body:has(.tag-btn:hover) #cursorRing,
body:has(a:hover) #cursorRing { width: 48px; height: 48px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.logo {
  font-family: var(--sans);
  font-size: 1.2rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: #fff; text-decoration: none;
}
.nav-links { display: flex; gap: 35px; list-style: none; height: 100%; }
.nav-links li { height: 100%; display: flex; align-items: center; }
.nav-links a {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--nav-text); text-decoration: none;
  position: relative; height: 100%; display: flex; align-items: center;
  padding: 0 5px; transition: color 0.3s;
}
.nav-links a.act, .nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a.act::after, .nav-links a:hover::after { width: 100%; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-burger span { display: block; width: 20px; height: 1px; background: #fff; transition: all 0.3s; }

/* ============================================================
   HERO VIDEO
   ============================================================ */
.hero-wrap {
  position: relative; width: 100%; height: 60vh;
  overflow: hidden; background: #000;
  margin-top: calc(var(--nav-h) * -1);
  z-index: 1;
}
.hero-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  border: 0;
  pointer-events: none;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 80px var(--pad);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about-label {
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 20px;
}
.about-heading {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700; color: #fff;
  line-height: 1.1; letter-spacing: -0.02em;
}
.about-right p {
  font-size: 0.92rem; line-height: 1.9;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px; max-width: 560px;
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.about-stat-num {
  font-size: 1.6rem; font-weight: 700;
  color: #fff; display: block; margin-bottom: 4px;
}
.about-stat-label {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   FILTER SECTION
   ============================================================ */
.filter-section {
  padding: 60px var(--pad) 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.section-title {
  font-size: 2rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: #fff;
}
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-btn {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: transparent;
  border: 1px solid rgba(219, 119, 72, 0.4);
  padding: 9px 16px; border-radius: 6px; transition: all 0.25s;
}
.tag-btn:hover { border-color: #db7748; background: rgba(219, 119, 72, 0.05); }
.tag-btn.active { background: #db7748; color: #fff; font-weight: 700; border-color: #db7748; }

/* ============================================================
   PROJECT GRID
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: 0 var(--pad) 80px;
  grid-auto-flow: dense;
}
.proj-card { position: relative; overflow: hidden; background: #1a1a1a; aspect-ratio: 1/1; }
.proj-card.wide { grid-column: span 2; aspect-ratio: auto; }
.proj-card.tall { grid-row: span 2; aspect-ratio: auto; }
.proj-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease);
}
.proj-card:hover .proj-card-bg { transform: scale(1.05); }
.proj-card-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  transition: background 0.4s; display: flex; align-items: flex-end; padding: 28px; z-index: 2;
}
.proj-card:hover .proj-card-overlay { background: rgba(0,0,0,0.55); }
.proj-card-meta { transform: translateY(10px); opacity: 0; transition: all 0.4s var(--ease); }
.proj-card:hover .proj-card-meta { transform: translateY(0); opacity: 1; }
.proj-card-title { font-size: 3rem; font-weight: 500; color: #fff; display: block; margin-bottom: 8px; }
.proj-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.proj-card-tag {
  font-size: 0.55rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3); padding: 2px 7px; border-radius: 3px;
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
#project { background: var(--bg); min-height: 100vh; }

/* Sticky topbar */
.proj-topbar {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--pad); height: var(--nav-h);
  background: rgba(14,14,14,0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.proj-back-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  transition: color 0.3s;
}
.proj-back-btn:hover { color: #fff; }
.proj-back-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.proj-topbar-sep { color: rgba(255,255,255,0.15); }
.proj-topbar-name { font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.35); font-style: italic; }

/* Header: 2-column grid */
.proj-header {
  padding: 52px var(--pad) 48px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.proj-tags-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.proj-tag {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(219,119,72,0.35); padding: 3px 10px;
}
.proj-title {
  font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.proj-client { font-size: 0.75rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; }
.proj-desc { font-size: 0.97rem; line-height: 1.85; color: rgba(255,255,255,0.5); font-weight: 300; margin-bottom: 26px; }
.proj-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proj-meta-lbl {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 3px;
}
.proj-meta-val { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ── Content blocks wrapper ── */
.proj-content {
  display: flex; flex-direction: column;
  padding-bottom: 0;
}

/* ── Full-width image (edge to edge, no padding) ── */
.blk-img-full {
  width: 100%;
  margin-bottom: 2px;
}
.blk-img-full img {
  width: 100%; display: block;
  height: auto; max-height: 85vh; object-fit: cover;
}

/* ── Full-width image with side padding ── */
.blk-img-padded {
  width: 100%; padding: 0 var(--pad);
  margin-bottom: 2px;
}
.blk-img-padded img { width: 100%; display: block; height: auto; object-fit: cover; }

/* ── Two images side by side ── */
.blk-img-2 {
  width: 100%; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap); margin-bottom: 2px;
}
.blk-img-2 img { width: 100%; display: block; aspect-ratio: 3/2; object-fit: cover; }

/* ── Three images side by side ── */
.blk-img-3 {
  width: 100%; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap); margin-bottom: 2px;
}
.blk-img-3 img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }

/* ── Split block: image + text or text + image ── */
.blk-split {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2px;
  min-height: 520px;
}
.blk-split-img {
  overflow: hidden;
}
.blk-split-img img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
}
.blk-split-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px var(--pad);
  background: var(--bg);
}
.blk-split-text h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 20px;
}
.blk-split-text p {
  font-size: 0.88rem; line-height: 1.9;
  color: rgba(255,255,255,0.45); margin-bottom: 14px;
}
.blk-split-text p:last-child { margin-bottom: 0; }

/* ── Full-width text block ── */
.blk-text {
  width: 100%; padding: 64px var(--pad);
}
.blk-text h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 20px;
}
.blk-text .blk-text-body p {
  font-size: 0.92rem; line-height: 1.9;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  max-width: 860px;
}
.blk-text .blk-text-body p:last-child { margin-bottom: 0; }

/* ── Quote block ── */
.blk-quote {
  width: 100%; padding: 64px var(--pad);
}
.blk-quote-inner {
  border-left: 2px solid var(--accent); padding-left: 30px; max-width: 800px;
}
.blk-quote-text {
  font-size: 1.5rem; font-style: italic; color: #fff; line-height: 1.4; margin-bottom: 10px;
}
.blk-quote-author {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}

/* ── Video block ── */
.blk-video {
  width: 100%; padding: 0 var(--pad); margin-bottom: 2px;
}
.blk-video video,
.blk-video iframe {
  width: 100%; display: block; aspect-ratio: 16/9;
  background: #000; border: none;
}

/* ── Divider line ── */
.blk-divider {
  width: calc(100% - (var(--pad) * 2));
  height: 1px; background: rgba(255,255,255,0.1);
  margin: 40px auto;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact { padding-top: var(--nav-h); background: var(--bg); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 80vh; }
.contact-info {
  padding: 80px var(--pad); background: var(--bg-dark); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.contact-info h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 700; margin-bottom: 16px; }
.contact-info p { font-size: 0.9rem; color: rgba(255,255,255,0.4); line-height: 1.8; max-width: 300px; }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-detail-label {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 3px;
}
.contact-detail-value { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.contact-form { padding: 80px var(--pad); background: #fff; }
.contact-form h3 { font-size: 1.4rem; font-weight: 700; color: #000; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: #888; margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 0; background: transparent;
  border: none; border-bottom: 1px solid rgba(0,0,0,0.15);
  font-family: var(--sans); font-size: 0.95rem; color: #000;
  outline: none; cursor: none; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(0,0,0,0.25); }
.form-group textarea { resize: vertical; min-height: 100px; }
.send-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: none;
  padding: 14px 32px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; transition: background 0.3s;
}
.send-btn:hover { background: var(--accent); }
.form-success {
  display: none; margin-top: 20px; padding: 14px 18px;
  border-left: 2px solid var(--accent); font-size: 0.88rem; color: #333;
}
.form-success.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */

/* --- CTA banner above footer grid --- */
.footer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-cta-item {
  position: relative; overflow: hidden;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px var(--pad);
  background: #0a0a0a;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.4s;
}
.footer-cta-item:last-child { border-right: none; }
.footer-cta-item:hover { background: #111; }
.footer-cta-label {
  font-size: 0.52rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: block;
}
.footer-cta-title {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 5px;
}
.footer-cta-sub { font-size: 0.72rem; color: rgba(255,255,255,0.3); font-weight: 300; }
.footer-cta-arrow {
  position: absolute; top: 28px; right: var(--pad);
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}
.footer-cta-item:hover .footer-cta-arrow { border-color: var(--accent); background: rgba(219,119,72,0.1); }
.footer-cta-arrow svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 1.5; }

/* --- Main footer grid --- */
footer {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 52px var(--pad) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Logo + date */
.footer-logo {
  font-size: 1rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: #fff; display: block; margin-bottom: 20px;
}
.footer-date {
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.2);
  line-height: 2;
}
.footer-date span { display: block; }

/* Column heading */
.footer-col-title {
  font-size: 0.5rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.18); margin-bottom: 14px; display: block;
}

/* Links and text */
.footer-col-links { display: flex; flex-direction: column; gap: 9px; }
.footer-col-links a,
.footer-col-links span {
  font-size: 0.77rem; font-weight: 400;
  color: rgba(255,255,255,0.5); line-height: 1.5;
  transition: color 0.25s;
}
.footer-col-links a:hover { color: var(--accent); }

/* Bottom row */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 0.6rem; color: rgba(255,255,255,0.15); letter-spacing: 0.1em; }
.footer-made { font-size: 0.6rem; color: rgba(255,255,255,0.15); letter-spacing: 0.08em; }
.footer-made a { color: rgba(255,255,255,0.3); transition: color 0.25s; }
.footer-made a:hover { color: var(--accent); }

/* ============================================================
   FOGGY FOOTER OVERLAY
   ============================================================ */
.foggy-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 12vh; z-index: 9999; pointer-events: none;
  display: flex; flex-direction: column;
}
.blur-layer {
  position: absolute; inset: 0;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  mask-image: linear-gradient(to bottom, transparent, black);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black);
}
.layer-1 { backdrop-filter: blur(2px);  -webkit-backdrop-filter: blur(2px);  mask-image: linear-gradient(to bottom, transparent 0%,  black 25%);  -webkit-mask-image: linear-gradient(to bottom, transparent 0%,  black 25%);  }
.layer-2 { backdrop-filter: blur(4px);  -webkit-backdrop-filter: blur(4px);  mask-image: linear-gradient(to bottom, transparent 10%, black 50%);  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 50%);  }
.layer-3 { backdrop-filter: blur(8px);  -webkit-backdrop-filter: blur(8px);  mask-image: linear-gradient(to bottom, transparent 50%, black 75%);  -webkit-mask-image: linear-gradient(to bottom, transparent 50%, black 75%);  }
.layer-4 { backdrop-filter: blur(55px); -webkit-backdrop-filter: blur(55px); mask-image: linear-gradient(to bottom, transparent 75%, black 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 75%, black 100%); }
.foggy-footer::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,1.1));
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  :root { --pad: 6%; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .proj-card.wide { grid-column: span 2; }
  .proj-header { grid-template-columns: 1fr; gap: 28px; }
  .blk-split { grid-template-columns: 1fr; min-height: auto; }
  .blk-split--img-text .blk-split-img,
  .blk-split--text-img .blk-split-img { aspect-ratio: 4/3; }
  .blk-split--text-img .blk-split-text { order: -1; }
  .blk-split-text { padding: 40px var(--pad); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { padding: 48px var(--pad); }
  /* Footer */
  .footer-cta { grid-template-columns: 1fr; }
  .footer-cta-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
  .proj-card.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .blk-img-2, .blk-img-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Footer */
  .footer-col-brand { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
