/* ==========================================================================
   WAY IN homepage: campaign hero, shop by fit, story, brand details, service strip.
   Loaded on the homepage only (layout.js). Tokens come from site.css.
   ========================================================================== */

/* ---------------- Hero: oversized wordmark over the campaign photograph ---------------- */
/* The photograph is shown whole, at its own proportions (never stretched or cropped);
   on wide screens it is centred on deep black and its side edges melt into the background. */
.wi-hero { position: relative; overflow: hidden; background: var(--black); color: var(--beige); isolation: isolate;
  padding-top: clamp(14px, 2vw, 30px); }
.wi-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 55%, #2b2925 0, var(--black) 70%); }
.wi-hero-word { position: relative; z-index: 2; margin: 0; text-align: center; font: 900 clamp(64px, 19vw, 330px)/.78 var(--f-display);
  letter-spacing: -.025em; color: var(--beige); white-space: nowrap; pointer-events: none; }
.wi-hero-word > span:first-child { display: inline-block; animation: wiRise 1.1s var(--ease) both; }
.wi-hero-stage { position: relative; container-type: inline-size; width: min(100%, 1376px, calc((100svh - var(--header-h) - var(--ann-h) - 9vw) * 1.79)); min-width: min(100%, 900px);
  margin: calc(clamp(64px, 19vw, 330px) * -.3) auto 0; }
.wi-hero-media { margin: 0; }
.wi-hero-media img { width: 100%; height: auto; aspect-ratio: 1376 / 768; background: #24221f;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%);
  mask-composite: intersect; animation: wiFade 1.4s .15s var(--ease) both; }
.wi-hero-since { position: absolute; right: clamp(10px, 2.2%, 34px); top: 52%; translate: 0 -50%; writing-mode: vertical-rl;
  font: 700 11px/1 var(--f-display); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
/* Copy sits in the empty backdrop left of the group (the photo's left ~25%), above its bottom edge. */
.wi-hero-copy { position: absolute; left: 3.2%; bottom: 14%; width: 19%; display: grid; justify-items: start; gap: 10px; text-align: left; }
.wi-hero-tag { font: 900 clamp(22px, 2.75cqw, 42px)/.95 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; color: var(--beige); }
.wi-hero-sub { display: flex; align-items: center; gap: 12px; font: 700 clamp(9px, .85cqw, 12px)/1.5 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--light-cream); }
.wi-hero-sub { white-space: nowrap; }
.wi-hero-ctas { display: grid; justify-items: stretch; gap: 10px; margin-top: 14px; }
.wi-hero-ctas .btn { min-height: clamp(42px, 3.8cqw, 54px); padding: 0 clamp(14px, 1.4cqw, 24px); font-size: clamp(9.5px, .85cqw, 12px); letter-spacing: .16em; }
@keyframes wiRise { from { opacity: 0; transform: translateY(18%); } }
@keyframes wiFade { from { opacity: 0; } }

/* ---------------- Shop by fit ---------------- */
.wi-fits { background: var(--paper); padding: clamp(56px, 7vw, 104px) 0; }
.fit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.fit-card { position: relative; display: flex; flex-direction: column; background: var(--charcoal); color: var(--light-cream); overflow: hidden;
  outline: 1px solid transparent; outline-offset: -1px; transition: transform .45s var(--ease), outline-color .35s, box-shadow .45s; }
.fit-card:visited { color: var(--light-cream); }
.fit-card:hover { transform: translateY(-6px); outline-color: var(--gold); box-shadow: 0 26px 46px -26px rgba(21, 20, 18, .7); }
.fit-num { position: absolute; z-index: 3; top: 16px; left: 18px; font: 700 12px/1 var(--f-display); letter-spacing: .24em; color: var(--gold); }
.fit-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; display: flex; justify-content: center; align-items: flex-start;
  background: radial-gradient(90% 70% at 50% 35%, rgba(216, 194, 163, .28), transparent 70%), var(--charcoal); }
.fit-media img { position: relative; z-index: 2; height: 100%; width: auto; max-width: 88%; object-fit: contain; object-position: top;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); transition: transform .7s var(--ease); }
.fit-card:hover .fit-media img { transform: translateY(-2%) scale(1.04); }
.fit-info { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 18px 18px 20px; border-top: 1px solid var(--line-dark); }
.fit-name { font: 900 clamp(17px, 1.6vw, 24px)/1 var(--f-display); letter-spacing: -.005em; text-transform: uppercase; color: var(--beige); }
.fit-note { grid-row: 2; font-size: 12.5px; color: rgba(243, 235, 221, .6); }
.fit-info .icon { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; color: var(--orange); transition: transform .3s var(--ease); }
.fit-card:hover .fit-info .icon { transform: translateX(5px); }

/* ---------------- Best sellers (dark, editorial) ---------------- */
.wi-best .section-head { border-bottom: 1px solid var(--line-dark); padding-bottom: clamp(18px, 2vw, 28px); }

