/* Applications lookbook. Scoped under .al-lookbook so snapshot CSS does not leak. */

html:has(.al-lookbook) {
  scroll-behavior: smooth;
}

.al-lookbook {
  --hc-navy: #123a5e;
  --hc-navy-deep: #0b1c2e;
  --hc-gold: #c2a06a;
  --hc-gold-soft: #d4b98a;
  --hc-cream: #f4efe6;
  --hc-paper: #fbf8f3;
  --hc-ink: #1c2430;
  --hc-mute: #5c6570;
  --hc-line: rgba(18, 58, 94, 0.12);
  --hc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hc-max: 1180px;
  color: var(--hc-ink);
  background: var(--hc-paper);
  overflow-x: clip;
}

.al-lookbook *,
.al-lookbook *::before,
.al-lookbook *::after {
  box-sizing: border-box;
}

.al-lookbook a {
  color: inherit;
  text-decoration: none;
}

.al-lookbook .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.al-wrap {
  width: min(var(--hc-max), calc(100% - 48px));
  margin-inline: auto;
}

.al-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hc-gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.72rem;
}

.al-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.al-lookbook.is-motion .al-kicker::before {
  animation: al-kicker-draw 1.1s var(--hc-ease) both;
}

@keyframes al-kicker-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.al-btn {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.4);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 0.55s var(--hc-ease),
    box-shadow 0.55s var(--hc-ease),
    border-color 0.55s var(--hc-ease),
    color 0.55s var(--hc-ease),
    background-color 0.55s var(--hc-ease);
}

.al-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--hc-ease);
}

.al-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 28, 46, 0.18);
}

.al-btn:hover svg {
  transform: translateX(4px);
}

.al-btn:active {
  transform: translateY(0) scale(0.98);
}

.al-btn--gold {
  --btn-bg: var(--hc-gold);
  --btn-fg: var(--hc-navy-deep);
  --btn-bd: var(--hc-gold);
}

.al-btn--gold:hover {
  background: #d8b57c;
}

.al-btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: transparent;
  padding-inline: 4px;
  min-height: 44px;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.al-btn--light:hover {
  transform: none;
  box-shadow: none;
  border-bottom-color: var(--hc-gold);
}

.al-btn--ink {
  --btn-bg: var(--hc-navy);
  --btn-fg: #fff;
  --btn-bd: var(--hc-navy);
}

.al-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--hc-navy);
  --btn-bd: rgba(18, 58, 94, 0.22);
}

.al-lookbook :focus-visible {
  outline: 2px solid var(--hc-gold);
  outline-offset: 2px;
}

.al-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.al-crumbs a:hover {
  color: #fff;
}

.al-crumbs--ink {
  color: var(--hc-mute);
  padding: 28px 0 0;
}

.al-crumbs--ink a:hover {
  color: var(--hc-navy);
}

/* Stage */
.al-stage {
  position: relative;
  min-height: max(720px, calc(100svh - 88px));
  color: #fff;
  overflow: hidden;
  background: var(--hc-navy-deep);
}

.al-stage__media,
.al-stage__shot,
.al-stage__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.al-stage__media {
  z-index: 0;
}

.al-stage__shot {
  opacity: 0;
  transition: opacity 0.88s cubic-bezier(0.16, 1, 0.3, 1);
}

.al-stage__shot.is-on {
  opacity: 1;
  z-index: 1;
}

.al-stage__shot img {
  object-fit: cover;
  transform: scale(1.04);
  transform-origin: center;
}

.al-lookbook.is-motion .al-stage__shot.is-on img {
  animation: al-ken 22s linear infinite alternate;
}

.al-stage__swap {
  animation: al-copy-in 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes al-ken {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@keyframes al-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.al-stage__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 28, 46, 0.82) 0%, rgba(11, 28, 46, 0.58) 30%, rgba(11, 28, 46, 0.22) 54%, rgba(11, 28, 46, 0.08) 100%),
    linear-gradient(180deg, rgba(11, 28, 46, 0.14) 0%, rgba(11, 28, 46, 0.42) 100%);
  pointer-events: none;
}

.al-stage__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(720px, calc(100svh - 88px));
  padding: 120px 72px 88px;
}

.al-stage h1 {
  margin: 18px 0 8px;
  max-width: 18ch;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.al-stage-title {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.al-dek {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
}

.al-stage .al-dek {
  color: #f6f1e8;
  text-shadow: 0 1px 2px rgba(11, 28, 46, 0.78), 0 10px 28px rgba(11, 28, 46, 0.42);
}

.al-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

.al-proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  max-width: 920px;
}

.al-proof {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.al-proof img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  transition: transform 0.7s var(--hc-ease);
}

.al-proof:hover img {
  transform: scale(1.06);
}

.al-proof strong {
  display: block;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.86rem;
}

.al-proof span {
  display: block;
}

.al-proof__text {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.45;
}

.al-stage .al-proof strong {
  color: #fff;
  text-shadow: 0 1px 2px rgba(11, 28, 46, 0.7);
}

.al-stage .al-proof__text {
  color: #efe6d6;
  font-size: 0.88rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(11, 28, 46, 0.78), 0 8px 20px rgba(11, 28, 46, 0.4);
}

.al-peek {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  transition: width 0.45s var(--hc-ease);
}

.al-peek:hover {
  width: 88px;
}

.al-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.45s var(--hc-ease), transform 0.7s var(--hc-ease);
}

