/* ========================================
   STILLWOOD — Elevated Aesthetic
   ======================================== */

:root {
  --bg: #F8F7F4;
  --bg-cream: #F0EDE6;
  --bg-dark: #1A1816;
  --text: #1A1816;
  --text-mid: #5A5652;
  --text-light: #8A8680;
  --accent: #B69F7E;
  --accent-dark: #96805F;
  --white: #FFFFFF;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: none;
}

/* --- Grain Texture --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s var(--ease);
  transform: translate(-50%, -50%);
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.2s var(--ease-out);
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

body.cursor-hover .cursor {
  transform: translate(-50%, -50%) scale(2);
}

body.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  opacity: 0.6;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  mix-blend-mode: difference;
}

.nav, .nav * {
  color: var(--white);
}

.logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-btn {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s var(--ease);
}

.nav-btn:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

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

.hero-bg {
  position: absolute;
  inset: -10%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,24,22,0.2) 0%,
    rgba(26,24,22,0.4) 40%,
    rgba(26,24,22,0.7) 100%
  );
}

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

.hero-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-tag .line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.75;
  max-width: 400px;
  margin: 0 auto 3rem;
}

.hero-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.hero-btn:hover {
  opacity: 1;
}

.hero-btn svg {
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --- Intro --- */
.intro {
  padding: 8rem 3rem;
  text-align: center;
}

.intro p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

.intro em {
  font-style: italic;
  color: var(--accent-dark);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--accent);
  padding-top: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* --- Collection --- */
.collection {
  padding: 6rem 3rem 8rem;
  background: var(--bg-cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.product {
  background: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.product-link {
  display: block;
}

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,24,22,0.3);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.product:hover .product-overlay {
  opacity: 1;
}

.product-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--white);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.price {
  font-weight: 500;
  color: var(--text);
}

.collection-cta {
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--text);
  transition: all 0.3s var(--ease);
}

.text-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
  gap: 0.75rem;
}

/* --- Story --- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 8rem 3rem;
  background: var(--bg);
}

.story-visual {
  position: relative;
  min-height: 550px;
}

.story-img {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-img.main {
  top: 0;
  left: 0;
  width: 75%;
  height: 75%;
}

.story-img.float {
  bottom: 0;
  right: 0;
  width: 55%;
  height: 50%;
}

.story-badge {
  position: absolute;
  top: 60%;
  left: 65%;
  width: 100px;
  height: 100px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.3;
}

.story-badge strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-text {
  margin-bottom: 3rem;
}

.story-text .lead {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.story-text p {
  color: var(--text-mid);
  line-height: 1.8;
}

.story-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #E5E2DC;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

/* --- Quote --- */
.quote {
  padding: 7rem 3rem;
  background: var(--bg-dark);
  text-align: center;
}

.quote figure {
  max-width: 750px;
  margin: 0 auto;
}

.quote-icon {
  display: block;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 1rem;
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.quote cite {
  font-size: 0.875rem;
  font-style: normal;
  color: rgba(255,255,255,0.5);
}

/* --- Craft --- */
.craft {
  padding: 8rem 3rem;
  background: var(--bg-cream);
}

.craft-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.craft-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--bg-cream);
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  max-width: 400px;
  line-height: 1.7;
}

.step-image {
  width: 200px;
  height: 150px;
  overflow: hidden;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.craft-step:hover .step-image img {
  transform: scale(1.05);
}

/* --- Testimonial --- */
.testimonial {
  padding: 8rem 3rem;
  background: var(--bg);
  text-align: center;
}

.testimonial-content {
  max-width: 700px;
  margin: 0 auto;
}

.testimonial .quote-icon {
  color: var(--accent);
  opacity: 0.3;
  font-size: 5rem;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Contact --- */
.contact {
  padding: 8rem 3rem;
  background: var(--bg-dark);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info .section-num {
  color: var(--accent);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  margin: 1rem 0;
}

.contact-info > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-links a {
  color: var(--accent);
  font-size: 1rem;
  transition: color 0.3s;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  outline: none;
  transition: all 0.3s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent);
  border: none;
  transition: all 0.3s var(--ease);
}

.contact-form button:hover {
  background: var(--white);
}

/* --- Footer --- */
.footer {
  padding: 4rem 3rem 2rem;
  background: var(--bg-dark);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.625rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .story {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .story-visual {
    min-height: 450px;
  }
  
  .craft-step {
    grid-template-columns: auto 1fr;
  }
  
  .step-image {
    display: none;
  }
  
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  
  .cursor, .cursor-follower {
    display: none;
  }
  
  .nav {
    padding: 1.25rem 1.5rem;
  }
  
  .nav-links, .nav-btn {
    display: none;
  }
  
  .intro, .collection, .story, .quote, .craft, .testimonial, .contact, .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .story-visual {
    min-height: 380px;
  }
  
  .story-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .craft-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .step-num {
    font-size: 2rem;
  }
  
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
