/* ==========================================================================
   The Panda Living — Design Tokens
   ========================================================================== */
:root {
  --color-black: #202020;
  --color-beige: #B7A69A;
  --color-background: #FAF9F7;
  --color-sand: #F1ECE7;
  --color-charcoal: #171717;
  --color-border: #DED8D2;

  --color-beige-dark: #9C897B;
  --color-on-charcoal: #F1ECE7;

  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur-mid: 450ms;
  --dur-slow: 700ms;

  --radius-sm: 3px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-black);
  color: var(--color-background);
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus {
  left: var(--gutter);
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-beige-dark);
  margin-bottom: 1rem;
}
.eyebrow-on-dark { color: var(--color-beige); }

h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-black);
}
h1 .line { display: block; }

h2 {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

h3 {
  font-weight: 700;
  font-size: 1.15rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4A4744;
}

.section-sub {
  font-size: 1.05rem;
  max-width: 46ch;
  margin-top: 1rem;
}

.section-head { margin-bottom: 3rem; }

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-black);
  color: var(--color-background);
  border: 1px solid var(--color-black);
}
.btn-primary:hover { background: var(--color-charcoal); }
.btn-ghost {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-black); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
}
.logo-mark img {
  height: 72px;
  width: auto;
  display: block;
}
.logo-mark--footer img {
  height: 62px;
  /* Render the logo as a white silhouette for legibility on the dark
     footer, since only the light-background master asset was supplied. */
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.primary-nav a:not(.nav-cta) {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease-out);
}
.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-cta:hover { background: var(--color-black); color: var(--color-background); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--color-black);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(3rem, 8vh, 6rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  max-width: 42ch;
}
.hero-launch {
  margin-top: 1.75rem;
  font-weight: 600;
  color: var(--color-black);
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* reveal-on-load choreography */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.js-ready .hero [data-reveal] {
  animation: reveal-up var(--dur-slow) var(--ease-out) forwards;
}
.js-ready .hero .eyebrow[data-reveal] { animation-delay: 0.05s; }
.js-ready .hero h1[data-reveal] { animation-delay: 0.15s; }
.js-ready .hero .hero-sub[data-reveal] { animation-delay: 0.32s; }
.js-ready .hero .hero-launch[data-reveal] { animation-delay: 0.44s; }
.js-ready .hero .hero-actions[data-reveal] { animation-delay: 0.56s; }

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* scroll-reveal (below the fold) */
.js-ready section:not(.hero) [data-reveal] {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js-ready section:not(.hero) [data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero visual: editorial product photography with a quiet parallax drift */
.hero-visual {
  position: relative;
}
.drape {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-sand);
  will-change: transform;
}
.drape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}

.light-sweep {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 45% at 30% 12%, rgba(255,255,255,0.28), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-visual-caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--color-beige-dark);
  text-align: right;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1px;
  height: 44px;
  background: var(--color-border);
  overflow: hidden;
}
.scroll-cue span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--color-black);
  animation: scroll-cue-move 1.8s var(--ease-out) infinite;
}
@keyframes scroll-cue-move {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ==========================================================================
   Inspiration
   ========================================================================== */
.inspiration {
  padding: clamp(4rem, 10vh, 7rem) 0;
  background: var(--color-sand);
}
.mood-scroller {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0 var(--gutter) 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.mood-scroller::-webkit-scrollbar { height: 6px; }
.mood-scroller::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.mood-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(72vw, 300px);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.mood-card:hover { transform: translateY(-4px); border-color: var(--color-beige-dark); }
.mood-card p { font-size: 0.92rem; }

.mood-texture {
  height: 150px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.mood-texture::before {
  content: '';
  position: absolute;
  inset: -20%;
  opacity: 0.5;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 14px);
}
.mood-warm .mood-texture { background: linear-gradient(150deg, #E7C9A8 0%, #C99A6F 100%); }
.mood-calm .mood-texture { background: linear-gradient(150deg, #DCE3DE 0%, #B9C6BE 100%); }
.mood-minimal .mood-texture { background: linear-gradient(150deg, #F1ECE7 0%, #DED8D2 100%); }
.mood-earthy .mood-texture { background: linear-gradient(150deg, #C9B49B 0%, #8B6F55 100%); }
.mood-contemporary .mood-texture { background: linear-gradient(150deg, #3A3937 0%, #171717 100%); }

/* ==========================================================================
   Future hint (dark strip)
   ========================================================================== */
.future-hint {
  background: var(--color-charcoal);
  color: var(--color-on-charcoal);
  padding: clamp(3.5rem, 9vh, 5.5rem) 0;
}
.future-hint-inner { max-width: 720px; }
.future-hint-text {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  color: var(--color-on-charcoal);
  line-height: 1.4;
}
.future-hint-categories {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgba(241, 236, 231, 0.6);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Brand Story
   ========================================================================== */
.brand-story {
  padding: clamp(4.5rem, 11vh, 8rem) 0;
}
.story-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-copy p:not(.eyebrow):not(.story-signoff) {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  max-width: 52ch;
}
.story-signoff {
  margin-top: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-black);
}
.story-visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Stay Connected
   ========================================================================== */
.connect {
  background: var(--color-sand);
  padding: clamp(4.5rem, 11vh, 8rem) 0;
  border-top: 1px solid var(--color-border);
}
.connect-inner { max-width: 640px; }
.connect-links {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--color-background);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.social-link:hover { border-color: var(--color-black); transform: translateY(-2px); }
.social-icon { width: 18px; height: 18px; color: var(--color-black); }
.social-icon svg { width: 100%; height: 100%; }

.connect-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-beige-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-black);
  color: var(--color-on-charcoal);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(241, 236, 231, 0.15);
}
.footer-brand p {
  margin-top: 0.75rem;
  color: rgba(241, 236, 231, 0.6);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(241, 236, 231, 0.8);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--color-on-charcoal); }
.footer-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: rgba(241, 236, 231, 0.45);
}
.footer-meta { margin-top: 2rem; justify-content: space-between; width: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .primary-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--color-background);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.75rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .primary-nav a:not(.nav-cta) { font-size: 1.1rem; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
  .hero-visual-caption { text-align: left; }

  .story-inner { grid-template-columns: 1fr; }
  .story-visual { max-width: 420px; aspect-ratio: 4 / 3; }

  .footer-inner { flex-direction: column; }
  .footer-meta { flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .js-ready section:not(.hero) [data-reveal] { transition: none; }
  .scroll-cue span { animation: none; }
  .drape img { transform: none !important; }
}
