/* ==========================================================================
   Whytelight — components
   Buttons, the aperture shutter, menu, basket, hero, collection cards,
   carousel, notes, FAQ, contact.
   ========================================================================== */

/* --- Buttons and links -------------------------------------------------- */

.wl-btn {
  display: inline-block;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-ui);
  padding: 1.125rem 1.875rem;
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  transition: background var(--dur-fast) ease;
}

.wl-btn:hover,
.wl-btn:focus-visible {
  background: var(--t-body);
  color: var(--c-white);
  text-decoration: none;
}

.wl-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* The underlined text link used for every secondary action. */
.wl-link-under {
  display: inline-block;
  border-bottom: 1.5px solid var(--c-ink);
  padding-block: 0.375rem;
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ink);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.wl-link-under:hover,
.wl-link-under:focus-visible {
  border-bottom-color: var(--a-base);
  color: var(--a-link-hover);
  text-decoration: none;
}

.wl-link-under--light {
  border-bottom-color: rgba(255, 255, 255, 0.5);
  color: var(--c-white);
}

.wl-link-under--light:hover,
.wl-link-under--light:focus-visible {
  border-bottom-color: var(--a-warm);
  color: var(--a-warm);
}

/* The small uppercase text button: Close, Remove, ← All prints. */
.wl-link-cap {
  font-family: var(--f-body);
  font-size: 0.71875rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-caption);
  transition: color var(--dur-fast) ease;
}

.wl-link-cap:hover,
.wl-link-cap:focus-visible {
  color: var(--c-ink);
  text-decoration: none;
}

/* --- Aperture shutter ---------------------------------------------------
   Eight half-plane blades pivoting about the viewport centre. Each is wider
   and taller than the viewport so that at any rotation it still covers its
   wedge; `d` is how far its edge sits from centre, and d = 0 closes the
   octagon. shutter.js writes the transforms.
   -------------------------------------------------------------------------- */

.wl-shutter {
  position: fixed;
  inset: 0;
  z-index: var(--z-shutter);
  pointer-events: none;
  overflow: hidden;
}

.wl-shutter[hidden] {
  display: none;
}

.wl-shutter__blade {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120vmax;
  height: 200vmax;
  transform-origin: 0 0;
  background: var(--c-blade);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  will-change: transform;
  backface-visibility: hidden;

  /* Open position. shutter.js drives it from here. */
  transform: rotate(var(--blade-angle, 0deg)) translate(90vmax, -100vmax);
}

.wl-shutter__word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 1.625rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;

  /* Matches WORD_MS in shutter.js. No delay: the script only adds
     .is-closed once the blades have fully met. */
  transition: opacity 0.22s ease;
}

.wl-shutter.is-closed .wl-shutter__word {
  opacity: 1;
}

/*
 * Arriving through the shutter. The head script sets .wl-arriving on <html>
 * before anything paints, so the very first frame is closed blades rather
 * than a flash of the page that the blades then jump over. shutter.js opens
 * them from here and removes the class.
 */
html.wl-arriving .wl-shutter,
html.wl-arriving .wl-shutter[hidden] {
  display: block;
}

html.wl-arriving .wl-shutter__blade {
  transform: rotate(calc(var(--blade-angle, 0deg) + 28deg)) translate(0vmax, -100vmax);
}

html.wl-arriving .wl-shutter__word {
  opacity: 1;
  transition: none;
}

/* --- Full-screen menu --------------------------------------------------- */

.wl-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--c-black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: wl-fade var(--dur-mid) ease both;
}

.wl-menu[hidden] {
  display: none;
}

.wl-menu__art {
  position: relative;
  overflow: hidden;
}

.wl-menu__art-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.4s var(--ease-out);
}

.wl-menu__art-frame.is-active {
  opacity: 1;
  transform: scale(1);
}

.wl-menu__art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wl-menu__art-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 17, 16, 0) 60%, var(--c-black) 100%);
}

.wl-menu__art-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 2.125rem;
  margin: 0;
}

.wl-menu__nav {
  align-self: center;
  max-height: 100vh;
  overflow-y: auto;
  padding: 5.625rem 5.5rem 3.75rem;
}

.wl-menu__list {
  display: grid;
  gap: 0.25rem;
  list-style: none;
}

.wl-menu__item {
  display: flex;
  align-items: baseline;
  gap: 1.625rem;
  padding-block: 0.5rem;
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: clamp(2rem, 6vh, 3.625rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--t-footer-link);
  transition: color var(--dur-fast) ease, transform 0.5s var(--ease-out);
}

