:root {
  --bg-color: #0a0a0a;
  --secondary-color: #121212;
  --surface-color: #1c1c1c;
  --text-color: #f5f5f5;
  --muted-color: #c8c8c8;
  --accent-color: #c9a227;
  --border-color: rgba(201, 162, 39, 0.28);
  --header-bg: rgba(10, 10, 10, 0.88);
  --container: 1180px;
}

html[data-theme='light'] {
  --bg-color: #f6f6f6;
  --secondary-color: #ececec;
  --surface-color: #ffffff;
  --text-color: #111111;
  --muted-color: #444444;
  --accent-color: #c9a227;
  --border-color: rgba(201, 162, 39, 0.32);
  --header-bg: rgba(246, 246, 246, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 300ms ease, color 300ms ease;
  cursor: none;
}

body.is-loading { overflow: hidden; }

img { display: block; width: 100%; }

h1, h2, h3, .brand, .logo-text, .footer-brand {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.03em;
}

p { color: var(--muted-color); max-width: 75ch; }

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-full { min-height: 100vh; position: relative; overflow: hidden; }
.section-surface { background: var(--surface-color); transition: background-color 300ms ease; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; margin: 0 0 1.2rem; }

/* Intro */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: #000;
  animation: loader-out 0.65s ease 2.45s forwards;
}

.logo-wrapper {
  position: relative;
  text-align: center;
  opacity: 0;
  animation: logo-fade 1s ease 0.25s forwards;
}

.logo {
  width: min(44vw, 230px);
  margin-inline: auto;
  filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.35));
}

.logo-wrapper::before {
  content: '';
  position: absolute;
  inset: 15% 8%;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.32) 50%, transparent 75%);
  transform: translateX(-160px);
  filter: blur(9px);
  animation: shine-sweep 1s ease 1.1s forwards;
}

.logo-text,
.logo-subtext {
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: text-rise 0.7s ease 1.2s forwards;
}

.logo-text { margin-top: 1rem; color: #fff; letter-spacing: 0.22em; font-size: 0.95rem; }
.logo-subtext { color: #d8d8d8; letter-spacing: 0.08em; font-size: 0.8rem; margin-top: 0.35rem; }

@keyframes logo-fade { to { opacity: 1; } }
@keyframes text-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes shine-sweep { to { transform: translateX(160px); opacity: 0; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1400;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-color);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.9);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.35);
  transition: width 220ms ease, height 220ms ease, border-color 220ms ease;
}

.cursor-ring.active {
  width: 42px;
  height: 42px;
  border-color: var(--accent-color);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.site-header.scrolled {
  background: var(--header-bg);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.brand-logo,
.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.theme-toggle {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-color);
}

/* Hero */
.hero { display: grid; place-items: center; }
.hero-bg,
.hero-overlay,
.statement-bg,
.statement-overlay { position: absolute; inset: 0; }

.hero-bg {
  background: url('https://images.unsplash.com/photo-1516724562728-afc824a36e84?auto=format&fit=crop&w=2200&q=80') center/cover no-repeat;
  transform: scale(1.06);
  animation: slow-zoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.78));
}

.hero-content { position: relative; text-align: center; padding-top: 4rem; }
.hero-tagline { font-size: 1.05rem; margin: 1.2rem auto 0; max-width: 600px; color: #e0e0e0; }

.btn-primary {
  margin-top: 2rem;
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  border: 1px solid var(--accent-color);
  padding: 0.85rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  background: rgba(201, 162, 39, 0.12);
  transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.38);
  background: rgba(201, 162, 39, 0.22);
}

@keyframes slow-zoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.11); }
}

/* Creations */
.creation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.creation-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
}

.creation-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.creation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem;
}

.creation-overlay h3 {
  margin: 0;
  color: #fff;
  transition: text-shadow 300ms ease;
}

.creation-overlay p { color: #ddd; margin: 0.4rem 0 0; }

.creation-card:hover img { transform: scale(1.08); }
.creation-card:hover .creation-overlay h3 { text-shadow: 0 0 14px rgba(201, 162, 39, 0.6); }

/* Statement */
.statement { display: grid; place-items: center; }
.statement-bg {
  background: url('https://images.unsplash.com/photo-1525609004556-c46c7d6cf023?auto=format&fit=crop&w=2200&q=80') center/cover fixed no-repeat;
  transform: scale(1.08);
}
.statement-overlay { background: rgba(0, 0, 0, 0.66); }
.statement-content,
.manifesto-content { position: relative; }
.statement-content h2 { max-width: 950px; }

/* Manifesto */
.manifesto {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--secondary-color), var(--bg-color));
}

.manifesto-content {
  max-width: 980px;
}

.manifesto-lines {
  border-left: 1px solid var(--border-color);
  padding-left: clamp(1rem, 3vw, 2rem);
}

.manifesto-line {
  margin: 0 0 0.85rem;
  color: var(--text-color);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.1vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(16px);
}

.manifesto-line:last-child {
  margin-bottom: 0;
}

.manifesto-line-break {
  margin-top: 1.2rem;
  color: var(--accent-color);
}

.reveal.visible .manifesto-line {
  animation: lineReveal 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal.visible .manifesto-line:nth-child(1) { animation-delay: 80ms; }
.reveal.visible .manifesto-line:nth-child(2) { animation-delay: 180ms; }
.reveal.visible .manifesto-line:nth-child(3) { animation-delay: 280ms; }
.reveal.visible .manifesto-line:nth-child(4) { animation-delay: 380ms; }
.reveal.visible .manifesto-line:nth-child(5) { animation-delay: 480ms; }
.reveal.visible .manifesto-line:nth-child(6) { animation-delay: 580ms; }

@keyframes lineReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.2rem 0;
  background: var(--surface-color);
  transition: background-color 300ms ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand { margin: 0.35rem 0 0; color: var(--text-color); }
.footer-sub { margin: 0.1rem 0 0; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.main-content { opacity: 0; transition: opacity 500ms ease; }
body:not(.is-loading) .main-content { opacity: 1; }

/* Mobile */
@media (max-width: 940px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  .menu-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 4%;
    width: min(300px, 92vw);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    transform: scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .hero-content { text-align: left; }
  .footer-content { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .statement-bg { background-attachment: scroll; }
  .manifesto-line { opacity: 1; transform: none; }
}
