/* ===========================================
   CLOTHABLES — styles
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&family=Manrope:wght@400;500;600&display=swap');

:root {
  --bg:           #fbfaf7;
  --ink:          #1a1a1a;
  --ink-soft:     #6b6b6b;
  --ink-faint:    #b5b3ad;
  --line:         #e8e6e0;
  --line-strong:  #d8d6d0;
  --accent:       #d81e2c;
  --accent-rgb:   216, 30, 44;
  --surface:      #ffffff;
  --field:        #f0efea;
  --shadow:       0 10px 30px rgba(0,0,0,0.08);
  --paper:        #fdfcf8;
  --ticker-bg:    #d81e2c;
  --ticker-ink:   #ffffff;
  --ticker-faint: rgba(255,255,255,0.55);
}

:root[data-theme="dark"] {
  --bg:           #0e0e0f;
  --ink:          #f2f2f0;
  --ink-soft:     #9a9a98;
  --ink-faint:    #4a4a48;
  --line:         #222225;
  --line-strong:  #2e2e32;
  --accent:       #ff4b5a;
  --accent-rgb:   255, 75, 90;
  --surface:      #15151a;
  --field:        #1b1b20;
  --shadow:       0 10px 30px rgba(0,0,0,0.45);
  --paper:        #1c1c20;
  --ticker-bg:    #b01824;
  --ticker-ink:   #ffffff;
  --ticker-faint: rgba(255,255,255,0.5);
}

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

html, body,
.site-nav,
.dropdown,
.search input,
.marquee,
.hero-frame .frame-inner,
.toast,
.scroll-top {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
}

html {
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { border-width: 1px; }
::-webkit-scrollbar-corner { background: transparent; }


/* ===========================================
   NAVBAR
   =========================================== */
.site-nav {
  background: var(--bg);
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transform: translateY(0);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}

.site-nav.nav-hidden { transform: translateY(-100%); }

.site-nav.nav-scrolled {
  background: var(--surface);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

:root[data-theme="dark"] .site-nav.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

body { padding-top: 80px; }

.nav-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 32px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.nav-rule-sep { color: var(--ink-faint); }
.nav-rule-date { color: var(--accent); }

.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 56px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px;
}

.nav-left { display: flex; align-items: center; gap: 18px; }

.brand {
  display: inline-flex;
  align-items: center;
  height: 56px;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.08); }

.separator {
  color: var(--ink-faint);
  font-weight: 300;
  user-select: none;
  font-size: 18px;
}

.nav-categories { display: flex; align-items: center; gap: 32px; }
.nav-item { position: relative; }

.nav-link {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); padding: 18px 4px; display: inline-block; position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: ''; position: absolute; bottom: 12px; left: 50%;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-item:hover .nav-link { color: var(--accent); }
.nav-item:hover .nav-link::after { width: 100%; left: 0; }

.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px 0; opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s,
              background-color 0.4s ease, border-color 0.4s ease;
  display: flex; flex-direction: column;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  padding: 10px 24px; font-size: 13px; color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s, padding-left 0.25s;
}

.dropdown a:hover { color: var(--accent); padding-left: 30px; }

/* SEARCH */
.nav-search { display: flex; justify-content: center; padding: 0 12px; }
.search { position: relative; width: 100%; max-width: 440px; display: flex; align-items: center; }

.search-icon {
  position: absolute; left: 14px; width: 16px; height: 16px;
  color: var(--ink-soft); pointer-events: none; transition: color 0.25s ease;
}

.search input {
  width: 100%; height: 38px;
  padding: 0 42px 0 40px;
  font-family: inherit; font-size: 13px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent; border-radius: 999px;
  outline: none;
  transition: background-color 0.4s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, color 0.4s ease;
}

.search input::placeholder { color: var(--ink-soft); font-style: italic; }

.search:hover input {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.search:hover .search-icon { color: var(--accent); }

.search input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.15);
}

