/* ============ RESET & TOKENS ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --ink: #f5f4f1;
  --ink-dim: #a8a6a1;
  --ink-faint: #6b6963;
  --accent: #d94f30;
  --line: rgba(245,244,241,0.12);
  --ff-display: "Bebas Neue", "Anton", Impact, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}

h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }

p { color: var(--ink-dim); }

::selection { background: var(--accent); color: #fff; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-ghost { color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; padding: 4px 0; }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ============ CURSOR ============ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s;
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.hovered { width: 46px; height: 46px; background: var(--ink); }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader span {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0;
  animation: fadePulse 1.2s var(--ease) forwards;
}
.preloader.done { opacity: 0; visibility: hidden; }
@keyframes fadePulse { to { opacity: 1; } }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  position: relative;
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.35) 35%, rgba(10,10,11,0.85) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.05) 45%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 48px) 110px;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--ink);
  margin-bottom: 26px;
}
.hero-title span { display: block; overflow: hidden; }

.hero-sub {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--ink-dim);
  margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  right: clamp(20px, 5vw, 48px);
  bottom: 40px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll span {
  width: 1px; height: 50px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--ink);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 50% { top: 0; } 100% { top: 100%; } }
.hero-scroll p {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--ink-faint);
}

/* reveal-on-load for hero lines */
.reveal { opacity: 0; transform: translateY(100%); }
.hero-title .reveal { animation: revealUp 0.9s var(--ease) forwards; }
.hero-title span:nth-child(1).reveal { animation-delay: 0.15s; }
.hero-title span:nth-child(2).reveal { animation-delay: 0.28s; }
.hero-sub.reveal { animation: fadeUp 0.9s var(--ease) 0.5s forwards; }
.hero-actions.reveal { animation: fadeUp 0.9s var(--ease) 0.65s forwards; }

@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============ SECTION HEAD ============ */
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head h2 { color: var(--ink); }

section { padding: 120px 0; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 32px;
  transition: background 0.4s var(--ease);
  position: relative;
}
.service-card:hover { background: var(--bg-alt); }
.service-num {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.service-card h3 { color: var(--ink); margin-bottom: 12px; }
.service-card p { font-size: 0.92rem; max-width: 280px; }

/* ============ FEATURED ============ */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-media { overflow: hidden; min-height: 420px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.featured:hover .featured-media img { transform: scale(1.06); }
.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(24px, 6vw, 80px);
  background: var(--bg-alt);
}
.featured-content h2 { color: var(--ink); margin-bottom: 20px; }
.featured-content p { max-width: 420px; margin-bottom: 32px; }

/* ============ WORK / FILTERS / GRID ============ */
.filters { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.work-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.work-item.hide { display: none; }
.work-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: grayscale(0.5) brightness(0.85);
}
.work-item:hover img { transform: scale(1.08); filter: grayscale(0) brightness(1); }
.work-item-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent 80%);
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.work-item:hover .work-item-info { transform: translateY(0); opacity: 1; }
.work-item-info span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-item-info h3 { font-size: 1.15rem; color: var(--ink); margin-top: 6px; }

/* ============ ABOUT / PROCESS ============ */
.about-content { max-width: 720px; }
.about-content h2 { color: var(--ink); margin-bottom: 20px; }
.about-content > p { max-width: 480px; margin-bottom: 44px; }

.process { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.process-step { display: flex; gap: 16px; }
.process-step span { font-family: var(--ff-display); color: var(--accent); font-size: 1.1rem; }
.process-step h4 { color: var(--ink); font-size: 1rem; text-transform: none; font-family: var(--ff-body); font-weight: 700; margin-bottom: 4px; }
.process-step p { font-size: 0.88rem; }

/* ============ CTA / CONTACT ============ */
.cta { background: var(--bg-alt); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; }
.cta h2 { color: var(--ink); margin-bottom: 16px; }
.cta-sub { max-width: 480px; margin: 0 auto 48px; }

.contact-form { max-width: 640px; margin: 0 auto 64px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { margin-bottom: 20px; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-note { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--accent); min-height: 1em; }

/* ============ FOOTER ============ */
.site-footer { padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { margin-top: 14px; max-width: 220px; font-size: 0.88rem; }
.footer-col h4 { font-family: var(--ff-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding: 26px clamp(20px, 5vw, 48px);
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--ink-faint); }

/* ============ SCROLL REVEAL (JS-driven) ============ */
[data-animate] { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 80px 0; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 70px; }
}