.wl-menu__item:hover,
.wl-menu__item:focus-visible,
.wl-menu__item[aria-current="page"] {
  color: var(--c-white);
  text-decoration: none;
  transform: translateX(10px);
}

.wl-menu__n {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  color: var(--t-caption);
  letter-spacing: 0.1em;
  width: 30px;
  flex: none;
}

.wl-menu__meta {
  display: flex;
  gap: 2.1875rem;
  flex-wrap: wrap;
  margin-top: 2.75rem;
  color: var(--t-caption);
}

/* --- Basket drawer ------------------------------------------------------ */

.wl-basket {
  position: fixed;
  inset: 0;
  z-index: var(--z-basket);
}

/* Logged in: start the drawer and the menu below WordPress's admin bar. */
.admin-bar .wl-basket,
.admin-bar .wl-menu {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .wl-basket,
  .admin-bar .wl-menu {
    top: 46px;
  }
}

.wl-basket[hidden] {
  display: none;
}

.wl-basket__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.5);

  /* No backdrop blur: blurring the whole page every frame is what made the
     drawer stutter as it slid in. */
  opacity: 0;
  transition: opacity 0.45s ease;
}

.wl-basket.is-open .wl-basket__scrim {
  opacity: 1;
}

.wl-basket__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
  box-shadow: var(--shadow-panel);
}

.wl-basket.is-open .wl-basket__panel {
  transform: translateX(0);
}

.wl-basket__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 2.125rem 2.125rem 1.375rem;
  border-bottom: 1px solid var(--c-line);
  flex: none;
}

.wl-basket__heading {
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.wl-basket__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* --- Basket drawer contents ---------------------------------------------
   Here rather than in shop.css: the drawer opens from every page, and
   shop.css only loads on shop pages, which left it half-styled elsewhere.
   -------------------------------------------------------------------------- */

.wl-basket__empty {
  padding: 2.75rem 2.125rem;
}

.wl-basket__empty-text {
  color: var(--t-muted);
  margin-bottom: 1.375rem;
}

.wl-basket__items {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 0 2.125rem;
  margin: 0;
}

.wl-basket__item {
  display: flex;
  gap: 1.125rem;
  border-bottom: 1px solid var(--c-line);
  padding-block: 1.375rem;
}

.wl-basket__thumb {
  width: 84px;
  flex: none;
}

.wl-basket__thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}

.wl-basket__detail {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.wl-basket__name {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.wl-basket__name a {
  color: var(--c-ink);
}

.wl-basket__config {
  font-size: 0.8125rem;
  color: var(--t-muted);
}

.wl-basket__remove {
  justify-self: start;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-caption);
}

.wl-basket__price {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: var(--fw-label);
  flex: none;
}

.wl-basket__each {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--t-caption);
  white-space: nowrap;
}

/* Copies: − 2 + */
.wl-qty {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
}

.wl-qty__btn {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wl-qty__btn:hover:not(:disabled) {
  background: var(--c-cream);
}

.wl-qty__btn:disabled {
  color: var(--c-line-strong);
  cursor: default;
}

.wl-qty__n {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: var(--fw-label);
  font-variant-numeric: tabular-nums;
}

/* While the basket is talking to the shop, and as a line is removed. */
.wl-basket__item {
  transition: opacity 0.25s ease;
}

.wl-basket__item.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.wl-basket__item.is-leaving {
  opacity: 0;
}

.wl-basket__body {
  transition: opacity 0.2s ease;
}

.wl-basket__foot {
  flex: none;
  padding: 1.375rem 2.125rem 2.125rem;
  border-top: 1px solid var(--c-line-strong);
  display: grid;
  gap: 1.125rem;
  background: var(--c-white);
}

.wl-basket__totals {
  display: grid;
  gap: 0.5rem;
  font-size: 0.90625rem;
}

.wl-basket__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.wl-basket__row-value {
  font-weight: var(--fw-label);
}

.wl-basket__row--total {
  border-top: 1px solid var(--c-line);
  padding-top: 0.75rem;
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 1.875rem;
}

.wl-basket__row--total .wl-basket__row-value {
  font: inherit;
}

.wl-basket__note,
.wl-basket__reassure {
  font-size: 0.75rem;
  color: var(--t-caption);
}

.wl-basket__reassure {
  text-align: center;
}

.wl-basket__actions {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.wl-basket__checkout {
  width: 100%;
  text-align: center;
}

/* --- Hero --------------------------------------------------------------- */

.wl-hero {
  height: 100vh;
  min-height: 680px;
}

.wl-hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: var(--gutter);
}

.wl-hero__kicker {
  color: var(--c-sand);
  margin-bottom: 1.625rem;
  animation: wl-rise 1s ease 0.4s both;
}

.wl-hero__title {
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--c-white);
  margin-bottom: 1.875rem;
  animation: wl-rise 1.2s ease 0.55s both;
}