.al-peek:hover img {
  filter: brightness(0.8);
  transform: scale(1.04);
}

.al-peek--prev { left: 0; }
.al-peek--next { right: 0; }

.al-peek span {
  position: absolute;
  bottom: 28px;
  left: 10px;
  right: 10px;
  color: #fff;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s var(--hc-ease);
  writing-mode: vertical-rl;
}

.al-peek:hover span {
  opacity: 1;
}

/* Tools */
.al-tools {
  background: var(--hc-cream);
  border-bottom: 1px solid var(--hc-line);
  padding: 22px 0 18px;
}

.al-types {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.al-types::-webkit-scrollbar {
  display: none;
}

.al-type {
  flex: 0 0 auto;
  width: 108px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hc-ink);
  cursor: pointer;
  text-align: left;
}

.al-type img,
.al-type__blank {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: cover;
  background: var(--hc-navy-deep);
  transition: transform 0.7s var(--hc-ease);
}

.al-type:hover img {
  transform: scale(1.04);
}

.al-type span {
  display: block;
  margin-top: 8px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.al-type.is-on span {
  color: var(--hc-navy);
  box-shadow: inset 0 -1px 0 var(--hc-gold);
}

.al-type.is-off {
  opacity: 0.4;
  cursor: not-allowed;
}

.al-count {
  margin: 14px 0 0;
  color: var(--hc-mute);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Filmstrip */
.al-strip-wrap {
  position: relative;
  padding: 28px 0 8px;
}

.al-strip {
  overflow: hidden;
  padding-bottom: 8px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 48px,
    #000 calc(100% - 48px),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 48px,
    #000 calc(100% - 48px),
    transparent
  );
}

.al-strip__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: al-strip-marquee var(--al-strip-duration, 45s) linear infinite;
}

.al-strip-wrap:hover .al-strip__track,
.al-strip-wrap:focus-within .al-strip__track {
  animation-play-state: paused;
}

.al-strip__set {
  display: flex;
  gap: 12px;
}

@keyframes al-strip-marquee {
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.al-cell {
  flex: 0 0 220px;
  display: block;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.45s var(--hc-ease), box-shadow 0.45s var(--hc-ease);
}

.al-cell img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 1.1s var(--hc-ease), filter 0.45s var(--hc-ease);
}

.al-cell:hover img,
.al-cell.is-on img {
  filter: brightness(1);
  transform: scale(1.04);
}

.al-cell.is-on {
  border-color: var(--hc-gold);
}

.al-cell strong {
  display: block;
  margin-top: 10px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.92rem;
}

.al-cell em {
  display: block;
  margin-top: 4px;
  color: var(--hc-mute);
  font-style: normal;
  font-size: 0.78rem;
}

/* Index grid */
.al-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  padding: 12px 0 64px;
}

.al-card {
  display: block;
  color: inherit;
}

.al-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 1.1s var(--hc-ease);
}

.al-card:hover img {
  transform: scale(1.04);
}

.al-card strong {
  display: block;
  margin-top: 12px;
  font-family: Montserrat-SemiBold, sans-serif;
}

.al-card span {
  display: block;
  margin-top: 6px;
  color: var(--hc-mute);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Empty */
.al-empty {
  padding: 88px 0 120px;
}

.al-empty h1,
.al-empty h2 {
  margin: 12px 0 12px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.al-empty p {
  max-width: 36rem;
  color: var(--hc-mute);
  line-height: 1.7;
}

/* Kit / empty pages sit below the fixed navbar. */
.al-lookbook--kit,
.al-lookbook--plain {
  padding-top: 100px;
}

.al-lookbook--kit .al-zone {
  scroll-margin-top: 108px;
}

.al-kitnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-bottom: 28px;
}

.al-kitnav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hc-navy);
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.al-kitnav__back svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.al-kitnav__back:hover {
  color: var(--hc-gold);
}

.al-kitnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.al-kitnav__list a {
  color: var(--hc-mute);
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 0.86rem;
}

.al-kitnav__list a:hover,
.al-kitnav__list a.is-on {
  color: var(--hc-navy);
}

.al-kitnav__list a.is-on {
  box-shadow: inset 0 -1px 0 var(--hc-gold);
}

.al-head {
  padding: 28px 0 48px;
  background: var(--hc-cream);
}