/* ---------------- Story ---------------- */
.wi-story { background: var(--beige); color: var(--black); padding: clamp(64px, 9vw, 130px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.wi-story-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 6vw, 110px); }
.wi-story-media { position: relative; }
.wi-story-media > img { width: 76%; aspect-ratio: 2/3; object-fit: cover; background: var(--studio); }
.wi-story-media-2 { position: absolute; right: 0; bottom: -48px; width: 42%; border: 10px solid var(--beige); }
.wi-story-media-2 img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: var(--studio); }
.wi-story-copy { display: grid; gap: 26px; justify-items: start; }
.wi-story .eyebrow { color: var(--black); }
.wi-story-title { font: 900 clamp(48px, 7.4vw, 124px)/.86 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.wi-story .lead { color: var(--charcoal); max-width: 44ch; }
.wi-story-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* ---------------- Brand details ---------------- */
.wi-details { background: var(--black); color: var(--light-cream); }
.wi-details .eyebrow { color: var(--gold); }
.wi-details .display { color: var(--beige); }
.wi-details-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto auto; gap: clamp(10px, 1.2vw, 18px); }
.wi-detail { position: relative; margin: 0; overflow: hidden; background: #1d1b19; border: 1px solid var(--line-dark); }
.wi-detail img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform 1.2s var(--ease); }
.wi-detail:hover img { transform: scale(1.05); }
.wi-detail--tags { grid-row: span 2; }
.wi-detail--tags img { aspect-ratio: auto; min-height: 100%; }
.wi-detail:nth-child(4), .wi-detail:nth-child(5) { grid-column: span 1; }
.wi-detail:nth-child(4) img, .wi-detail:nth-child(5) img { object-fit: contain; background: #1d1b19; padding: 6% 5% 22%; }
.wi-detail figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(21, 20, 18, .88)); font: 800 12px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--beige); }
.wi-detail figcaption span { grid-row: span 2; color: var(--gold); font-size: 11px; }
.wi-detail figcaption small { font: 400 12.5px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; color: rgba(243, 235, 221, .7); }
.wi-details-note { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 44px);
  padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(181, 138, 79, .45); }
.wi-details-bird { width: clamp(48px, 5vw, 72px); aspect-ratio: 358 / 480; background: url(/media/brand/bird-light.png) center / contain no-repeat; }
.wi-details-note p { font: 700 clamp(15px, 1.5vw, 20px)/1.4 var(--f-display); letter-spacing: .01em; text-transform: uppercase; color: var(--light-cream); max-width: 52ch; }

/* ---------------- Service strip ---------------- */
.trust-strip { background: var(--paper); border-top: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 24px; padding-bottom: 24px; }
.trust-list li { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--ink); }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list .icon { width: 28px; height: 28px; flex: none; color: var(--gold); }
.trust-list strong { display: block; font: 800 12px/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.trust-list small { display: block; font-size: 12.5px; color: var(--stone); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  /* The copy moves under the photograph */
  .wi-hero-stage { width: 100%; min-width: 0; }
  .wi-hero-copy { position: static; width: auto; min-width: 0; justify-items: center; text-align: center; padding: 26px var(--gutter) 44px; }
  .wi-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; }
  .wi-hero-sub::before { content: ''; width: 28px; height: 1px; background: var(--orange); }
  .wi-hero-since { display: none; }
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wi-details-grid { grid-template-columns: 1fr 1fr; }
  .wi-detail--tags { grid-column: 1 / -1; grid-row: auto; }
  .wi-detail--tags img { aspect-ratio: 3 / 2; }
  .trust-list { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .trust-list li:nth-child(3) { border-left: 0; }
}
@media (max-width: 760px) {
  .wi-hero { padding-top: 18px; }
  .wi-hero-word { font-size: 22vw; }
  .wi-hero-stage { margin-top: -6vw; }
  .wi-hero-media img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
  .wi-hero-ctas { width: 100%; display: grid; grid-template-columns: 1fr; }
  .wi-hero-ctas .btn { width: 100%; }
  .wi-story-inner { grid-template-columns: 1fr; }
  .wi-story-media { padding-bottom: 48px; }
  .wi-details-note { grid-template-columns: auto 1fr; }
  .wi-details-note .btn { grid-column: 1 / -1; justify-self: start; }
  .trust-list li { justify-content: flex-start; }
  .trust-list li + li { border-left: 0; }
}
@media (max-width: 520px) {
  .wi-details-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wi-detail figcaption { padding: 28px 10px 10px; font-size: 10.5px; letter-spacing: .1em; }
  .wi-detail figcaption small { display: none; }
  .fit-info { padding: 14px 12px 16px; }
  .fit-note { font-size: 11.5px; }
  .fit-num { top: 12px; left: 12px; }
  .trust-list { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .trust-list li { gap: 10px; }
  .trust-list .icon { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .wi-hero-word > span:first-child, .wi-hero-media img { animation: none; }
  .fit-card, .fit-media img { transition: none; }
}
