/* Home page: cinematic scenes.
   Static layout first (no JS / reduced motion); `.gsap` on <html> switches on the pinned versions in home.js. */


/* Intro: giant wordmark behind a framed photo. */
.intro { position: relative; height: 100svh; min-height: 560px; background: var(--night); color: var(--white); overflow: hidden; }
.intro__stage { position: relative; height: 100%; }
.intro__word { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
/* The real wordmark (assets/img/logo-word.png) used as a mask, so it takes the cream colour and stays sharp. */
.intro__logo { position: relative; width: min(86vw, 1500px); aspect-ratio: 2292 / 744; }
.intro__logo .l { position: absolute; inset: 0; background: var(--cream);
  -webkit-mask: url(/assets/img/logo-word.png) center / contain no-repeat; mask: url(/assets/img/logo-word.png) center / contain no-repeat;
  animation: rise-in 1.3s var(--ease) both; }
/* Cut along the italic slant between the C and "obra". */
.intro__logo .l--a { clip-path: polygon(0 0, 42.8% 0, 32.3% 100%, 0 100%); }
.intro__logo .l--b { clip-path: polygon(42.8% 0, 100% 0, 100% 100%, 32.3% 100%); animation-delay: .1s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(30%); } }
.intro__frames { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.intro__frame { position: relative; overflow: hidden; }
.intro__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.intro__frame--mid { clip-path: inset(17% 7% 15% 7% round 6px); animation: frame-in 1.4s var(--ease) .15s both; }
@keyframes frame-in { from { opacity: 0; translate: 0 60px; } }
/* With JS and motion on, the page opens on the wordmark alone: the photo waits below its frame for the scroll
   (home.js), so it doesn't flash in before GSAP takes over. */
@media (prefers-reduced-motion: no-preference) {
  .motion:not(.no-gsap) .intro__frame--mid { clip-path: inset(85% 7% 15% 7% round 6px); animation: none; }
}
.intro__frame--start, .intro__frame--end { visibility: hidden; }
.gsap .intro__frame--start, .gsap .intro__frame--end { visibility: visible; }
.intro__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 18, 28, .92) 0%, rgba(6, 18, 28, .5) 45%, rgba(6, 18, 28, 0) 75%); }
.intro__copy { position: absolute; z-index: 4; inset-inline: 0; bottom: clamp(32px, 7vh, 80px); text-shadow: 0 1px 14px rgba(6, 18, 28, .4); }
.intro__copy h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1.02; max-width: 14ch; }
.intro__lede { max-width: 36rem; margin-top: 1.2rem; color: rgba(255, 255, 255, .88); font-size: clamp(1.02rem, 1.3vw, 1.18rem); }
.intro__hint { display: none; position: absolute; z-index: 4; bottom: 28px; left: 50%; translate: -50% 0; margin: 0;
  flex-direction: column; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.intro__hint span { width: 1px; height: 44px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .8));
  transform-origin: top; animation: hint 2s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.gsap .intro__hint { display: flex; }
@media (max-width: 760px) {
  .intro__frames { grid-template-columns: 1fr; }
  .intro__frame--start, .intro__frame--end { display: none; }
  .intro__frame--mid { clip-path: inset(16% 12% 18% 12% round 6px); }
  .motion:not(.no-gsap) .intro__frame--mid { clip-path: inset(82% 12% 18% 12% round 6px); }
  .intro__word { align-items: flex-start; padding-top: 24svh; }
  .intro__logo { width: 90vw; }
}

