/* ============================================
   gn by ng — CSS
   Dark theme with dawn palette
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dawn palette */
  --black: #0a0a0a;
  --dark: #111111;
  --dark-warm: #151312;
  --charcoal: #1a1917;
  --muted: #3a3632;
  --stone: #6b6560;
  --warm-gray: #9a9490;
  --light: #d4cec8;
  --cream: #e8e2da;
  --dawn-rose: #c4877a;
  --dawn-peach: #d4a088;
  --dawn-gold: #c9a96e;
  --dawn-blush: #b88b96;
  --dawn-lavender: #917a8e;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Manrope', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vw, 180px);
  --container-width: 1400px;
  --container-padding: clamp(20px, 4vw, 60px);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--black);
  color: var(--light);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-brand {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  font-style: italic;
  color: var(--dawn-peach);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 30px;
}

.preloader-line {
  width: 60px;
  height: 1px;
  background: var(--muted);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.preloader-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--dawn-peach);
  animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderSlide {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--container-padding);
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-brand:hover {
  color: var(--dawn-peach);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.nav-menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--cream);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-menu-btn span:first-child { top: 4px; }
.nav-menu-btn span:last-child { bottom: 4px; }

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

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-link {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 300;
  color: var(--cream);
  transition: color 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--dawn-peach);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(196, 135, 122, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(212, 160, 136, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(145, 122, 142, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--black) 0%, var(--dark-warm) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-padding);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dawn-peach);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 32px;
}

.hero-title .reveal-line {
  display: block;
  overflow: hidden;
}

.hero-title .reveal-line span {
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  color: var(--warm-gray);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dawn-peach);
  border: 1px solid rgba(196, 135, 122, 0.3);
  padding: 16px 48px;
  transition: all 0.4s ease;
}

.hero-cta:hover {
  background: rgba(196, 135, 122, 0.1);
  border-color: var(--dawn-peach);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dawn-peach);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* --- Horizontal Image Reveal --- */
.image-reveal {
  padding: 0;
  overflow: hidden;
}

.image-reveal-inner {
  display: flex;
  gap: 20px;
  padding: 20px;
  will-change: transform;
}

.image-reveal-item {
  flex: 0 0 auto;
  width: clamp(300px, 45vw, 700px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.image-reveal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-reveal-item:hover img {
  transform: scale(1.05);
}

/* --- Philosophy --- */
.philosophy {
  padding: var(--section-padding) 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.philosophy-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 32px;
}

.philosophy-title .reveal-line {
  display: block;
  overflow: hidden;
}

.philosophy-title .reveal-line span {
  display: inline-block;
}

.philosophy-text {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--warm-gray);
  max-width: 600px;
  line-height: 1.9;
}

/* --- Section Common --- */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dawn-peach);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 20px;
}

.section-description {
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 60px;
}

/* --- Collection --- */
.collection {
  padding: var(--section-padding) 0;
}

.collection .container {
  text-align: center;
  margin-bottom: 60px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.collection-item {
  background: var(--dark);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.collection-item:hover {
  transform: translateY(-8px);
}

.collection-item-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.collection-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-item:hover .collection-item-image img {
  transform: scale(1.05);
}

.collection-item-info {
  padding: 30px;
}

.collection-item-info h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
}

.collection-item-info p {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 16px;
}

.collection-item-price {
  font-size: 16px;
  font-weight: 400;
  color: var(--dawn-peach);
  letter-spacing: 0.05em;
}

/* --- Craft --- */
.craft {
  padding: var(--section-padding) 0;
  min-height: 100vh;
}

.craft-sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  align-items: start;
}

.craft-image-side {
  position: sticky;
  top: 100px;
}

.craft-image-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
}

.craft-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-text-side {
  padding: 40px 0;
}

.craft-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 60px;
}

.craft-title .reveal-line {
  display: block;
  overflow: hidden;
}

.craft-title .reveal-line span {
  display: inline-block;
}

.craft-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.craft-detail {
  padding-left: 60px;
  position: relative;
}

.craft-detail-number {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--dawn-peach);
  letter-spacing: 0.1em;
}

.craft-detail h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 10px;
}

.craft-detail p {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.8;
}

/* --- Image Break --- */
.image-break {
  padding: var(--section-padding) 0;
  text-align: center;
}

.image-break-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  overflow: hidden;
  border-radius: 4px;
}

.image-break-inner img {
  width: 100%;
  height: auto;
}

.image-break-text {
  max-width: 700px;
  margin: 48px auto 0;
  padding: 0 var(--container-padding);
}

.image-break-text p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* --- Story --- */
.story {
  padding: var(--section-padding) 0;
  background: var(--dark-warm);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 0;
  position: sticky;
  top: 120px;
}

.story-title .reveal-line {
  display: block;
  overflow: hidden;
}

.story-title .reveal-line span {
  display: inline-block;
}

.story-text {
  margin-bottom: 48px;
}

.story-text p {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--warm-gray);
  line-height: 1.9;
  margin-bottom: 24px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 40px;
  border-top: 1px solid var(--muted);
}

.story-value-label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dawn-peach);
  margin-bottom: 8px;
}

.story-value-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
}

/* --- Marquee --- */
.marquee {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
}

.marquee-track {
  display: flex;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* --- Contact --- */
.contact {
  padding: var(--section-padding) 0;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.contact-title .reveal-line {
  display: block;
  overflow: hidden;
}

.contact-title .reveal-line span {
  display: inline-block;
}

.contact-text {
  font-size: 16px;
  color: var(--warm-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.contact-form input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--muted);
  border-right: none;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input::placeholder {
  color: var(--stone);
}

.contact-form input:focus {
  border-color: var(--dawn-peach);
}

.contact-form button {
  background: var(--dawn-peach);
  border: 1px solid var(--dawn-peach);
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--dawn-rose);
  border-color: var(--dawn-rose);
}

.contact-thankyou {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--dawn-peach);
  margin-top: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.contact-form.submitted ~ .contact-thankyou {
  opacity: 1;
  transform: translateY(0);
}

.contact-form.submitted {
  opacity: 0.3;
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--dawn-peach);
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--stone);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--stone);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================
   Scroll Animations
   ============================================ */

/* Fade in up */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

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

/* Line reveal (for headings) */
.reveal-line span {
  transform: translateY(105%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-line.visible span {
  transform: translateY(0);
}

/* Reveal up (for cards) */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

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

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   Responsive
   ============================================ */

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

  .collection-item:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .craft-sticky {
    grid-template-columns: 1fr;
  }

  .craft-image-side {
    position: relative;
    top: 0;
  }

  .craft-image-wrapper {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: block;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .collection-item:last-child {
    max-width: 100%;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-title {
    position: relative;
    top: 0;
  }

  .story-values {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-legal {
    grid-column: 1 / -1;
    text-align: left;
  }

  .contact-form {
    flex-direction: column;
  }

  .contact-form input {
    border-right: 1px solid var(--muted);
    border-bottom: none;
  }

  .image-reveal-item {
    width: 85vw;
  }

  .hero-subtitle br {
    display: none;
  }

  .section-description br {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Selection --- */
::selection {
  background: rgba(196, 135, 122, 0.3);
  color: var(--cream);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--stone);
}
