:root {
  --bg: #0c0c0b;
  --bg-2: #141412;
  --cream: #f3eee4;
  --gold: #c4a574;
  --gold-2: #e4d0ae;
  --muted: #8c867b;
  --line: rgba(196, 165, 116, 0.18);
  --font-d: "Cormorant Garamond", Georgia, serif;
  --font-b: "Outfit", system-ui, 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-b);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor,
.cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }

  .cursor,
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 200;
    transform: translate(-50%, -50%);
  }

  .cursor {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    transition: width 0.25s, height 0.25s, background 0.25s;
  }

  .cursor.grow {
    width: 56px;
    height: 56px;
    background: rgba(196, 165, 116, 0.12);
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
  }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-mark {
  font-family: var(--font-d);
  font-size: 4rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  animation: rise 0.8s ease both;
}

.preloader-name {
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.4rem 0 1.6rem;
  animation: rise 0.8s 0.15s ease both;
}

.preloader-bar {
  width: 160px;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: load 1.4s ease forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4vw;
  mix-blend-mode: difference;
  transition: background 0.3s, mix-blend-mode 0.3s, padding 0.3s;
}

.nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(12, 12, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 4vw;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.logo-text {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  padding: 0.65rem 1.1rem;
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 32px;
  height: 18px;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cream);
}

.menu-btn span:first-child {
  top: 4px;
}

.menu-btn span:last-child {
  bottom: 4px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 8rem 4vw 5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  animation: kenburns 18s ease-out forwards;
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 11, 0.35) 0%,
    rgba(12, 12, 11, 0.55) 45%,
    rgba(12, 12, 11, 0.92) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12vw 12vw;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero-title {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: block;
  animation: titleIn 1.1s 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .line:nth-child(2) span {
  animation-delay: 1.65s;
}

.hero-title .line:nth-child(3) span {
  animation-delay: 1.8s;
}

.hero-title .italic {
  font-style: italic;
  color: var(--gold-2);
}

@keyframes titleIn {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}

.hero-lead {
  max-width: 460px;
  margin: 1.8rem 0 2rem;
  color: #d8d2c6;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  border: 1px solid transparent;
  transition: transform 0.35s, background 0.35s, color 0.35s, border-color 0.35s;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-ghost {
  border-color: rgba(243, 238, 228, 0.35);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 500;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.scroll-hint {
  position: absolute;
  right: 4vw;
  bottom: 2.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint i {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 1.6s ease-in-out infinite;
}

@keyframes drip {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.reveal {
  animation: fadeUp 0.9s 2s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  gap: 1.6rem;
  white-space: nowrap;
  animation: slide 28s linear infinite;
  font-family: var(--font-d);
  font-size: 1.35rem;
  color: var(--gold);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  padding: 8rem 4vw 4rem;
}

.display {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.about-right p {
  color: #c9c3b6;
  margin-bottom: 1.1rem;
  max-width: 46ch;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat-num {
  font-family: var(--font-d);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-num::after {
  content: "+";
  font-size: 1.2rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.about-figure {
  grid-column: 1 / -1;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.about-figure img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: cover;
  filter: saturate(0.85);
}

.about-figure figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.reveal-img {
  clip-path: inset(12% 12% 12% 12%);
  transform: scale(1.06);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s ease;
}

.reveal-img.in {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* Services */
.services,
.projects,
.process,
.contact {
  padding: 6rem 4vw;
}

.section-head {
  margin-bottom: 3rem;
}

.service-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left 0.4s ease, background 0.4s;
}

.service-item:hover {
  padding-left: 1rem;
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.07), transparent);
}

.service-num {
  font-family: var(--font-d);
  color: var(--gold);
  font-size: 1.15rem;
}

.service-item h3 {
  font-family: var(--font-d);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.service-item p {
  color: var(--muted);
  max-width: 52ch;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: 280px;
  gap: 1.1rem;
}

.project {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

.project.featured {
  grid-row: span 2;
}

.project-img,
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-img {
  transition: transform 0.8s ease;
}

.project:hover .project-img {
  transform: scale(1.08);
}

.project-info {
  position: absolute;
  inset: auto 0 0;
  padding: 1.4rem;
  background: linear-gradient(transparent, rgba(12, 12, 11, 0.92));
}

.project-info span {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-info h3 {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 500;
}

.project-info p {
  color: #c9c3b6;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Process */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.steps li {
  border-top: 1px solid var(--gold);
  padding-top: 1.4rem;
}

.steps span {
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 0.95rem;
}

.steps h3 {
  font-family: var(--font-d);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0.6rem 0 0.5rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  margin: 1rem 4vw 4rem;
  padding: 5rem 8vw;
  background: linear-gradient(160deg, #1a1814, #0e0e0c);
  border: 1px solid var(--line);
  text-align: center;
}

.cta-band .display {
  max-width: 16ch;
  margin: 0 auto 2rem;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  gap: 1.4rem;
}

.contact-list span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  background: var(--bg-2);
  padding: 2rem;
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form .full,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.form-note {
  color: var(--gold);
  font-size: 0.9rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand strong {
  color: var(--cream);
  display: block;
}

.in-view {
  animation: fadeUp 0.85s ease both;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1.4rem 4vw 2rem;
    border-bottom: 1px solid var(--line);
    mix-blend-mode: normal;
  }

  .menu-btn {
    display: block;
  }

  .about,
  .contact,
  .project-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .project.featured {
    grid-row: auto;
    min-height: 380px;
  }

  .project {
    min-height: 260px;
  }

  .hero-meta {
    gap: 1.4rem;
    flex-wrap: wrap;
  }

  .scroll-hint {
    display: none;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