.wl-hero__strap {
  font-size: 1.125rem;
  color: var(--c-sand);
  max-width: 40ch;
  text-wrap: pretty;
  animation: wl-rise 1s ease 0.8s both;
}

.wl-hero__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.875rem;

  /*
   * Three fixed columns, not space-between: the caption on the left changes
   * length with every slide, and between flexible neighbours the Scroll cue
   * drifted with it. Equal outer columns keep it dead centre, and explicit
   * columns keep it there when the side captions are hidden on smaller screens.
   */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
}

.wl-hero__foot > :first-child {
  grid-column: 1;
  justify-self: start;
}

.wl-hero__foot > :last-child {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.wl-hero__cue {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5625rem;
}

.wl-hero__cue-line {
  width: 1.5px;
  height: 44px;
  background: rgba(245, 234, 216, 0.8);
  animation: wl-cue 2.4s ease-in-out infinite;
}

/* --- Hero slides ---------------------------------------------------------
   Every photograph is stacked in one parallax layer. The current one fades up
   over 1.8s while it drifts slowly in over 7s; the rest wait at full size.
   -------------------------------------------------------------------------- */

.wl-hero__slides {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.wl-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.8s ease, transform 7s linear;
}

.wl-hero__slide.is-current {
  opacity: 1;
  transform: scale(1.06);
}

/* Inside the slide the image fills its box; the slide stack does the overdraw. */
.wl-hero__slide .wl-hero__img {
  inset: 0;
  height: 100%;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .wl-hero__slide,
  .wl-hero__slide.is-current {
    transform: none;
    transition: none;
  }
}

/* --- Testimonials --------------------------------------------------------
   Heading on the left behind a hairline, one quote at a time on the right. The
   band, the line and the kicker all take the current quote's tint.
   -------------------------------------------------------------------------- */

.wl-testimonials {
  background: var(--testi-bg);
  padding-block: 8.125rem 8.75rem;
  transition: background var(--dur-slow) ease;
}

.wl-testimonials__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.wl-testimonials__head {
  display: grid;
  gap: 1.125rem;
  align-content: start;
  padding-right: 4.375rem;
  border-right: 1px solid var(--testi-line);
  transition: border-color var(--dur-slow) ease;
}

.wl-testimonials__kicker {
  color: var(--testi-accent);
  margin-top: 0.375rem;
  transition: color var(--dur-slow) ease;
}

.wl-testimonials__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

.wl-testimonials__stage {
  position: relative;
  padding-left: 6.875rem;
  display: grid;
  gap: 3.5rem;
}

.wl-testimonial {
  margin: 0;
  display: grid;
  gap: 2.125rem;
  align-content: start;
}

.wl-testimonial__quote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--c-ink);
  text-wrap: pretty;
}

.wl-testimonial__mark {
  color: var(--q-accent);
}

.wl-testimonial__by {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.375rem;
  align-items: baseline;
  color: var(--t-caption);
}

.wl-testimonial__name {
  color: var(--c-ink);
}

/* With JS, the quotes stack in one cell and take turns. */
.wl-testimonials.is-enhanced .wl-testimonials__stage {
  min-height: 300px;
  gap: 0;
  grid-template-areas: "q";
  padding-bottom: 3rem;
}

.wl-testimonials.is-enhanced .wl-testimonial {
  grid-area: q;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.9s var(--ease-out);
}

.wl-testimonials.is-enhanced .wl-testimonial.is-before {
  transform: translateY(-14px);
}