.al-head h1 {
  margin: 14px 0 16px;
  max-width: 18ch;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--hc-navy);
}

.al-head .al-dek {
  color: var(--hc-mute);
}

.al-head .al-proofs {
  margin-top: 28px;
}

.al-head .al-proof span,
.al-head .al-proof__text {
  color: var(--hc-mute);
}

.al-head .al-proof strong {
  color: var(--hc-navy);
}

.al-zone {
  width: min(var(--hc-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 8px;
}

.al-zone__intro {
  margin-bottom: 20px;
}

.al-caption {
  color: var(--hc-mute);
  font-size: 0.98rem;
  line-height: 1.7;
}

.al-zone .al-caption {
  width: min(42rem, 100%);
  margin: 10px 0 0;
}

.al-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.al-gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.al-gallery button:only-child {
  grid-column: 1 / -1;
}

.al-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.1s var(--hc-ease);
}

.al-gallery button:only-child img {
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.al-gallery button:hover img {
  transform: scale(1.03);
}

.al-story {
  width: min(680px, calc(100% - 48px));
  margin: 72px auto 0;
}

.al-story h2 {
  margin: 0 0 12px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: 1.35rem;
  color: var(--hc-navy);
}

.al-story h2::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--hc-gold);
}

.al-story p {
  margin: 0 0 28px;
  color: var(--hc-mute);
  line-height: 1.8;
}

.al-looks {
  width: min(var(--hc-max), calc(100% - 48px));
  margin: 48px auto 0;
}

.al-looks h2 {
  margin: 0 0 18px;
  font-family: Montserrat-SemiBold, sans-serif;
  color: var(--hc-navy);
}

.al-looks__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.al-looks a img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform 0.7s var(--hc-ease);
}

.al-looks a:hover img {
  transform: scale(1.03);
}

.al-looks a span {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
}

.al-next {
  width: min(var(--hc-max), calc(100% - 48px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  color: #fff;
  overflow: hidden;
  background: var(--hc-navy-deep);
}

.al-next img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 8s linear;
}

.al-next:hover img {
  transform: scale(1.04);
}

.al-next__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
}

.al-next__copy h2 {
  margin: 8px 0 12px;
  max-width: 16ch;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.al-next__copy p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.al-next__copy .al-btn {
  margin-top: 22px;
  width: fit-content;
}

.al-cta {
  margin-top: 0;
  padding: 72px 0 96px;
  background: var(--hc-navy-deep);
  color: #fff;
}

.al-cta h2 {
  margin: 0 0 12px;
  font-family: Montserrat-SemiBold, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.al-cta p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.al-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* Lightbox */
body.is-al-viewer {
  overflow: hidden;
}

body.is-al-viewer .navbar,
body.is-al-viewer .site-floats,
body.is-al-viewer .bottom-nav-bar {
  visibility: hidden;
  pointer-events: none;
}

.al-viewer {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 420px);
  background: var(--hc-navy-deep);
  color: #fff;
}

.al-viewer__shot {
  position: relative;
  min-height: 100%;
  background: #000;
}

.al-viewer__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.al-viewer__nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 72px;
  border: 0;
  background: rgba(11, 28, 46, 0.45);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.al-viewer__nav--prev { left: 0; }
.al-viewer__nav--next { right: 0; }
.al-viewer__nav--prev svg { transform: rotate(180deg); }

.al-viewer__side {
  padding: 28px 28px 32px;
  background: var(--hc-paper);
  color: var(--hc-ink);
  overflow: auto;
}

.al-viewer__side button {
  border: 0;
  background: none;
  color: var(--hc-mute);
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.al-viewer__side h2 {
  margin: 24px 0 12px;
  font-family: Montserrat-SemiBold, sans-serif;
  color: var(--hc-navy);
}

.al-viewer__side p {
  color: var(--hc-mute);
  line-height: 1.7;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.9s var(--hc-ease), transform 0.9s var(--hc-ease), filter 0.9s var(--hc-ease);
}

[data-reveal][data-in] {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 900px) {
  .al-peek { display: none; }
  .al-proofs,
  .al-grid,
  .al-looks__row,
  .al-next,
  .al-viewer {
    grid-template-columns: 1fr;
  }
  .al-stage .al-proofs {
    display: none;
  }
  .al-stage,
  .al-stage__copy {
    min-height: 100svh;
  }
  .al-stage__copy {
    padding: 120px 0 80px;
  }
  .al-stage h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .al-lookbook--kit,
  .al-lookbook--plain {
    padding-top: 72px;
  }
  .al-lookbook--kit .al-zone {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 640px) {
  .al-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-lookbook.is-motion .al-stage__shot.is-on img,
  .al-lookbook *,
  .al-lookbook *::before {
    animation: none !important;
    transition: none !important;
  }
  .al-stage__shot,
  .al-stage__swap,
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .al-strip {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