/* Cuts gallery: a swipeable rail without JS, a pinned sideways scroll with it. */
.hs { position: relative; background: var(--night); color: var(--white); padding-block: clamp(64px, 8vw, 104px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.hs__head h2 { color: var(--cream); }
.hs__count { display: none; margin: 0; font: 400 1.5rem/1 var(--serif); color: rgba(255, 255, 255, .6); }
.hs__count span { color: var(--white); }
.hs__track { display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 24px); padding-inline: var(--gutter); overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.hs__track::-webkit-scrollbar { display: none; }
.hs__panel { position: relative; flex: none; width: clamp(250px, 34vw, 500px); height: min(66vh, 620px); border-radius: 6px; overflow: hidden;
  scroll-snap-align: start; color: var(--white); text-decoration: none; background: #13283a; }
.hs__panel:nth-child(even) { margin-top: clamp(24px, 5vh, 56px); }
.hs__img, .hs__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs__img img { object-fit: cover; object-position: 50% 25%; transition: transform 1s var(--ease); }
.hs__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 18, 28, .78), rgba(6, 18, 28, 0) 50%); }
.hs__meta { position: absolute; z-index: 1; inset-inline: 24px; bottom: 22px; display: grid; gap: 2px; }
.hs__num { font: 400 1rem/1 var(--serif); opacity: .7; }
.hs__name { font: 400 clamp(1.9rem, 3vw, 2.8rem)/1.05 var(--serif); }
.hs__n { font-size: .92rem; opacity: .8; }
.hs__panel--end { background: transparent; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; text-align: center; }
.hs__panel--end::after { display: none; }
.hs__end { display: grid; gap: 10px; justify-items: center; padding: 24px; }
.hs__end .hs__num { font-size: clamp(4rem, 9vw, 8rem); opacity: 1; color: var(--cream); }
.hs__end .link { color: var(--white); }
.hs__bar { display: none; margin-top: clamp(28px, 4vw, 44px); }
.hs__bar::before { content: ""; display: block; height: 2px; background: rgba(255, 255, 255, .15); }
.hs__bar span { display: block; height: 2px; margin-top: -2px; background: var(--white); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .hs__bar span { transform-origin: left; }
.gsap .hs { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.gsap .hs__track { overflow: visible; width: max-content; scroll-snap-type: none; }
.gsap .hs__bar, .gsap .hs__count { display: block; }
@media (hover: hover) and (pointer: fine) { .hs__panel:hover img { transform: scale(1.05); } }
@media (max-width: 760px) { .hs__panel { width: 76vw; height: 60svh; } .hs__panel:nth-child(even) { margin-top: 0; } }

/* New models: an editorial grid with one lead model. */
@media (min-width: 641px) { .grid--editorial > .card:first-child { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 640px) { .grid--editorial > .card:first-child { grid-column: 1 / -1; } }
.grid--editorial > .card:first-child .card__name { font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.2 var(--serif); }

/* Marquee: GSAP drives it here (speed follows scroll). */
.gsap .marquee__track { animation: none; }

/* Statement: a large paragraph that lights up word by word. */
.statement { background: var(--night); color: var(--cream); padding-block: clamp(96px, 14vw, 184px); }
.statement__txt { margin: 0 0 clamp(48px, 6vw, 80px); max-width: 24ch; font: 400 clamp(2rem, 4.7vw, 4.4rem)/1.22 var(--serif); }
.statement__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.stats--light { margin: 0; flex: 1 1 520px; border-color: rgba(255, 255, 255, .15); }
.stats--light dt { color: var(--cream); }
.stats--light dd { color: rgba(255, 255, 255, .62); }

/* Brand panels stack as you scroll (sticky); home.js sinks each one back as the next arrives. */
.stack { padding-block: clamp(72px, 9vw, 120px) clamp(40px, 5vw, 64px); }
.stack__head { margin-bottom: clamp(28px, 4vw, 48px); }
.stack__card { position: sticky; top: calc(var(--hdr) + 20px); height: min(76vh, 660px); margin-bottom: clamp(24px, 4vh, 48px); }
.stack__card:last-child { margin-bottom: 0; }
.stack__inner { height: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; background: var(--sand);
  transform-origin: 50% 0; box-shadow: 0 -18px 40px rgba(10, 23, 33, .08); }
.stack__card:nth-child(2) .stack__inner { background: var(--night); color: var(--cream); }
.stack__card:nth-child(3) .stack__inner { background: #e9ddd0; }
.stack__img { position: relative; }
.stack__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.stack__txt { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: clamp(28px, 5vw, 80px); }
.stack__num { font: 400 1.1rem/1 var(--serif); opacity: .55; }
.stack__name { font-size: clamp(3rem, 7vw, 6.6rem); letter-spacing: .06em; line-height: .95; }
.stack__tag { font-weight: 600; color: var(--terra); margin: 0; }
.stack__txt p:not(.stack__tag) { max-width: 30rem; opacity: .85; margin: 6px 0 14px; }
.stack__card:nth-child(2) .stack__tag { color: #f3d9c3; }
.stack__card:nth-child(2) .btn--line { border-color: var(--white); color: var(--white); }
.stack__card:nth-child(2) .btn--line:hover { background: var(--cream); color: var(--night); }
@media (max-width: 900px) {
  .stack__card { height: min(82svh, 720px); }
  .stack__inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .stack__txt { padding: 24px; gap: 6px; }
  .stack__txt p:not(.stack__tag) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro__logo .l, .intro__frame--mid, .intro__hint span { animation: none; }
}

/* The facts strip continues the dark intro into the cuts gallery, so the top reads as one scene. */
.facts { max-width: none; background: var(--night); color: var(--cream); border: 0; padding-inline: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter)));
  padding-block: 36px; border-top: 1px solid var(--hair-dark); }
.facts li { color: rgba(244, 236, 226, .62); border-color: var(--hair-dark); }
.facts strong { color: var(--cream); }
.storeband { background: var(--night); }
