/* ==========================================================================
   CHULBULI — HOME
   Loaded on index.html only, after style.css. Everything here is scoped to
   the homepage, so other pages are untouched.
   ========================================================================== */

:root {
  --indigo: #1E2747;
  --indigo-2: #2A3560;
  --brass-hi: #C29A62;
  --brass-lo: #7C5A2C;
  --arch: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'><path fill='black' d='M0 140 L0 62 L6 62 A11.46 11.46 0 0 1 9.17 43.16 A11.46 11.46 0 0 1 18.32 26.39 A11.46 11.46 0 0 1 32.44 13.53 A11.46 11.46 0 0 1 50.00 6.00 A11.46 11.46 0 0 1 67.56 13.53 A11.46 11.46 0 0 1 81.68 26.39 A11.46 11.46 0 0 1 90.83 43.16 A11.46 11.46 0 0 1 94.00 62.00 L100 62 L100 140 Z'/></svg>");
}

.home { overflow-x: clip; }

/* shared bits ------------------------------------------------------------ */

.sec-intro { display: grid; gap: 12px; margin-bottom: clamp(28px, 5vw, 56px); }
.sec-title {
  font-weight: 300; font-size: clamp(2.3rem, 6.2vw, 5.2rem);
  line-height: .96; letter-spacing: -.04em;
}
.sec-sub { margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 40ch; }

.h-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-size: .98rem; font-weight: 500; letter-spacing: -.005em;
  transition: background .45s var(--ease), color .45s var(--ease), transform .6s var(--ease);
  will-change: transform;
}
.h-btn:hover { background: var(--rust); color: #fff; }
.h-btn--ink { background: var(--ink); color: var(--paper); }

.ss-tag {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  background: var(--paper); color: var(--ink);
  font-size: .74rem; font-weight: 600; line-height: 1;
  padding: 7px 11px; border-radius: 999px;
  box-shadow: 0 6px 14px -8px rgba(32,18,5,.45);
}
.ss-note { display: block; font-size: .78rem; color: var(--rust); margin-top: 4px; line-height: 1.35; }

/* 1. hero ---------------------------------------------------------------- */

.h-hero { position: relative; height: 250vh; height: 250svh; }
.h-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--paper);
}

.h-window { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #2a1a0c; }
.h-hero.is-armed .h-window {
  -webkit-mask-image: var(--arch); mask-image: var(--arch);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: var(--mw) var(--mh); mask-size: var(--mw) var(--mh);
  -webkit-mask-position: var(--mx) var(--my); mask-position: var(--mx) var(--my);
}

.h-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-soft); }
.h-slide.is-active { opacity: 1; }
.h-slide picture { display: block; width: 100%; height: 100%; }
.h-media {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(var(--zoom, 1.08)); transform-origin: 50% 60%;
}
.h-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,11,3,.42) 0%, rgba(20,11,3,0) 30%, rgba(20,11,3,.06) 52%, rgba(20,11,3,.74) 100%);
}

.h-frame {
  position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible;
  color: var(--ink); opacity: 0; pointer-events: none;
}

.h-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; color: #fff;
  padding-bottom: clamp(28px, 6vh, 64px);
  will-change: transform, opacity;
}
.h-title {
  font-weight: 300; color: #fff;
  font-size: clamp(3.4rem, 12.4vw, 11.6rem); line-height: .88; letter-spacing: -.05em;
  margin-left: -.04em;
}
.h-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h-title .ln > span {
  display: inline-block; transform: translateY(108%);
  transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 110ms + 250ms);
}
.h-hero.is-loaded .h-title .ln > span { transform: none; }

.h-lede {
  margin: 22px 0 0; max-width: 44ch; color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.55;
}
.h-actions { display: flex; align-items: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.h-lede, .h-actions { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-soft) .75s, transform 1.1s var(--ease) .75s; }
.h-actions { transition-delay: .9s; }
.h-hero.is-loaded .h-lede, .h-hero.is-loaded .h-actions { opacity: 1; transform: none; }

.h-dots { display: flex; gap: 10px; }
.h-dot { width: 46px; height: 28px; display: grid; align-items: center; padding: 0; }
.h-dot i { display: block; height: 2px; background: rgba(255,255,255,.32); position: relative; overflow: hidden; border-radius: 2px; }
.h-dot i::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform-origin: left; transform: scaleX(0);
}
.h-dot.is-active i::after { animation: h-fill var(--dur, 7s) linear forwards; }
@keyframes h-fill { to { transform: scaleX(1); } }