.wl-testimonials.is-enhanced .wl-testimonial.is-current {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wl-testimonials__dots {
  position: absolute;
  left: 6.875rem;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.wl-testimonials__dot {
  width: 18px;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--testi-line);
  transition: width 0.5s var(--ease-out), background var(--dur-fast) ease;

  /* A 2px bar is a miserable thing to aim at; pad the hit area, not the bar. */
  position: relative;
}

.wl-testimonials__dot::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

.wl-testimonials__dot.is-current {
  width: 44px;
  background: var(--c-ink);
}

/* --- Statement ---------------------------------------------------------- */

.wl-statement__inner {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 5rem;
  align-items: center;
}

.wl-statement__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.wl-statement__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.wl-statement__text {
  font-size: var(--fs-stmt);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

.wl-statement__text em {
  color: var(--t-caption);
}

/* No portrait set: the statement takes the full width instead of squeezing
   into the portrait's narrow column. */
.wl-statement__inner > .wl-statement__text:first-child {
  grid-column: 1 / -1;
  max-width: 28em;
}

/* --- Collection cards --------------------------------------------------
   A flex row where the open card takes the space. The design used hover; we
   add :focus-within so a keyboard user opens the same card by tabbing to it.
   -------------------------------------------------------------------------- */

.wl-collections__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  color: var(--c-white);
}

.wl-collections__title {
  font-size: var(--fs-h2);
  letter-spacing: 0.04em;
}

.wl-collections__hint {
  color: rgba(255, 255, 255, 0.7);
}

.wl-collections__row {
  display: flex;
  gap: 0.625rem;
  height: 68vh;
  min-height: 520px;
  list-style: none;
}

.wl-coll-card {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--card-bg, var(--c-black));
  transition: flex 0.85s var(--ease-out);
}

/* The open card gets the lion's share. flex-grow rather than a width keeps the
   row exactly full whatever the collection count. */
/*
 * Only .is-open, set by site.js on hover, keyboard focus or a tap. Opening on
 * :hover as well left two cards open at once when the pointer moved off the
 * first card, and on a touch screen :hover sticks to whatever was last tapped.
 */
.wl-coll-card.is-open {
  flex: 3.2;
}

.wl-coll-card__link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--c-white);
}

.wl-coll-card__link:hover {
  text-decoration: none;
  color: var(--c-white);
}

.wl-coll-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}

.wl-coll-card.is-open .wl-coll-card__img {
  transform: scale(1);
}

/* Shade for the closed cards' spine names. An open card's text has its own
   panel instead, so the photograph stays clear. */
.wl-coll-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%);
  transition: opacity var(--dur-mid) ease;
}

.wl-coll-card.is-open .wl-coll-card__scrim {
  opacity: 0;
}

/* Closed state: the name runs up the spine. */
.wl-coll-card__spine {
  position: absolute;
  left: 1.5rem;
  bottom: 1.625rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 1.875rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--dur-fast) ease;
}

.wl-coll-card.is-open .wl-coll-card__spine {
  opacity: 0;
}

/* Open state: the full panel. */
.wl-coll-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;

  /*
   * Edge to edge along the bottom of the card, fading up into the photograph
   * so there is no hard line: dark enough behind the words to read, clear
   * above them.
   */
  padding: 5rem 1.875rem 1.875rem;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0) 0%, rgba(18, 17, 16, 0.55) 45%, rgba(18, 17, 16, 0.8) 100%);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-mid) ease 0.2s, transform 0.8s var(--ease-out) 0.15s;
}

.wl-coll-card.is-open .wl-coll-card__body {
  opacity: 1;
  transform: none;
}

.wl-coll-card__name {
  display: block;
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 3.375rem;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 0.875rem;
  white-space: nowrap;
}

.wl-coll-card__meta {
  margin-bottom: 0;
}

.wl-coll-card__blurb {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.wl-coll-card__meta {
  display: flex;
  gap: 1.625rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
}

.wl-coll-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.375rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.wl-coll-card__link:hover .wl-coll-card__cta,
.wl-coll-card__link:focus-visible .wl-coll-card__cta {
  background: var(--c-white);
  color: var(--c-ink);
}

/* The button is for touch screens, where it is what the second tap lands
   on. On a desktop with a mouse the whole card is plainly the link. */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .wl-coll-card__cta {
    display: none;
  }
}

/* Which hint fits the device: hover with a mouse, tap on a touch screen. */
.wl-collections__hint-touch {
  display: none;
}

@media (hover: none) {
  .wl-collections__hint-mouse { display: none; }
  .wl-collections__hint-touch { display: inline; }
}

/* --- Print carousel ----------------------------------------------------
   Progressive enhancement in two states.

   Base (no JS): a horizontally scrollable row with scroll-snap. Works, is
   crawlable, keyboard-reachable.

   Enhanced (.is-enhanced, set by carousel.js): the tall sticky 3D wheel from
   the design. The wheel only engages when the browser can do it and the
   visitor has not asked for reduced motion.
   -------------------------------------------------------------------------- */

