/* ==========================================================================
   Goodwill "Next" — shared light theme for the redesigned pages
   (home, collections, studio). A light grey gallery wall; every garment
   hangs in a dark arched niche that matches the render background exactly.
   ========================================================================== */
:root {
  --wall: #e6e5e1;         /* light grey wall */
  --wall-2: #dcdad5;       /* deeper band */
  --card: #f3f2ef;         /* raised surface */
  --niche: #080a06;        /* render background, used for arches and film bands */
  --text: #1c1b17;
  --muted: #66635b;
  --rule: rgba(28, 27, 23, .13);
  --brass: #9c7629;        /* hanger hook, darkened for light backgrounds */
  --brass-hi: #c9a45c;
  --walnut: #6b4429;
  --chalk: #efebe1;        /* text on dark bands */
  --chalk-muted: rgba(239, 235, 225, .72);
  --paper: #f1ede4;        /* pattern paper */
  --paper-line: rgba(107, 68, 41, .10);
  --arch: 50% 50% 8px 8px / 28% 28% 8px 8px;
}

body.gw-light { background: var(--wall); color: var(--text); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Header: light grey glass once scrolled */
.gw-light .gw-header.is-solid, .gw-light .gw-header.is-light {
  background: rgba(230, 229, 225, .82); color: var(--text);
  box-shadow: 0 1px 0 var(--rule);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
/* Over the homepage film: transparent with light text until scrolled */
.home-next .gw-header.is-light:not(.is-solid) { background: transparent; color: var(--chalk); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home-next .gw-header.is-light:not(.is-solid) .brand .logo-light { display: block; }
.home-next .gw-header.is-light:not(.is-solid) .brand .logo-ink { display: none; }

/* The arched niche: a dark alcove in the grey wall */
.arch { position: relative; overflow: hidden; background: var(--niche); border-radius: var(--arch); isolation: isolate; }
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .22), inset 0 -40px 60px -30px rgba(0, 0, 0, .6); }

/* Type */
.h-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(2.3rem, 5.2vw, 4.6rem); color: var(--text); text-wrap: balance; }
.h-sub { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.65; color: var(--muted); max-width: 52ch; }
.on-film .h-title { color: var(--chalk); }
.on-film .h-sub { color: var(--chalk-muted); }

/* Buttons */
.btn-line { border: 1px solid rgba(28, 27, 23, .28); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); background: rgba(28, 27, 23, .04); }
.on-film .btn-line, .btn-line.light { border-color: rgba(239, 235, 225, .4); color: var(--chalk); }
.on-film .btn-line:hover, .btn-line.light:hover { border-color: var(--chalk); background: rgba(239, 235, 225, .08); }
.btn-gold { background: var(--brass-hi); color: var(--niche); box-shadow: none; }
.btn-gold:hover { background: #dcbb76; }
.btn-dark { background: var(--text); color: var(--card); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[data-magnetic] { will-change: transform; }

/* Masked line reveal */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; will-change: transform; }
.motion-ok .ln > span { transform: translateY(105%); }
.motion-ok .fade-in { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .motion-ok .ln > span { transform: none; }
  .motion-ok .fade-in { opacity: 1; }
}