.h-aside {
  position: absolute; top: var(--amid, 50%); z-index: 2; width: min(30ch, calc(var(--edge, 30vw) - var(--pad) - 36px));
  transform: translateY(-50%); opacity: 0; pointer-events: none;
}
.h-aside--l { right: calc(100% - var(--edge, 30vw) + 36px); text-align: right; }
.h-aside--r { left: calc(100% - var(--edge, 30vw) + 36px); }
.h-aside__big { margin: 0; font-weight: 300; font-size: clamp(1.7rem, 3.3vw, 3.3rem); line-height: 1; letter-spacing: -.035em; color: var(--ink); }
.h-aside__small { margin: 14px 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.h-aside--l .h-aside__small { margin-left: auto; max-width: 26ch; }
.h-aside--r .h-aside__small { max-width: 26ch; }

.h-caption {
  position: absolute; left: 0; right: 0; z-index: 2; margin: 0;
  top: calc(var(--head) + 14px); text-align: center; opacity: 0;
  font-weight: 300; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.02; letter-spacing: -.035em;
  display: none;
}

.h-cue {
  position: absolute; right: var(--pad); bottom: clamp(28px, 6vh, 64px); z-index: 3;
  display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: .82rem;
}
.h-cue i { display: block; width: 1px; height: 46px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.h-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: #fff; animation: h-cue 2.2s var(--ease-soft) infinite; }
@keyframes h-cue { to { top: 100%; } }

@media (max-width: 899px) {
  .h-aside { display: none; }
  .h-caption { display: block; }
  .h-cue { display: none; }
}

/* reduced motion / no-JS: plain full-bleed hero */
.h-hero.is-static { height: auto; }
.h-hero.is-static .h-stage { position: relative; }
.h-hero.is-static .h-aside, .h-hero.is-static .h-caption, .h-hero.is-static .h-frame, .h-hero.is-static .h-cue { display: none; }

/* 2. print strip --------------------------------------------------------- */

.mq { overflow: hidden; background: var(--paper-warm); padding-block: 18px; --buti-eye: var(--paper-warm); }
.mq-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.mq-track span {
  font-weight: 300; font-size: clamp(1.4rem, 4.4vw, 2.6rem); letter-spacing: -.03em;
  color: var(--ink); padding-inline: clamp(18px, 2.4vw, 34px); white-space: nowrap;
}
.mq-buti { width: clamp(22px, 2.6vw, 34px); height: clamp(22px, 2.6vw, 34px); color: var(--rust); flex: none; transform: rotate(var(--spin, 0deg)); }

/* 3. rack ---------------------------------------------------------------- */

.rk { position: relative; background: var(--paper); }
.rk-sticky { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 90px); }
.rk.is-pinned .rk-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--head) + 4px) 20px;
}
.rk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.rk-title { font-weight: 300; font-size: clamp(2.3rem, 6.2vw, 5.2rem); line-height: .96; letter-spacing: -.04em; }
.rk-sub { margin: 12px 0 0; color: var(--ink-soft); max-width: 36ch; }
.rk-all { flex: none; font-size: .95rem; padding: 12px 0; border-bottom: 1px solid currentColor; transition: color .3s var(--ease); }
.rk-all:hover { color: var(--rust); }

.rk-viewport {
  overflow-x: auto; overflow-y: visible; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
}
.rk-viewport::-webkit-scrollbar { display: none; }
.rk.is-pinned .rk-viewport { overflow: visible; scroll-snap-type: none; }

.rk-track {
  position: relative; display: flex; gap: clamp(16px, 2.4vw, 40px);
  list-style: none; margin: 0; padding: 0 var(--pad) 8px; width: max-content;
  will-change: transform;
}
.rk-track::before {
  content: ""; position: absolute; left: -40vw; right: -40vw; top: 4px; height: 5px; border-radius: 5px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo));
  box-shadow: 0 3px 6px -2px rgba(32,18,5,.35);
}
.rk-item { flex: none; width: clamp(190px, 21vw, 320px); scroll-snap-align: start; }
.rk.is-pinned .rk-item { width: clamp(220px, min(19vw, 34vh), 330px); }
.rk-card { display: block; position: relative; }
.rk-card:focus-visible { outline: none; }
.rk-card:focus-visible .rk-media { outline: 2px solid var(--rust); outline-offset: 4px; }
.rk-swing { display: block; transform-origin: 50% 7px; will-change: transform; }
.rk-hanger { display: block; width: 66px; height: 40px; margin: 0 auto -1px; color: var(--ink); overflow: visible; }
.rk-hanger path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rk-media {
  position: relative; display: block; aspect-ratio: 5 / 8; overflow: hidden; border-radius: 3px;
  background: var(--paper-warm);
  box-shadow: 0 22px 34px -26px rgba(32,18,5,.55);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.rk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transition: opacity .6s var(--ease-soft), transform 1.6s var(--ease-soft); }