.wl-carousel {
  background: var(--c-white);
  padding-block: var(--sp-section) 0;
}

.wl-carousel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.wl-carousel__title {
  font-size: clamp(1.875rem, 4vh, 2.75rem);
  letter-spacing: 0.04em;
}

.wl-carousel__stage {
  position: relative;
}

/* Base: scrolling row. */
.wl-carousel__wheel {
  display: flex;
  gap: 1.875rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  padding-bottom: 1.875rem;
  scrollbar-width: thin;
}

.wl-carousel__cell {
  position: relative;
  flex: 0 0 auto;
  width: min(300px, 72vw);
  aspect-ratio: 3 / 4;
  scroll-snap-align: center;
}

.wl-carousel__foot {
  display: flex;
  justify-content: center;
  padding-block: 1rem 2.125rem;
}

/* Enhanced: the 3D wheel. */
.wl-carousel.is-enhanced {
  height: 320vh;
  padding-block: 0;
  position: relative;
}

.wl-carousel.is-enhanced .wl-carousel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wl-carousel.is-enhanced .wl-carousel__head {
  flex: none;
  padding-top: var(--sp-section);
  margin-bottom: 0;
}

.wl-carousel.is-enhanced .wl-carousel__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  perspective: 4000px;
  perspective-origin: 50% 45%;
  user-select: none;
  touch-action: pan-y;
}

.wl-carousel.is-enhanced .wl-carousel__wheel {
  position: relative;
  display: block;
  overflow: visible;
  height: min(46vh, 380px);
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  padding: 0;
  scroll-snap-type: none;
}

.wl-carousel.is-enhanced .wl-carousel__cell {
  position: absolute;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  backface-visibility: hidden;
  transition: opacity var(--dur-fast) ease;
}

.wl-carousel.is-enhanced .wl-carousel__arrow {
  display: grid;
}

.wl-carousel.is-enhanced .wl-carousel__foot {
  flex: none;
  padding-block: 0 2.125rem;
}

/* Arrows */
.wl-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line-strong);
  background: var(--c-white);
  font-size: 1.25rem;
  color: var(--c-ink);
  display: none;
  place-items: center;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  z-index: 2;
}

.wl-carousel__arrow:hover,
.wl-carousel__arrow:focus-visible {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}

.wl-carousel__arrow--prev { left: var(--gutter); }
.wl-carousel__arrow--next { right: var(--gutter); }

/* The detail panel a card lifts into (carousel.js). Sits over the wheel, under
   the arrows, which keep working to move between prints. */
.wl-pick {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.75rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 calc(var(--gutter) + 72px);
  animation: wl-fade 0.5s ease both;
}

.wl-pick[hidden] {
  display: none;
}

.wl-pick__img {
  justify-self: end;
  width: 100%;
  max-height: 90%;
  border-radius: var(--radius-img);
  background-color: var(--c-line);
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 90px rgba(18, 17, 16, 0.35);
  transform-origin: 0 0;
}

.wl-pick__text {
  animation: wl-rise 0.8s ease 0.15s both;
}

.wl-pick__coll {
  letter-spacing: 0.18em;
  margin-bottom: 0.875rem;
}

.wl-pick__title {
  font-size: clamp(2.125rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin-bottom: 1.125rem;
}

.wl-pick__title:focus {
  outline: none;
}

.wl-pick__story {
  color: var(--t-muted);
  font-size: 1.03125rem;
  max-width: 44ch;
  margin-bottom: 1.875rem;
}

.wl-pick__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.875rem;
}

.wl-pick__close {
  color: var(--t-caption);
}

/* --- Print card (used in the carousel and related grids) ---------------- */

.wl-print-card {
  display: grid;
  gap: 0.75rem;
  color: var(--c-ink);
}

.wl-print-card:hover {
  text-decoration: none;
  color: var(--c-ink);
}

.wl-print-card__frame {
  position: relative;
  display: block;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--c-line);
  box-shadow: var(--shadow-card);
}

/* In the carousel the card fills its cell; in a grid it keeps its own ratio. */
.wl-carousel__cell .wl-print-card {
  position: absolute;
  inset: 0;
  gap: 0;
}

