/* ==========================================================
   HOFFMANN HOLDINGS — Landing Page
   Monumental · Minimal · Black & White · Gold Whisper
   ========================================================== */

/* ──────────── VARIABLES & RESET ──────────── */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --gray-100: #F0F0F0;
  --gray-300: #AAAAAA;
  --gray-500: #666666;
  --gray-700: #333333;
  --gray-800: #1A1A1A;
  --gray-900: #0D0D0D;
  --gold: #C8A96E;
  --gold-dim: rgba(200, 169, 110, 0.25);

  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  --nav-h: 72px;
  --container: 1200px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  height: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ──────────── NAVIGATION ──────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  z-index: 100;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-300);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 0;
  transition: border-color 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  border-color: var(--gold) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:first-child { top: 6px; }
.nav-toggle span:last-child { bottom: 6px; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ──────────── HERO ──────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) 60px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  right: -15vw;
  top: 5vh;
  animation: gear-spin 90s linear infinite;
}

.hero::after {
  width: 40vw;
  height: 40vw;
  max-width: 550px;
  max-height: 550px;
  left: -12vw;
  bottom: 8vh;
  animation: gear-spin 70s linear infinite reverse;
}

@keyframes gear-spin { to { transform: rotate(360deg); } }

.hero-content {
  text-align: center;
  max-width: 960px;
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  margin-bottom: 2rem;
  animation: fade-up 0.8s ease-out both;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  animation: fade-up 0.8s ease-out 0.15s both;
}

.hero-title-line {
  display: block;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2.5rem auto;
  animation: fade-up 0.8s ease-out 0.3s both;
}

.hero-taglines {
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 8vw, 8rem);
  animation: fade-up 0.8s ease-out 0.45s both;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  line-height: 1.8;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fade-up 0.8s ease-out 0.8s both;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gray-500);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-500), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ──────────── SHARED ──────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ──────────── WORKS ──────────── */
.works {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
}

.works::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto clamp(40px, 6vw, 80px);
  opacity: 0.5;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.work-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.4s;
}

.work-card:hover {
  border-color: rgba(200, 169, 110, 0.2);
}

.work-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.4);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.work-card:hover .work-card-img {
  transform: scale(1.05);
  filter: brightness(0.5) saturate(0.6);
}

.work-card-content {
  position: relative;
  z-index: 2;
  padding: clamp(16px, 2vw, 28px);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.work-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.work-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.work-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--gray-300);
  line-height: 1.6;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}

.work-card:hover .work-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────── BOTTOM SPLIT (ABOUT + CONTACT) ──────────── */
.bottom-split {
  padding: clamp(60px, 8vw, 120px) var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.bottom-about-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.bottom-about-text:last-of-type {
  margin-bottom: 0;
}

.bottom-contact-subtitle {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.compact-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compact-form input,
.compact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}

.compact-form input::placeholder,
.compact-form textarea::placeholder {
  color: var(--gray-700);
}

.compact-form input:focus,
.compact-form textarea:focus {
  border-color: rgba(200, 169, 110, 0.5);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(200, 169, 110, 0.15), 0 0 20px rgba(200, 169, 110, 0.08);
}

.compact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  margin-top: 2px;
}

.form-submit:hover {
  background: #d4b87a;
  color: var(--black);
}

/* ──────────── FOOTER ──────────── */
.footer {
  padding: 32px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

.footer-rhino {
  font-size: 1.3rem;
  display: inline-block;
  transform: scaleX(-1);
  filter: sepia(1) saturate(3) brightness(0.85) hue-rotate(5deg);
  opacity: 0.7;
  transition: opacity 0.3s, filter 0.3s;
}

.footer-rhino:hover {
  opacity: 1;
  filter: sepia(1) saturate(4) brightness(1) hue-rotate(5deg);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ──────────── SCROLL REVEAL ──────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ──────────── RESPONSIVE ──────────── */

@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 105;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .nav-cta {
    padding: 12px 32px;
  }

  .hero-taglines {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-tagline {
    font-size: 0.6rem;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}