.rk-media img + img { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .rk-card:hover .rk-media { transform: translateY(-8px); box-shadow: 0 36px 44px -28px rgba(32,18,5,.6); }
  .rk-card:hover .rk-media img + img { opacity: 1; }
  .rk-card:hover .rk-media img { transform: scale(1.03); }
}
.rk-meta { display: block; padding-top: 14px; }
.rk-name { display: block; font-size: clamp(1.02rem, 1.3vw, 1.16rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.rk-price { display: block; margin-top: 4px; font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.rk-item--end { display: flex; }
.rk-end {
  position: relative; display: grid; place-items: center; width: 100%;
  aspect-ratio: 5 / 8; margin-top: 39px; text-align: center; color: var(--ink);
}
.rk-end svg { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); overflow: visible; color: var(--ink); transition: color .4s var(--ease); }
.rk-end span { position: relative; padding: 30% 18px 0; font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -.03em; }
.rk-end:hover svg { color: var(--rust); }
.rk-end:hover span { color: var(--rust); }

/* 4. categories ---------------------------------------------------------- */

.cat { padding-block: clamp(80px, 12vw, 160px) clamp(70px, 10vw, 140px); }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.cat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: clamp(12px, 1.7vw, 24px); border-bottom: 1px solid var(--hair);
  transition: opacity .45s var(--ease-soft);
}
.cat-name {
  font-weight: 300; font-size: clamp(2.3rem, 7.6vw, 6.8rem); line-height: 1; letter-spacing: -.045em;
  transition: transform .7s var(--ease), color .45s var(--ease);
}
.cat-end { display: flex; align-items: center; gap: 16px; flex: none; }
.cat-count { font-size: .92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-thumb { width: 52px; height: 66px; object-fit: cover; object-position: 50% 15%; border-radius: 3px; display: none; }
@media (max-width: 899px) { .cat-thumb { display: block; } }
@media (hover: hover) and (pointer: fine) {
  .cat-list:hover .cat-row { opacity: .28; }
  .cat-list .cat-row:hover, .cat-list .cat-row:focus-visible { opacity: 1; }
  .cat-row:hover .cat-name, .cat-row:focus-visible .cat-name { transform: translateX(clamp(16px, 2.4vw, 36px)); color: var(--rust); }
}

.cat-float {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: clamp(220px, 19vw, 300px); aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  opacity: 0; transition: opacity .35s var(--ease-soft);
  box-shadow: 0 30px 60px -30px rgba(32,18,5,.55);
  will-change: transform;
}
.cat-float.is-on { opacity: 1; }
.cat-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; opacity: 0; transform: scale(1.12); transition: opacity .4s var(--ease-soft), transform .8s var(--ease); }
.cat-float img.is-on { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cat-float { display: none; } }

/* 5. crew ---------------------------------------------------------------- */

.crew { position: relative; height: 108vh; height: 108svh; overflow: hidden; color: #fff; background: var(--ink); }
.crew-media { position: absolute; inset: 0; }
.crew-media picture { display: block; width: 100%; height: 100%; }
.crew-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(var(--cz, 1.08)); will-change: transform; }
.crew-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,11,3,.38) 0%, rgba(20,11,3,0) 28%, rgba(20,11,3,.12) 55%, rgba(20,11,3,.84) 100%);
}
.crew-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: clamp(32px, 7vh, 80px); }
.crew-kicker { margin: 0; color: rgba(255,255,255,.72); font-size: 1rem; }
.crew-title { color: #fff; margin-top: 8px; font-weight: 300; font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: .94; letter-spacing: -.045em; }
.crew-text { margin: 18px 0 0; max-width: 42ch; color: rgba(255,255,255,.86); }

@media (max-width: 759px) {
  /* show the whole group on phones, nobody cropped out */
  .crew { height: auto; }
  .crew-media { position: relative; }
  .crew-media img { height: auto; transform: none; }
  .crew-media::after { display: none; }
  .crew-body { position: relative; padding-block: 32px 48px; }
}

/* 6. lookbook ------------------------------------------------------------ */

.look { background: var(--paper-warm); padding-block: clamp(80px, 12vw, 160px) clamp(40px, 8vw, 110px); overflow: hidden; --buti-eye: var(--paper-warm); }
.look-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 24px); align-items: start; }
.look-col { display: grid; gap: clamp(10px, 1.6vw, 24px); will-change: transform; }
.look-col:nth-child(2) { margin-top: clamp(40px, 10vw, 160px); }
.look-col:nth-child(3) { margin-top: clamp(16px, 4vw, 60px); }
.look-col:nth-child(4) { margin-top: clamp(60px, 13vw, 210px); }
.look-item { position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--paper); }
.look-item img { width: 100%; transition: transform 1.4s var(--ease); }
.look-cap {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: var(--paper); color: var(--ink); border-radius: 999px;
  font-size: .8rem; font-weight: 500; padding: 7px 12px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-soft), transform .5s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .look-item:hover img { transform: scale(1.045); }
  .look-item:hover .look-cap, .look-item:focus-visible .look-cap { opacity: 1; transform: none; }
}
@media (hover: none), (pointer: coarse) { .look-cap { opacity: 1; transform: none; } }
@media (max-width: 759px) {
  .look-cols { grid-template-columns: repeat(2, 1fr); }
  .look-col:nth-child(n+3) { display: none; }
}