.wl-carousel__cell .wl-print-card__frame {
  position: absolute;
  inset: 0;
  transition: transform var(--dur-mid) var(--ease-out);
}

.wl-carousel__cell .wl-print-card:hover .wl-print-card__frame {
  transform: translateY(-10px);
}

.wl-print-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.wl-print-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
}

.wl-print-card__label {
  display: block;
}

/* Over the photograph in the carousel; beneath it in a grid. */
.wl-carousel__cell .wl-print-card__label {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  color: var(--c-white);
  z-index: 1;
}

.wl-print-card__title {
  display: block;
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.wl-carousel__cell .wl-print-card__meta {
  color: rgba(255, 255, 255, 0.8);
}

/* --- About band --------------------------------------------------------- */

.wl-aboutband {
  height: 90vh;
  min-height: 600px;
}

/* 15% overdraw each way, so the clamped parallax (±10% of the image) never
   shows an edge. */
.wl-aboutband__img {
  inset: -15% 0;
  height: 130%;
  filter: brightness(0.5) saturate(0.8);
  object-position: 50% 30%;
}

.wl-aboutband__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.375rem;
}

.wl-aboutband__kicker {
  color: var(--c-sand);
  margin-bottom: 1.375rem;
}

.wl-aboutband__title {
  font-size: var(--fs-band);
  line-height: 1.05;
  margin-bottom: 1.375rem;
}

.wl-aboutband__body {
  font-size: 1.0625rem;
  color: var(--c-sand);
  max-width: 46ch;
  margin-bottom: 1.875rem;
}

/* --- Notes (journal index) ---------------------------------------------- */

.wl-notes {
  display: grid;
}

.wl-note-card {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 2.75rem;
  align-items: center;
  border-top: 1px solid var(--c-line);
  padding-block: 2.125rem;
}

.wl-note-card__frame {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.wl-note-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.wl-note-card:hover .wl-note-card__img {
  transform: scale(1.05);
}

.wl-note-card__meta {
  margin-bottom: 0.75rem;
}

.wl-note-card__title {
  font-size: 2.375rem;
  line-height: 1.1;
  margin-bottom: 0.875rem;
}

.wl-note-card__title a {
  color: var(--c-ink);
}

.wl-note-card__title a:hover {
  color: var(--a-link-hover);
  text-decoration: none;
}

.wl-note-card__excerpt {
  color: var(--t-muted);
  max-width: 56ch;
  margin-bottom: 1.25rem;
}

.wl-note-card__more {
  font-size: 0.71875rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a-link);
}

/* --- Next note ---------------------------------------------------------- */

.wl-nextnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.875rem;
  border-top: 1px solid var(--c-line);
  padding-top: 2.125rem;
  margin-top: 5rem;
  color: var(--c-ink);
}

.wl-nextnote:hover {
  text-decoration: none;
  color: var(--c-ink);
}

.wl-nextnote__title {
  font-size: 2.125rem;
  line-height: 1.1;
}

.wl-nextnote__arrow {
  font-size: 1.5rem;
  flex: none;
}

/* --- FAQ ---------------------------------------------------------------- */

.wl-faqs {
  display: grid;
  margin-top: 4rem;
}

.wl-faq {
  border-top: 1px solid var(--c-line);
  padding-block: 1.625rem;
}

/* <details>/<summary> rather than button + JS: it opens with no script, is
   announced correctly, and is searchable by the browser's find-on-page. */
.wl-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.125rem;
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 1.875rem;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  list-style: none;
}

.wl-faq__q::-webkit-details-marker {
  display: none;
}

.wl-faq__sign {
  font-family: var(--f-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--a-link-hover);
  flex: none;
  transition: transform 0.4s ease;
}

.wl-faq[open] .wl-faq__sign {
  transform: rotate(45deg);
}

.wl-faq__a {
  margin-top: 1rem;
  color: var(--t-body);
  font-size: 1.03125rem;
  max-width: 66ch;
  animation: wl-fade 0.4s ease both;
}

/* --- Contact ------------------------------------------------------------ */

.wl-contact {
  background: var(--c-cream);
  border-top: 1px solid var(--c-line);
}

.wl-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.625rem;
  align-items: start;
  padding-block: var(--sp-section);
}

.wl-contact__title {
  font-size: 3.625rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1.375rem;
}

.wl-contact__blurb {
  color: var(--t-muted);
  font-size: 1.0625rem;
  max-width: 44ch;
  margin-bottom: 2.125rem;
}