.search:focus-within .search-icon { color: var(--accent); }

.kbd-hint {
  position: absolute;
  right: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.search:focus-within .kbd-hint { opacity: 0; }

/* RIGHT side — no more sell button */
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }

.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); border-radius: 50%;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  border: 2px solid var(--bg);
  transition: transform 0.2s ease, background-color 0.4s ease, border-color 0.4s ease;
  font-family: 'Manrope', sans-serif;
}

.cart-count[data-count="0"] { display: none; }
.cart-btn:hover .cart-count { transform: scale(1.1); }

.theme-icon { position: relative; width: 18px; height: 18px; display: inline-block; }
.theme-icon svg {
  position: absolute; inset: 0; width: 18px; height: 18px;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.35s ease;
}

.sun  { transform: rotate(0deg) scale(1);    opacity: 1; }
.moon { transform: rotate(-90deg) scale(0);  opacity: 0; }
:root[data-theme="dark"] .sun  { transform: rotate(90deg) scale(0); opacity: 0; }
:root[data-theme="dark"] .moon { transform: rotate(0deg) scale(1);  opacity: 1; }

.auth {
  display: flex; align-items: center; gap: 10px;
  margin-left: 8px; padding-left: 14px;
  border-left: 1px solid var(--line);
  height: 22px;
  transition: border-color 0.4s ease;
}

.auth-link {
  font-size: 13px; font-weight: 500;
  color: var(--ink); position: relative; padding: 4px 0;
  transition: color 0.25s ease;
}

.auth-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.auth-link:hover { color: var(--accent); }
.auth-link:hover::after { width: 100%; left: 0; }

.divider { color: var(--ink-faint); font-weight: 300; user-select: none; }


/* ===========================================
   HERO
   Narrower right column with bigger polaroid
   and mission caption below
   =========================================== */
.hero {
  position: relative;
  padding: 70px 72px 50px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-edge {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  animation: fade-in 1s ease 0.2s forwards;
}

.hero-edge-dot { color: var(--accent); font-size: 8px; letter-spacing: 0; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-in 1s ease 0.3s forwards;
}

.meta-line {
  flex: 1; height: 1px; background: var(--line);
  transition: background-color 0.4s ease;
}

.hero-meta-top { margin-bottom: 40px; }
.hero-meta-bottom { margin-top: 40px; animation-delay: 1.2s; }

/* The grid: now balanced toward polaroid being closer to text */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr 360px;    /* polaroid column */
  gap: 48px;                            /* was 80px — brings polaroid LEFT toward text */
  align-items: center;
  flex: 1;
  min-height: 520px;
}

.hero-type { position: relative; }

.hero-number {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 60px;
}

.hero-headline .word {
  display: inline-block;
  margin-right: 0.18em;
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-headline .word.italic {
  font-style: italic;
  color: var(--accent);
}

.word-1 { animation-delay: 0.45s; }
.word-2 { animation-delay: 0.55s; }
.word-3 { animation-delay: 0.65s; }
.word-4 { animation-delay: 0.78s; }
.word-5 { animation-delay: 0.88s; }
.word-6 { animation-delay: 0.98s; }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  max-width: 820px;
  opacity: 0;
  animation: fade-in 1s ease 1.1s forwards;
}

.hero-caption {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
  transition: border-color 0.4s ease;
}

.caption-label {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-caption p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 380px;
}