/* 7. story --------------------------------------------------------------- */

.story { position: relative; padding-block: clamp(100px, 15vw, 200px); }
.story-text {
  margin: 0 0 clamp(32px, 5vw, 52px); max-width: 17em;
  font-weight: 300; font-size: clamp(1.9rem, 4.7vw, 4.3rem); line-height: 1.1; letter-spacing: -.035em;
}
.story-text .w { opacity: .14; transition: opacity .5s var(--ease-soft); }
.story-text .w.is-in { opacity: 1; }
.story-buti {
  position: absolute; right: var(--pad); top: clamp(60px, 10vw, 140px);
  width: clamp(80px, 12vw, 180px); height: clamp(80px, 12vw, 180px); color: var(--rust); opacity: .9;
  transform: rotate(var(--spin, 0deg));
}
@media (max-width: 759px) { .story-buti { opacity: .18; } }

/* 8. ordering ------------------------------------------------------------ */

.wa {
  position: relative; overflow: hidden; color: var(--paper);
  background-color: var(--indigo);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='%232A3560'><circle cx='36' cy='36' r='3'/><ellipse cx='36' cy='26' rx='2.6' ry='6'/><ellipse cx='36' cy='46' rx='2.6' ry='6'/><ellipse cx='26' cy='36' rx='6' ry='2.6'/><ellipse cx='46' cy='36' rx='6' ry='2.6'/><circle cx='0' cy='0' r='2'/><circle cx='72' cy='0' r='2'/><circle cx='0' cy='72' r='2'/><circle cx='72' cy='72' r='2'/></g></svg>");
  background-size: 72px 72px;
  padding-block: clamp(90px, 13vw, 170px);
}
.wa-grid { display: grid; gap: clamp(56px, 8vw, 96px); }
@media (min-width: 900px) { .wa-grid { grid-template-columns: 1.05fr .95fr; align-items: center; } }
.wa-title { color: var(--paper); font-weight: 300; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .96; letter-spacing: -.04em; }
.wa-sub { margin: 18px 0 0; color: rgba(245,240,232,.72); max-width: 38ch; }
.wa-steps { list-style: none; counter-reset: s; margin: 40px 0 40px; padding: 0; display: grid; gap: 24px; }
.wa-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.wa-steps li::before {
  counter-increment: s; content: counter(s);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(245,240,232,.35); font-size: .9rem; color: var(--paper);
}
.wa-steps h3 { color: var(--paper); font-size: 1.12rem; font-weight: 500; line-height: 1.25; padding-top: 7px; }
.wa-steps p { margin: 4px 0 0; color: rgba(245,240,232,.68); font-size: .96rem; }

.chat {
  background: #F1E9DC; color: var(--ink); border-radius: 26px; padding: 18px 18px 22px;
  width: min(100%, 410px); justify-self: center;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.65);
  transform: rotate(-2.2deg);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; box-shadow: inset 0 -1px 0 rgba(32,18,5,.1); }
.chat-head b { display: block; font-weight: 600; font-size: .98rem; }
.chat-head small { display: block; color: var(--ink-soft); font-size: .76rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; overflow: hidden; flex: none; }
.chat-avatar img { width: 30px; }
.chat-body { display: grid; gap: 10px; padding-top: 16px; min-height: 290px; align-content: start; }
.bub {
  max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: .94rem; line-height: 1.45; white-space: pre-line;
  animation: bub-in .5s var(--ease) both;
}
.bub--me { justify-self: end; background: #DCEBC9; border-bottom-right-radius: 5px; }
.bub--them { justify-self: start; background: #fff; border-bottom-left-radius: 5px; }
.bub--typing { display: flex; gap: 5px; padding: 14px 16px; }
.bub--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: dot 1s var(--ease-soft) infinite; }
.bub--typing i:nth-child(2) { animation-delay: .15s; }
.bub--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes bub-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .h-title .ln > span, .h-lede, .h-actions { transform: none !important; opacity: 1 !important; }
  .story-text .w { opacity: 1; }
  .chat { transform: none; }
}