.wl-contact__meta {
  display: grid;
  gap: 0.75rem;
  color: var(--t-body);
  letter-spacing: var(--ls-caption);
}

.wl-contact__form {
  display: grid;
  gap: 1.375rem;
  padding-top: 0.75rem;
}

.wl-contact__done {
  padding-top: 0.75rem;
  display: grid;
  gap: 0.875rem;
  justify-items: start;
  align-content: start;
  animation: wl-fade var(--dur-mid) ease both;
}

.wl-contact__thanks {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.wl-contact__thanks-note {
  color: var(--t-muted);
  max-width: 46ch;
}

.wl-contact__error {
  color: #9a2c2c;
  font-size: 0.9375rem;
  border-left: 2px solid currentColor;
  padding-left: 0.75rem;
}

/* --- Fields ------------------------------------------------------------- */

.wl-field {
  display: grid;
}

.wl-field input,
.wl-field textarea,
.wl-basket__body input[type="email"] {
  border: 0;
  border-bottom: 1px solid var(--c-line-strong);
  padding-block: 0.75rem;
  font-size: 1rem;
  background: transparent;
  outline: none;
  border-radius: 0;
  transition: border-color var(--dur-fast) ease;
}

.wl-field textarea {
  resize: vertical;
}

.wl-field input:focus,
.wl-field textarea:focus {
  border-bottom-color: var(--c-ink);
}

.wl-field input::placeholder,
.wl-field textarea::placeholder {
  color: var(--t-caption);
}

/* Honeypot. Visually gone but still in the layout for a bot to find. */
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Topic chips: real radios, styled as the design's underlined labels. */
.wl-chips {
  display: flex;
  gap: 1.375rem;
  flex-wrap: wrap;
  padding: 0.375rem 0;
  border: 0;
  margin: 0;
}

.wl-chip {
  display: inline-flex;
}

.wl-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wl-chip span {
  display: inline-block;
  border-bottom: 1.5px solid transparent;
  padding-block: 0.3125rem;
  font-size: 0.71875rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-caption);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.wl-chip input:checked + span {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

.wl-chip input:focus-visible + span {
  outline: 2px solid var(--a-base);
  outline-offset: 3px;
}

.wl-signup__note {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--t-footer-head);
}

/* --- Empty states and pagination ---------------------------------------- */

.wl-empty {
  border-top: 1px solid var(--c-line);
  padding-block: 4.375rem;
  text-align: center;
}

.wl-empty__title {
  font-size: 2.125rem;
  margin-bottom: 0.5625rem;
}

.wl-empty__body {
  color: var(--t-muted);
  margin-bottom: 1.375rem;
}

.wl-pagination {
  margin-top: 3.75rem;
  padding-top: 1.875rem;
  border-top: 1px solid var(--c-line);
}

.wl-pagination .nav-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.wl-pagination .current {
  color: var(--t-caption);
}

/* --- Reveal on scroll --------------------------------------------------- */

[data-wl-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) ease, transform 1.1s var(--ease-out);
}