.hero-caption em {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: gap 0.3s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.hero-link svg { width: 16px; height: 16px; }

.hero-link.primary {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-link.primary:hover {
  gap: 20px;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-link.secondary {
  color: var(--ink-soft);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  border-bottom: 1px solid transparent;
}

.hero-link.secondary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Right column: polaroid + mission caption ---- */
.hero-right {
  justify-self: start;                 /* closer to center, not pinned right */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}

.hero-frame {
  position: relative;
  opacity: 0;
  transform: translateY(30px) rotate(1.5deg);
  animation: frame-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.frame-inner {
  position: relative;
  width: 336px;                        /* was 280px — +20% */
  aspect-ratio: 3 / 4;
  background: var(--paper);
  padding: 16px 16px 74px;
  box-shadow:
    0 28px 56px rgba(0,0,0,0.2),
    0 6px 16px rgba(0,0,0,0.08);
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.4s ease;
}

.hero-frame:hover .frame-inner {
  transform: rotate(0deg) scale(1.02);
}

.frame-inner video {
  width: 100%;
  height: calc(100% - 58px);
  object-fit: cover;
  display: block;
  background: #111;
}

.frame-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.frame-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1;
}

.video-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.3s ease;
  opacity: 0;
}

.hero-frame:hover .video-toggle,
.video-toggle:focus-visible { opacity: 1; }

.video-toggle:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.08); }

.video-toggle svg {
  width: 14px; height: 14px; position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-pause { opacity: 1; transform: scale(1); }
.icon-play  { opacity: 0; transform: scale(0.6); }
.video-toggle.is-paused .icon-pause { opacity: 0; transform: scale(0.6); }
.video-toggle.is-paused .icon-play  { opacity: 1; transform: scale(1); }

/* ---- Mission caption beneath polaroid ---- */
.hero-mission {
  max-width: 300px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
  opacity: 0;
  animation: fade-in 1s ease 1.3s forwards;
  transition: border-color 0.4s ease;
}

.mission-label {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.mission-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.mission-text em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink);
  font-size: 14px;
}


/* ===========================================
   MARQUEE
   =========================================== */
.marquee {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: var(--ticker-bg);
  overflow: hidden;
  color: var(--ticker-ink);
}

.marquee-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px 0 40px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ticker-ink);
  border-right: 1px solid rgba(255,255,255,0.25);
  height: 22px;
}

.marquee-dot {
  color: #fff;
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.marquee-viewport {
  flex: 1;
  overflow: hidden;
  padding-left: 28px;
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 160s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 18px;
  padding-right: 18px;
}

.marquee-group span {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--ticker-ink);
  white-space: nowrap;
  transition: color 0.25s ease, font-style 0.25s ease;
}

.marquee-group span:not(.dot) { cursor: pointer; }

.marquee-group span:not(.dot):hover {
  font-style: italic;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.marquee-group .dot { color: var(--ticker-faint); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ===========================================
   SCROLL-TO-TOP + TOAST
   =========================================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 90;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, transform 0.3s ease,
              background-color 0.4s ease, color 0.4s ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }
.scroll-top svg { width: 18px; height: 18px; }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: opacity 0.25s ease, transform 0.25s ease,
              background-color 0.4s ease, color 0.4s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* ===========================================
   KEYFRAMES
   =========================================== */
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@keyframes frame-in { to { opacity: 1; transform: translateY(0) rotate(0); } }


/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}


/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1100px) {
  .hero { padding: 50px 40px 40px; }
  .hero-edge { left: 14px; font-size: 9px; }
  .hero-stage { grid-template-columns: 1fr 300px; gap: 36px; }
  .frame-inner { width: 280px; }
  .hero-mission { max-width: 260px; }
  .nav-rule { font-size: 10px; gap: 10px; }
  .kbd-hint { display: none; }
}

@media (max-width: 900px) {
  .nav-rule { display: none; }
  body { padding-top: 56px; }
}

@media (max-width: 800px) {
  .hero { padding: 40px 24px; min-height: auto; }
  .hero-edge { display: none; }
  .hero-stage { grid-template-columns: 1fr; gap: 60px; }
  .hero-right { align-items: center; }
  .hero-mission { text-align: left; }
  .hero-headline { font-size: clamp(42px, 11vw, 72px); margin-bottom: 40px; }
  .hero-foot { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { align-items: flex-start; }
  .marquee-label { padding: 0 16px 0 20px; }
  .nav-categories { gap: 20px; }
  .scroll-top { bottom: 16px; right: 16px; }
}