[data-wl-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Without JS nothing sets .is-in, so the content must not stay invisible. */
.no-js [data-wl-reveal] {
  opacity: 1;
  transform: none;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .wl-coll-card__name { font-size: 2.5rem; }
}

@media (max-width: 900px) {
  .wl-menu {
    grid-template-columns: 1fr;
  }

  /* On a narrow screen the art becomes a backdrop rather than a column. */
  .wl-menu__art {
    position: absolute;
    inset: 0;
  }

  .wl-menu__art-scrim {
    background: rgba(18, 17, 16, 0.72);
  }

  .wl-menu__art-caption { display: none; }

  .wl-menu__nav {
    position: relative;
    padding: 6rem var(--gutter) 3rem;
  }

  .wl-statement__inner,
  .wl-aboutband__inner,
  .wl-contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .wl-statement__portrait {
    max-width: 280px;
  }

  .wl-note-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wl-note-card__title { font-size: 1.875rem; }

  /* The collection row becomes a stack, edge to edge: five cards squeezed into
     a phone width would each be 60px wide, and a sideways strip hid most of
     them off-screen. */
  .wl-collections__row {
    flex-direction: column;
    gap: 0;
    height: auto;
    min-height: 0;
    margin-inline: calc(-1 * var(--gutter));
  }

  /* The last card sits on the section's bottom edge. */
  .wl-collections {
    padding-bottom: 0;
  }

  .wl-coll-card,
  .wl-coll-card.is-open {
    flex: none;
    width: 100%;
    height: clamp(320px, 78vw, 560px);
    border-radius: 0;
  }

  .wl-coll-card__body {
    padding: 4rem var(--gutter) 1.5rem;
  }

  /* Every card is open here, each with its own text panel. */
  .wl-coll-card__scrim {
    display: none;
  }

  /* Every card shows its full panel — there is no hover to open one. */
  .wl-coll-card__spine { display: none; }

  .wl-coll-card__body {
    opacity: 1;
    transform: none;
  }

  .wl-coll-card__name {
    font-size: 2rem;
    white-space: normal;
  }

  .wl-collections__head {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* "Hover to open" is a lie on a touch screen, where every card is already
     open and the strip is swiped rather than hovered. */
  .wl-collections__hint {
    display: none;
  }

  .wl-contact__title { font-size: 2.75rem; }

  .wl-hero {
    height: 92vh;
    min-height: 520px;
  }

  .wl-hero__foot span:first-child,
  .wl-hero__foot span:last-child {
    display: none;
  }

  .wl-hero__cue { margin-inline: auto; }

  .wl-aboutband {
    height: auto;
    min-height: 0;
  }

  .wl-aboutband__inner {
    padding-block: 5rem;
  }

  .wl-carousel__arrow { display: none !important; }
}

@media (max-width: 640px) {
  .wl-basket__panel { width: 100vw; }

  .wl-basket__head { padding: 1.5rem 1.375rem 1rem; }

  .wl-menu__item { font-size: 2rem; }

  .wl-statement__text { font-size: 1.5rem; }

  /*
   * Collection cards on a phone: just the name and the button, side by side
   * on one line, so the text covers as little of the photograph as possible.
   * The description and details are on the collection page itself.
   */
  .wl-coll-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 3.5rem;
  }

  .wl-coll-card__blurb,
  .wl-coll-card__meta {
    display: none;
  }

  .wl-coll-card__name {
    margin: 0;
    font-size: 1.875rem;
    white-space: nowrap;
  }

  .wl-coll-card__cta {
    flex: none;
    margin-top: 0;
    padding: 0.5rem 0.875rem;
  }

  /* "View →" on a phone, so a long name such as Architecture still fits. */
  .wl-coll-card__cta-more {
    display: none;
  }

  /* One column on a phone: portrait and words centred in the section. */
  .wl-statement__inner {
    justify-items: center;
    text-align: center;
  }

  .wl-statement__portrait {
    width: 100%;
  }

  .wl-faq__q { font-size: 1.375rem; }
}

/* --- Testimonials, narrow -------------------------------------------- */

@media (max-width: 900px) {
  .wl-testimonials {
    padding-block: 5rem 5.5rem;
  }

  .wl-testimonials__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* One column: everything centred, as the hero and statement are. */
  .wl-testimonials__inner {
    text-align: center;
  }

  .wl-testimonials__head {
    justify-items: center;
    padding: 0 0 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--testi-line);
  }

  .wl-testimonials__stage {
    padding-left: 0;
  }

  .wl-testimonial__by {
    justify-content: center;
  }

  .wl-testimonials__dots {
    left: 50%;
    transform: translateX(-50%);
  }

  .wl-testimonials.is-enhanced .wl-testimonials__stage {
    min-height: 260px;
  }
}

/* --- Tablet (641-900px) ------------------------------------------------
   Wide enough for two columns where the content is two things side by side,
   so it no longer gets the phone layout.
   -------------------------------------------------------------------------- */

@media (min-width: 641px) and (max-width: 900px) {
  .wl-statement__inner {
    grid-template-columns: 0.55fr 1.45fr;
    gap: 2.5rem;
  }

  .wl-statement__portrait {
    max-width: none;
  }

  .wl-contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .wl-hero__foot span:first-child {
    display: inline;
  }
}

/* --- Short landscape screens -------------------------------------------
   A phone on its side: the full-screen menu's large type would run off the
   bottom, so it shrinks and the panel scrolls.
   -------------------------------------------------------------------------- */

@media (max-height: 520px) and (orientation: landscape) {
  .wl-menu {
    overflow-y: auto;
  }

  .wl-menu__nav {
    padding-block: 4.5rem 1.5rem;
  }

  .wl-menu__item {
    font-size: 1.625rem;
    padding-block: 0.25rem;
  }

  .wl-hero {
    min-height: 100vh;
  }
}
